[milters] Archive

Lists Index Date Thread Search

Article: 3732
From: S y s C o / hosting
Date: 2013-09-09 11:09:57 -0400
Subject: Compiling libsnert on debian wheezy fails

Hi,

libsnert won't compile on Debian 7 "Wheezy", because it only have libdb5 (5.1)
and the /usr/local/src/com/snert/src/lib/include/berkeley_db.h file contains:

> #if   DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
> # define DBTXN          (DB_TXN *) 0,
> /* DB->associate, open, rename, remove require DBTXN *. */
> # define DBTXN_ROAR     (DB_TXN *) 0,
> #elif   DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0
> # define DBTXN          (DB_TXN *) 0,
> /* DB->associate, open, rename, remove do not require DBTXN *. */
> # define DBTXN_ROAR
> #elif DB_VERSION_MAJOR == 3
> # define DBTXN
> # define DBTXN_ROAR
> #elif DB_VERSION_MAJOR == 2
> # error "Berkeley DB 2.x not supported."
> #elif defined(HAVE_DBOPEN)
> # define DB_VERSION_MAJOR               1
> # define DB_VERSION_MINOR               85
> # define DB_NOTFOUND                    1
> # define db_strerror(x)                 strerror(errno)
> # include <fcntl.h>
> #endif

Therefore, the "make build" stops with an error:

(...)
***************************************************************
==> /usr/local/src/com/snert/src/lib/type
***************************************************************

gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Object.o -c Object.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Data.o -c Data.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Integer.o -c Integer.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Decimal.o -c Decimal.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Hash.o -c Hash.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Vector.o -c Vector.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o queue.o -c queue.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o Text.o -c Text.c
gcc  -D_REENTRANT -O2 -Wall -m64 -I../../../include  -o kvm.o -c kvm.c
kvm.c:1214:20: note: each undeclared identifier is reported only once for each function it
appears in
make[1]: *** [kvm.o] Erreur 1
/bin/sh: 1: cd: can't cd to util
/bin/sh: 1: cd: can't cd to io
/bin/sh: 1: cd: can't cd to net
/bin/sh: 1: cd: can't cd to mail
/bin/sh: 1: cd: can't cd to sys
/bin/sh: 1: cd: can't cd to tools
make: *** [build] Erreur 2

Since DB_VERSION_MAJOR=5 is not handled.

Is there a patch somewhere to link on libDB5?

Best regards

-- 
# Lol Zimmerli





Lists Index Date Thread Search