[Dovecot] libdovecot not referencing libiconv
OS: AIX 5.3 with IBM c compiler. Dovecot revision: 11278:2ead7574bb08 This problem is old for me, I just kept forgetting to report. Trying to start dovecot and I get: exec(): 0509-036 Cannot load program dovecot because of the following errors: rtld: 0712-001 Symbol iconv was referenced from module /usr/local/dovecot2.0beta5/lib/dovecot/libdovecot.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol iconv_open was referenced from module /usr/local/dovecot2.0beta5/lib/dovecot/libdovecot.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol iconv_close was referenced from module /usr/local/dovecot2.0beta5/lib/dovecot/libdovecot.so(), but a runtime definition of the symbol was not found. To fix this I did: --- a/src/lib-dovecot/Makefile.am Mon May 10 12:05:58 2010 -0400 +++ b/src/lib-dovecot/Makefile.am Mon May 10 12:31:36 2010 -0400 @@ -16,7 +16,7 @@ libdovecot_la_LIBADD = \ $(libs) \ $(MODULE_LIBS) \ - $(LTLIBICONV) + $(LIBICONV) libdovecot_la_DEPENDENCIES = $(libs)
On Mon, 2010-05-10 at 13:41 -0400, Jonathan Siegle wrote:
To fix this I did:
--- a/src/lib-dovecot/Makefile.am Mon May 10 12:05:58 2010 -0400 +++ b/src/lib-dovecot/Makefile.am Mon May 10 12:31:36 2010 -0400 @@ -16,7 +16,7 @@ libdovecot_la_LIBADD = \ $(libs) \ $(MODULE_LIBS) \ - $(LTLIBICONV) + $(LIBICONV)
libdovecot_la_DEPENDENCIES = $(libs)
That's going to break other systems. What do you have in LIBICONV and LTLIBICONV in Makefile? Maybe your iconv.m4 doesn't contain support for LTLIBICONV?
On May 25, 2010, at 1:24 PM, Timo Sirainen wrote:
On Mon, 2010-05-10 at 13:41 -0400, Jonathan Siegle wrote:
To fix this I did:
--- a/src/lib-dovecot/Makefile.am Mon May 10 12:05:58 2010 -0400 +++ b/src/lib-dovecot/Makefile.am Mon May 10 12:31:36 2010 -0400 @@ -16,7 +16,7 @@ libdovecot_la_LIBADD = \ $(libs) \ $(MODULE_LIBS) \ - $(LTLIBICONV) + $(LIBICONV)
libdovecot_la_DEPENDENCIES = $(libs)
That's going to break other systems. What do you have in LIBICONV and LTLIBICONV in Makefile? Maybe your iconv.m4 doesn't contain support for LTLIBICONV?
fgrep LIBICONV src/lib-dovecot/Makefile LIBICONV = -liconv $(LIBICONV) I can't find a iconv.m4 on my system.
On Tue, 2010-05-25 at 13:39 -0400, Jonathan Siegle wrote:
That's going to break other systems. What do you have in LIBICONV and LTLIBICONV in Makefile? Maybe your iconv.m4 doesn't contain support for LTLIBICONV?
fgrep LIBICONV src/lib-dovecot/Makefile LIBICONV = -liconv $(LIBICONV)
I can't find a iconv.m4 on my system.
I guess it should be in /usr/share/aclocal/. You're compiling from hg, right? The nightly snapshot tarballs probably compile ok (if you don't run autogen.sh)?
On May 25, 2010, at 1:44 PM, Timo Sirainen wrote:
On Tue, 2010-05-25 at 13:39 -0400, Jonathan Siegle wrote:
That's going to break other systems. What do you have in LIBICONV and LTLIBICONV in Makefile? Maybe your iconv.m4 doesn't contain support for LTLIBICONV?
fgrep LIBICONV src/lib-dovecot/Makefile LIBICONV = -liconv $(LIBICONV)
I can't find a iconv.m4 on my system.
I guess it should be in /usr/share/aclocal/. You're compiling from hg, right? Yes. After updating some Gnu tools(automake/autoconf/m4/libtool/gettext/) and installing Gnu libiconv(was using system libiconv), I can report success. Looking back now, I probably only needed to install Gnu libiconv.
tr27n12.aset.psu.edu# ldd libdovecot.so.0.0.0 libdovecot.so.0.0.0 needs: /usr/local/Gnu/lib/libiconv.so /usr/lib/libc.a(shr_64.o) /unix /usr/lib/libcrypt.a(shr_64.o)
fgrep LIBICON Makefile LIBICONV = /usr/ladmin/Gnu/lib//libiconv.a LTLIBICONV = -L/usr/ladmin/Gnu/lib/ -liconv $(LTLIBICONV)
However, I no longer have the --enable-header-install feature:
$ ./configure --prefix=/usr/local/dovecot2.0beta4test --without-ssl --with-gssapi=yes --enable-header-install
configure: WARNING: unrecognized options: --enable-header-install
AND /usr/local/ovecot2.0beta4test/include/dovecot is still populated.
thanks, Jonathan
participants (2)
-
Jonathan Siegle
-
Timo Sirainen