[Dovecot] Pigeonhole: error while loading shared libraries
Sebastian Köhler
sebkoehler+dovecot at whoami.org.uk
Thu Aug 19 00:04:28 EEST 2010
On Wed, Aug 18, 2010 at 04:09:21PM +0100, Timo Sirainen wrote:
> On Wed, 2010-08-18 at 16:29 +0200, Sebastian Köhler wrote:
> > For some reason managesieve-login ignores the libs it was compiled
> > against and only looks into /usr/lib for the libs.
>
> What is the linking command for managesieve-login? It should be
> something like:
>
> 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 managesieve-login client.o
> client-authenticate.o managesieve-login-settings.o
> managesieve-proxy.o ../../src/lib-managesieve/libmanagesieve.a /usr/local/lib/dovecot/libdovecot-login.so -L/usr/local/lib/dovecot /usr/local/lib/dovecot/libdovecot.so -lrt -Wl,-rpath -Wl,/usr/local/lib/dovecot -Wl,-rpath -Wl,/usr/local/lib/dovecot
libtool: link: gcc -std=gnu99 -march=i686 -mtune=generic -O2 -pipe -Wall
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -o
managesieve-login client.o client-authenticate.o
managesieve-login-settings.o managesieve-proxy.o
../../src/lib-managesieve/libmanagesieve.a -ldovecot-login
-L/usr/lib/dovecot -ldovecot -lrt
> Where the -Wl,-rpath -Wl,/usr/local/lib/dovecot is the important part.
obviously not there :) But other lines have it e.g.
libtool: link: gcc -std=gnu99 -march=i686 -mtune=generic -O2 -pipe -Wall
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -o
.libs/sieved sieved.o -Wl,--export-dynamic
../../src/lib-sieve/.libs/libdovecot-sieve.so
../../src/lib-sieve-tool/.libs/libsieve-tool.a
../../src/sieve-tools/debug/.libs/libsieve_ext_debug.a -ldovecot-storage
-ldovecot-lda -L/usr/lib/dovecot -ldovecot -lrt -Wl,-rpath
-Wl,/usr/lib/dovecot
Sebastian
--
The best thing about a boolean is even if you are wrong, you are only
off by a bit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20100818/f90c7267/attachment.bin
More information about the dovecot
mailing list