Hello,

(Apologizing in advance for the long winded post)

I am attempting to build SSLeay 0.9.0 under FreeBSD 2.2.6. The build
fails
using the defaults. Here is what I do, and what happens:

(I have perl 5 installed as /usr/bin/perl)
perl /util/perlpath.pl /usr/bin
./Configure FreeBSD
make

The build fails:

gcc -o ssleay -DMONOLITH -I../include (..)

cx86-out.o: Undefined symbol `CAST_S_table0' referenced from text
segment
cx86-out.o: Undefined symbol `CAST_S_table1' referenced from text
segment
cx86-out.o: Undefined symbol `CAST_S_table2' referenced from text
segment
cx86-out.o: Undefined symbol `CAST_S_table3' referenced from text
segment
cx86-out.o: Undefined symbol `CAST_S_table0' referenced from text
segment

<lots more of these>

Seems that somehow the tables defined in crypto/cast/cast_s.h are not
finding their way into the lib for some reason.. Editing Makefile.ssl
to use the C version of the cast stuff clears that up..

So now I am trying to create a shared library and have used the linux
script as a template. I did this with the 0.8.x version of SSLeay with
no
problems, but I must have been smarter back then :).. I define TERMIOS,
change -DELF to -DOUT. At this point I figure it should compile, but
maybe not link, so I try to compile and get lots of redifinition
warnings
and errors:

compiling bignum assember
compiling des assember
compiling blowfish assember
compiling cast assember
compiling rc4 assember
compiling md5 assember
compiling sha1 assember
compiling libcrypto
In file included from crypto/crypto.c:520:
crypto/sha/sha_dgst.c:88: warning: `M_c2nl' redefined
crypto/sha/sha1dgst.c:100: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:89: warning: `M_p_c2nl' redefined
crypto/sha/sha1dgst.c:101: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:90: warning: `M_c2nl_p' redefined
crypto/sha/sha1dgst.c:102: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:91: warning: `M_p_c2nl_p' redefined
crypto/sha/sha1dgst.c:103: warning: this is the location of the previous
definition
crypto/sha/sha_dgst.c:92: warning: `M_nl2c' redefined
crypto/sha/sha1dgst.c:104: warning: this is the location of the previous
definition
In file included from crypto/bn/bn_add.c:61,
                 from crypto/crypto.c:221:
crypto/bn/bn_lcl.h:183: conflicting types for `bn_add_words'
include/bn.h:367: previous declaration of `bn_add_words'
crypto/bn/bn_add.c: In function `bn_qadd':
In file included from crypto/crypto.c:221:
crypto/bn/bn_add.c:139: warning: passing arg 3 of `bn_add_words' makes
integer from pointer without a cast
crypto/bn/bn_add.c:139: too many arguments to function `bn_add_words'
crypto/bn/bn_add.c:139: void value not ignored as it ought to be
crypto/bn/bn_sqr.c: In function `BN_sqr':
In file included from crypto/crypto.c:236:
crypto/bn/bn_sqr.c:110: warning: passing arg 3 of `bn_add_words' makes
integer from pointer without a cast
crypto/bn/bn_sqr.c:110: too many arguments to function `bn_add_words'
crypto/bn/bn_sqr.c:116: warning: passing arg 3 of `bn_add_words' makes
integer from pointer without a cast
crypto/bn/bn_sqr.c:116: too many arguments to function `bn_add_words'
crypto/des/read_pwd.c: In function `des_read_pw':
In file included from crypto/crypto.c:277:

(...)

Looking at the header files I do definately see two different prototypes
and
the only thing I can come up with is that maybe using X86 assembler the
prototypes would be different, but then why would the others be
included?
I'm confused.

Can someone who knows this system better than me help?

Thanks,
Tim

+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/  |
+-------------------------------------------------------------------------+

Reply via email to