iproute2 builds a helper library called libutil.a, and stores it in ../lib This path is explicitly added to LIBRARY_PATH towards the end of the linker command line (-L../lib) via a LDLIBS flag. However, system library paths are usually added in make.conf via LDFLAGS, which is prepended much earlier on the command line. This can cause builds to fail when there is another library named libutil.a, for example, /usr/lib/libutil.a from sys-libs/glibc-2.10.1-r2 A fix is to prepend -L../lib to LDFLAGS, and not specify it in LDLIBS. $ emerge --info Portage 2.1.7.17-r15 (!/usr/local/portage/chromiumos//profiles/default/linux/x86/10.0/chromeos/, gcc-4.4.3, unavailable, 2.6.32-gg298-generic x86_64) ================================================================= System uname: Linux-2.6.32-gg298-generic-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 10 Mar 2010 07:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1-r209 sys-apps/sandbox: 1.6-r3 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4-r4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=atom -mtune=atom -mfpmath=sse -I/build/x86-generic/usr/include/ -I/build/x86-generic/include/ -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc/make.globals /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=atom -mtune=atom -mfpmath=sse -I/build/x86-generic/usr/include/ -I/build/x86-generic/include/ -ggdb" DISTDIR="/var/lib/portage/distfiles-target" FEATURES="assume-digests buildpkg distlocks fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gsdview.appspot.com/chromeos-mirror/gentoo http://build.chromium.org/mirror/chromiumos/mirror" LANG="C" LDFLAGS="-L/build/x86-generic/lib -L/build/x86-generic/usr/lib" MAKEOPTS="-j16" PKGDIR="/build/x86-generic/packages/" PORTAGE_CONFIGROOT="/build/x86-generic/" 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="/build/x86-generic/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/chromiumos /home/djkurtz/trunk/src/overlays/overlay-x86-generic" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi berkdb bindist bzip2 cairo cli compat_wireless cros-debug crypt dri gdbm hardened iconv isdnlog make-symlinks mmx modules mudflap ncurses nls nptl nptlonly opengl pam pcre pppd pulseaudio readline reflection session spl sse sse2 ssl sysfs tcpd unicode usb 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel vmware vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
no, system -L/-I paths should not be in make.conf. this is the whole point of using sysrooted cross-compilers. there are many packages which randomly fail when doing this sort of thing.
(In reply to comment #1) > no, system -L/-I paths should not be in make.conf. this is the whole point of > using sysrooted cross-compilers. there are many packages which randomly fail > when doing this sort of thing. > Ah, excellent point. You are absolutely right.