Hello all,
I am trying to install cyrus-imapd-2.0.9 and cyrus-sasl-1.5.24, with
Berkely db-3.1.17. I have compiled db-3, and copied over the libdb.a
file to /usr/lib.
Now, when compiling sasl, I get an error
gcc -Wall -W -g -O2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -o
.libs/dbconverter-1.5.9 dbconverter-1.5.9.o ../lib/.libs/libsasl.so -ldb
-ldl -lcrypt -lpam -lresolv -ldb -lresolv -Wl,--rpath -Wl,/usr/local/lib
../lib/.libs/libsasl.so: undefined reference to `db_open'
collect2: ld returned 1 exit status
make[2]: *** [dbconverter-1.5.9] Error 1
So, I tried restoring the old libdb.a file. Now, sasl compiles, except
for a few warnings like
sample-client.c: In function `main':
sample-client.c:466: warning: passing arg 2 of `getsubopt' from
incompatible pointer type
On the other hand, as has been previously pointed out, cyrus-imap requires
libdb-3.a to compile. By renaming the db3 libdb.a to libdb-3.a and
leaving both libdb's in /usr/lib, and copying db3's db.h to
/usr/include/db-3.h I have been able to get cyrus-imap to compile (after
changing a number of #include <db.h> to #include <db-3.h>) to a point
(where I run into an undefined reference to yylex in libfl.a -- possibly
as a result of doing a make distclean?).
However, given the firm injuction "It is strongly recommended that libsasl
be compiled with Berkeley DB support, using the same version of Berkeley
DB." I am not certain that this path will ultimately be effective.
Has anyone else run into similar problems or does anyone have suggestions
for what I should do?
Thanks in advance,
Barry