LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   httpd + openssl : compilation issues while using shared openssl library (https://www.linuxquestions.org/questions/programming-9/httpd-openssl-compilation-issues-while-using-shared-openssl-library-4175662142/)

vlrk 10-07-2019 07:42 AM

httpd + openssl : compilation issues while using shared openssl library
 
I am using httpd-2.2.31 , trying to use openssl-1.0.2t with --with-ssl and --enable-ssl parameter.

--with-ssl points to the openssl installed directory.

I am having redhat 5.7 with x86_64 ,where the compiled binaries would be running.

Used the openssl parameters of shared ,to get ssl shared objects while compiling the openssl in centos 5.7 .


i try to use ssl as shared library , i get below error

opt/apache/bin/httpd: error while loading shared libraries: /opt/apache/lib/libssl.so.1.0.0: requires glibc 2.5 or later dynamic linker
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.



Any inputs on this would be appreciated.

bathory 10-07-2019 08:19 AM

Quote:

apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
Why are you using apashe-2.2 on RHEL-5.7. Both reached EOL btw, so they are unsupported.

Anyway, from the error you got above, I guess you have to compile first apache with the "--enable-so" and then recompile it adding support for ssl a a DSO.

NevemTeve 10-07-2019 08:19 AM

Compile everything (openssl, apr, apr-util, and whatever they depend on) from source, but don't use random (or ad hoc) directories, use --prefix=/usr/local consequently when compiling.

vlrk 10-07-2019 10:36 AM

Thanks bathory and NevemTeve ,

This is not a standalone compilation , httpd is a part of target board package .

This is legacy code . It has already shared objects of previous version openssl-1.0.1t .Here i am trying to upgrade openssl to 1.0.2t.

The httpd binary runs in the redhat el 5.7. Here to update the dependent libraries , procedure followed is like below.

Take the source and get compiled in centos 5.7 , take the installed libraries and use them httpd compilation with --with-ssl=<installed dir>

The issue i think is with steps or the system where i am trying to generate the openssl shared objects.

Why so because , even if i try with the old source 1.0.1t and use those generated libraries i get same error.

Should i compile in redhat 5.7 EL only ?. will that make any difference ?.

NevemTeve 10-07-2019 10:43 AM

Code:

error while loading shared libraries: /opt/apache/lib/libssl.so.1.0.0: requires glibc 2.5 or later dynamic linker
This means you have installed some binary package that isn't suitable for you OS.


All times are GMT -5. The time now is 03:36 PM.