Sunday, March 12, 2006

Freebsd Dovecot Drac Plugin

I noticed the following error in my dovecot.log :

dlopen(/usr/local/lib/dovecot/pop3/drac.so) failed: /usr/local/lib/dovecot/pop3/drac.so: Undefined symbol "dracauth"

After reading Timo's read me on building drac.c (http://www.dovecot.org/patches/drac.c), there a few things you need to do to get rid of this error:


first extract the object from the drac library:
mkdir dracobj
cd dracobj
ar x /usr/local/lib/libdrac.a
cd ..
set your dovecot source location:
set dovecot=/usr/ports/mail/dovecot/work/dovecot-1.0.beta3
Then build drac with the following arguments:
gcc -Wall -W -shared -fPIC -DHAVE_CONFIG_H -I$dovecot -I$dovecot/src/lib drac.c -o drac.so dracobj/*
This should remove that error completely.

1 comment: