Hm, module_magic.h is included, but only if HAVE_ZLIB_H is defined. I think this is the way most modules are written; they only include module_magic.h if they include all their other files (since module_magic.h has to be last), and they only include their own files if they exist. So if they don't, module_magic.h gets left out.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2002-09-25 01:47: Subject: COFF...
My best guess is that the magic include that is required to make pike_module_{init,exit} exported wasn't included. Without that magic pntld may promptly gc all the symbols and code from the generated file.
However, I don't even remember if that is the way pntld works or not..
/ Fredrik (Naranek) Hubinette (Real Build Master)