INN and db 4,6

Julien ÉLIE julien at trigofacile.com
Fri Sep 21 08:32:37 UTC 2007


En réponse à The Doctor :
> Hence it looks like for db 4.6 we have to use set_lk_max_locks

set_lk_max was indeed marked as deprecated in the db 4.0 release.

http://www.oracle.com/technology/documentation/berkeley-db/db/ref/upgrade.4.0/set_lk_max.html



> And can someone check db 4.5 ?

As I have never used ovdb before, I tried to compile INN with db 4.2 (which is normally
supported) but I have the following error:

gcc  -o imapfeed article.o buffer.o config_l.o config_y.o endpoint.o host.o innlistener.o main.o misc.o tape.o imap_connection.o \
            -L/usr/include/sasl/lib -lsasl2 /home/news/snapshots/svn/trunk/storage/libstorage.a 
/home/news/snapshots/svn/trunk/history/libinnhist.a 
home/news/snapshots/svn/trunk/lib/libinn.a -L/usr/local/BerkeleyDB.4.2/lib  -ldb -lz
/usr/local/BerkeleyDB.4.2/lib/libdb.so: référence indéfinie vers « pthread_condattr_setpshared »
/usr/local/BerkeleyDB.4.2/lib/libdb.so: référence indéfinie vers « pthread_mutexattr_destroy »
/usr/local/BerkeleyDB.4.2/lib/libdb.so: référence indéfinie vers « pthread_mutexattr_setpshared »
/usr/local/BerkeleyDB.4.2/lib/libdb.so: référence indéfinie vers « pthread_mutexattr_init »
/usr/local/BerkeleyDB.4.2/lib/libdb.so: référence indéfinie vers « pthread_mutex_trylock »
collect2: ld returned 1 exit status
make[1]: *** [imapfeed] Erreur 1


Well, it works if I add "-lpthread" to gcc's command line.
But why isn't it set automatically?

I see that it is set in PERL_LIBS and PYTHON_LIBS makefile variables.

I may have done something wrong.  Are there specific configure options to give
when compiling Berkeley DB?

-- 
Julien ÉLIE

« Ta remise sur pied lui a fait perdre la tête ! » (Astérix) 



More information about the inn-workers mailing list