Sunday, March 12, 2006

Freebsd Dovecot Drac Plugin

I noticed the following error in my dovecot.log :

dlopen(/usr/local/lib/dovecot/pop3/ failed: /usr/local/lib/dovecot/pop3/ Undefined symbol "dracauth"

After reading Timo's read me on building 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 dracobj/*
This should remove that error completely.

1 comment: