Gentoo Archives: gentoo-embedded

From: Ed W <lists@××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Problems compiling sandbox with uclibc
Date: Tue, 30 Jun 2009 17:57:55
Message-Id: 4A4A521F.1000404@wildgooses.com
In Reply to: Re: [gentoo-embedded] Problems compiling sandbox with uclibc by Ned Ludd
1 Ned Ludd wrote:
2 > On Tue, 2009-06-30 at 17:15 +0100, Ed W wrote:
3 >
4 >> Ned Ludd wrote:
5 >>
6 >>> On Tue, 2009-06-30 at 16:30 +0100, Ed W wrote:
7 >>>
8 >>>
9 >>>>> and readelf gives me:
10 >>>>>
11 >>>>> 0x00000001 (NEEDED) Shared library: [libc.so.0]
12 >>>>> 0x00000001 (NEEDED) Shared library: [ld-uClibc.so.0]
13 >>>>>
14 >>>>> Which in turn leads to the multiple line output
15 >>>>>
16 >>>>>
17 >>>> Is no one else seeing this with a uclibc based system? Why am I special...?
18 >>>>
19 >>>>
20 >>> This is more suited in https://bugs.gentoo.org
21 >>>
22 >>>
23 >>>
24 >>>
25 >> As per previous email, see:
26 >> https://bugs.gentoo.org/show_bug.cgi?id=275725
27 >>
28 >> I have submitted a patch there which seems safe, but not having many
29 >> uclibc systems to compare I just wanted to get a sense of whether my
30 >> toolchain is building things incorrectly versus actually needing this
31 >> patch
32 >>
33 >> Perhaps you could kindly run "readelf -d" on some binary in your
34 >> uclibc system and tell me if you have the "ld-uClibc.so" listed? If
35 >> so then I think the patch is sensible and required (and likely a safe
36 >> commit)
37 >>
38 >
39 > uClibc bin # readelf -d /bin/ls | grep libc
40 > 0x00000001 (NEEDED) Shared library: [libc.so.0]
41 >
42 > uClibc bin # qlist -eo sandbox | scanelf -f - -nB
43 > ET_DYN libc.so.0,libdl.so.0 /usr/lib/libsandbox.so
44 > ET_DYN libc.so.0 /usr/bin/sandbox
45 > --
46 >
47 > uClibc bin # qlist -ICv sandbox gcc binutils uclibc -e
48 > sys-apps/sandbox-1.9
49 > sys-devel/binutils-2.19.1-r1
50 > sys-devel/gcc-3.4.6-r2
51 > sys-devel/gcc-4.2.4-r1
52 > sys-devel/gcc-4.3.3-r2
53 > sys-libs/uclibc-0.9.30.1-r1
54 >
55 >
56 >
57 >
58
59 Hmm, so it looks like something in my setup
60
61 Can you speculate why I might be getting this extra lib linked??
62
63 Thanks
64
65 Ed W