Solved

Can't compile Apache 2.4.10 with Openssl on Solaris 10

Posted on 2014-09-16
3
1,338 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

777 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