Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge glibc fails with GLIBC_PRIVATE error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
santasimp
n00b
n00b


Joined: 23 Jun 2004
Posts: 16
Location: Washington, DC

PostPosted: Fri Mar 25, 2005 12:38 am    Post subject: emerge glibc fails with GLIBC_PRIVATE error Reply with quote

I'm trying to update my system and glibc is giving me lots of headaches. I'm emerging sys-libs/glibc-2.3.4.20041102-r1 (the current stable version) and this is how it dies:
Code:

 * Installing man pages and docs...
ls: relocation error: /var/tmp/portage/glibc-2.3.4.20041102-r1/image//lib/libpthread.so.0: symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
 
!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 127
!!! simple run test (ls) failed
!!! If you need support, post the topmost build error, NOT this status message.

I remember other threads mentioning a similar problem that suggested verifying the /lib/libpthread.so.0 symbolic link, but mine appears to be fine:
Code:

-rwxr-xr-x  1 root root 65932 Jun  5  2004 /lib/libpthread-0.10.so
lrwxrwxrwx  1 root root    18 Jun  5  2004 /lib/libpthread.so.0 -> libpthread-0.10.so

Does anyone have any suggestions? I would very much appreciate any help. Thanks.
Back to top
View user's profile Send private message
benderunit
n00b
n00b


Joined: 25 Mar 2005
Posts: 3
Location: Sydney, Australia

PostPosted: Fri Mar 25, 2005 2:39 am    Post subject: Reply with quote

I had a very simillar problem this morning:
Code:
ls: relocation error: /var/tmp/portage/glibc-2.3.4.20041102-r1/image//lib/libc.so.6: symbol ___tls_get_addr, version GLIBC_2.3 not defined in file ld-linux.so.2 with link time reference

I figured it was probably a problem with the linux headers, and sure enough I am running a 2.6 kernel yet I had the 2.4 headers installed. At any rate, my build hasn't finished yet, but I am pretty confident. ;)
If you are running a 2.6 kernel and have sys-kernel/linux-headers installed instead of sys-kernel/linux26-headers then do this:
Code:
emerge --unmerge linux-headers
emerge linux26-headers

Then emerge glibc. I'll update later if all is good at my end.
Back to top
View user's profile Send private message
benderunit
n00b
n00b


Joined: 25 Mar 2005
Posts: 3
Location: Sydney, Australia

PostPosted: Fri Mar 25, 2005 3:53 am    Post subject: Reply with quote

No, that was not my problem, so I'm sure it's not yours. I did have to upgrade my headers anyway, but it was not stopping the build.

Back to the drawing board...
Back to top
View user's profile Send private message
santasimp
n00b
n00b


Joined: 23 Jun 2004
Posts: 16
Location: Washington, DC

PostPosted: Fri Mar 25, 2005 6:10 am    Post subject: Reply with quote

Yeah. After I saw your post, I tried the same thing. No luck. This is really an anoying problem, and I'm not at all sure what to do.
Back to top
View user's profile Send private message
benderunit
n00b
n00b


Joined: 25 Mar 2005
Posts: 3
Location: Sydney, Australia

PostPosted: Fri Mar 25, 2005 6:48 am    Post subject: Reply with quote

Well, around line 1008 of the ebuild is these four lines of code:
Code:
for x in ls ps date ; do
   env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} > /dev/null \
   || die "simple run test (${x}) failed"
done

It is the last thing in the src_install function, and appears to be a simple test of some sort. So while I can't say why it fails, I just commented them out! The rest of my emerge system built fine, and no problems running applications.

I'm happy to continue now, but it would be nice if someone more knowledgable could shed some light on the failure.
Back to top
View user's profile Send private message
OneOfMany
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 108
Location: Portland, OR USA

PostPosted: Fri Mar 25, 2005 10:32 am    Post subject: Reply with quote

I think that's just running ls, ps, then date...with an entry that points it at the new shared library instead of the old one. But I thought that might fail if any interface those programs are calling was changed. In that case you'd have to recompile each program after you did the library.

Might be more descriptive to actually put the output of the test into the log file (instead of redirecting to /dev/null) and see what's actually wrong?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Fri Mar 25, 2005 10:35 am    Post subject: Reply with quote

Duplicate of https://forums.gentoo.org/viewtopic-t-313432.html

Also refer to the bug report and the "fix" posted there.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Mar 25, 2005 10:39 am    Post subject: Reply with quote

Moved from Portage & Programming.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum