undefined reference to `__errno_location(void)'x
GRE Spam Mail
gre_spam@anora.org
Mon Sep 2 10:53:00 GMT 2002
On Mon, 2 Sep 2002 18:18:04 +0200 (CEST)
Der Herr Hofrat <der.herr@mail.hofr.at> wrote:
> >
> > How do I check for the symbol?
> >
> > I tried this to see if the symbol was there, I don't know if this is the right
> > way to check:
> > [root@vaghn (/)] 01:02:53 $ grep "__errno_location" /usr/lib/libpthread.a
> > Binary file /usr/lib/libpthread.a matches
> > [root@vaghn (/)] 01:02:56 $ grep "__errno_location" /usr/lib/libpthread.so
> > Binary file /usr/lib/libpthread.so matches
> >
> nm /usr/lib/libpthread.a | grep errno should be safe.
>
> hofrat
>
OK, I did that for libpthread.a and libpthread.so and this is the output:
root@vaghn (~)] 01:51:32 $ nm /usr/lib/libpthread.a | grep errno
U __errno_location
U __errno_location
U __errno_location
U __errno_location
U _errno
U _h_errno
U __errno_location
U __errno_location
errno.o:
00000000 T __errno_location
00000054 T __h_errno_location
U __errno_location
[root@vaghn (~)] 01:51:49 $ nm /usr/lib/libpthread.so | grep errno
00009c24 T __errno_location
00009ca0 T __h_errno_location
U _errno@@GLIBC_2.0
U _h_errno@@GLIBC_2.0
U errno@@GLIBC_2.0
U h_errno@@GLIBC_2.0
More information about the Gcc-help
mailing list