#74: strndup() fix
-------------------+--------------------------------------------------------
Reporter: lampa | Owner: smoku
Type: defect | Status: new
Priority: major | Component: sm
Version: 2.1 | Blocking:
-------------------+--------------------------------------------------------
The strndup() fix for *BSD doesn't work at all. First, the library
libsubst.a
is not linked to mod_amp.so, mod_help.so, nor mod_status.so. Even
in the case it was, this would not work, since libsubst.a
is not compiled with -pic. The libsust.a is only used with sm linking,
but there is no reference to strndup() from sm itself, so strndup
is not linked to main program and dynamic modules cannot reference it
in main. One possible fix is to force linking of strndup to sm
(dummy call in main) or it would be better to create pic version
of libsubst and use it during linking of all appropriate dynamic modules.
I hope that I haven't missed something, but my sm server was really
dying with mod_status: undefined symbol strndup
--
Ticket URL: <http://jabberd2.xiaoka.com/ticket/74>
jabberd2 <http://jabberd2.xiaoka.com/>
jabberd2 project
_______________________________________________
jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com