Berkeley DB
Guy Harrison
swamp-dog at ntlworld.com
Sat Apr 26 11:10:57 BST 2003
Hi Folks,
CVS 'configure' fails on FreeBSD. I'm no good with autotools but did
discover if I patched it thus...
--- kdevelop/kdevelop.m4.in.ORIGINAL Sat Apr 26 09:47:10 2003
+++ kdevelop/kdevelop.m4.in Sat Apr 26 09:50:22 2003
@@ -416,10 +416,10 @@
save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $X_CFLAGS -ldb"
+ CXXFLAGS="$CXXFLAGS $X_CFLAGS -ldb3"
AC_TRY_LINK([
- #include <db.h>
+ #include <db3/db.h>
],
[
#if DB_VERSION_MAJOR < 3
@@ -432,7 +432,7 @@
ac_cv_bdb=yes_3or40,
AC_TRY_LINK([
- #include <db.h>
+ #include <db3/db.h>
],
[
#if DB_VERSION_MAJOR < 3
...it would. Had to add -I/usr/local/include/db3 to CPPFLAGS with
'configure' as well but that's no matter.
I couldn't figure out where lib/catalog/Makefile was getting its "-ldb"
from so hacked that Makefile manually. :-|
The arrangement I have here is (in /usr/local/...)
db2/db.h
libdb2.a libdb2.so etc
db3/db.h
libdb3.a libdb3.so etc
db4/db.h
libdb4.a libdb4.so etc
db.h appears to be part of the system (/usr/include) and iirc is sat
inside something fundamental like libc and is actually db2 - sure I
read that snippet somewhere.
Hopefully it helps someone! ;-)
--
Guy Harrison
swamp-dog at ntlworld.com
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list