OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Berkeley DB 3.x
From: Michael Tokarev (mjttls.msk.ru)
Date: Fri Aug 11 2000 - 10:46:51 CDT


Ralf Hildebrandt wrote:
>
> I've done the unspeakable:
>
> I installed Berkeley-DB 3.x (the latest). I tried rebuilding Postfix-Snapshot-20000531 with:
>
[]
> gcc -DHAS_DB -I/users2/local/include -DPATH_DB_H='<db_185.h>' -g -O -I. -I../include -DHPUX10 -o error error.o ../lib/libmaster.a ../lib/libglobal.a
> ../lib/libutil.a /users2/local/lib/libdb.a
> /usr/ccs/bin/ld: Unsatisfied symbols:
> dbopen (code)
> dbm_pagfno (code)
> dbm_dirfno (code)
[]
> I'm not sure why dbm_* comes into play. I built Berkeley-DB-3.x using the
> 1.85 compatibility mode, of course.

That's strange... Maybe it finds db_185.h somewhere else?
You used libdb.a from /users2/local/lib/, maybe you real db_185 is in /users2/local/include?

For me, it is working like a charm with all 3.x releases (I put db_185.h into
/usr/include/db3, and used -DPATH_DB_H=<db3/db_185.h>). No problems, and it has
no references to dbm_{pag,dir}info. Only to __dbopen, (dbopen is redefined as __dbopen
in that db_185.h header).

Regards,
 Michael.