This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs + libstdc++ -> -lpthread



On Mon, 8 Dec 1997, Jeffrey A Law wrote:

> 
>   In message <199712082029.MAA15529@cygint.cygnus.com>you write:
>   > I've upgraded just recently to Redhat 5.0 (glibc) and egcs 1.0
>   > 
>   > Everything works great : the g++ template (stl) / rtti / exceptions
>   > trouble : _all_ gone. Very thrilling great stuff.
>   > 
>   > But: somehow libstdc++ gives always unsatisfied symbols, that are
>   > in the pthread library. Linking with -lpthread solves the problem.
> Yes, this is a known problem with egcs + RH5.0.
> 
> We're taking a short breather, then we'll probably make a minor release to
> pick up RH5.0 support along with a couple critical bugfixes.
> 
> jeff
> 

I just now donwloaded egcs 1.01, as i suspected that release would solve
the problem. But it doesn't! I suspect libstdc++ is part of the
egcs-distribution, right ?

So when looking for a new libstdc++, i found this :

[jozef@minerf:/usr/lib]$ date
Tue Jan 27 00:28:31 CET 1998
[jozef@minerf:/usr/lib]$ ls -l libstdc*
-rw-r--r--   1 root     root      1641614 Jan 27 00:20 libstdc++.a
lrwxrwxrwx   1 root     root           18 Dec  5 02:42 libstdc++.so -> libstdc++.so.2.8.0*
lrwxrwxrwx   1 root     root           20 Dec  1 18:49 libstdc++.so.2.7.2 -> libstdc++.so.2.7.2.8*
-r-xr-xr-x   1 root     root      1025355 Nov  3 23:14 libstdc++.so.2.7.2.8*
lrwxrwxrwx   1 root     root           18 Dec  5 01:57 libstdc++.so.2.8 -> libstdc++.so.2.8.0*
-r-xr-xr-x   1 root     root       404789 Dec  5 01:35 libstdc++.so.2.8.0*
lrwxrwxrwx   1 root     root           18 Dec 17 04:23 libstdc++.so.27 -> libstdc++.so.2.7.2*

huh ? only the static library seems to be updated, but no .so ??
I don't understand this (ok, there are many things I dont understand)

Configure options were : (I did a manual build, I was to lazy to look for an rpm)
./configure --prefix=/usr

For clarity, i repeat this is concerning the -lpthread necessary to
not have unresolved symbols in libstdc++ :
/usr/lib/libstdc++.so: undefined reference to `_pthread_cleanup_pop_restore'
/usr/lib/libstdc++.so: undefined reference to `_pthread_cleanup_push_defer'

Hopefully this wasn't a useless remark,

koen.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]