On Mon, Oct 09, 2000 at 05:19:02PM -0400, Sam Varshavchik wrote:
> On Mon, 9 Oct 2000, Dan Melomedman wrote:
> 
> > I am getting the following error while compiling 1.0 on RH 6.2 with
> > db3-3.1.17-1 RPMs installed:
> > 
> > c++  -g -O2  -o testbdb  testbdb.o libbdbobj.a -ldb 
> > libbdbobj.a(bdbobj.o): In function `bdbobj_open':
> > /home/dan/sqwebmail/bdbobj/bdbobj.c:114: undefined reference to
> > `db_create'
> > collect2: ld returned 1 exit status
> > make: *** [testbdb] Error 1
> > 
> > What am I doing wrong, or what did I screw up by installing V. 3 RPMs, I
> > thought the new version was supported?
> 
> Probably.  -ldb probably still gets you DB V1 libraries, but the header
> files specify the V3 function.
> 
> 
> 
> -- 
> Sam

What happened, is the RPMs overwrite /usr/include/db.h. However, the new
symbol should be -ldb-3.1. This is not taken care of by configure
though. Also the 3.1 puts its header files to /usr/include/db3, so the
configure could take care of it in the future.


Reply via email to