When ICONV option is selected (default), and FreeBSD version provides libiconv, this library is not linked
correctly and ejabberd crashes at startup.
Build net-im/ejabberd from ports with ICONV enabled.
Start ejabberd and notice creation of crash dump file and crash log in /var/log/ejabberd.
I have the libiconv port installed (required by other ports) and was able to force use of the libiconv port
by modifing Makefile like so:
-USES= gmake pkgconfig
+USES= gmake pkgconfig iconv:wchar_t
The addition of iconv:wchar_t causes /usr/ports/Mk/Uses/iconv.mk to create a LIB_DEPENDS on the
ejabberd links libiconv from ports correctly and starts without crashing.
This is still a problem for ejabberd-14.07.
I have revised the earlier fix to modify ICONV_USES as follows:
(In reply to neil from comment #1)
> This is still a problem for ejabberd-14.07.
> I have revised the earlier fix to modify ICONV_USES as follows:
> ICONV_USES= iconv:wchar_t
Thanks for the fix. I'll commit after making sure it builds fine on all platforms.
A commit references this bug:
Date: Sun Aug 3 16:06:23 UTC 2014
New revision: 363919
- Fix crashing on 10.x and later, when ICONV option is enabled
Submitted by: neil at darlow.co.uk
Committed changes. Thanks!