[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
0.3d on FreeBSD 4.2-Stable
I've been trying to get heimdal 0.3d to build on FreeBSD 4.2-Stable.
It fails with:
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -I/usr/local/include -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -DINET6 -g -O2 -c acl.c -o acl.o
In file included from acl.c:34:
krb5_locl.h:116: rc4.h: No such file or directory
though configure detects rc4 in FreeBSD's -lcrypto.
To get Heimdal to build:
a) cd /usr/include ; ln -s openssl/rc.4
b) env LIBS="-lmd -lcrypto" ./configure --disable-otp
note: you may be able to avoid -lmd as -lcrypto
should have variants of -lmd routines.
c) hack config.status
s/,-lcrypto,/,,/
s/,-rpath -L -lcrypto,/,,/
d) ./config.status
Apply:
--- /heimdal-0.3d/lib/krb5/crypto.c Thu Dec 7 21:01:31 2000
+++ crypto.c Thu Dec 28 18:46:26 2000
@@ -1045,9 +1045,15 @@
{
SHA1_CTX m;
+#ifdef HAVE_SHA1_INIT
+ SHA1_Init(&m);
+ SHA1_Update(&m, data, len);
+ SHA1_Final(C->checksum.data, &m);
+#else
SHA1Init(&m);
SHA1Update(&m, data, len);
SHA1Final(C->checksum.data, &m);
+#endif
}
(note that otp code needs similar work)
This is likely not the best way to resolve the build issues...
Kurt