When I try to emerge net-dns/ldapdns it fails to compile using gcc 3.4.3. If I switch to gcc 3.3 it will compile with warnings. Reproducible: Always Steps to Reproduce: 1. emerge ldapdns Actual Results: make -f Makefile.defs make[1]: Entering directory `/var/tmp/portage/ldapdns-2.05/work/ldapdns-2.05' cc -I/usr/local/include -march=pentium3 -O3 -pipe -mmmx -msse -mfpmath=387,sse -pthread -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -DHAVE_pthread_kill_other_threads_np -DACCELERATE_CACHE -o udpserver.o -c udpserver.c cc -I/usr/local/include -march=pentium3 -O3 -pipe -mmmx -msse -mfpmath=387,sse -pthread -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -DHAVE_pthread_kill_other_threads_np -DACCELERATE_CACHE -o engine.o -c engine.c In file included from list.h:6, from config.h:12, from udpserver.c:1: error.h:26: warning: conflicting types for built-in function 'log' In file included from engine.c:1: error.h:26: warning: conflicting types for built-in function 'log' cc -I/usr/local/include -march=pentium3 -O3 -pipe -mmmx -msse -mfpmath=387,sse -pthread -DHAVE_SYSLOG -DHAVE_BZERO -DHAVE_MEMCPY -DHAVE_IPV6 -DHAVE_SETSID -DHAVE_POLL -DHAVE_WAITPID -DHAVE_pthread_kill_other_threads_np -DACCELERATE_CACHE -o ldapdns.o -c ldapdns.c In file included from list.h:6, from ldapdns.h:13, from ldapdns.c:2: error.h:26: warning: conflicting types for built-in function 'log' ldapdns.c: In function `ldapdns_list_unique': ldapdns.c:24: error: label at end of compound statement make[1]: *** [ldapdns.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/ldapdns-2.05/work/ldapdns-2.05' make: *** [default] Error 2 !!! ERROR: net-dns/ldapdns-2.05 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! Compilation failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 23 2005, 17:37:32)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -mfpmath=387,sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -mfpmath=387,sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.osuosl.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 apache2 apm arts avi berkdb bitmap-fonts cpdflib crypt dba emboss encode font-server foomaticdb fortran freetds gd gd-external gdbm gif imlib innodb jpeg ldap libg++ libwww mad mikmod mmx motif mp3 mpeg mssql mysql ncurses oggvorbis opengl oss pam pcre pdflib perl php png posix python quicktime readline samba sdl session slang snmp spell sse ssl svga tcpd truetype truetype-fonts type1-fonts winbind xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
this package needs a maintainer the fix is easy ... rename the internal function 'log()' to something else
Actually, the fix is to do something with the label at the end of the loop. Either stick a ; after it, or restructure the for loop to not need the goto.
that too, both should be fixed
they should both be fixed upstream
Created attachment 61468 [details, diff] ldapdns-2.05-gentoo.diff stolen from debian, works with gcc4
Created attachment 62007 [details, diff] ldapdns-2.04.log.patch renames log to dolog, since some compiler-options ala -fast-math enables built in math functions without having a math.h included. Should be notified upstream
Mass reassign of bugs on orphaned packages to appropriate assignee.
Fixed in 2.06.