Linking imapd with db-4.1.25

Lars Peterson lars at itech-mke.com
Mon Jun 9 12:50:37 EDT 2003


On Fri, June 6, 2003 3:28 pm, you wrote:
> On Fri, June 6, 2003 2:46 pm, John Alton Tamplin wrote:
>> Igor Brezac wrote:
>>
>>>This problem is fixed in cvs for both 2.1.x and 2.2.
>>>
>>>
>> Ok, so it was a problem in Cyrus not db?  Thanks.
>>
> 
> I'm not so sure.
> 
> Checked 2.1 branch out of CVS and I still can't get it to work.
> Same results with 2.2-ALPHA.
> 
> It finds db-4.0 but not db-4.1.
> 
> Upon further investigation, it looks like maybe the problem is with
> db-4.1.25 and not cyrus...
> 
> Here's some output from config.log:
> 
> <====snip====>
> configure:5808: checking for db_create in -ldb-4.1
> configure:5839: gcc -o conftest -Wall -g -O2
> -I/usr/local/itech/iwaymail/include -L/usr/local/lib
> -Wl,-rpath,/usr/local/lib -
> L/usr/local/itech/iwaymail/lib conftest.c -ldb-4.1
> -L/usr/local/itech/iwaymail/lib  -lresolv 
> -Wl,-rpath,/usr/local/itech/iw aymail/lib >&5
> /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to
> `pthread_condattr_setpshared'
> /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to
> `pthread_mutexattr_destroy'
> /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to
> `pthread_mutexattr_setpshared'
> /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to
> `pthread_mutexattr_init'
> /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to
> `pthread_mutex_trylock'
> collect2: ld returned 1 exit status
> configure:5842: $? = 1
> <====snip====>
> 
> Any ideas where I might find some support for db-4.1.25? Can't find
> any mailing lists or news feeds on sleepycat's site.
> 
> Lars

I finally figured out how to get cyrus-imapd linked up with my 4.1.25 on RedHat
9. You need to add "-lpthread" to LDFLAGS (and export it to the environment)
before running the configure script.

I don't know who's job it should be to figure out that additional linker
flag...the addition of nptl in RedHat 9 is turning out to be really problematic
thus far.

Lars






More information about the Info-cyrus mailing list