cannot find -lc
Kai Ruottu
kai.ruottu@wippies.com
Tue Jan 26 10:38:00 GMT 2010
mahmoodn wrote:
>> The linker states it is not able to find the library libc.
>>
> I have these:
> [mahmood@Saturn minipthreads]$rpm -qa '*libc*'
> glibc-headers-2.8-3.i386
> libcurl-devel-7.18.1-1.fc9.i386
> glibc-common-2.8-3.i386
> libcap-devel-2.06-4.fc9.i386
> glibc-2.8-3.i686
> libcap-2.06-4.fc9.i386
> libcurl-7.18.1-1.fc9.i386
> libcdio-0.79-3.fc9.i386
> libconfig-1.2.1-2.fc9.i386
> libcroco-0.6.1-5.fc9.i386
> glibc-devel-2.8-3.i386
>
> How about that? Are they correct?
>
Absolutely NOT !
It looks like that the PPU-toolchain requires TWO glibcs for PPU, 32-bit
and 64-bit :
[root@Dell lib]# file libc-2.6.so
libc-2.6.so: ELF 32-bit MSB shared object, PowerPC or cisco 4500,
version 1 (SYSV), for GNU/Linux 2.6.9, not stripped
[root@Dell lib]# cd ../lib64
[root@Dell lib64]# file libc-2.6.so
libc-2.6.so: ELF 64-bit MSB shared object, 64-bit PowerPC or cisco 7500,
version 1 (SYSV), for GNU/Linux 2.6.9, not stripped
One is expected to find things like "GCC for PPU" and "glibc for PPU"
with very simple
net searches... It took me only a few seconds to find the PPU
crosstoolchain for a x86
host and the host-independent (but target dependent) glibc or "sysroot"
stuff.
More information about the Gcc-help
mailing list