[Dovecot] DoveCot 2.0.19: Problem compiling Solaris 10u9 x86 with dbox storage enabled

Denny Schierz linuxmail at 4lin.net
Fri Feb 4 14:14:00 EET 2011


hi,

I can't compile DoveCot 2.0.19 with dbox enabled on our Solaris 10/U9:

LDFLAGS="-L/opt/csw/lib -L/usr/lib -R/opt/csw/lib/" ./configure
--prefix=/usr/local/dovecot/2.0.19 --with-ssl=openssl
--with-rundir=/var/run/dovecot --with-storages=maildir,mbox,dbox
--with-ldap=yes

gmake ->

==========================
[...
../../src/lib-storage/mailbox-list.h:250: warning: parameter has
incomplete type
mv -f .deps/mail-storage-callbacks.Tpo .deps/mail-storage-callbacks.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib
-I../../src/lib-settings -I../../src/lib-dict -I../../src/lib-master
-I../../src/lib-mail -I../../src/lib-imap -I../../src/lib-index
-I../../src/lib-storage -I/opt/csw/include  -std=gnu99 -g -O2 -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast  -MT main.o -MD -MP
-MF .deps/main.Tpo -c -o main.o main.c
In file included from ../../src/lib-storage/mail-storage.h:10,
                 from imap-commands.h:6,
                 from imap-client.h:4,
                 from imap-common.h:17,
                 from main.c:3:
../../src/lib-storage/mailbox-list.h:250: warning: parameter has
incomplete type
mv -f .deps/main.Tpo .deps/main.Po
/bin/bash ../../libtool --tag=CC   --mode=link gcc  -std=gnu99 -g -O2
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast  -export-dynamic
-L/opt/csw/lib -L/usr/lib -R/opt/csw/lib/ -o imap cmd-append.o
cmd-capability.o cmd-cancelupdate.o cmd-check.o cmd-close.o cmd-copy.o
cmd-create.o cmd-delete.o cmd-enable.o cmd-examine.o cmd-expunge.o
cmd-fetch.o cmd-id.o cmd-idle.o cmd-list.o cmd-logout.o cmd-lsub.o
cmd-namespace.o cmd-noop.o cmd-rename.o cmd-search.o cmd-select.o
cmd-sort.o cmd-status.o cmd-store.o cmd-subscribe.o cmd-thread.o
cmd-uid.o cmd-unselect.o cmd-unsubscribe.o cmd-x-cancel.o imap-client.o
imap-commands.o imap-commands-util.o imap-expunge.o imap-fetch.o
imap-fetch-body.o imap-search.o imap-search-args.o imap-settings.o
imap-status.o imap-sync.o mail-storage-callbacks.o
main.o ../../src/lib-storage/libdovecot-storage.la  ../../src/lib-dovecot/libdovecot.la -export-dynamic -lrt -lnsl -lsocket  -lrt -lsendfile
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -o .libs/imap cmd-append.o cmd-capability.o
cmd-cancelupdate.o cmd-check.o cmd-close.o cmd-copy.o cmd-create.o
cmd-delete.o cmd-enable.o cmd-examine.o cmd-expunge.o cmd-fetch.o
cmd-id.o cmd-idle.o cmd-list.o cmd-logout.o cmd-lsub.o cmd-namespace.o
cmd-noop.o cmd-rename.o cmd-search.o cmd-select.o cmd-sort.o
cmd-status.o cmd-store.o cmd-subscribe.o cmd-thread.o cmd-uid.o
cmd-unselect.o cmd-unsubscribe.o cmd-x-cancel.o imap-client.o
imap-commands.o imap-commands-util.o imap-expunge.o imap-fetch.o
imap-fetch-body.o imap-search.o imap-search-args.o imap-settings.o
imap-status.o imap-sync.o mail-storage-callbacks.o main.o
-L/opt/csw/lib
-L/usr/lib ../../src/lib-storage/.libs/libdovecot-storage.so /usr/local/dovecot/v2/dovecot-2.0.9/src/lib-dovecot/.libs/libdovecot.so ../../src/lib-dovecot/.libs/libdovecot.so -liconv -lnsl -lsocket -lrt -lsendfile -R/usr/local/dovecot/2.0.19/lib/dovecot -R/opt/csw/lib/
ld: warning: file ../../src/lib-dovecot/.libs/libdovecot.so: linked
to /usr/local/dovecot/v2/dovecot-2.0.9/src/lib-dovecot/.libs/libdovecot.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
dbox_storage                        ../../src/lib-storage/.libs/libdovecot-storage.so
ld: fatal: Symbol referencing errors. No output written to .libs/imap
collect2: ld returned 1 exit status
gmake[3]: *** [imap] Error 1
gmake[3]: Leaving directory
`/usr/local/dovecot/v2/dovecot-2.0.9/src/imap'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/dovecot/v2/dovecot-2.0.9/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/dovecot/v2/dovecot-2.0.9'
gmake: *** [all] Error 2
============================

compiling without dbox works.

# pkgutil -a | grep iconv
libiconv CSWiconv  1.9.2 1.3 MB


cu denny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20110204/4144f1a5/attachment.bin 


More information about the dovecot mailing list