OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: compile issue with 2.1.4

From: m (mtelerama.com)
Date: Thu Sep 02 2004 - 15:57:14 CDT


> From: Wietse Venema <wietseporcupine.org>
> Date: Thu, 2 Sep 2004 16:27:10 -0400 (EDT)
> To: m <mtelerama.com>
> Cc: Postfix users <postfix-userspostfix.org>
> Subject: Re: compile issue with 2.1.4
>
> m:
> [ Charset ISO-8859-1 unsupported, converting... ]
>>> m:
>>>> ../../lib/libutil.a(dict_db.o): In function `dict_db_open':
>>>> /usr/local/warez/postfix-2.1.4/src/util/dict_db.c:468: undefined reference
>>>> to `db_version'
>>>> /usr/local/warez/postfix-2.1.4/src/util/dict_db.c:543: undefined reference
>>>> to `db_create'
>>>> *** Error code 1
>>>
>>>
>>> You're mixing Berkeley DB versions. Specifically, you are compiling
>>> with a db.h file from a newer release than the libdb.so library.
>>>
>>>
>>> ????????Wietse
>>
>> While that may seem to be the problem, I've started the install on a
>> brand-new, clean machine (under FreeBSD 5.2.1/RELEASE).
>>
>> I've only installed ONE version of BerkeleyDB, that being 4.2.52, which I
>> just downloaded from Sleepycat.
>
> Like I wrote, you are mixing Berkeley DB versions. As documented
> at http://www.postfix.org/, this is a sure recipe for trouble.
>
>> In order to make sure I didn't manage to royally screw up a fresh install, I
>> did go to the trouble to wipe the drive and start my BSD install from
>> scratch again -- probably overkill -- but still having the same issue.
>
> Of course. Didn't you know that FreeBSD already has Berkeley DB?
> I routinely built Postfix on FreeBSD - it is the primary Postfix
> development platform.
>
> Wietse

Yes. Which is why I specified the various libs and includes in my make
makefiles line:

make makefiles CCARGS="-DHAS_MYSQL -I/usr/local/include/mysql
 -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include"
 AUXLIBS="-L/usr/local/lib/mysql -lmysqlclient -lz -lm -L/usr/local/lib
 -lsasl2 -L/usr/local/bdb/lib"

Adding "-ldb" to the end of that solved the problem.

M.