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 Or if anyone has ideas why this happens, I'd like to know: 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 -I/home/cras/include -o .libs/rawlog rawlog.o ../lib-dovecot/.libs/libdovecot.so -lrt -lsocket -lsendfile -Wl,-rpath -Wl,/usr/local/lib/dovecot ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlerror at SUNW_1.22' ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlopen at SUNW_1.22' ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlsym at SUNW_1.22' ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlclose at SUNW_1.22' If I disable plugins (so dl*() functions aren't used) it compiles, so it's only those functions that are problematic. pvs -s /lib/libc.so lists the dl* functions under SUNW_1.22 so I'd think that should have worked.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090406/749afee9/attachment-0002.bin>
On Apr 6, 2009, at 2:08 PM, 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 > > Or if anyone has ideas why this happens, I'd like to know: > > 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 -I/home/cras/include - > o .libs/rawlog rawlog.o ../lib-dovecot/.libs/libdovecot.so -lrt - > lsocket -lsendfile -Wl,-rpath -Wl,/usr/local/lib/dovecot > ../lib-dovecot/.libs/libdovecot.so: undefined reference to > `dlerror at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to > `dlopen at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to > `dlsym at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to > `dlclose at SUNW_1.22' > > If I disable plugins (so dl*() functions aren't used) it compiles, so > it's only those functions that are problematic. pvs -s /lib/libc.so > lists the dl* functions under SUNW_1.22 so I'd think that should have > worked..I don't see "-ldl" in there anywhere.. -Dave -- Dave McGuire Port Charlotte, FL
On Mon, 6 Apr 2009, 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?On AIX 5.3, I do get compile errors for all-settings.c[1]. libdovecot.so looks great[2]! [1] "all-settings.c", line 492.31: 1506-196 (W) Initialization between types "struct dynamic_settings_parser*" and "unsigned long" is not allowed. "all-settings.c", line 517.31: 1506-196 (W) Initialization between types "struct dynamic_settings_parser*" and "unsigned long" is not allowed. "all-settings.c", line 598.28: 1506-196 (W) Initialization between types "unsigned int" and "char*" is not allowed. "all-settings.c", line 598.28: 1506-1106 (S) Initializer does not evaluate to a constant that fits in the target type. "all-settings.c", line 1355.31: 1506-196 (W) Initialization between types "struct dynamic_settings_parser*" and "unsigned long" is not allowed. [2] # find . |grep libdovecot.so ./src/lib-dovecot/.libs/libdovecot.so.0.0.0 ./src/lib-dovecot/.libs/libdovecot.so.0 ./src/lib-dovecot/.libs/libdovecot.so >> http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gz > > Or if anyone has ideas why this happens, I'd like to know: > > 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 -I/home/cras/include -o .libs/rawlog rawlog.o ../lib-dovecot/.libs/libdovecot.so -lrt -lsocket -lsendfile -Wl,-rpath -Wl,/usr/local/lib/dovecot > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlerror at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlopen at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlsym at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlclose at SUNW_1.22' > > If I disable plugins (so dl*() functions aren't used) it compiles, so > it's only those functions that are problematic. pvs -s /lib/libc.so > lists the dl* functions under SUNW_1.22 so I'd think that should have > worked.. >I don't have a Solaris 10 box. I found this link: http://forums-beta.sun.com/thread.jspa?messageID=9269180 which might help. Dig down close to the bottom(July 1,2005). -Jonathan -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1513 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20090406/e2b865f4/attachment-0002.bin>
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.gzHi 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
Timo Sirainen <tss at iki.fi> wrote:> Could you non-Linux users test if this compiles with you? > > http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gzDuring 'make' on FreeBSD 6, I get: /usr/local/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT lib-signals.lo -MD -MP -MF .deps/lib-signals.Tpo -c -o lib-signals.lo lib-signals.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT lib-signals.lo -MD -MP -MF .deps/lib-signals.Tpo -c lib-signals.c -fPIC -DPIC -o .libs/lib-signals.o lib-signals.c: In function `lib_signal_code_to_str': lib-signals.c:47: error: `SEGV_MAPERR' undeclared (first use in this function) lib-signals.c:47: error: (Each undeclared identifier is reported only once lib-signals.c:47: error: for each function it appears in.) lib-signals.c:49: error: `SEGV_ACCERR' undeclared (first use in this function) lib-signals.c:55: error: `BUS_ADRALN' undeclared (first use in this function) lib-signals.c:57: error: `BUS_ADRERR' undeclared (first use in this function) lib-signals.c:59: error: `BUS_OBJERR' undeclared (first use in this function) % libtool --version ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) % gcc --version gcc (GCC) 3.4.4 [FreeBSD] 20050518 I hope this helps, and I'd be happy to perform further compilation tests. Alan Ferrency pair Networks, Inc.
Hi Timo,> http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gzThere is no error on Mac OS X 10.5.6 (Darwin Kernel Version 9.6.0). Regards, -- Guillaume de Lafond Aqua Ray
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 > > Or if anyone has ideas why this happens, I'd like to know: > > 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 -I/home/cras/include -o .libs/rawlog rawlog.o ../lib-dovecot/.libs/libdovecot.so -lrt -lsocket -lsendfile -Wl,-rpath -Wl,/usr/local/lib/dovecot > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlerror at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlopen at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlsym at SUNW_1.22' > ../lib-dovecot/.libs/libdovecot.so: undefined reference to `dlclose at SUNW_1.22' > > If I disable plugins (so dl*() functions aren't used) it compiles, so > it's only those functions that are problematic. pvs -s /lib/libc.so > lists the dl* functions under SUNW_1.22 so I'd think that should have > worked..Solaris 9 + GCC: $ ./configure [...] Install prefix ...................... : /usr/local File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : none Building with SSL support ........... : yes (OpenSSL) Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword Building with password lookup modules : passwd passwd-file shadow pam checkpassword Building with SQL drivers ............: $ make [........] libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -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 libpassword.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/.libs/libsql.a ../lib-dovecot/.libs/libdovecot.so -L/usr/local/lib -L/usr/local/ssl/lib -ldl -lpam -lrt -lnsl -lsocket -lsendfile -R/usr/local/lib/dovecot Undefined first referenced symbol in file libiconv_close ../lib-dovecot/.libs/libdovecot.so libiconv_open ../lib-dovecot/.libs/libdovecot.so libiconv ../lib-dovecot/.libs/libdovecot.so ld: fatal: Symbol referencing errors. No output written to .libs/dovecot-auth collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `dovecot-auth' -- Curtis Maloney cmaloney at cardgate.net
On Mon, 2009-04-06 at 14:08 -0400, Timo Sirainen wrote:> http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gzOK, updated the URL once more. Now iconv problems should be gone? And everyone else is happy with it too? :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090407/4f67ab82/attachment-0002.bin>
> On Mon, 2009-04-06 at 14:08 -0400, Timo Sirainen wrote: > > http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gz > > OK, updated the URL once more. Now iconv problems should be gone? And > everyone else is happy with it too? :)It worked fine in FreeBSD 6.2. Thanks, Alan Ferrency pair Networks, Inc.
Timo: I do it in Solaris 10 8/07 s10s_u4wos_12b SPARC with gcc (GCC) 3.4.3: CFLAGS='-mcpu=v9 -mtune=ultrasparc3 -O2 -pipe' CPPFLAGS=' -I/usr/local/include -I/usr/local/apache/include -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include/openssl -I/usr/local/include/mutils -I/usr/sfw/include -I/usr/include' LDFLAGS='-L/usr/local/lib -R/usr/local/lib -L/usr/local/apache/lib -R/usr/local/apache/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -L/usr/sfw/lib -R/usr/sfw/lib -L/lib -R/lib -L/usr/lib -R/usr/lib' ./configure --with-ldap make I get: Undefined first referenced symbol in file libiconv_close ../lib-dovecot/.libs/libdovecot.so libiconv_open ../lib-dovecot/.libs/libdovecot.so libiconv ../lib-dovecot/.libs/libdovecot.so ld: fatal: Symbol referencing errors. No output written to .libs/dovecot-auth collect2: ld returned 1 exit status make[3]: *** [dovecot-auth] Error 1 make[3]: Leaving directory `/export/software/dovecot1.3/dovecot-1.3.UNSTABLE/src/auth' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/software/dovecot1.3/dovecot-1.3.UNSTABLE/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/software/dovecot1.3/dovecot-1.3.UNSTABLE' make: *** [all] Error 2 Is this the version which has been repaired from iconv problems? Look down your post, i downloaded it from there. Andr?s Fernando Yacopino Infraestructura - Dpto Sistemas AcaSalud Cooperativa de Prestaciones M?dico Asistenciales Limitada Tel: 0341-4208726 ayacopino at acasalud.com.ar Timo Sirainen escribi?:> On Mon, 2009-04-06 at 14:08 -0400, Timo Sirainen wrote: > >> http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gz >> > > OK, updated the URL once more. Now iconv problems should be gone? And > everyone else is happy with it too? :) > >