> I am trying to load SOEGraphics into Hugs98 under FreeBSD:
> Reading file "/usr/local/share/hugs/graphics/lib/x11/StdDIS.hs":
> Parsing
> ERROR "/usr/local/share/hugs/graphics/lib/x11/StdDIS.hs": Error loading sym:
> Undefined symbol "_initModule"
>
> Can anyone help me with this? Thanks.
The problem is in Hugs' autoconf script. After running
hugs98/src/unix/configure, you need to change hugs98/src/config.h
to read:
#undef LEADING_UNDERSCORE
instead of
#define LEADING_UNDERSCORE 1
Then recompile and reinstall and you're golden.
[If anyone wants to fix the autoconf script, the problem is that
autoconf uses the nlist function to test whether the linker/compiler
puts an underscore on the front of names but Hugs uses the dlsym
function to do the actual lookup. It seems that nlist and dlsym
disagree.]
A