<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>54401</bug_id>
          
          <creation_ts>2004-06-19 03:11 0000</creation_ts>
          <short_desc>emerge file-4.09 (for mod_php) fails to build python component</short_desc>
          <delta_ts>2004-07-14 08:33:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tyarling@toddyarling.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tyarling@toddyarling.com</who>
            <bug_when>2004-06-19 03:11:56 0000</bug_when>
            <thetext>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 &gt;&gt; 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&apos; 
Making all in doc 
make[2]: Entering directory `/var/tmp/portage/file-4.09/work/file-4.09/doc&apos; 
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 &gt; 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 &gt; 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 &gt; libmagic.3 
make[2]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09/doc&apos; 
make[2]: Entering directory `/var/tmp/portage/file-4.09/work/file-4.09&apos; 
make[2]: Nothing to be done for `all-am&apos;. 
make[2]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09&apos; 
make[1]: Leaving directory `/var/tmp/portage/file-4.09/work/file-4.09&apos; 
python 
running build 
running build_ext 
building &apos;magic&apos; 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 &apos;gcc&apos; 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=&quot;x86 ~x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-march=k6&quot; 
CHOST=&quot;i586-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot; 
CXXFLAGS=&quot;-march=k6&quot; 
DISTDIR=&quot;/home/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs ccache distcc sandbox&quot; 
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/home/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/home/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; 
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>selecter@spray.se</who>
            <bug_when>2004-07-14 08:05:44 0000</bug_when>
            <thetext>emerge -epv world warned me today:

|QA Notice: USE Flag &apos;python&apos; not in IUSE for sys-apps/file-4.09
python

Maybe it will help you :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-14 08:15:40 0000</bug_when>
            <thetext>fails because the stupid python component doesnt use proper -L paths

to reproduce:
`emerge -C file &amp;&amp; emerge file`</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-14 08:22:58 0000</bug_when>
            <thetext>added a little sed loving to cvs to fix this</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-07-14 08:33:07 0000</bug_when>
            <thetext>Re comment #1
I&apos;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&apos;s IUSE= (probably a portage bug)
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>