[Dovecot] Pigeonhole: error while loading shared libraries

Timo Sirainen tss at iki.fi
Wed Aug 18 18:09:21 EEST 2010


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

Where the -Wl,-rpath -Wl,/usr/local/lib/dovecot is the important part.
Without that it doesn't remember where it was linked.

> > What OS is this?
> 
> Arch Linux

Dunno, maybe it does something differently or doesn't support -rpath for
some reason..



More information about the dovecot mailing list