emerge dhcpcd-4.0.3 fails with compile errors in lpc.c if glibc is on 2.9 Reproducible: Always Steps to Reproduce: 1.emerge -u glibc 2.emerge dhcpcd 3. Actual Results: URCE -D_XOPEN_SOURCE=600 -c if-linux.c -o if-linux.o i686-pc-linux-gnu-gcc -march=pentium3 -O3 -pipe -std=c99 -DDBDIR=\"/var/lib/dhcpcd\" -DSCRIPT=\"/lib/dhcpcd/dhcpcd-run-hooks\" -DSYSCONFDIR=\"/etc\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -c lpf.c -o lpf.o i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,-rpath=/lib -o dhcpcd common.o dhcp.o dhcpcd.o logger.o net.o signals.o configure.o client.o if-linux.o lpf.o -lrt dhcp.o: In function `gnu_dev_major': dhcp.c:(.text+0x0): multiple definition of `gnu_dev_major' common.o:common.c:(.text+0x0): first defined here dhcp.o: In function `gnu_dev_minor': dhcp.c:(.text+0x20): multiple definition of `gnu_dev_minor' common.o:common.c:(.text+0x20): first defined here dhcp.o: In function `gnu_dev_makedev': dhcp.c:(.text+0x40): multiple definition of `gnu_dev_makedev' common.o:common.c:(.text+0x40): first defined here dhcp.o: In function `__strcspn_c1': dhcp.c:(.text+0x80): multiple definition of `__strcspn_c1' common.o:common.c:(.text+0xa0): first defined here ... lots of similar errors Expected Results: successful merge Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.28-gentoo-r5-i686-Intel-R-_Celeron-R-_CPU_2.80GHz-with-glibc2.0 Timestamp of tree: Sat, 27 Jun 2009 22:00:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 caps cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap mbox midi mmx mudflap ncurses nls nptl nptlonly openmp ospfapi pam pcre perl postgres pppd python readline reflection session spl sse ssl symlink sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Any reason you're still using gcc-3.4.6 which is ancient?
hmmm while this is in emerge --info: # comhub ~ # gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /export/netshare/portagetmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5' Thread model: posix gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
strangely enough gcc-config -l showed 3.4.6, setting the right one solved it, case closed
So you can now compile dhcpcd successfully?
yes