After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 51672 - Cant compile with Berkeley db3 installed on machine.
Cant compile with Berkeley db3 installed on machine.
Status: RESOLVED FIXED
Product: gnome-libs
Classification: Deprecated
Component: libgnome
1.2.x
Other Linux
: Normal normal
: 1.4.1
Assigned To: gnome-libs Maintainers
gnome-libs Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-03-05 06:39 UTC by Dennis Björklund
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dennis Björklund 2001-03-05 06:39:41 UTC
When I have db3-devel installed I can not build gnome-libs-1.2.12 from
gnome 1.4 beta2. In the same time I have also db1-devel and db2-devel
installed. It's possible to have them all instaled since the use different
filenames. If I remove db3-devel I can compile it. I'll include all the
files that the three differnt devel packages installes. As you can see they
all have different names and should be possible to have installed at the
same time. Yet it seems like gnome-libs picks up on db3 in it's ./configure
and then does not work with db3. I'll also include the compile failure and
the configure output.

Does it matter which of db1 and db2 (db1.85) it picks up? I know next to
nothing about these Berkeley db's.

db1-devel:

/usr/include/db1
/usr/include/db1/db.h
/usr/include/db1/mpool.h
/usr/include/db1/ndbm.h
/usr/lib/libdb1.a
/usr/lib/libdb1.so

db2-devel:

/usr/bin/db2_archive
/usr/bin/db2_checkpoint
/usr/bin/db2_deadlock
/usr/bin/db2_dump
/usr/bin/db2_load
/usr/bin/db2_printlog
/usr/bin/db2_recover
/usr/bin/db2_stat
/usr/include/db2/db.h
/usr/include/db2/db_185.h
/usr/lib/libdb2.a
/usr/lib/libdb2.so
/usr/lib/libndbm.a
/usr/lib/libndbm.so

db3-devel:

/lib/libdb.so
/usr/include/db.h
/usr/include/db3/db.h
/usr/include/db3/db_185.h
/usr/include/db3/db_cxx.h
/usr/lib/libdb-3.1.a
/usr/lib/libdb-3.1.la
/usr/lib/libdb-3.1.so
/usr/lib/libdb_cxx-3.1.a
/usr/lib/libdb_cxx-3.1.la
/usr/lib/libdb_cxx.so

And here is the failing compilation:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H
-I../support -I../support -I../intl -I../intl -I/usr/local/include
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/usr/local/lib\"
-DGNOMEDATADIR=\"/usr/local/share\" -DGNOMEBINDIR=\"/usr/local/bin\"
-DGNOMELOCALSTATEDIR=\"/usr/local/var\"
-DGNOMELOCALEDIR=\"/usr/local/share/locale\"
-DGNOMESYSCONFDIR=\"/usr/local/etc\" -DVERSION=\"1.2.12\"
-DG_LOG_DOMAIN=\"Gnome\" -I/usr/lib/glib/include -I/usr/X11R6/include -g
-O2 -Wall -Wunused -c gnome-metadata.c  -fPIC -DPIC -o .libs/gnome-metadata.lo
gnome-metadata.c: In function `init':
gnome-metadata.c:176: warning: implicit declaration of function `dbopen'
gnome-metadata.c:177: warning: assignment makes pointer from integer
without a cast
gnome-metadata.c: In function `metadata_set':
gnome-metadata.c:302: warning: passing arg 2 of pointer to function from
incompatible pointer type
gnome-metadata.c:302: too few arguments to function
gnome-metadata.c:329: warning: passing arg 2 of pointer to function from
incompatible pointer type
gnome-metadata.c:329: too few arguments to function

And here is the part of the output from ./configure:

checking for dbopen... no
checking for dbopen in -ldb... no
checking for dbopen in -ldb1... yes
checking for db.h... yes
checking for db_185.h... no
checking for db1/db.h... yes
Comment 1 Kjartan Maraas 2001-06-15 12:35:05 UTC
Can you try passing --enable-prefer-db1 to configure or autogen.sh if
compiling from CVS?
Comment 2 Kjartan Maraas 2002-01-27 00:35:53 UTC
Or you could try the latest version which should be much better in
handling different db versions.
Comment 3 Dennis Björklund 2002-01-27 06:58:49 UTC
Yes, it works with the newer versions.