The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: 1 [2]   Go Down

Author Topic: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux  (Read 60681 times)

ClaireEllison

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #15 on: December 13, 2016, 09:21:12 PM »

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
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 621
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #16 on: December 14, 2016, 09:31:15 AM »

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.

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
Logged

ClaireEllison

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #17 on: January 29, 2017, 10:10:31 PM »

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  ???
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 621
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #18 on: January 30, 2017, 05:03:51 PM »

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"
Logged

DarrenG

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #19 on: September 24, 2017, 05:48:57 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.
« Last Edit: May 26, 2020, 10:48:06 AM by mario »
Logged

DarrenG

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #20 on: April 02, 2018, 03:18:52 PM »

Do we have any update here? Did it go well? I think that Mario gave you the answer basically..
« Last Edit: November 24, 2018, 01:48:40 PM by DarrenG »
Logged

juankax

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #21 on: May 26, 2020, 10:46:22 AM »

hi! i am also looking for new updates.

porno gratis free porn porno sex webcam
« Last Edit: June 03, 2020, 06:44:47 PM by juankax »
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 621
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #22 on: May 26, 2020, 10:49:14 AM »

Yes, you find it here https://github.com/JBlond/debian_build_apache24/
But now it is a much fresher OpenSSL Version  ;)
Logged

preeti123

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • AWESOME
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #23 on: March 22, 2021, 05:49:24 AM »

That sort of error i was facing Long back and i didn't found out any solutions  :-\
Logged
Pages: 1 [2]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13