emerge file-4.09 (for mod_php) burps on magic.so and wont compile Reproducible: Always Steps to Reproduce: 1. 2. 3. agdir/zyxel; do \ if test -f ./$frag; then \ f=./$frag; \ else \ f=$frag; \ fi; \ cat $f; \ done >> magic ../src/file -C -m magic ../src/file -C -m magic.mime make[2]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09/magic' Making all in doc make[2]: Entering directory `/var/tmp/portage/file-4.09/work/file-4.09/doc' sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@4@g \ -e s@__VERSION__@4.09@g \ -e s@__MAGIC__@/usr/share/misc/file/magic@g ./file.man > file.1 sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@4@g \ -e s@__VERSION__@4.09@g \ -e s@__MAGIC__@/usr/share/misc/file/magic@g ./magic.man > magic.4 sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@4@g \ -e s@__VERSION__@4.09@g \ -e s@__MAGIC__@/usr/share/misc/file/magic@g ./libmagic.man > libmagic.3 make[2]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09/doc' make[2]: Entering directory `/var/tmp/portage/file-4.09/work/file-4.09' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09' make[1]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09' python running build running build_ext building 'magic' extension creating build creating build/temp.linux-i586-2.3 gcc -fno-strict-aliasing -DNDEBUG -march=k6 -fPIC -I./ -I../ -I../src -I/usr/include/ -I/usr/include/python2.3 -c py_magic.c -o build/temp.linux-i586-2.3/py_magic.o distcc[22462] (dcc_connect_timed) ERROR: Connection to 192.168.0.20:3632 failed: Connection refused distcc[22462] (dcc_build_somewhere) Warning: failed to distribute to 192.168.0.20, running locally instead creating build/lib.linux-i586-2.3 gcc -pthread -shared -march=k6 build/temp.linux-i586-2.3/py_magic.o -L./ -L../ -L../src -L/usr/lib/ -lmagic -o build/lib.linux-i586-2.3/magic.so /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/../../../../i586-pc-linux-gnu/bin/ld: cannot find -lmagic collect2: ld returned 1 exit status distcc[22468] ERROR: compile (null) on localhost failed error: command 'gcc' failed with exit status 1 !!! ERROR: sys-apps/file-4.09 failed. !!! Function distutils_src_compile, Line 1, Exitcode 1 !!! compilation failed emerge info Gentoo Base System version 1.4.2.3 Portage 2.0.50-r8 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2, 2.6.6-love4) ================================================================= System uname: 2.6.6-love4 i586 AMD-K6(tm) 3D processor distcc 2.14 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=k6" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k6" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/home/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache1 apm berkdb crypt cups foomaticdb gd gd-external gdbm gif gpm gtk gtk2 imap imlib jabber java jpeg jpg kde ldap libwww maildir mldonkeypango motif msn mysql ncurses nls openssl oscar pam pdflib perl php png python readline samba sasl scanner sdl slang ssl svga tcpd truetype x86 xml xml2 xv yahoo zlib"
emerge -epv world warned me today: |QA Notice: USE Flag 'python' not in IUSE for sys-apps/file-4.09 python Maybe it will help you :)
fails because the stupid python component doesnt use proper -L paths to reproduce: `emerge -C file && emerge file`
added a little sed loving to cvs to fix this
Re comment #1 I've seen the same QA warning before and went to go fix file-4.09 only to see that python is indeed listed in it's IUSE= (probably a portage bug)