db1 vs. db2
James Antill
nevyn@and.org
Thu Apr 1 00:00:00 GMT 1999
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>
More information about the Libc-alpha
mailing list