[milters] Archive

Lists Index Date Thread Search

Article: 2881
From: Ben Parker
Date: 2012-08-14 03:26:16 -0400
Subject: trouble building libsnert on ubuntu 12.04

Hello - I am attempting to install milter-null on Ubuntu 12.04 and 
running into this build problem with libsnert. It seems that it cannot 
find the berkeley_db.h header file but I'm not sure why. Any help would 
be greatly appreciated!

Here is the final summary from configure:

LibSnert/1.73.17
Copyright 1996, 2010 by Anthony Howe. All rights reserved.

   Platform............: Linux gcc
   Berkeley DB.........: 5.1 -ldb-5.1
   POSIX Threads.......: yes yes
   SQLite3.............: disabled
   Sendmail libmilter..: yes
   Semaphore API.......: SYSTEMV_API
   Shared Memory API...: SYSTEMV_API
   CFLAGS..............: -D_REENTRANT -O2 -Wall 
-I${top_srcdir}/../../include
   LDFLAGS.............: -L${top_srcdir}/../../lib
   LIBS................: -lpthread -ldl


And the output from "make build" which contains the error:


make[1]: Entering directory `/home/ben/tmp/com/snert/src/lib/type'

***************************************************************
==> /home/ben/tmp/com/snert/src/lib/type
***************************************************************

gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Object.o -c Object.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Data.o -c Data.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Integer.o -c Integer.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Decimal.o -c Decimal.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Hash.o -c Hash.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Vector.o -c Vector.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o queue.o -c queue.c
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o Text.o -c Text.c
Text.c: In function ‘TextIsInt’:
Text.c:96:2: warning: ignoring return value of ‘strtol’, declared with 
attribute warn_unused_result [-Wunused-result]
gcc  -D_REENTRANT -O2 -Wall -I../../../include  -o kvm.o -c kvm.c
kvm.c: In function ‘kvm_reopen_db’:
kvm.c:1214:20: error: ‘DBTXN_ROAR’ undeclared (first use in this function)
kvm.c:1214:20: note: each undeclared identifier is reported only once 
for each function it appears in
kvm.c:1214:31: error: expected ‘)’ before ‘kdb’
kvm.c:1214:31: error: too few arguments to function ‘db->open’
kvm.c:1182:12: warning: variable ‘open_mode’ set but not used 
[-Wunused-but-set-variable]
kvm.c:1182:6: warning: variable ‘type’ set but not used 
[-Wunused-but-set-variable]
kvm.c: In function ‘kvm_get_db’:
kvm.c:1399:35: error: ‘DBTXN’ undeclared (first use in this function)
kvm.c:1399:3: error: too few arguments to function ‘kdb->db->get’
kvm.c: In function ‘kvm_put_db’:
kvm.c:1478:36: error: ‘DBTXN’ undeclared (first use in this function)
kvm.c:1478:4: error: too few arguments to function ‘kdb->db->put’
kvm.c: In function ‘kvm_remove_db’:
kvm.c:1523:34: error: ‘DBTXN’ undeclared (first use in this function)
kvm.c:1523:4: error: too few arguments to function ‘kdb->db->del’
kvm.c: In function ‘kvm_truncate_db’:
kvm.c:1564:39: error: ‘DBTXN’ undeclared (first use in this function)
kvm.c:1564:4: error: too few arguments to function ‘kdb->db->truncate’
kvm.c: In function ‘kvm_walk_db’:
kvm.c:1650:33: error: ‘DBTXN’ undeclared (first use in this function)
kvm.c:1650:4: error: too few arguments to function ‘kdb->db->cursor’
make[1]: *** [kvm.o] Error 1
make[1]: Leaving directory `/home/ben/tmp/com/snert/src/lib/type'
/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] Error 2

Lists Index Date Thread Search