[Dovecot] Compiling v1.3 on different OSes

Dave McGuire mcguire at neurotica.com
Mon Apr 6 21:30:58 EEST 2009


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



More information about the dovecot mailing list