Link to home
Start Free TrialLog in
Avatar of spmt
spmt

asked on

Can't compile Apache 2.4.10 with Openssl on Solaris 10

Hello I can not compile Apache 2.4.10 with openssl on solaris 10, I still have errors during make or gmake.

Openssl is installed in /usr/local/openssl

./Configure solaris64-sparcv9-gcc --prefix=/opt/local --openssldir=/usr/local/openssl
gmake
gmake install

export LD_LIBRARY_PATH=/usr/local/openssl
export CC=gcc
PATH=/usr/ccs/bin:/usr/sfw/bin:$PATH

./configure --prefix=/opt/local/apache2410 --with-ssl=/usr/local/openssl --enable-ssl --enable-setenvif --with-included-apr
gmake

Here is the gmake output error :

Undefined                       first referenced
 symbol                             in file
TLSv1_2_client_method               ab.o
TLSv1_1_client_method               ab.o
BIO_set_callback                    ab.o
BIO_set_callback_arg                ab.o
BIO_get_callback_arg                ab.o
SSL_CTX_set_info_callback           ab.o
ld: fatal: Symbol referencing errors. No output written to .libs/ab
collect2: ld returned 1 exit status

cat /etc/release
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007



I think I used the wrong LD_LIBRARY_PATH, can someone help me or guide me to the right solution?

Thank you
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spmt
spmt

ASKER

Hello.

i tried with LD_LIBRARY_PATH = /usr/local/openssl/lib, i compiled openssl with -fPIC and Apache works now!


Thank you
--with-openssl=/opt/openssl

it will include /opt/openssl/include/*.h
and expect /opt/openssl/lib to be in library path.