Solved

Can't compile Apache 2.4.10 with Openssl on Solaris 10

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

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 61

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)

Join & Write a Comment

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
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.:
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now