Hi!

Yesterday, I've installed NetBSD/i386 1.6 on my PC.
Compiling and installing of libgii and libggi were successful.
But I could not run libgii/demos/demo.
The reason: dlsym() failed.

Thanks to the help of an NetBSD guy on #netbsd, the problem is solved now.

The bug is in libgii/gg/plat.h:

#if defined(SYMBOL_UNDERSCORE) || defined(__OpenBSD__) || defined(__NetBSD__)
# define GG_SYMPREFIX           "_"
#endif

That means, that OpenBSD and NetBSD requires an '_' prefix on the symbols.


This is the right version:

#if defined(SYMBOL_UNDERSCORE) || defined(__OpenBSD__)
# define GG_SYMPREFIX           "_"
#endif


I know, this was unchanged for years. NetBSD 1.4.x is officially dead now.
I don't know, if NetBSD required the '_' prefix prior to 1.6.
So, if NetBSD 1.5.x requires '_' prefix, then we need to check for that in
configure.


BTW: Does anyone know, who has made the original NetBSD port?


CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]

Reply via email to