[462] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: shared ELF libpthread for Linux

daemon@ATHENA.MIT.EDU (Tristan Savatier)
Mon Oct 21 18:21:41 1996

Date: Mon, 21 Oct 1996 13:55:55 -0700
From: Tristan Savatier <tristan@creative.net>
To: proven@MIT.EDU, pthreads@MIT.EDU

I was finally able to generate a libthread.so, by manulally
removing readv.c writev.c from SRCS in pthreads/GNUmakefile.inc.

However, when I link a test program (I tried tests/test_switch.c),
I get:

/usr/local/src/pthreads-1_60_beta5/obj/libpthread.so.1.0: undefined
reference to `_proto_buf'

This _proto_buf symbol is indeed undefined in libthread.so. It is
refered
in net/proto_internal.h:

__BEGIN_DECLS
char *_proto_buf(void);
__END_DECLS


and in net/getproto.c

struct protoent *getprotobynumber(int proto)
{
	char *buf = _proto_buf();
[...]
}

Do you have any idea where the symbol _proto_buf() is normally defined
(in what library ?).

Thanks!

Regards,

-- Tristan Savatier (mailto:tristan@mpeg.org - http://www.mpeg.org)
   "My karma ran over my dogma"

home help back first fref pref prev next nref lref last post