[milters] Archive

Lists Index Date Thread Search

Article: 517
From: YourShop SA Hosting
Date: 2005-04-27 06:57:22 -0400
Subject: LibSnert/1.40.622 and Berkeley-DB-4.3.27 don't compile

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Hi

LibSnert/1.40.622 and Berkeley-DB-4.2.52 compile nicely whereas with Berkeley-DB-4.3.27 it
fails. Looking at the beneath lines it's visible that /usr/local/BerkeleyDB.4.3/ is taken
into account but finally LIBS.........: -ldb-4.2 is chosen.

LibSnert/1.40.622  
Copyright 1996, 2004 by Anthony Howe. All rights reserved.

  Mutex........: SYSTEMV_API
  Shared Memory: SYSTEMV_API
  Time.........: POSIX_API
  Berkeley DB..: yes
  libmilter....: yes
  CFLAGS.......: -O2 -D_REENTRANT -g -D_THREAD_SAFE -pthread
-I/usr/local/BerkeleyDB.4.3/include -I/usr/local/include
  LDFLAGS......:  -L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/lib
  LIBS.........: -ldb-4.2

gcc -O2 -D_REENTRANT -g -D_THREAD_SAFE -pthread -I/usr/local/BerkeleyDB.4.3/include
-I/usr/local/include -I/home/src/tmp/com/snert/include -osmdb.o -c smdb.c
In file included from smdb.c:49:
/home/src/tmp/com/snert/include/com/snert/lib/mail/smdb.h:69: warning: `DB_VERSION_MAJOR'
redefined
/usr/local/BerkeleyDB.4.3/include/db.h:43: warning: this is the location of the previous
definition
/home/src/tmp/com/snert/include/com/snert/lib/mail/smdb.h:70: warning: `DB_VERSION_MINOR'
redefined
/usr/local/BerkeleyDB.4.3/include/db.h:44: warning: this is the location of the previous
definition
/home/src/tmp/com/snert/include/com/snert/lib/mail/smdb.h:71: warning: `DB_NOTFOUND'
redefined
/usr/local/BerkeleyDB.4.3/include/db.h:1197: warning: this is the location of the previous
definition
smdb.c: In function `smdbClose':
smdb.c:87: too few arguments to function
smdb.c: In function `smdbReopen':
smdb.c:120: too few arguments to function
smdb.c:128: warning: assignment makes pointer from integer without a cast
smdb.c: In function `smdbGetValue':
smdb.c:381: warning: passing arg 2 of pointer to function from incompatible pointer type
smdb.c:381: too few arguments to function
*** Error code 1

Stop in /home/src/tmp/com/snert/src/lib/mail.
*** Error code 1

Stop in /home/src/tmp/com/snert/src/lib.

Is Berkeley-DB-4.3.27 too recent ?

By the way, it's compiled with sendmail-8.13.4 on FreeBSD 4.9#0

Thanks for your help
-- 
Claudio Eichenberger
YourShop SA
Ch. de la Cure 2A
CH-1008 Prilly
--------------------
Hosting@yourshop.com
Tel +41 21 67 17 111
Mob +41 79 34 72 100
Http://YourShop.com/


Lists Index Date Thread Search