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/op enssl
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/apache 2410 --with-ssl=/usr/local/open ssl --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
Openssl is installed in /usr/local/openssl
./Configure solaris64-sparcv9-gcc --prefix=/opt/local --openssldir=/usr/local/op
gmake
gmake install
export LD_LIBRARY_PATH=/usr/local
export CC=gcc
PATH=/usr/ccs/bin:/usr/sfw
./configure --prefix=/opt/local/apache
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
--with-openssl=/opt/openss l
it will include /opt/openssl/include/*.h
and expect /opt/openssl/lib to be in library path.
it will include /opt/openssl/include/*.h
and expect /opt/openssl/lib to be in library path.
ASKER
i tried with LD_LIBRARY_PATH = /usr/local/openssl/lib, i compiled openssl with -fPIC and Apache works now!
Thank you