Compiling Mixmaster 2.9 beta under FreeBSD

Scott Renfro scott at renfro.org
Sat Sep 15 01:43:48 PDT 2001


On Fri, Sep 14, 2001 at 03:17:42PM -0700, Greg Broiles wrote:
> 
> I suspect that the OpenBSD fix will be similar, but it may take some
> time to track it all down.

The following seems to work on OpenBSD-2.8; 2.9 shouldn't be terribly
different.

  cd /usr/src/lib/libssl/src/crypto/objects
  perl obj_dat.pl objects.h obj_dat.h
  cd /usr/src/lib/libssl/crypto
  patch < ~/libcrypto-makefile.diff
  make
  make install
  cd
  tar -zxvf mix-2.9b23.tar.gz
  patch < ~/mix-openssl-2.8.diff
  cd Mix-2.9beta23
  ./Install

The patch files are included below.

cheers,
--Scott

-- 
Scott Renfro <scott at renfro.org>


Here's libcrypto-makefile.diff:

--- Makefile.orig	Fri Sep 14 17:35:34 2001
+++ Makefile	Fri Sep 14 17:35:44 2001
@@ -24,7 +24,7 @@
 .endif
 .endif 
 
-CFLAGS+= -DNO_IDEA -DTERMIOS -DANSI_SOURCE -DNO_ERR -DNO_WINDOWS_BRAINDEATH
+CFLAGS+= -DTERMIOS -DANSI_SOURCE -DNO_ERR -DNO_WINDOWS_BRAINDEATH
 CFLAGS+= -DNO_RC5
 CFLAGS+= -I${.CURDIR}/../${SSLEAYDIST}
 CFLAGS+= -I${LCRYPTO_SRC}
@@ -58,9 +58,9 @@
 #CFLAGS+= -I${LCRYPTO_SRC}/rc5
 #SRCS+=	rc5_skey.c rc5_ecb.c rc5cfb64.c rc5cfb64.c 	
 #SRCS+=	rc5ofb64.c rc5_enc.c
-#CFLAGS+= -I${LCRYPTO_SRC}/idea
-#SRCS+=	i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c		
-#SRCS+=	i_skey.c							
+CFLAGS+= -I${LCRYPTO_SRC}/idea
+SRCS+=	i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c		
+SRCS+=	i_skey.c							
 CFLAGS+= -I${LCRYPTO_SRC}/bf
 SRCS+=	bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c bf_enc.c		
 CFLAGS+= -I${LCRYPTO_SRC}/cast

And here's mix-openssl-2.8.diff:

diff -ru Mix-2.9beta23/Install Mix-2.9beta23.sgr/Install
--- Mix-2.9beta23/Install	Thu Mar 16 08:34:02 2000
+++ Mix-2.9beta23.sgr/Install	Fri Sep 14 18:20:41 2001
@@ -382,8 +382,8 @@
  fi
 
  opensslinfo="Please get OpenSSL 0.9.4 from http://www.openssl.org/"
- LIBDIR=/usr/local/ssl/lib
- INCDIR="/usr/include /usr/include/ssl /usr/lib/ssl/include /usr/local/ssl/include"
+ LIBDIR=/usr/lib
+ INCDIR="/usr/include"
  SRCDIR="openssl*"
 
  if [ "$system" = win32 ]





More information about the cypherpunks-legacy mailing list