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 38058 times)

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #15 on: July 12, 2016, 10:36:08 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  ???

how is your folder structure? How did you configure your apache build?

it seems that your apache is compiled against a different OpenSSL version than it was compiled against.
Logged

ClaireEllison

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #16 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: 575
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #17 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 #18 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: 575
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #19 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 #20 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: April 02, 2018, 03:14:33 PM by DarrenG »
Logged

DarrenG

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: Errors while compiling Apache 2.4.1 openssl 1.0.1 on Linux
« Reply #21 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: May 29, 2018, 03:46:17 PM by DarrenG »
Logged
Pages: 1 [2]   Go Up
 

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