[JDEV] Jabber on HPUX

Julian Fitzell julian-ml at beta4.com
Thu Dec 7 13:00:46 CST 2000


I converted the code in jabberd/load.c and jabberd/io/base_load.c to use shl_load() and shl_findsym() and it compiles fine.
When I runn jabberd, though, it gets as far as the second configuration pass (configo(1) ) but then when base_load_config() tries to run the main function for the JSM module, I get a seg fault.

The function pointer isn't NULL but I don't know how to check whether the module has really been loaded, etc.

I found a post on an HP message board suggesting loading the library with BIND_IMMEDIATE to check for errors and there certainly were some:

/usr/lib/dld.sl: Unresolved symbol: debug_flag (data)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: pool_new (code)  from /disk4/jabber1.2/lib/libjabber.sl.1
/usr/lib/dld.sl: Unresolved module for symbol: jid_full (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: pool_heap (code)  from /disk4/jabber1.2/lib/libjabber.sl.1
/usr/lib/dld.sl: Unresolved module for symbol: ppdb_get (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: debug_log (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: deliver (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: register_phandler (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: xdb_set (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: mtq_new (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: xdb_cache (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: log_notice (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: deliver_fail (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: xdb_get (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: log_alert (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: dpacket_new (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: mtq_send (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: register_beat (code)  from ./jsm/jsm.so
/usr/lib/dld.sl: Unresolved symbol: log_warn (code)  from ./jsm/jsm.so

But the main function doesn't seem to be there so I don't know if this is normal or not.  

The code in jabberd/load.c never seems to get executed but I have included my modified jabberd/io/base_load.c

Does anyone have any further ideas?

Thanks,

Julian

*********** REPLY SEPARATOR  ***********

On 07/12/00 at 12:02 PM David Le Corfec wrote:

>> Julian Fitzell wrote:
>
>> I have tried both version 1.2 and 1.0 but no matter what I try I always get an error about
>> dlopen(), RTLD_LAZY, or some other constant, function, or filename which always seems to lead back
>> to DLD.  I tried installing the Gnu version of DLD but it says it hasn't been ported for HP-UX and
>> won't compile either.
>
>Yes, historically on HP-UX there is shl_load() to load modules,
>and not dlopen(). So either there's a dlopen-compatible API
>available for HP-UX, or the Jabber code must be modified
>(for example, see GLib's HP-UX support in gmodule/gmodule-dld.c)
>
>-- 
>David Le Corfec
>
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: base_load.c
Type: application/octet-stream
Size: 18565 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20001207/41a3ceea/attachment-0002.obj>


More information about the JDev mailing list