Subject: Re: Darwin shared object problem in "xchat-python" package
To: Matthias Scheler <tron@zhadum.org.uk>
From: Adrian Portelli <adrianp@NetBSD.org>
List: tech-pkg
Date: 08/16/2006 22:31:35
Matthias Scheler wrote:
> 	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
> 

Hi,

I remember a vaguely similar problem I had with another package
(chat/unrealircd).  The solution, for me, was to add the following to
the Makefile:

.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED=YES
.endif

Failing all else you could try that.

adrian.