Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140136 - sys-libs/libcap-1.10-r6 does not install the shared library correctly
Summary: sys-libs/libcap-1.10-r6 does not install the shared library correctly
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 140187 140216 140225 140230 140232 140334 140386 140415 140472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-12 10:43 UTC by Andrei Slavoiu
Modified: 2006-08-10 09:55 UTC (History)
15 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 Andrei Slavoiu 2006-07-12 10:43:22 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 00:18:38 UTC
*** Bug 140187 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 05:10:04 UTC
*** Bug 140216 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 06:14:40 UTC
*** Bug 140225 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 06:36:30 UTC
*** Bug 140230 has been marked as a duplicate of this bug. ***
Comment 5 Patrick McLean gentoo-dev 2006-07-13 07:08:50 UTC
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.
Comment 6 Andrei Slavoiu 2006-07-13 08:32:11 UTC
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.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 08:59:06 UTC
*** Bug 140232 has been marked as a duplicate of this bug. ***
Comment 8 solar (RETIRED) gentoo-dev 2006-07-13 09:30:31 UTC
This should be fixed with -r7
Please try that and report back. 
Comment 9 Jean Bréfort 2006-07-13 10:36:31 UTC
it works for me
Comment 10 Patrick McLean gentoo-dev 2006-07-13 12:23:31 UTC
Adding samba team to CC so they are aware of this.
Comment 11 Vladimir G. Ivanovic 2006-07-13 19:29:27 UTC
(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
Comment 12 solar (RETIRED) gentoo-dev 2006-07-14 01:14:04 UTC
adding -fPIC is the wrong fix. Please try -r7
Comment 13 Andrija Prčić 2006-07-14 03:24:59 UTC
Works fine here with libcap-1.10-r7. It is most likely that libcap-1.10-r6 is broken.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-07-14 03:56:10 UTC
*** Bug 140334 has been marked as a duplicate of this bug. ***
Comment 15 solar (RETIRED) gentoo-dev 2006-07-14 06:21:44 UTC
-r6 was broken. 
It was handling a ldscript incorrectly and had broken python, static and 
cross compile support.
Comment 16 Jure Repinc 2006-07-14 06:59:56 UTC
Emerged libcap -r7 and then samba compiled just fine here too.
Comment 17 Andreas Karlsson 2006-07-14 07:14:59 UTC
Confirming that emerging libcap r7 solved Samba problmes
Comment 18 solar (RETIRED) gentoo-dev 2006-07-14 07:21:13 UTC
libcap-1.10-r6 removed from the tree.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-07-14 10:09:06 UTC
*** Bug 140386 has been marked as a duplicate of this bug. ***
Comment 20 Nick Bowler 2006-07-14 10:10:54 UTC
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.
Comment 21 solar (RETIRED) gentoo-dev 2006-07-14 10:38:20 UTC
Closing bug as FIXED. 
This bug really has nothing todo with samba.
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-07-14 15:22:46 UTC
*** Bug 140415 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-07-15 04:45:21 UTC
*** Bug 140472 has been marked as a duplicate of this bug. ***
Comment 24 Andrei Slavoiu 2006-08-10 09:55:15 UTC
Closed.