This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
db1 vs. db2
- To: libc-alpha@cygnus.com
- Subject: db1 vs. db2
- From: James Antill <nevyn@and.org>
- Date: 02 Feb 1999 16:48:21 +0000
- Reply-To: <nevyn@and.org>
I've just upgraded from glibc-2.0.7-pre something to glibc-2.0.112
and noticed that there are now..
db.h
db1/db.h
and...
libdb
libdb1
Now compiling something that used to work against db.h/libdb now
fails with...
gcc -O -o exim_dbmbuild exim_dbmbuild.c \
os.o -lnsl -ldb1 -lwrap
/tmp/ccp3xvGN.o: In function `main':
/tmp/ccp3xvGN.o(.text+0x1ee): undefined reference to `db_open'
collect2: ld returned 1 exit status
Changing the include <db.h> to include <db1/db.h> (or adding
-I/usr/include/db1) seems to fix the problem, but what I'm wondering
is what the libdb1 is for.
The above program (exim-2.11 GPL'd) seems to work linked with either,
but the sizes are very different and the libdb1 seems to have the same
kinds of symbols that the 2.0.7 libdb had.
--
James Antill -- james@and.org
There's something about free software which seems to attract a lot of people
who define "stable" as "didn't wake up in bed with an axe again this
morning" :-) -- Jordan K. Hubbard <jkh@time.cdrom.com>
- Follow-Ups:
- Re: db1 vs. db2
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>