When ICONV option is selected (default), and FreeBSD version provides libiconv, this library is not linked correctly and ejabberd crashes at startup. How-To-Repeat: 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. Fix: 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 libiconv port. 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: ICONV_USES= iconv:wchar_t
(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 Hi, Thanks for the fix. I'll commit after making sure it builds fine on all platforms.
A commit references this bug: Author: ashish Date: Sun Aug 3 16:06:23 UTC 2014 New revision: 363919 URL: http://svnweb.freebsd.org/changeset/ports/363919 Log: - Fix crashing on 10.x and later, when ICONV option is enabled PR: 191473 Submitted by: neil at darlow.co.uk Changes: head/net-im/ejabberd/Makefile
Committed changes. Thanks!