[milters] Archive

Lists Index Date Thread Search

Article: 1469
From: Donald Wheaton
Date: 2007-03-03 00:02:23 -0500
Subject: Re: Can't build libsnert 1.63.892

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

I had the same problem as Christopher Lindsey with Red Hat 9 and Berkeley DB
4.0.  I did not have the problem on a similarly configured Fedora Core 1
machine with Berkeley DB 4.1, so I upgraded the RH9 machine with Berkeley DB
4.1, re-configured libsnert, but the build errors were still present.

One-by-one I tried Berkeley DB 4.2, 4.3 and finally 4.4 before the build
errors for libsnert were fixed.  I left all versions of Berkeley DB
installed.

I had an additional problem when I tried to start milter-gris:
error while loading shared libraries: libdb-4.4.so: cannot open shared
object file: No such file or directory

This error was fixed by linking the updated Berkeley library:
cd /lib
ln -s /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so

> From: Anthony Howe <achowe@snert.com>
> Reply-To: <milters@milter.info>
> Date: Fri, 02 Mar 2007 11:00:29 +0100
> To: <milters@milter.info>
> Subject: [milters] Re: Can't build libsnert 1.63.892
> 
> Removal...........: milters-request@milter.info?subject=remove
> More information..: http://www.milter.info/#Support
> --------------------------------------------------------
> 
> Christopher Lindsey wrote:
>>       LibSnert/1.63.892
>>       Copyright 1996, 2007 by Anthony Howe. All rights reserved.
>> 
>>         Platform............: Linux gcc
>>         Berkeley DB.........: 4.0 -ldb-4.0
> 
> Try upgrading to Berkeley DB 4.4.
> 
>>       kvm.c:1316: warning: passing arg 2 of pointer to function from
>> incompatible pointer type
>>       kvm.c:1316: too few arguments to function
> 
> Hmm. What is the BDB 4.0 patch level? Some where between 4.0 and 4.1 a
> transaction structure pointer was added. The libsnert berkeley_db.h
> defines this.
> 
> #if   DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
> # define DBTXN          (DB_TXN *) 0,
> #elif DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0
> # define DBTXN
> #elif DB_VERSION_MAJOR == 3
> # define DBTXN
> 
> Do you have more than one version of Berkeley DB installed?
> 
> -- 
> Anthony C Howe          Skype: SirWumpus                    SnertSoft
> +33 6 11 89 73 78         AIM: SirWumpus    Sendmail Milter Solutions
> http://www.snert.com/     ICQ:
7116561      http://www.snertsoft.com/



Lists Index Date Thread Search