Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux

Started by shishir, April 24, 2012, 12:01:03 PM

Previous topic - Next topic

ClaireEllison

Hi,  Any suggestions on   httpd: Syntax error on line 155 of /usr/pw/apache/conf/httpd.conf: Cannot load /usr/pw/apache/modules/ server: /usr/pw/apache/modules/mod_ssl.so: undefined symbol: SSL_SESSION_get_compress_id  Thanks, Shishir

mario

Quote from: ClaireEllison
Hi,  Any suggestions on   httpd: Syntax error on line 155 of /usr/pw/apache/conf/httpd.conf: Cannot load /usr/pw/apache/modules/ server: /usr/pw/apache/modules/mod_ssl.so: undefined symbol: SSL_SESSION_get_compress_id  Thanks, Shishir

You compiled against a wroing OpenSSL Version. So solve this see what I posted before.

Quote from: mario on March 28, 2016, 09:43:50 PM
Yes the issue can be solved by export LD_LIBRARY_PATH=/usr/local/openssl/lib

You can see an example in https://github.com/JBlond/debian_build_apache24

ClaireEllison

Quote from: lordoftheflies on July 09, 2016, 10:17:22 AM
I found this post by searching google for my problem, i used the github recommendation to solve the problem but now my computer is freezing everytime i run anything, i'm starting to think this is beyond me  ???

mario

You mix different OpenSSL Versions. That is why oyu have to tell the compiler which path to use.

example
export LDFLAGS="-Wl,-rpath,/opt/openssl/lib"

DarrenG

Quote from: shishir on April 24, 2012, 12:01:03 PM
Hi,

I am trying to compile Apache 2.4.1 with openssl 1.0.1 on Linux 2.6.32-71.el6.x86_64.
Following is the last block of the 'make' command of apache.

make[4]: Entering directory `/root/shishir/httpd-2.4.1/modules/ssl'
/root/shishir/httpd-2.4.1/srclib/apr/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o mod_ssl.la -rpath /usr/pw/apache/modules -module -avoid-version mod_ssl.lo ssl_engine_config.lo ssl_engine_dh.lo ssl_eng
ine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_scache.lo ssl_util_stapling.lo ssl_util.lo ssl_util_ssl.lo ssl_engine_ocsp.lo
ssl_util_ocsp.lo -L/usr/pw/apache/openssl/lib -lssl -lcrypto -lrt -lcrypt -lpthread -export-symbols-regex ssl_module
/usr/bin/ld: /usr/pw/apache/openssl/lib/libssl.a(s3_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/pw/apache/openssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [mod_ssl.la] Error 1
make[4]: Leaving directory `/root/shishir/httpd-2.4.1/modules/ssl'



Please note, make test for openssl came successful.

Please suggest what can be wrong while reading libssl.a?

Thanks,
Shishir

Needs open SSL mate.

DarrenG

#20
Do we have any update here? Did it go well? I think that Mario gave you the answer basically..

juankax

hi! i am also looking for new updates.

porno gratis free porn porno sex webcam

mario


preeti123

That sort of error i was facing Long back and i didn't found out any solutions  :-\

Perrytonitus

Im trying to install apache http server 2.4.9 on mac osx 10.9. I have downloaded the gcc compiler.

sh-3.2# gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix.

EileenDover

Quote from: Perrytonitus on December 23, 2022, 02:05:15 PMIm trying to install apache http server 2.4.9 on mac osx 10.9. I have downloaded the gcc compiler.

sh-3.2# gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix.
thank you so much share your problem solve code :D