Subject: Re: Darwin shared object problem in "xchat-python" package
To: Matthias Scheler <>
From: Adrian Portelli <>
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/
>  dlopen(/usr/pkg/lib/xchat/plugins/, 10): Symbol not found: _xchat_find_context
>    Referenced from: /usr/pkg/lib/xchat/plugins/
>    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


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"

Failing all else you could try that.