Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52077 - emerging pam_usb fails with relocation R_X86_64_32 can not be used when making a shared object (use -fPIC)
Summary: emerging pam_usb fails with relocation R_X86_64_32 can not be used when makin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 04:09 UTC by eleven
Modified: 2004-05-29 03:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eleven 2004-05-26 04:09:10 UTC
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.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-05-26 05:00:28 UTC
Ok, i preliminary fixed it. But i had to patch the makefile. Patch applies only on amd64 for the time being.

CC'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 ?
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-05-28 12:20:03 UTC
I applied this patch on all archs now myself. Fixed.
Comment 3 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2004-05-28 21:51:00 UTC
I'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't change metadata.xml. I'll send him a note about it.
Comment 4 Andrea Luzzardi 2004-05-29 03:28:35 UTC
Yeah, well done Danny. I'll make this patch upstream by the next release of pam_usb. Thanks to the reporter for reporting this bug.