On Thu, Jul 15, 1999 at 09:47:41AM +0800, H K Hung wrote:
> Here is the error message that I dump from the screen:
> ------------------------------------------------------
> machine# make
> making all in crypto...
> make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto'
> gcc -I. -I../include -DTHREADS -D_REENTRANT -O3 -fomit-frame-pointer
> -mcpu=ultrasparc -Wall -DB_ENDIAN -DULTRASPARC -DMD5_ASM -DCFLAGS="\"gcc
> -DTHREADS -D_REENTRANT -O3 -fomit-frame-pointer -mcpu=ultrasparc -Wall
> -DB_ENDIAN -DULTRASPARC -DMD5_ASM\"" -DPLATFORM="\"solaris-usparc-gcc\""
> -c cryptlib.c -o cryptlib.o
> cryptlib.c:0: unterminated string or character constant
> cryptlib.c:0: possible real start of unterminated constant
> cryptlib.c:0: malformed option `-D MD5_ASM"'
> make[1]: *** [cryptlib.o] Error 1
> make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto'
> make: *** [all] Error 1
> ------------------------------------------------------------------------
I see. What is happening is that the Makefile tries to define
a macro CFLAGS so that, e.g., "openssl version" can tell you with
which options the library was built. Apparently the "make", the
shell or the compiler on your system is broken so that the one
long argument
-DCFLAGS="gcc -DTHREADS -D_REENTRANT -O3 -fomit-frame-pointer -mcpu=ultrasparc
-Wall -DB_ENDIAN -DULTRASPARC -DMD5_ASM"
(that is how it should look like after the first round of quote processing)
is broken into two arguments
-DCFLAGS="gcc -DTHREADS -D_REENTRANT -O3 -fomit-frame-pointer -mcpu=ultrasparc
-Wall -DB_ENDIAN -DULTRASPARC
and
-DMD5_ASM"
which cannot work.
As a workaround, try changing crypto/Makefile.ssl as follows:
--- Makefile.ssl 1999/06/04 21:35:35 1.44
+++ Makefile.ssl 1999/07/15 19:53:56
@@ -20,7 +20,7 @@
PEX_LIBS=
EX_LIBS=
-CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS="\"$(CC) $(CFLAG)\"" -DPLATFORM="\"$(PLATFORM)\""
+CFLAGS= $(INCLUDE) $(CFLAG)
LIBS=
@@ -51,6 +51,8 @@
date.h: ../Makefile.ssl
echo "#define DATE \"`date`\"" >date.h
+ echo "#define CFLAGS \"$(CC) $(CFLAG)\"" >>date.h
+ echo "#define PLATFORM \"$(PLATFORM)\"" >>date.h
subdirs:
@for i in $(SDIRS) ;\
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]