Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87104 - net-dns/ldapdns fails to build with gcc 3.4.3
Summary: net-dns/ldapdns fails to build with gcc 3.4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 06:01 UTC by Andrew Knott
Modified: 2005-07-29 14:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ldapdns-2.05-gentoo.diff (ldapdns-2.05-gentoo.diff,1.35 KB, patch)
2005-06-18 20:14 UTC, Marcelo Goes (RETIRED)
Details | Diff
ldapdns-2.04.log.patch (ldapdns-2.04.log.patch,2.44 KB, patch)
2005-06-26 13:47 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Knott 2005-03-29 06:01:42 UTC
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
Comment 1 SpanKY gentoo-dev 2005-04-27 18:50:01 UTC
this package needs a maintainer

the fix is easy ... rename the internal function 'log()' to something else
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-04-27 18:59:05 UTC
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.
Comment 3 SpanKY gentoo-dev 2005-04-30 21:51:47 UTC
that too, both should be fixed
Comment 4 Stian Skjelstad 2005-06-09 16:43:28 UTC
they should both be fixed upstream
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2005-06-18 20:14:16 UTC
Created attachment 61468 [details, diff]
ldapdns-2.05-gentoo.diff

stolen from debian, works with gcc4
Comment 6 Stian Skjelstad 2005-06-26 13:47:22 UTC
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
Comment 7 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-29 10:49:50 UTC
Mass reassign of bugs on orphaned packages to appropriate assignee.
Comment 8 Marcelo Goes (RETIRED) gentoo-dev 2005-07-29 14:04:05 UTC
Fixed in 2.06.