Hi All,
When I compile fips-1.2 of the openssl-0.9.8m in hpux platform, I have 
encounter  some errors when bulding the 
fips. I have traced the problem to the Makefile in fips dir.
The error is like this :
if [ -z  ] ; then \
                cc -I. -I.. -I../include -DZLIB -DOPENSSL_THREADS -D_REENTRANT 
-DDSO_DL -D_REENTRANT +DAport
able +O3 +Optrs_strongly_typed -Ae +ESlit  -DMD32_XARRAY 
-DHMAC_EXT=\"${HMAC_EXT:-sha1}\" -DFIPSCANISTER_O -
o fips_standalone_sha1 sha/fips_standalone_sha1.c 
/usr/local/ssl/lib/fipscanister.o -Wl,+s -ldld -L/home/zho
uchao/build_openssl/build_openssl_97m98m/Build-SSL-97m98m-001/openssl/openssl-0.9.8m/../../zlib-PA1.1-32
 -lz
 ; \
        else \
                  -o fips_standalone_sha1 -I../include -I../crypto 
sha/fips_standalone_sha1.c ../crypto/sha/
sha1dgst.c ; \
        fi
/bin/sh: test: Specify a parameter with this command.
/bin/sh[4]: -o:  not found.
gmake[2]: *** [fips_standalone_sha1] Error 127
 
 
I have not  set the value of "HOSTCC", i think it will execute the line :$(CC) 
$(CFLAGS) -DFIPSCANISTER_O -o $@ sha/fips_standalone_sha1.c 
$(FIPSLIBDIR)fipscanister.o $(EX_LIBS) ; \

But it also go with the line :$(HOSTCC) $(HOSTCFLAGS) -o $ $@ -I../include 
-I../crypto sha/fips_standalone_sha1.c ../crypto/sha/sha1dgst.c ; \
 
So do i need to set the value HOSTCC? And the value shoud set for what ?
 
fips_standalone_sha1$(EXE_EXT): sha/fips_standalone_sha1.c
        if [ -z $(HOSTCC) ] ; then \
                $(CC) $(CFLAGS) -DFIPSCANISTER_O -o $@ 
sha/fips_standalone_sha1.c $(FIPSLIBDIR)fipscanister.
o $(EX_LIBS) ; \
        else \
                $(HOSTCC) $(HOSTCFLAGS) -o $ $@ -I../include -I../crypto 
sha/fips_standalone_sha1.c ../crypt
o/sha/sha1dgst.c ; \
 
So could you give me some ideas? Thanks!
 
Best regards,
kevin

Reply via email to