<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>240</bug_id>
          
          <creation_ts>2010-08-27 09:16:05 +0000</creation_ts>
          <short_desc>libproxy fails to build on x86_64 host</short_desc>
          <delta_ts>2010-12-21 06:09:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9446</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-08-27 09:16:05 +0000</bug_when>
    <thetext>Recieved the following error when attempting to build a poky-image-sato build, from libproxy:

| /home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.0/ld: skipping incompatible /home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE/libperl.so when searching for -lperl
/home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.0/ld: cannot find -lperl
collect2: ld returned 1 exit status

I traced down the problem to a bad link line:

 /home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/i586-poky-linux-g++  -fPIC -march=i586  --sysroot=/home/mhatle/git/poky/build/tmp/sysroots/i586-poky-linux  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,Libproxy.so -o ../../../perl/blib/arch/auto/Net/Libproxy.so CMakeFiles/PLlibproxy.dir/Libproxy.c.o -L/home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE -lperl ../../../libproxy/libproxy.so.1.0.0 ../../../libmodman/libmodman.so.0.0.0 -lm -lpthread -ldl -Wl,-rpath,/home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.8.8/CORE:/home/mhatle/git/poky/build/tmp/work/i586-poky-linux/libproxy-0.4.3-r0/libproxy-0.4.3/libproxy:/home/mhatle/git/poky/build/tmp/work/i586-poky-linux/libproxy-0.4.3-r0/libproxy-0.4.3/libmodman:

As you can see from the above it&apos;s attempting to link the perl-native files into the target build.

Note:  reverting commit eaf2a94e11b70dacd58f9f0a8d05631383814e16 allows me to continue my build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9447</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-27 09:21:01 +0000</bug_when>
    <thetext>http://git.pokylinux.org/?p=poky-contrib.git;a=commit;h=b55b19425159ec1139ead4559960f2b2157f5471 may be a fix for this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9478</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-31 09:30:38 +0000</bug_when>
    <thetext>The commit mentioned here fixed this issue</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>