Mark Lavi wrote:
> On Tue, Jan 13, 2009, Dr. Stephen Henson wrote:
>
>   
>> In these three lines in crypto/sha/Makefile:
>> (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
>> (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
>> (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
>>
>> Try changing ../$@ to >../$@
>>     
>
> Dr. Steve:
>
> I have done so and that has improved things, but the build progresses
> further and breaks. I tried this on a fresh extract of the released
> source code to be sure there were no artifacts from previous builds. I
> also have brought down optimization to -O2 and reduced the configure
> arguments to just --prefix in order to simplify the build. I believe
> what follows is enough relevant output, I've omitted the ./config output
> and initial portion of make ...
>
> making all in crypto/md5...
> make[2]: Entering directory
> `/content2/development/mlavi/content/webplatform/src/build/dev/bootstrap
> /openssl-0.9.8j/crypto/md5'
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o md5_dgst.o md5_dgst.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o md5_one.o md5_one.c
> ar  r ../../libcrypto.a md5_dgst.o md5_one.o
> /usr/bin/ranlib ../../libcrypto.a || echo Never mind.
> make[2]: Leaving directory
> `/content2/development/mlavi/content/webplatform/src/build/dev/bootstrap
> /openssl-0.9.8j/crypto/md5'
> making all in crypto/sha...
> make[2]: Entering directory
> `/content2/development/mlavi/content/webplatform/src/build/dev/bootstrap
> /openssl-0.9.8j/crypto/sha'
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha_dgst.o sha_dgst.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha1dgst.o sha1dgst.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha_one.o sha_one.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha1_one.o sha1_one.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha256.o sha256.c
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM   -c -o sha512.o sha512.c
> (cd asm; /data/current/bin/perl sha1-ia64.pl >../sha1-ia64.s -I..
> -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM -DSHA256_ASM
> -DSHA512_ASM -DAES_ASM)
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM
> -DSHA256_ASM -DSHA512_ASM -DAES_ASM -c  -o sha1-ia64.o sha1-ia64.s
> (cd asm; /data/current/bin/perl sha512-ia64.pl >../sha256-ia64.s -I..
> -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wall -DSHA1_ASM -DSHA256_ASM
> -DSHA512_ASM -DAES_ASM)
> nonsense -I.. at sha512-ia64.pl line 95.
> make[2]: *** [sha256-ia64.s] Error 255
> make[2]: Leaving directory
> `/content2/development/mlavi/content/webplatform/src/build/dev/bootstrap
> /openssl-0.9.8j/crypto/sha'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory
> `/content2/development/mlavi/content/webplatform/src/build/dev/bootstrap
> /openssl-0.9.8j/crypto'
> make: *** [build_crypto] Error 1
>
> Should I provide anything else?
>   

Without having ia64 available for testing I would rather modify
  (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
to
  (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) > ../$@)

so that the CFLAGS argument is available to the perl script. It does not
make any sense in the redirection context.

Best regards,
    Lutz
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to