Bug 214291

Summary: security/gnupg redefinition of typedef 'rl_completion_func_t'
Product: Ports & Packages Reporter: Eric Rucker <bhtooefr>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (kuriyama)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Eric Rucker 2016-11-07 00:18:42 UTC
I'm getting a redefinition of typedef error with FreeBSD 9.3-RELEASE-p49 amd64, trying to build gnupg 2.1.15. Looks like a conflict with readline (which is 6.3.8 on this system).

Here's the relevant portion of the log:

Making all in gpgscm
gmake[3]: Entering directory '/usr/ports/security/gnupg/work/gnupg-2.1.15/tests/gpgscm'
cc -DHAVE_CONFIG_H -I. -I../..  -I../../common -DLOCALEDIR=\"/usr/local/share/locale\" -DGNUPG_BINDIR="\"/usr/local/bin\"" -DGNUPG_LIBEXECDIR="\"/usr
/local/libexec\"" -DGNUPG_LIBDIR="\"/usr/local/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/local/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/usr/local/etc/gnupg\"
" -DGNUPG_LOCALSTATEDIR="\"/var\""       -I/usr/local/include -I/usr/include -imacros scheme-config.h -I/usr/local/include -I/usr/local/include -I/us
r/local/include -Wall -Wno-pointer-sign -Wpointer-arith  -O2 -pipe -fstack-protector -fno-strict-aliasing -MT gpgscm-main.o -MD -MP -MF .deps/gpgscm-
main.Tpo -c -o gpgscm-main.o `test -f 'main.c' || echo './'`main.c
mv -f .deps/gpgscm-main.Tpo .deps/gpgscm-main.Po
cc -DHAVE_CONFIG_H -I. -I../..  -I../../common -DLOCALEDIR=\"/usr/local/share/locale\" -DGNUPG_BINDIR="\"/usr/local/bin\"" -DGNUPG_LIBEXECDIR="\"/usr
/local/libexec\"" -DGNUPG_LIBDIR="\"/usr/local/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/local/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/usr/local/etc/gnupg\"
" -DGNUPG_LOCALSTATEDIR="\"/var\""       -I/usr/local/include -I/usr/include -imacros scheme-config.h -I/usr/local/include -I/usr/local/include -I/us
r/local/include -Wall -Wno-pointer-sign -Wpointer-arith  -O2 -pipe -fstack-protector -fno-strict-aliasing -MT gpgscm-ffi.o -MD -MP -MF .deps/gpgscm-f
fi.Tpo -c -o gpgscm-ffi.o `test -f 'ffi.c' || echo './'`ffi.c
In file included from ffi.c:43:
../../common/util.h:77: error: redefinition of typedef 'rl_completion_func_t'
/usr/local/include/readline/rltypedefs.h:58: error: previous declaration of 'rl_completion_func_t' was here
gmake[3]: *** [Makefile:594: gpgscm-ffi.o] Error 1
gmake[3]: Leaving directory '/usr/ports/security/gnupg/work/gnupg-2.1.15/tests/gpgscm'
gmake[2]: *** [Makefile:528: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/security/gnupg/work/gnupg-2.1.15/tests'
gmake[1]: *** [Makefile:581: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/security/gnupg/work/gnupg-2.1.15'
gmake: *** [Makefile:500: all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/security/gnupg.
*** [build] Error code 1

Stop in /usr/ports/security/gnupg.

===>>> make build failed for security/gnupg
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> security/gnupg
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2017-02-13 04:54:34 UTC
I'm closing this PR out because it's about FreeBSD 9.x and because I believe that I've gotten the bugs with readline conflicts ironed out. Eric if you are still seeing this problem please let me know and I'll reopen it.