Solved

Can't compile Apache 2.4.10 with Openssl on Solaris 10

Posted on 2014-09-16
3
1,383 Views
Last Modified: 2014-09-19
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
0
Comment
Question by:spmt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40327338
/usr/local/openssl/lib should be in LD_LIBRARY_PATH if you installed your openssl build there.
0
 

Author Closing Comment

by:spmt
ID: 40333446
Hello.

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


Thank you
0
 
LVL 62

Expert Comment

by:gheist
ID: 40333658
--with-openssl=/opt/openssl

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question