[Dovecot] Compiling v1.3 on different OSes
Marcin Rzepecki
m.rzepecki at iem.pw.edu.pl
Tue Apr 7 00:03:02 EEST 2009
Mon, Apr 06, 2009 at 02:08:45PM -0400, Timo Sirainen wrote:
> I was hoping to finally get shared libdovecot.so and
> libdovecot-storage.so libraries for v1.3, so Sieve (and maybe others)
> could link against them. But I'm running into trouble getting it to
> compile in Solaris 10. Could you non-Linux users test if this compiles
> with you?
>
> http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gz
Hi Timo,
on FreeBSD i'm getting:
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -Wstrict-aliasing=2 -o .libs/dovecot-auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o
auth-master-listener.o auth-request.o auth-request-handler.o auth-settings.o auth-stream.o auth-worker-client.o auth-worker-server.o
db-checkpassword.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o
mech-digest-md5.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o plain-common.o
passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o
passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-nss.o userdb-passwd.o
userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic
libpassword.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/.libs/libsql.a ../lib-dovecot/.libs/libdovecot.so -lcrypt
-lpam -Wl,-rpath -Wl,/usr/local/lib/dovecot
../lib-dovecot/.libs/libdovecot.so: undefined reference to `libiconv_open'
../lib-dovecot/.libs/libdovecot.so: undefined reference to `libiconv_close'
../lib-dovecot/.libs/libdovecot.so: undefined reference to `libiconv'
*** Error code 1
configure script goes without any problems and finds iconv libs:
[...]
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for iconv declaration...
extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
[...]
Some sysinfo:
marcin at vm01:~% pkg_info -Ix iconv
iconv-2.0_3 Charset conversion library and utilities
libiconv-1.11_1 A character set conversion library
marcin at vm01:~% uname -a
FreeBSD vm01.lan 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24
UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Cheers,
--
Marcin Rzepecki
m.rzepecki(at)iem.pw.edu.pl
More information about the dovecot
mailing list