make failed with FreeBSD 4.8-R & db41
Russ Allbery
rra at stanford.edu
Tue Aug 12 14:58:13 UTC 2003
Gea-Suan Lin <gslin at ccca.nctu.edu.tw> writes:
> I have installed BerkeleyDB 4.1 from ports and got some problem.
Why is it that every different packaging of BerkeleyDB puts it in a
completely different location?
> I found it's because some settings in Makefile.global aren't correct:
> BERKELEY_DB_CFLAGS = -I/usr/local/include
> EXTSTORAGELIBS = -ldb
> It should be:
> BERKELEY_DB_CFLAGS = -I/usr/local/include/db41
> EXTSTORAGELIBS = -ldb41
> Does anybody have good idea to solve this ?
You can edit Makefile.global after you run configure. That's the
simplest, but sort of annoying.
Alternately, you could apply the following patch and run configure:
--- configure.in 2003/02/01 21:42:22 1.244
+++ configure.in 2003/08/12 14:59:57 1.244.2.1
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.244 2003/02/01 21:42:22 rra Exp $
+dnl $Id: configure.in,v 1.244.2.1 2003/08/12 14:59:57 rra Exp $
dnl
dnl Please try to follow GNU conventions and autoconf manual conventions as
dnl much as possible in this file so that any macros we develop can be easily
@@ -34,7 +34,7 @@ dnl bother checking for it. Compile-tim
dnl useful information for someone debugging a problem than configure-time
dnl errors.
-AC_REVISION($Revision: 1.244 $)dnl
+AC_REVISION($Revision: 1.244.2.1 $)dnl
AC_PREREQ(2.13)
AC_INIT(Makefile.global.in)
AC_CONFIG_AUX_DIR(support)
@@ -377,7 +377,7 @@ else
done
fi
if test x"$BERKELEY_DB_DIR" = xyes ; then
- for v in db4 db3 db2 ; do
+ for v in db41 db4 db3 db2 ; do
if test -d "/usr/local/include/$v" ; then
BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
@@ -387,7 +387,7 @@ else
fi
done
if test x"$BERKELEY_DB_LIB" = x ; then
- for v in db4 db3 db2 ; do
+ for v in db41 db4 db3 db2 ; do
if test -d "/usr/include/$v" ; then
BERKELEY_DB_CFLAGS="-I/usr/include/$v"
BERKELEY_DB_LIB="-l$v"
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list