Dear Technical Experts,

I would like to install the OpenSSL to our Apache Server.
However, when I tried to build the OpenSSL by "make", I 
faced the follow problem :
-----------------------------
gcc -I ......
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
-------------------------------

Attach please find an output file from running 'config'.
Please advise what the problem is?

Thanks,
H K Hung
HKUST
(ps. OS is Solaris 2.6, Compiler is gcc 2.8)
bmlwk03# ./config --prefix=/opt/local/ssl --openssldir=/opt/local/ssl/openssl      
Operating system: sun4u-sun-solaris2
gcc version 2.8.x
Configuring for solaris-usparc-gcc
IsWindows=0
CC            =gcc
CFLAG         =-DTHREADS -D_REENTRANT -O3 -fomit-frame-pointer -mcpu=ultrasparc -Wall 
-DB_ENDIAN -DULTRASPARC -DMD5_ASM
EX_LIBS       =-lsocket -lnsl
BN_ASM        =asm/sparcv8plus-gcc.o
DES_ENC       =des_enc.o fcrypt_b.o
BF_ENC        =bf_enc.o
CAST_ENC      =c_enc.o
RC4_ENC       =rc4_enc.o
RC5_ENC       =rc5_enc.o
MD5_OBJ_ASM   =asm/md5-sparcv8plus.o
SHA1_OBJ_ASM  =
RMD160_OBJ_ASM=
PROCESSOR     =
RANLIB        =/usr/ccs/bin/ranlib
PERL          =/usr/local/bin/perl5
THIRTY_TWO_BIT mode
DES_UNROLL used
BN_LLONG mode
RC4 uses uchar
BF_PTR used
Makefile => Makefile.ssl
e_os.h => include/openssl/e_os.h
e_os2.h => include/openssl/e_os2.h
making links in crypto...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto'
Makefile => Makefile.ssl
crypto.h => ../include/openssl/crypto.h
tmdiff.h => ../include/openssl/tmdiff.h
opensslv.h => ../include/openssl/opensslv.h
opensslconf.h => ../include/openssl/opensslconf.h
Makefile => Makefile.ssl
making links in crypto/md2...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/md2'
Makefile => Makefile.ssl
md2.h => ../../include/openssl/md2.h
md2test.c => ../../test/md2test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/md2'
making links in crypto/md5...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/md5'
Makefile => Makefile.ssl
md5.h => ../../include/openssl/md5.h
md5test.c => ../../test/md5test.c
md5.c => ../../apps/md5.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/md5'
making links in crypto/sha...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/sha'
Makefile => Makefile.ssl
sha.h => ../../include/openssl/sha.h
shatest.c => ../../test/shatest.c
sha1test.c => ../../test/sha1test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/sha'
making links in crypto/mdc2...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/mdc2'
Makefile => Makefile.ssl
mdc2.h => ../../include/openssl/mdc2.h
mdc2test.c => ../../test/mdc2test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/mdc2'
making links in crypto/hmac...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/hmac'
Makefile => Makefile.ssl
hmac.h => ../../include/openssl/hmac.h
hmactest.c => ../../test/hmactest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/hmac'
making links in crypto/ripemd...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/ripemd'
Makefile => Makefile.ssl
ripemd.h => ../../include/openssl/ripemd.h
rmdtest.c => ../../test/rmdtest.c
rmd160.c => ../../apps/rmd160.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/ripemd'
making links in crypto/des...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/des'
Makefile => Makefile.ssl
asm/perlasm => ../../perlasm
des.h => ../../include/openssl/des.h
destest.c => ../../test/destest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/des'
making links in crypto/rc2...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc2'
Makefile => Makefile.ssl
rc2.h => ../../include/openssl/rc2.h
rc2test.c => ../../test/rc2test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc2'
making links in crypto/rc4...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc4'
Makefile => Makefile.ssl
rc4.h => ../../include/openssl/rc4.h
rc4test.c => ../../test/rc4test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc4'
making links in crypto/rc5...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc5'
Makefile => Makefile.ssl
rc5.h => ../../include/openssl/rc5.h
rc5test.c => ../../test/rc5test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/rc5'
making links in crypto/idea...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/idea'
Makefile => Makefile.ssl
idea.h => ../../include/openssl/idea.h
ideatest.c => ../../test/ideatest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/idea'
making links in crypto/bf...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/bf'
Makefile => Makefile.ssl
blowfish.h => ../../include/openssl/blowfish.h
bftest.c => ../../test/bftest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/bf'
making links in crypto/cast...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/cast'
Makefile => Makefile.ssl
cast.h => ../../include/openssl/cast.h
casttest.c => ../../test/casttest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/cast'
making links in crypto/bn...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/bn'
Makefile => Makefile.ssl
bn.h => ../../include/openssl/bn.h
bntest.c => ../../test/bntest.c
exptest.c => ../../test/exptest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/bn'
making links in crypto/rsa...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/rsa'
Makefile => Makefile.ssl
rsa.h => ../../include/openssl/rsa.h
rsa_oaep_test.c => ../../test/rsa_oaep_test.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/rsa'
making links in crypto/dsa...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/dsa'
Makefile => Makefile.ssl
dsa.h => ../../include/openssl/dsa.h
dsatest.c => ../../test/dsatest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/dsa'
making links in crypto/dh...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/dh'
Makefile => Makefile.ssl
dh.h => ../../include/openssl/dh.h
dhtest.c => ../../test/dhtest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/dh'
making links in crypto/buffer...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/buffer'
Makefile => Makefile.ssl
buffer.h => ../../include/openssl/buffer.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/buffer'
making links in crypto/bio...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/bio'
Makefile => Makefile.ssl
bio.h => ../../include/openssl/bio.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/bio'
making links in crypto/stack...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/stack'
Makefile => Makefile.ssl
stack.h => ../../include/openssl/stack.h
safestack.h => ../../include/openssl/safestack.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/stack'
making links in crypto/lhash...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/lhash'
Makefile => Makefile.ssl
lhash.h => ../../include/openssl/lhash.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/lhash'
making links in crypto/rand...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/rand'
Makefile => Makefile.ssl
rand.h => ../../include/openssl/rand.h
randtest.c => ../../test/randtest.c
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/rand'
making links in crypto/err...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/err'
Makefile => Makefile.ssl
err.h => ../../include/openssl/err.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/err'
making links in crypto/objects...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/objects'
Makefile => Makefile.ssl
objects.h => ../../include/openssl/objects.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/objects'
making links in crypto/evp...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/evp'
Makefile => Makefile.ssl
evp.h => ../../include/openssl/evp.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/evp'
making links in crypto/asn1...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/asn1'
Makefile => Makefile.ssl
asn1.h => ../../include/openssl/asn1.h
asn1_mac.h => ../../include/openssl/asn1_mac.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/asn1'
making links in crypto/pem...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/pem'
Makefile => Makefile.ssl
pem.h => ../../include/openssl/pem.h
pem2.h => ../../include/openssl/pem2.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/pem'
making links in crypto/x509...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/x509'
Makefile => Makefile.ssl
x509.h => ../../include/openssl/x509.h
x509_vfy.h => ../../include/openssl/x509_vfy.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/x509'
making links in crypto/x509v3...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/x509v3'
Makefile => Makefile.ssl
x509v3.h => ../../include/openssl/x509v3.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/x509v3'
making links in crypto/conf...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/conf'
Makefile => Makefile.ssl
conf.h => ../../include/openssl/conf.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/conf'
making links in crypto/txt_db...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/txt_db'
Makefile => Makefile.ssl
txt_db.h => ../../include/openssl/txt_db.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/txt_db'
making links in crypto/pkcs7...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/pkcs7'
Makefile => Makefile.ssl
pkcs7.h => ../../include/openssl/pkcs7.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/pkcs7'
making links in crypto/pkcs12...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/pkcs12'
Makefile => Makefile.ssl
pkcs12.h => ../../include/openssl/pkcs12.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/pkcs12'
making links in crypto/comp...
make[2]: Entering directory `/opt/local/ssl/openssl-0.9.3a/crypto/comp'
Makefile => Makefile.ssl
comp.h => ../../include/openssl/comp.h
make[2]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto/comp'
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/crypto'
making links in ssl...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/ssl'
Makefile => Makefile.ssl
ssl.h => ../include/openssl/ssl.h
ssl2.h => ../include/openssl/ssl2.h
ssl3.h => ../include/openssl/ssl3.h
ssl23.h => ../include/openssl/ssl23.h
tls1.h => ../include/openssl/tls1.h
ssltest.c => ../test/ssltest.c
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/ssl'
making links in rsaref...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/rsaref'
Makefile => Makefile.ssl
rsaref.h => ../include/openssl/rsaref.h
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/rsaref'
making links in apps...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/apps'
Makefile => Makefile.ssl
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/apps'
making links in test...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/test'
Makefile => Makefile.ssl
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/test'
making links in tools...
make[1]: Entering directory `/opt/local/ssl/openssl-0.9.3a/tools'
Makefile => Makefile.ssl
make[1]: Leaving directory `/opt/local/ssl/openssl-0.9.3a/tools'

NOTE: The OpenSSL header files have been moved from include/*.h
to include/openssl/*.h.  To include OpenSSL header files, now
directives of the form
     #include <openssl/foo.h>
should be used instead of #include <foo.h>.
These new file locations allow installing the OpenSSL header
files in /usr/local/include/openssl/ and should help avoid
conflicts with other libraries.

To compile programs that use the old form <foo.h>,
usually an additional compiler option will suffice: E.g., add
     -I/opt/local/ssl/include/openssl
or
     -I/opt/local/ssl/openssl-0.9.3a/include/openssl
to the CFLAGS in the Makefile of the program that you want to compile
(and leave all the original -I...'s in place!).

Please make sure that no old OpenSSL header files are around:
The include directory should now be empty except for the openssl
subdirectory.

Reply via email to