make[3]: Entering directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm' x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -O2 -pipe -MT varnishadm.o -MD -MP -MF .deps/varnishadm.Tpo -c -o varnishadm.o varnishadm.c mv -f .deps/varnishadm.Tpo .deps/varnishadm.Po /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o varnishadm varnishadm.o ../../lib/libvarnish/libvarnish.la ../../lib/libvarnishcompat/libvarnishcompat.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o -Wl,--as-needed ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lpthread -lnsl ../../lib/libvarnish/.libs/libvarnish.so: undefined reference to `strlcpy' collect2: ld returned 1 exit status make[3]: *** [varnishadm] Error 1 make[3]: Leaving directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4' make: *** [all] Error 2 * ERROR: www-servers/varnish-2.1.4 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2841: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =www-servers/varnish-2.1.4', * the complete build log and the output of 'emerge -pqv =www-servers/varnish-2.1.4'. * The complete build log is located at '/var/log/portage/build/www-servers/varnish-2.1.4:20101118-073702.log'. * The ebuild environment file is located at '/var/tmp/portage/www-servers/varnish-2.1.4/temp/environment'. * S: '/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4' I suspect as-needed breakage.
hhm... what version of libtool are you using? this is what this looks like on my amd64 machine. Making all in varnishadm make[3]: Entering directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm' x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -O2 -pipe -MT varnishadm.o -MD -MP -MF .deps/varnishadm.Tpo -c -o varnishadm.o varnishadm.c mv -f .deps/varnishadm.Tpo .deps/varnishadm.Po /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o varnishadm varnishadm.o ../../lib/libvarnish/libvarnish.la ../../lib/libvarnishcompat/libvarnishcompat.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o -Wl,--as-needed ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lpthread -lnsl make[3]: Leaving directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm' Making all in varnishd make[3]: Entering directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishd'
Created attachment 256127 [details, diff] varnish-2.1.4-fix-link-order-for-as-needed.patch could i ask you to test the attached patch?
doh' - the reverse of the patch needs to be applied...
Looks like no change, still broken. I'm going to try upgrading libtool instead. make[2]: Entering directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin' Making all in varnishadm make[3]: Entering directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm' x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -O2 -pipe -MT varnishadm.o -MD -MP -MF .deps/varnishadm.Tpo -c -o varnishadm.o varnishadm.c mv -f .deps/varnishadm.Tpo .deps/varnishadm.Po /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o varnishadm varnishadm.o ../../lib/libvarnishcompat/libvarnishcompat.la ../../lib/libvarnish/libvarnish.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o -Wl,--as-needed ../../lib/libvarnishcompat/.libs/libvarnishcompat.so ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre -lpthread -lnsl ../../lib/libvarnish/.libs/libvarnish.so: undefined reference to `strlcpy' collect2: ld returned 1 exit status make[3]: *** [varnishadm] Error 1 make[3]: Leaving directory `/var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm'
Nope, no improvement with new libtool. However, running the commands manually, and dropping as-needed, the problem DOES go away, so it's definetly an as-needed problem. spoonbill varnishadm # pwd /var/tmp/portage/www-servers/varnish-2.1.4/work/varnish-2.1.4/bin/varnishadm spoonbill varnishadm # make /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o varnishadm varnishadm.o ../../lib/libvarnish/libvarnish.la ../../lib/libvarnishcompat/libvarnishcompat.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o -Wl,--as-needed ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lpthread -lnsl ../../lib/libvarnish/.libs/libvarnish.so: undefined reference to `strlcpy' collect2: ld returned 1 exit status make: *** [varnishadm] Error 1 # /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o varnishadm varnishadm.o ../../lib/libvarnishcompat/libvarnishcompat.la ../../lib/libvarnish/libvarnish.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o -Wl,--as-needed ../../lib/libvarnishcompat/.libs/libvarnishcompat.so ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre -lpthread -lnsl ../../lib/libvarnish/.libs/libvarnish.so: undefined reference to `strlcpy' collect2: ld returned 1 exit status # /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o varnishadm varnishadm.o ../../lib/libvarnish/libvarnish.la ../../lib/libvarnishcompat/libvarnishcompat.la -lpthread -lnsl libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -pipe -Wl,-O1 -o .libs/varnishadm varnishadm.o ../../lib/libvarnish/.libs/libvarnish.so -L/lib64 -lrt -lm -lpcre ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lpthread -lnsl
# emerge --info Portage 2.1.9.24 (hardened/linux/amd64, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-hardened-r14-infra16 x86_64) ================================================================= System uname: Linux-2.6.32-hardened-r14-infra16-x86_64-Intel-R-_Xeon-R-_CPU_X3330_@_2.66GHz-with-gentoo-1.12.13 Timestamp of tree: Thu, 02 Dec 2010 03:00:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.6-r1 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.6.3, 1.10.2, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dev.d /etc/env.d /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/scsi_id.config /etc/terminfo /etc/udev" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fixlafiles fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/portage.exclude" 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" PORTDIR_OVERLAY="/usr/portage/local/layman/wwwcache" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv ipv6 jpeg justify libwww maildir mmx modules mudflap multilib ncurses nptl nptlonly openmp pam pcre perl pic png pppd python readline session sni snmp sse sse2 ssl suexec sysfs tcpd urandom vhosts xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi 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 asis auth_digest log_forensic proxy proxy_http substitute version" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="account chaos checksum condition delude dhcpmac echo fuzzy geoip iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
i am at a loss here. could you try 2.1.5 though.
(In reply to comment #7) > i am at a loss here. could you try 2.1.5 though.