INN and db 4,6

The Doctor doctor at doctor.nl2k.ab.ca
Fri Sep 21 12:34:49 UTC 2007


On Fri, Sep 21, 2007 at 10:32:37AM +0200, Julien ÉLIE wrote:
> 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) 
> 
>


Bonjour.

I am using BSD/OS 4.3.1 and gcc 3.2.3 .

For pthread to work, I need to use -pthread .


That too has to be carefully tweaked into the whole equation.
 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

-- 
Member - Liberal International	
This is doctor at nl2k.ab.ca	Ici doctor at nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the inn-workers mailing list