emerge of net-fs/samba-3.0.23 fails with: Linking bin/smbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libcap.a(cap_alloc.o): relocation R_X86_64_32 against `a local symb ol' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libcap.a: could not read symbols: Valoare eronată collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 This is the output of ls -l /usr/lib/libcap.* -rw-r--r-- 1 root root 17780 2006-07-12 20:20 /usr/lib/libcap.a -rwxr-xr-x 1 root root 300 2006-07-12 20:20 /usr/lib/libcap.so.1.10 a As you can see there is no libcap.so
*** Bug 140187 has been marked as a duplicate of this bug. ***
*** Bug 140216 has been marked as a duplicate of this bug. ***
*** Bug 140225 has been marked as a duplicate of this bug. ***
*** Bug 140230 has been marked as a duplicate of this bug. ***
This looks to be more of a -fPIC problem than the library not installing /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libcap.a(cap_alloc.o): relocation R_X86_64_32 against `a local symb ol' can not be used when making a shared object; recompile with -fPIC That generally means that libcap needs -fPIC.
No, the problem is that the static library (libcap.a) should not have been used at all. It was only used because the shared one was not installed properly.
*** Bug 140232 has been marked as a duplicate of this bug. ***
This should be fixed with -r7 Please try that and report back.
it works for me
Adding samba team to CC so they are aware of this.
(In reply to comment #5) > This looks to be more of a -fPIC problem than the library not installing > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: > /usr/lib64/libcap.a(cap_alloc.o): relocation R_X86_64_32 against `a local symb > ol' can not be used when making a shared object; recompile with -fPIC > > That generally means that libcap needs -fPIC. > I successfully installed samba when I added "-fPIC" to CFLAGS for libcap. CFLAGS="-Wall -march=k8 -msse3 -pipe -O2 -fPIC" emerge -av libcap
adding -fPIC is the wrong fix. Please try -r7
Works fine here with libcap-1.10-r7. It is most likely that libcap-1.10-r6 is broken.
*** Bug 140334 has been marked as a duplicate of this bug. ***
-r6 was broken. It was handling a ldscript incorrectly and had broken python, static and cross compile support.
Emerged libcap -r7 and then samba compiled just fine here too.
Confirming that emerging libcap r7 solved Samba problmes
libcap-1.10-r6 removed from the tree.
*** Bug 140386 has been marked as a duplicate of this bug. ***
On today's emerge --sync then emerge -uDavN world: Calculating world dependencies... done! [ebuild U ] net-fs/samba-3.0.23 [3.0.22-r3] USE="cups mysql pam python readline xml -acl -async -automount -doc -examples -kerberos -ldap -ldapsam -libclamav -oav -postgres -quotas -swat -syslog -winbind" 0 kB [ebuild U ] sys-libs/libcap-1.10-r7 [1.10-r6] USE="python -nocxx" 0 kB [ebuild U ] app-text/evince-0.5.4 [0.5.3-r1] USE="dbus tiff -debug -djvu -doc -dvi -nautilus -t1lib" 0 kB libcap should be updating before samba.
Closing bug as FIXED. This bug really has nothing todo with samba.
*** Bug 140415 has been marked as a duplicate of this bug. ***
*** Bug 140472 has been marked as a duplicate of this bug. ***
Closed.