net-analyzer/ethereal-0.10.12 fails to compile Reproducible: Always Steps to Reproduce: 1.emerge =net-analyzer/ethereal-0.10.12 2. 3. Actual Results: then mv -f ".deps/range.Tpo" ".deps/range.Plo"; else rm -f ".deps/range.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I/usr/local/include -DINET6 -O2 -march=pentium4 -fomit-frame-pointer -pipe -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE -I. -I/usr/include -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -O -march=pentium4 -fomit-frame-pointer -pipe -I/usr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DINET6 -O2 -march=pentium4 -fomit-frame-pointer -pipe -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE -I. -I/usr/include -MT radius_dict.lo -MD -MP -MF .deps/radius_dict.Tpo -c radius_dict.c -fPIC -DPIC -o .libs/radius_dict.o radius_dict.l:68: error: 'encrypt' redeclared as different kind of symbol /usr/include/unistd.h:1024: error: previous declaration of 'encrypt' was here radius_dict.l:68: error: 'encrypt' redeclared as different kind of symbol /usr/include/unistd.h:1024: error: previous declaration of 'encrypt' was here make[3]: *** [radius_dict.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I/usr/local/include -DINET6 -O2 -march=pentium4 -fomit-frame-pointer -pipe -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE -I. -I/usr/include -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -O -march=pentium4 -fomit-frame-pointer -pipe -I/usr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DINET6 -O2 -march=pentium4 -fomit-frame-pointer -pipe -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE -I. -I/usr/include -MT range.lo -MD -MP -MF .deps/range.Tpo -c range.c -fPIC -DPIC -o .libs/range.o make[3]: Leaving directory `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12/epan' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12/epan' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ethereal-0.10.12/work/ethereal-0.10.12' make: *** [all] Error 2 !!! ERROR: net-analyzer/ethereal-0.10.12 failed. !!! Function src_compile, Line 80, Exitcode 2 !!! compile problem Expected Results: successful emerge # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.ccccom.com" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 acl acpi apm bash-completion berkdb bitmap-fonts crypt cups curl emboss fortran gdbm gif imlib ipv6 ithreads jpeg ldap libg++ libwww mad mikmod mmx mp3 ncurses nls nptl pam pdflib perl png python readline samba sdl slang snmp spell sse sse2 ssl tcpd threads tiff truetype-fonts type1-fonts unicode xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
*** Bug 100491 has been marked as a duplicate of this bug. ***
I can confirm this. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) MP 2400+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib accessibility acl adns alsa apache2 apm artworkextra asterisk audiofile avi bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr crypt cscope cups curl dba dbus dga directfb doc dts dv dvb dvd dvdr dvdread emacs emboss encode erandom esd expat faad fam fbcon ffmpeg firefox flac foomaticdb fortran fpx gb gcj gd gdbm ggi gif gimpprint gnome gnome-print gnomedb gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl icu ieee1394 imagemagick imap imlib imlib2 inkjar insecure-drivers ipv6 ithreads jack java jbig jpeg junit lcms ldap leim libcaca libg++ libwww lzw-tiff mad maildir matroska mikmod mime mmap mmx mng mnogosearch mono motif mozdevelop mozilla moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpi nas ncurses nls nntp nptl nptlonly objc ogg oggvorbis opengl optional-tasks oss pam pda pdflib perl pic plugin png portaudio postgres ppds python quicktime readline real samba sasl scanner sdk sdl silc slang sndfile snmp sox speex spell sqlite sse ssl svg svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vorbis win32codecs wmf xface xfs xine xml xml2 xmms xprint xv xvid yv12 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I can confirm that, too. The "gboolean encrypt" in the lex inputfile 'radius_dict.l' (and then in the resulting radius_dict.c) conflicts with the "encrypt()" function defined by SUSv2 (_XOPEN_SOURCE) in <unistd.h>.
It compiles fine here :-( Can anyone else from netmon give a hand?
Another confiramtion of the error Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.11.12-nps1 i686) ================================================================= System uname: 2.6.11.12-nps1 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ftracer -falign-functions=64" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /usr/X11R6/bin/startx /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ftracer -falign-functions=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/mirror/gentoo/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acl acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups curl db dbus dga directfb divx4linux dvd emboss encode fam fame ffmpeg flac foomaticdb fortran gdbm ggi gif gtk2 hal imagemagick imlib inifile ipv6 java jpeg kde kdeenablefinal kerberos ldap libg++ libwww mad matroska mikmod mime mmx motif mozsvg mp3 mpeg mysql ncurses nls nptl odbc offensive ogg oggvorbis opengl pam pcmcia pdflib perl pic png pnp python qt quicktime readline samba sdl snmp spell sse sse2 ssl svg svga tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs xine xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS BTW: kernel is an updated ck-source Cheers Nico
I think i've got it: The problem is the "-D_GNU_SOURCE"-macro defined on the commandline. It not just enables the GNU extension to the libc (strdup() etc.), according to <features.h> it also enables some other _BLA_SOURCE, one of it _XOPEN_SOURCE. And how does it get put in the compile command line? When looking in my config.log, it seems it is pulled from the output of "net-snmp-config --cflags". It's the snmp use flag all of us four have set.
Created attachment 64513 [details, diff] ethereal-0.10.12-fix-encrypted-conflict.diff Those of you who are experiencing this problem, please see if this patch fixes it and let me know. If so, I'll commit it asap.
patch works (at least for me) [ebuild R ] net-analyzer/ethereal-0.10.12 -adns -gtk +gtk2 +ipv6 +kerberos +snmp +ssl 0 kB Cheers Nico
In CVS.