On Fri, Jan 05, 2001 at 11:37:49AM -0600, Barry Bookout wrote:

> 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

It seems you have built cyrus-sasl against a different Berkeley DB library.

> 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>)

No need for that. Just put the DB3 includes under the /usr/include/db3 
directory and give the configure script the "--with-dbdir=/usr" parameter.
Although I'd prefer using /usr/local and leaving /usr alone...

> 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.

On AIX, you can link Cyrus SASL and IMAPD with different shared DB libraries
because the dependencies are hardcoded into the libraries. On systems using
run-time linking by default you are asking for trouble if you do this.

Gabor

-- 
Gabor Gombas                                       Eotvos Lorand University
E-mail: [EMAIL PROTECTED]                        Hungary

Reply via email to