Hi,
just tried a standard build of recent snapshot, and get this:
making all in crypto/md2...
make[2]: Entering directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto/md2'
gcc -I.. -I../.. -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS
-DDSO_WIN32 -mno-cygwin -DL_ENDIAN -DOPENSSL_NO_CAPIENG
-fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM
-DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -c -o
md2_dgst.o md2_dgst.c
In file included from md2_dgst.c:62:
../../include/openssl/md2.h:64:2: #error MD2 is disabled.
make[2]: *** [md2_dgst.o] Error 1
make[2]: Leaving directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto/md2'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto'
make: *** [build_crypto] Error 1
I would tend to fix it this way:
--- crypto/md2/md2_dgst.c.orig 2007-08-31 10:12:36 +0000
+++ crypto/md2/md2_dgst.c 2009-10-17 13:48:37 +0000
@@ -56,6 +56,9 @@
* [including the GNU Public Licence.]
*/
+#include <openssl/opensslconf.h> /* OPENSSL_NO_MD2 */
+#ifndef OPENSSL_NO_MD2
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -224,4 +227,5 @@
memset((char *)&c,0,sizeof(c));
return 1;
}
+#endif /* OPENSSL_NO_MD2 */
#######################################################################
--- crypto/md2/md2_one.c.orig 2005-04-14 22:58:42 +0000
+++ crypto/md2/md2_one.c 2009-10-17 13:48:30 +0000
@@ -56,6 +56,9 @@
* [including the GNU Public Licence.]
*/
+#include <openssl/opensslconf.h> /* OPENSSL_NO_MD2 */
+#ifndef OPENSSL_NO_MD2
+
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/md2.h>
@@ -92,3 +95,5 @@
OPENSSL_cleanse(&c,sizeof(c)); /* Security consideration */
return(md);
}
+#endif /* OPENSSL_NO_MD2 */
+
but I've not yet looked up how other platforms do it; I guess config
should skip these source files when it builds the makefiles?
Please advice; the next break occures with RC5:
make[2]: Entering directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto/rc5'
gcc -I.. -I../.. -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS
-DDSO_WIN32 -mno-cygwin -DL_ENDIAN -DOPENSSL_NO_CAPIENG
-fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM
-DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -c -o
rc5_skey.o rc5_skey.c
In file included from rc5_skey.c:59:
../../include/openssl/rc5.h:69:2: #error RC5 is disabled.
make[2]: *** [rc5_skey.o] Error 1
make[2]: Leaving directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto/rc5'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/projects/test/openssl-1.0.0-stable-SNAP-20091017/crypto'
make: *** [build_crypto] Error 1
thanks, Guenter.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majord...@openssl.org