Glibc cannot find -lstdc++

satish patel satish at linuxbug.org
Tue Aug 26 14:02:16 PDT 2008


Its solve after creating soft link to /usr/lib but now I got again one more
error which is


gcc -B/tools/bin/   -shared -static-libgcc
-Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,defs
-B/mnt/lfs/sources/glibc-build/csu/  -Wl,-z,combreloc -Wl,-z,relro
-L/mnt/lfs/sources/glibc-build -L/mnt/lfs/sources/glibc-build/math
-L/mnt/lfs/sources/glibc-build/elf -L/mnt/lfs/sources/glibc-build/dlfcn
-L/mnt/lfs/sources/glibc-build/nss -L/mnt/lfs/sources/glibc-build/nis
-L/mnt/lfs/sources/glibc-build/rt -L/mnt/lfs/sources/glibc-build/resolv
-L/mnt/lfs/sources/glibc-build/crypt -L/mnt/lfs/sources/glibc-build/nptl
-Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/ma
th:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/
lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/source
s/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-
build/crypt:/mnt/lfs/sources/glibc-build/nptl -o
/mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.so -T
/mnt/lfs/sources/glibc-build/shlib.lds
/mnt/lfs/sources/glibc-build/csu/abi-note.o
/mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3-lib.os
/mnt/lfs/sources/glibc-build/libc.so
/mnt/lfs/sources/glibc-build/libc_nonshared.a -lstdc++ -lgcc_eh
/mnt/lfs/sources/glibc-build/elf/ld.so
/mnt/lfs/sources/glibc-build/libc_nonshared.a
GCONV_PATH=/mnt/lfs/sources/glibc-build/iconvdata LC_ALL=C
/mnt/lfs/sources/glibc-build/elf/ld-linux.so.2 --library-path
/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sour
ces/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glib
c-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt
:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt
/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3
> /mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3.out
make[2]: *** [/mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3.out] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1/dlfcn'
make[1]: *** [dlfcn/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1'
make: *** [check] Error 2




-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of satish patel
Sent: Tuesday, August 26, 2008 4:58 PM
To: 'LFS Support List'
Subject: RE: Glibc cannot find -lstdc++

Now I have soft link that files into /usr/lib so now error is change and
point to different file is missing or not found 

/tools/bin/ld: cannot find -lstdc++_shared

How to set ld search path /usr/lib/gcc/i386-redhat-linux/3.4.3

-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Valter
Douglas Lisbôa Jr.
Sent: Tuesday, August 26, 2008 4:29 PM
To: LFS Support List
Subject: Re: Glibc cannot find -lstdc++

> My ld can not find file -lstdcc++ is this the problem ??
The /usr/lib/libstdc++.so or /usr/lib/libstdc++.a is been missing by the 
compiler. 

-- 
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato at trenix.com.br
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page




More information about the lfs-support mailing list