Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related?
Date: Mon, 13 Mar 2006 16:52:00
Message-Id: 7573e9640603130844q33497a51r5f1a0aaa31f5d31c@mail.gmail.com
In Reply to: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related? by Alexander Skwar
1 On 3/13/06, Alexander Skwar <listen@×××××××××××××××.name> wrote:
2 /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:
3 file format not recognized; treating as
4 > linker script
5 > /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:5: syntax error
6
7 Can you post the output of:
8
9 carcharias lib # emerge -pv glibc
10
11 These are the packages that would be merged, in order:
12
13 Calculating dependencies... done!
14 [ebuild R ] sys-libs/glibc-2.4 USE="nptl nptlonly pic userlocales
15 -build -glibc-omitfp -hardened -nls -profile" 16 kB
16
17 Total size of downloads: 16 kB
18
19 carcharias lib # equery belongs /usr/lib/libc.so
20 [ Searching for file(s) /usr/lib/libc.so in *... ]
21 sys-libs/glibc-2.4 (/usr/lib/libc.so)
22
23 carcharias lib # equery check glibc
24 [ Checking sys-libs/glibc-2.4 ]
25 !!! /etc/nsswitch.conf has incorrect md5sum
26 !!! /etc/host.conf has incorrect md5sum
27 * 1379 out of 1381 files good
28
29 carcharias lib # ls -l /usr/lib/libc.so
30 -rwxr-xr-x 1 root root 238 Mar 10 20:23 /usr/lib/libc.so
31
32 carcharias lib # cat /usr/lib/libc.so
33 /* GNU ld script
34 Use the shared library, but some functions are only in
35 the static library, so try that secondarily. */
36 OUTPUT_FORMAT(elf32-i386)
37 GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED (
38 /lib/ld-linux.so.2 ) )
39
40 -Richard
41
42 --
43 gentoo-user@g.o mailing list