Subject: openssl broken
To: None <tech-pkg@netbsd.org>
From: John Klos <john@ziaspace.com>
List: tech-pkg
Date: 12/25/2004 02:08:15
Was this tested? It fails on 1.6.2 on macppc, for one:

`/usr/pkgsrc/security/openssl/work/openssl-0.9.7e/crypto'
gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 
-DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -DTERMIOS -O2 
-Wall -DB_ENDIAN    -c -o cryptlib.o cryptlib.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [cryptlib.o] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/security/openssl/work/openssl-0.9.7e/crypto'
gmake: *** [sub_all] Error 1
*** Error code 2


On 1.6.2 on i386, it fails here:

if [ "bsd-gcc-shared" = "hpux-shared" -o "bsd-gcc-shared" = 
"darwin-shared" ] ; then \
   gcc -o openssl -DMONOLITH -I.. -I../include  -fPIC -DDSO_DLFCN 
-DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 
-DOPENSSL_NO_MDC2 -O2 -O2 -i686 -DTERMIOS -O2 -Wall -DSHA1_ASM -DMD5_ASM 
-DRMD160_ASM openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o 
enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o 
dsa.o dsaparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o 
s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o 
nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o 
../libssl.a  ../libcrypto.a -Wl,-R/usr/local/lib  ; \
else \
   LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH \
   gcc -o openssl -DMONOLITH -I.. -I../include  -fPIC -DDSO_DLFCN 
-DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 
-DOPENSSL_NO_MDC2 -O2 -O2 -i686 -DTERMIOS -O2 -Wall -DSHA1_ASM -DMD5_ASM 
-DRMD160_ASM openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o 
enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o 
dsa.o dsaparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o 
s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o 
nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o 
-L.. -lssl  -L.. -lcrypto -Wl,-R/usr/local/lib  ; \
fi
speed.o: In function `speed_main':
speed.o(.text+0x1769): undefined reference to `RC4'
speed.o(.text+0x1859): undefined reference to `DES_ncbc_encrypt'
speed.o(.text+0x1954): undefined reference to `DES_ede3_cbc_encrypt'
speed.o(.text+0x1e53): undefined reference to `BF_cbc_encrypt'
../libcrypto.so: undefined reference to `bn_mul_words'
../libcrypto.so: undefined reference to `DES_encrypt3'
../libcrypto.so: undefined reference to `bn_mul_comba8'
../libcrypto.so: undefined reference to `DES_decrypt3'
../libcrypto.so: undefined reference to `ripemd160_block_asm_host_order'
../libcrypto.so: undefined reference to `BF_encrypt'
../libcrypto.so: undefined reference to `bn_mul_add_words'
../libcrypto.so: undefined reference to `bn_div_words'
../libcrypto.so: undefined reference to `DES_encrypt1'
../libcrypto.so: undefined reference to `_DES_SPtrans'
../libcrypto.so: undefined reference to `DES_encrypt2'
../libcrypto.so: undefined reference to `bn_sub_words'
../libcrypto.so: undefined reference to `sha1_block_asm_host_order'
../libcrypto.so: undefined reference to `bn_sqr_comba8'
../libcrypto.so: undefined reference to `bn_sqr_comba4'
../libcrypto.so: undefined reference to `fcrypt_body'
../libcrypto.so: undefined reference to `bn_sqr_words'
../libcrypto.so: undefined reference to `md5_block_asm_host_order'
../libcrypto.so: undefined reference to `sha1_block_asm_data_order'
../libcrypto.so: undefined reference to `bn_mul_comba4'
../libcrypto.so: undefined reference to `BF_decrypt'
../libcrypto.so: undefined reference to `bn_add_words'
collect2: ld returned 1 exit status
gmake[1]: *** [openssl] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/security/openssl/work/openssl-0.9.7e/apps'
gmake: *** [sub_all] Error 1
*** Error code 2


If anyone would like a shell on a 1.6.2 machine for testing, please let me 
know.

John