Hello Nathan,

Nathan Coraor wrote:
Hi all,

I'm attempting to compile Apache 1.3.27 + mod_perl 1.27 + mod_ssl
2.8.12-1.3.27 under Solaris 8, and it's failing when linking.  I've got
OpenSSL 0.9.7a compiled for 'solaris64-sparcv9-cc'.

The output's here:

cc  -DSOLARIS2=280 -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `./apaci` -L/usr/local/ssl/lib   \
      -o httpd buildmark.o modules.o modules/ssl/libssl.a modules/perl/libperl.a 
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a    -lsocket 
-lnsl -lpthread  -lssl -lcrypto    -L/usr/local/lib -L/opt/SUNWspro/WS6U1/lib  
/usr/local/lib/perl5/5.6.1/sun4-solaris/auto/DynaLoader/DynaLoader.a 
-L/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc  -ldl
ld: warning: file /usr/local/ssl/lib/libssl.a(s2_srvr.o): wrong ELF class: ELFCLASS64
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ld: warning: file /usr/local/ssl/lib/libcrypto.a(bn_lib.o): wrong ELF class: ELFCLASS64
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Undefined                       first referenced
 symbol                             in file
d2i_SSL_SESSION                     modules/ssl/libssl.a(ssl_scache_dbm.o)
SSL_get_verify_mode                 modules/ssl/libssl.a(ssl_engine_kernel.o)
SSL_library_init                    modules/ssl/libssl.a(ssl_engine_init.o)
[...]

You have build the OpenSSL libraries for Sparc 64 bit.
But the linker doesn't like them.
you build mod_ssl / apache for sparc 32 bit ?


Bye

Goetz

--
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to