Problem compiling krb5 1.2.7-beta2
tlyu at MIT.EDU
Sun Nov 10 22:59:00 EST 2002
>>>>> "pierre" == Pierre <pierre at epinetworx.com> writes:
pierre> I try to compile krb5-1.2.7-beta2 on my GNU/Linux system with gcc-3.2
pierre> there was no problem with the configure, but for the make I got this :
pierre> making all in lib/kdb...
pierre> gmake: Entering directory `/tmp/krb5-1.2.7-beta2/src/lib/kdb'
pierre> gcc -s -DHAVE_UNISTD_H=1 -DHAVE_SRAND48=1 -DHAVE_SRAND=1
pierre> -DHAVE_SRANDOM=1 -DHAVE_UMASK=1 -I/usr/local/BerkeleyDB.4.1/include
How are you getting the "-I/usr/local/BerkeleyDB.4.1/include" into
your compile lines?
pierre> -DKRB5_KRB4_COMPAT -I../../include -I./../../include
pierre> -I../../include/krb5 -I./../../include/krb5 -DKRB5_KRB4_COMPAT
pierre> -I../../include -I./../../include -I../../include/krb5
pierre> -I./../../include/krb5 -c kdb_db2.c
pierre> kdb_db2.c: In function `k5db2_dbopen':
pierre> kdb_db2.c:207: `BTREEINFO' undeclared (first use in this function)
pierre> kdb_db2.c:207: (Each undeclared identifier is reported only once
pierre> kdb_db2.c:207: for each function it appears in.)
pierre> kdb_db2.c:207: parse error before "bti"
pierre> kdb_db2.c:208: `HASHINFO' undeclared (first use in this function)
It seems likely that you're somehow attempting to use a more recent
version of Berkeley DB to build krb5. We don't recommend this for the
1.2.x series, though we might support it in a future release. Unless
you have a really good reason not to, and are willing to put in the
work yourself to make it build, I'd recommend sticking to the special
version of Berkeley DB that is included in the krb5 source tree.
More information about the krbdev