LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Compiling Apache 2.4.18 in Solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/compiling-apache-2-4-18-in-solaris-10-a-4175574943/)

LYC 03-15-2016 07:38 AM

Compiling Apache 2.4.18 in Solaris 10
 
Hi,

I tried compiling apache 2.4.18 in Solaris 10. The configure passed through:

#./configure --prefix=/usr/local/Apache2 --enable-proxy --enable-proxy-ajp --enable-deflate --enable-ssl --with-ssl=/usr/local/ssl/ --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/ --with-pcre=/usr/local/pcre/

But when gmake is issued, it was ok initially but later it produced the following infinite loop:

#gmake
:
.text (section) 0x1480 /usr/local/ssl/lib/libssl.a(ssl_lib.o)
:

Please advise how to rectify? Thanks in advance.

DaneM 03-17-2016 03:00 AM

Caveat: I've compiled a lot of programs on Linux, but never Apache, specifically. I've only used Solaris briefly.

Is there any more terminal output that you can post? Please do, if so.

The first thing I would do is check the paths you've specified to ensure that they contain the things Apache is looking for. You should probably refer to the Apache documentation to determine exactly which library files it's trying to find.

Based on what you've posted, it would seem like libssl.a or ssl_lib.o are not in the specified locations, or wherever Apache tries to find them, by default. I suspect that, if you make sure that all the relevant development libraries are installed, and point the compiler to the right place(s), it will compile without issue.

It is worth noting that Solaris is probably not the target OS for the majority of Apache developers, so you may be dealing with library version mis-matches, compiler version eccentricities, POSIX compatibility issues, etc. You'll probably need to further delve into the developer documentation to ensure that your platform has everything that the source code is expecting, and add those things, as needed.

LYC 03-18-2016 04:02 AM

Hi,

Thanks for your pointer. The issue is during compiling openssl, the parameter "shared" was not specified.


All times are GMT -5. The time now is 10:59 PM.