Re: Undefined "atexit" in kext driver
Re: Undefined "atexit" in kext driver
- Subject: Re: Undefined "atexit" in kext driver
- From: Scott Taggart <email@hidden>
- Date: Tue, 04 Jun 2002 11:47:52 -0700
Last time I tracked this down, it came down to me having a static defined
in a function!!!
f()
{
static something x;
}
I moved x out of the function and the ref to atexit() went away. I wrote
it off to compiler weirdness and went on. This time, I can't go through
the dozens of source files doing a binary search with #ifdefs, etc.
Scott
At 02:10 PM 6/4/2002, Justin C. Walker wrote:
On Monday, June 3, 2002, at 08:46 , Scott Taggart wrote:
Hi,
I get an undefined "atexit" symbol when I load my kext. I have seen this
before but it was very hard to track down (I have dozens of files and
none explicitly reference atexit()). I presume this is my code
referencing some library function that is referencing atexit. I searched
the archives and could find no mention of this. Any ideas on how to find
where this is referenced?
Have you tried 'nm' on your various objects? Note that you can't use the
system's normal "C Library" in kernel extensions (don't know if you know
this; just thought I'd point it out, since the appearance of 'atexit' is
pretty weird).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*--
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.