> Whenever I try to link against the pcap library I get a message that the 
> function atexit wasn't found, this is odd because I thought it was in 
> libc...

The only piece of libpcap that uses "atexit()" is the Linux-specific
capture support, so this is presumably some Linux distribution; what
version of what distribution is it?

"atexit()" *should* be in libc, on anything even remotely resembling a
modern UNIX, given that it's in the C89 standard; if you weren't linking
with libc at all, you'd probably be getting complaints about a lot more
than just "atexit()" being missing, so presumably it's missing from libc
(or perhaps it's a macro defined by <stdlib.h> or something it calls,
and it turns into a call to "_real_atexit()" or something such as that -
but "pcap-linux.c" includes "stdlib".)

Try doing

        nm -o /usr/lib/libc.a | egrep atexit

It should print at least one line such as

        /usr/lib/libc.a:atexit.o:000000c4 T atexit

with a capital "T", as in "this is a text symbol defined by this
module".

Also, what does "man atexit" say on that system?
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to