On Mon, Dec 07, 1998, Steve Vertigan wrote:

> Hi.  This probably isn't the appropiate forum to ask this question but
> I.m unable to install mod_ssl until I get SSLeay compiled and as
> everyone else here must've got it working I'm hoping someone will be
> able to help me.  I've just installed a new FreeBSD 3.0 system and am
> trying to compile SSLeay-0.9.0b.  Which I downloaded as a tarball and
> chucked in /usr/stuff/SSLeay-0.9.0b.  I can do the
> make clean ; make depend
> ok but on the make it goes for a while but then exits with a page of
> errors like this
> 
> c_ecb.o(.text+0x64): undefined reference to `CAST_encrypt'
> c_ecb.o(.text+0x77): undefined reference to `CAST_decrypt'
> ../libcrypto.a(c_cfb64.o): In function `CAST_cfb64_encrypt':
> c_cfb64.o(.text+0x86): undefined reference to `CAST_encrypt'
> c_cfb64.o(.text+0x166): undefined reference to `CAST_encrypt'
> ../libcrypto.a(c_ofb64.o): In function `CAST_ofb64_encrypt':
> c_ofb64.o(.text+0xcf): undefined reference to `CAST_encrypt'
> *** Error code 1
> 
> Has anyone compiled successfully on FreeBSD 3.0 and what did you have to
> do?  I also tried the SSLeay in the ports collection but that also
> failed similairly.

The problem is that FreeBSD 3.0 now uses ELF as it's object format and no
longer a.out. The above symbols are created by the assembler parts inside
SSLeay - but with a leading underscore because the "FreeBSD" setup for SSLeay
uses a.out name conventions for the assembler parts. All you have to do is to
add a "FreeBSD-elf" setup. For this add the following line to SSLeay's
top-level Configure script (for instance right after the "FreeBSD" entry):

"FreeBSD-elf", "gcc:-DTERMIOS -DBN_ASM -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
-Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",

And then configure SSLeay with "perl Configure FreeBSD-elf" instead of "perl
Configure FreeBSD". Do a "make clean" first!
Then all went fine for me....
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl)   www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to