<?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>52077</bug_id>
          
          <creation_ts>2004-05-26 04:09 0000</creation_ts>
          <short_desc>emerging pam_usb fails with relocation R_X86_64_32 can not be used when making a shared object (use -fPIC)</short_desc>
          <delta_ts>2004-05-29 03:28:35 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>AMD64</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>eleven@ludojad.itpp.pl</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>hhg@gentoo.org</cc>
    
    <cc>scox@sig11.org</cc>

      

      
          <long_desc isprivate="0">
            <who>eleven@ludojad.itpp.pl</who>
            <bug_when>2004-05-26 04:09:10 0000</bug_when>
            <thetext>gcc -shared -lssl -o pam_usb.so auth.o conf.o device.o dsa.o pam.o parser.o
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: auth.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
auth.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [pam_usb.so] Error 1


Reproducible: Always
Steps to Reproduce:
1. cd /usr/portage/sys-libs/pam_usb
2. emerge pam_usb-0.2.2.ebuild
3. observe.

Actual Results:  
compilation failure.

Expected Results:  
compile and install pam_usb ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2004-05-26 05:00:28 0000</bug_when>
            <thetext>Ok, i preliminary fixed it. But i had to patch the makefile. Patch applies only on amd64 for the time being.

CC&apos;ing hhg: As -fPIC is recommened for all shared objects and as this ebuild supply only a shared object, should I apply it on all archs ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2004-05-28 12:20:03 0000</bug_when>
            <thetext>I applied this patch on all archs now myself. Fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hhg@gentoo.org</who>
            <bug_when>2004-05-28 21:51:00 0000</bug_when>
            <thetext>I&apos;m no longer the maintainer for pam_usb; scox has been maintaining it since he became a developer (understandably -- pam_usb being his project and all). Although it seems he didn&apos;t change metadata.xml. I&apos;ll send him a note about it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scox@sig11.org</who>
            <bug_when>2004-05-29 03:28:35 0000</bug_when>
            <thetext>Yeah, well done Danny. I&apos;ll make this patch upstream by the next release of pam_usb. Thanks to the reporter for reporting this bug.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>