make failed with FreeBSD 4.8-R & db41
Gea-Suan Lin
gslin at ccca.nctu.edu.tw
Tue Aug 12 14:02:27 UTC 2003
I have installed BerkeleyDB 4.1 from ports and got some problem.
news at Group [~/inn-STABLE-20030810] (21:50) make
cd include && make all
cd lib && make all
cd storage && make library
gcc -O2 -pipe -I../include -I. -I/usr/local/include -c -o ovdb/ovdb.o ovdb/ovdb.c
In file included from ovdb/ovdb.c:95:
ovdb/ovdb-private.h:11: #error "Need BerkeleyDB 2.6.x, 2.7.x, 3.x or 4.x"
In file included from ovdb/ovdb.c:95:
ovdb/ovdb-private.h:88: syntax error before `*'
ovdb/ovdb-private.h:88: warning: data definition has no type or storage class
ovdb/ovdb-private.h:98: syntax error before `0x80000000'
ovdb/ovdb.c:150: syntax error before `*'
ovdb/ovdb.c:150: warning: data definition has no type or storage class
:
:
:
*** Error code 1
Stop in /vinum0/inn-STABLE-20030810/storage.
*** Error code 1
Stop in /vinum0/inn-STABLE-20030810.
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 ?
--
* Gea-Suan Lin (public key: http://ccreader.nctu.edu.tw/~gslin/key.txt)
* If you cannot convince them, confuse them. -- Harry S Truman
More information about the inn-workers
mailing list