Subject: Darwin shared object problem in "xchat-python" package
To: None <tech-pkg@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: tech-pkg
Date: 08/16/2006 22:20:50
	Hello,

I'm trying to figure out why the "xchat-python" package doesn't work
under Mac OS X (Darwin). When "xchat" comes up it prints this
error message:

AutoLoad failed for: /usr/pkg/lib/xchat/plugins/python.so
 dlopen(/usr/pkg/lib/xchat/plugins/python.so, 10): Symbol not found: _xchat_find_context
   Referenced from: /usr/pkg/lib/xchat/plugins/python.so
   Expected in: flat namespace

The symbol "_xchat_find_context" is defined in the "xchat" binary but
it is not found when the plugin is loaded. The code loading the
plugin looks like this:

	handle = dlopen (filename, RTLD_GLOBAL | RTLD_NOW);

Does anybody have an idea what goes wrong here?

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/