SSL port problem on Freebsd 3.0

SSL port problem on Freebsd 3.0

Post by Derek Leun » Tue, 20 Oct 1998 04:00:00



Does anyone able to install the SSLeay0.9b port on the FreeBSD3.0
sucessfully?  I got errors as below as I complie it...  anyone can help?

--Derek

gcc -o ssleay -DMONOLITH -I../include -DTERMIOS -DBN_ASM -DL_ENDIAN
-D_ANSI_SOURCE -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM ssleay.o verify.o asn1pars.o req.o dgst.o dh.o enc.o
gendh.o errstr.o ca.o  pkcs7.o crl2p7.o crl.o  rsa.o dsa.o dsaparam.o
x509.o genrsa.o s_server.o s_client.o speed.o  s_time.o apps.o s_cb.o
s_socket.o version.o sess_id.o  ciphers.o -L. -L.. -L../.. -L../../..
-L.. -lssl -L.. -lcrypto
speed.o: In function `speed_main':
speed.o(.text+0x132b): undefined reference to `RC4'
speed.o(.text+0x1435): undefined reference to `des_ncbc_encrypt'
speed.o(.text+0x1554): undefined reference to `des_ede3_cbc_encrypt'
speed.o(.text+0x1885): undefined reference to `RC5_32_cbc_encrypt'
speed.o(.text+0x1995): undefined reference to `BF_cbc_encrypt'
speed.o(.text+0x1aa5): undefined reference to `CAST_cbc_encrypt'
../libcrypto.a(md5_dgst.o): In function `MD5_Update':
md5_dgst.o(.text+0x143): undefined reference to `md5_block_x86'
md5_dgst.o(.text+0x2e2): undefined reference to `md5_block_x86'
md5_dgst.o(.text+0x32f): undefined reference to `md5_block_x86'
../libcrypto.a(md5_dgst.o): In function `MD5_Transform':
md5_dgst.o(.text+0x3a2): undefined reference to `md5_block_x86'
../libcrypto.a(md5_dgst.o): In function `MD5_Final':
md5_dgst.o(.text+0x436): undefined reference to `md5_block_x86'
../libcrypto.a(md5_dgst.o)(.text+0x46e): more undefined references to
`md5_block_x86' follow
../libcrypto.a(sha1dgst.o): In function `SHA1_Update':
sha1dgst.o(.text+0x133): undefined reference to `sha1_block_x86'
sha1dgst.o(.text+0x2b7): undefined reference to `sha1_block_x86'
sha1dgst.o(.text+0x2f8): undefined reference to `sha1_block_x86'
../libcrypto.a(sha1dgst.o): In function `SHA1_Transform':
sha1dgst.o(.text+0x43e): undefined reference to `sha1_block_x86'
../libcrypto.a(sha1dgst.o): In function `SHA1_Final':
sha1dgst.o(.text+0x4d6): undefined reference to `sha1_block_x86'
../libcrypto.a(sha1dgst.o)(.text+0x54a): more undefined references to
`sha1_block_x86' follow
../libcrypto.a(ecb_enc.o): In function `des_ecb_encrypt':
ecb_enc.o(.text+0x9d): undefined reference to `des_encrypt'
../libcrypto.a(bf_skey.o): In function `BF_set_key':
bf_skey.o(.text+0xa3): undefined reference to `BF_encrypt'
bf_skey.o(.text+0xe3): undefined reference to `BF_encrypt'
../libcrypto.a(bf_ecb.o): In function `BF_ecb_encrypt':
bf_ecb.o(.text+0x74): undefined reference to `BF_encrypt'
bf_ecb.o(.text+0x87): undefined reference to `BF_decrypt'
../libcrypto.a(bn_word.o): In function `BN_div_word':
bn_word.o(.text+0xa5): undefined reference to `bn_div64'
../libcrypto.a(bn_word.o): In function `BN_mul_word':
bn_word.o(.text+0x2a8): undefined reference to `bn_mul_words'
../libcrypto.a(e_cbc_d.o): In function `des_cbc_cipher':
e_cbc_d.o(.text+0x72): undefined reference to `des_ncbc_encrypt'
../libcrypto.a(e_cbc_3d.o): In function `des_cbc_ede_cipher':
e_cbc_3d.o(.text+0x110): undefined reference to `des_ede3_cbc_encrypt'
../libcrypto.a(e_rc4.o): In function `rc4_cipher':
e_rc4.o(.text+0x78): undefined reference to `RC4'
../libcrypto.a(mdc2dgst.o): In function `mdc2_body':
mdc2dgst.o(.text+0x1c6): undefined reference to `des_encrypt'
mdc2dgst.o(.text+0x1e2): undefined reference to `des_encrypt'
../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Update':
rmd_dgst.o(.text+0x143): undefined reference to `ripemd160_block_x86'
rmd_dgst.o(.text+0x2e2): undefined reference to `ripemd160_block_x86'
rmd_dgst.o(.text+0x32f): undefined reference to `ripemd160_block_x86'
../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Transform':
rmd_dgst.o(.text+0x3a2): undefined reference to `ripemd160_block_x86'
../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Final':
rmd_dgst.o(.text+0x436): undefined reference to `ripemd160_block_x86'
../libcrypto.a(rmd_dgst.o)(.text+0x46e): more undefined references to
`ripemd160_block_x86' follow
../libcrypto.a(bn_add.o): In function `bn_qadd':
bn_add.o(.text+0x17f): undefined reference to `bn_add_words'
../libcrypto.a(bn_div.o): In function `BN_div':
bn_div.o(.text+0x338): undefined reference to `bn_div64'
bn_div.o(.text+0x419): undefined reference to `bn_mul_words'
../libcrypto.a(bn_mul.o): In function `BN_mul':
bn_mul.o(.text+0xbc): undefined reference to `bn_mul_words'
bn_mul.o(.text+0xe2): undefined reference to `bn_mul_add_words'
../libcrypto.a(bn_sqr.o): In function `BN_sqr':
bn_sqr.o(.text+0x103): undefined reference to `bn_mul_words'
bn_sqr.o(.text+0x128): undefined reference to `bn_mul_add_words'
bn_sqr.o(.text+0x14b): undefined reference to `bn_add_words'
bn_sqr.o(.text+0x163): undefined reference to `bn_sqr_words'
bn_sqr.o(.text+0x17c): undefined reference to `bn_add_words'

 
 
 

SSL port problem on Freebsd 3.0

Post by John Kirc » Fri, 23 Oct 1998 04:00:00


Make sure you're using ELF for BF_ENC in the Makefile.  This is what I
had to change to get it to compile:

# Set BF_ENC to bf_enc.o if you want to use the C version
#There are 4 x86 assember options.
BF_ENC= asm/bx86-elf.o
#BF_ENC= bf_enc.o
#BF_ENC= asm/bx86-elf.o # elf  
#BF_ENC= asm/bx86-sol.o # solaris
#BF_ENC= asm/bx86-out.o # a.out, FreeBSD
#BF_ENC= asm/bx86bsdi.o # bsdi

John


> Does anyone able to install the SSLeay0.9b port on the FreeBSD3.0
> sucessfully?  I got errors as below as I complie it...  anyone can help?

> --Derek

> gcc -o ssleay -DMONOLITH -I../include -DTERMIOS -DBN_ASM -DL_ENDIAN
> -D_ANSI_SOURCE -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM
> -DRMD160_ASM ssleay.o verify.o asn1pars.o req.o dgst.o dh.o enc.o
> gendh.o errstr.o ca.o  pkcs7.o crl2p7.o crl.o  rsa.o dsa.o dsaparam.o
> x509.o genrsa.o s_server.o s_client.o speed.o  s_time.o apps.o s_cb.o
> s_socket.o version.o sess_id.o  ciphers.o -L. -L.. -L../.. -L../../..
> -L.. -lssl -L.. -lcrypto
> speed.o: In function `speed_main':
> speed.o(.text+0x132b): undefined reference to `RC4'
> speed.o(.text+0x1435): undefined reference to `des_ncbc_encrypt'
> speed.o(.text+0x1554): undefined reference to `des_ede3_cbc_encrypt'
> speed.o(.text+0x1885): undefined reference to `RC5_32_cbc_encrypt'
> speed.o(.text+0x1995): undefined reference to `BF_cbc_encrypt'
> speed.o(.text+0x1aa5): undefined reference to `CAST_cbc_encrypt'
> ../libcrypto.a(md5_dgst.o): In function `MD5_Update':
> md5_dgst.o(.text+0x143): undefined reference to `md5_block_x86'
> md5_dgst.o(.text+0x2e2): undefined reference to `md5_block_x86'
> md5_dgst.o(.text+0x32f): undefined reference to `md5_block_x86'
> ../libcrypto.a(md5_dgst.o): In function `MD5_Transform':
> md5_dgst.o(.text+0x3a2): undefined reference to `md5_block_x86'
> ../libcrypto.a(md5_dgst.o): In function `MD5_Final':
> md5_dgst.o(.text+0x436): undefined reference to `md5_block_x86'
> ../libcrypto.a(md5_dgst.o)(.text+0x46e): more undefined references to
> `md5_block_x86' follow
> ../libcrypto.a(sha1dgst.o): In function `SHA1_Update':
> sha1dgst.o(.text+0x133): undefined reference to `sha1_block_x86'
> sha1dgst.o(.text+0x2b7): undefined reference to `sha1_block_x86'
> sha1dgst.o(.text+0x2f8): undefined reference to `sha1_block_x86'
> ../libcrypto.a(sha1dgst.o): In function `SHA1_Transform':
> sha1dgst.o(.text+0x43e): undefined reference to `sha1_block_x86'
> ../libcrypto.a(sha1dgst.o): In function `SHA1_Final':
> sha1dgst.o(.text+0x4d6): undefined reference to `sha1_block_x86'
> ../libcrypto.a(sha1dgst.o)(.text+0x54a): more undefined references to
> `sha1_block_x86' follow
> ../libcrypto.a(ecb_enc.o): In function `des_ecb_encrypt':
> ecb_enc.o(.text+0x9d): undefined reference to `des_encrypt'
> ../libcrypto.a(bf_skey.o): In function `BF_set_key':
> bf_skey.o(.text+0xa3): undefined reference to `BF_encrypt'
> bf_skey.o(.text+0xe3): undefined reference to `BF_encrypt'
> ../libcrypto.a(bf_ecb.o): In function `BF_ecb_encrypt':
> bf_ecb.o(.text+0x74): undefined reference to `BF_encrypt'
> bf_ecb.o(.text+0x87): undefined reference to `BF_decrypt'
> ../libcrypto.a(bn_word.o): In function `BN_div_word':
> bn_word.o(.text+0xa5): undefined reference to `bn_div64'
> ../libcrypto.a(bn_word.o): In function `BN_mul_word':
> bn_word.o(.text+0x2a8): undefined reference to `bn_mul_words'
> ../libcrypto.a(e_cbc_d.o): In function `des_cbc_cipher':
> e_cbc_d.o(.text+0x72): undefined reference to `des_ncbc_encrypt'
> ../libcrypto.a(e_cbc_3d.o): In function `des_cbc_ede_cipher':
> e_cbc_3d.o(.text+0x110): undefined reference to `des_ede3_cbc_encrypt'
> ../libcrypto.a(e_rc4.o): In function `rc4_cipher':
> e_rc4.o(.text+0x78): undefined reference to `RC4'
> ../libcrypto.a(mdc2dgst.o): In function `mdc2_body':
> mdc2dgst.o(.text+0x1c6): undefined reference to `des_encrypt'
> mdc2dgst.o(.text+0x1e2): undefined reference to `des_encrypt'
> ../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Update':
> rmd_dgst.o(.text+0x143): undefined reference to `ripemd160_block_x86'
> rmd_dgst.o(.text+0x2e2): undefined reference to `ripemd160_block_x86'
> rmd_dgst.o(.text+0x32f): undefined reference to `ripemd160_block_x86'
> ../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Transform':
> rmd_dgst.o(.text+0x3a2): undefined reference to `ripemd160_block_x86'
> ../libcrypto.a(rmd_dgst.o): In function `RIPEMD160_Final':
> rmd_dgst.o(.text+0x436): undefined reference to `ripemd160_block_x86'
> ../libcrypto.a(rmd_dgst.o)(.text+0x46e): more undefined references to
> `ripemd160_block_x86' follow
> ../libcrypto.a(bn_add.o): In function `bn_qadd':
> bn_add.o(.text+0x17f): undefined reference to `bn_add_words'
> ../libcrypto.a(bn_div.o): In function `BN_div':
> bn_div.o(.text+0x338): undefined reference to `bn_div64'
> bn_div.o(.text+0x419): undefined reference to `bn_mul_words'
> ../libcrypto.a(bn_mul.o): In function `BN_mul':
> bn_mul.o(.text+0xbc): undefined reference to `bn_mul_words'
> bn_mul.o(.text+0xe2): undefined reference to `bn_mul_add_words'
> ../libcrypto.a(bn_sqr.o): In function `BN_sqr':
> bn_sqr.o(.text+0x103): undefined reference to `bn_mul_words'
> bn_sqr.o(.text+0x128): undefined reference to `bn_mul_add_words'
> bn_sqr.o(.text+0x14b): undefined reference to `bn_add_words'
> bn_sqr.o(.text+0x163): undefined reference to `bn_sqr_words'
> bn_sqr.o(.text+0x17c): undefined reference to `bn_add_words'


 
 
 

1. Apache: SSL and no-SSL with one demon on different ports?

I'm not experienced at all with Apache-SSL. I compiled the latest
version SSLeay, Apache-SSL. Made a certificate and all this stuff but
don't know how to configure Apache 1.1.1 so that one demon does SSL on
port 443 and no-SSL on port 80. Could someone please point me to a web
site with info on how to do this or send me a configuration example?

Thank's!

Marcus

2. Solaris 2.1x86 Sharing to a pc?

3. Compiling gdb port on FreeBSD 3.0

4. 2.1.117 kernel: RPC errors upon NFS mount

5. Problem with OWS 3.0 and SSL

6. Duel for Solaris?

7. Problem with Apache+SSL and Navigator 3.0 (SSL3)

8. stability question

9. SSL 3.0 problems

10. Wine problem under Freebsd (maybe freebsd ports?)

11. Diff between FreeBSD 3.0 and "The Complete FreeBSD" ?

12. How to make Apache to treat port 443 as a normal port (not ssl)

13. Problem with Apache SSL on FreeBSD