Cyrus IMAP 2.1.12 and Berkeley 4.1.25--SOLVED

Joe Rhodes lists at
Fri May 2 13:46:26 EDT 2003


Looks like I owe you a beer.  Lemme know when you're in Madison WI next.

For others that run across this thread, here's what I needed to do:

System:  RedHat 9
gcc:  3.2.2-5
Dual P3 Machine

Compile Berkeley DB 4.1.25 (or version 4.0.14 I suppose) with the 
following flags:

env LDFLAGS="-lpthread" ../dist/configure --enable-posixmutexes 

(Sleepy Cat has a note about possibly needing to do this in their docs 
when you --enable-posixmutexes.  What I didn't realize is that if it 
picks up on this automagically, you still have to link it against 

compile Berkeley DB and install.  Configure Cyrus IMAP--works like a 

Thanks everyone for your help!


On Friday, May 2, 2003, at 11:54  AM, Patrick Morris wrote:

> Looks like libpthread isn't being linked.  You might try setting the 
> "LIBS" environment variable to "-lpthread" and running configure > again.
> Joe Rhodes wrote:
>> Patrick:
>> DOH!  I forget the simplest things.  Looks like it is an issue with 
>> the mutex that's being auto selected:
>> configure:2848: checking for db_create in -ldb-4.1
>> configure:2867: gcc -o conftest -Wall -g -O2  -L/usr/local/lib
>> -Wl,-rpath,/usr/local/lib  conftest.c -ldb-4.1   -lresolv  1>&5
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ 
>> undefined reference to `pthread_condattr_setpshared'
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ 
>> undefined reference to `pthread_mutexattr_destroy'
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ 
>> undefined reference to `pthread_mutexattr_setpshared'
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ 
>> undefined reference to `pthread_mutexattr_init'
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ 
>> undefined reference to `pthread_mutex_trylock'
>> collect2: ld returned 1 exit status

More information about the Info-cyrus mailing list