logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Undefined reference to OPENSSL_sk_num ERR for Apache 2.4.54
Author
Rose



Joined: 18 Oct 2022
Posts: 1
Location: phx

PostPosted: Tue 18 Oct '22 20:45    Post subject: Undefined reference to OPENSSL_sk_num ERR for Apache 2.4.54 Reply with quote

Hi all,

I am unable to compile Apache HTTPd-2.4.54 on Linux platform.

My system config:
OS: RHEL 7 - 3.10.0-1160.76.1.el7.x86_64
Openssl: OpenSSL 1.1.1q 5 Jul 2022

I am getting the following error, even when I try with OpenSSL 3x, I am getting the same error.

Please kindly help me.

Commands I used:

[root@abc.com]# export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
[root@abc.com]# systemctl stop apache2.service
[root@abc.com]# ./configure --prefix=/app/Apache2.4 --enable-mods-shared=all --enable-ssl --with-ssl=/usr/local/bin/openssl --enable-so --with-openssl=/usr/local/bin/openssl
[root@abc.com]# Make & make test


httpd-2.4.54/modules/mappers -prefer-non-pic -static -c ab.c && touch ab.lo
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -std=gnu99 -pthread \
-o ab ab.lo /usr/lib64/libaprutil-1.la -ldb-5.3 -lexpat -ldb-5.3 /usr/lib64/libapr-1.la -lpthread -ldl -lm -lssl -lcrypto -lpthread -ldl
ab.o: In function `sk_X509_num':
ab.c:(.text+0x14): undefined reference to `OPENSSL_sk_num'
ab.o: In function `sk_X509_value':
ab.c:(.text+0x36): undefined reference to `OPENSSL_sk_value'
ab.o: In function `ssl_state_cb':
ab.c:(.text+0x5cd): undefined reference to `SSL_in_init'
ab.o: In function `ssl_print_cert_info':
ab.c:(.text+0x890): undefined reference to `X509_get_version'
ab.c:(.text+0x8d5): undefined reference to `X509_getm_notBefore'
ab.c:(.text+0x92b): undefined reference to `X509_getm_notAfter'
ab.o: In function `test':
ab.c:(.text+0x4fae): undefined reference to `SSL_in_init'
ab.o: In function `main':
ab.c:(.text+0x5c24): undefined reference to `TLS_client_method'
ab.c:(.text+0x644c): undefined reference to `TLS_client_method'
ab.c:(.text+0x674e): undefined reference to `OPENSSL_init_ssl'
ab.c:(.text+0x675d): undefined reference to `OPENSSL_init_ssl'
ab.c:(.text+0x67f8): undefined reference to `SSL_CTX_set_options'
ab.c:(.text+0x6886): undefined reference to `SSL_CTX_set_ciphersuites'
collect2: error: ld returned 1 exit status


Regards,
Rose.
Back to top


Reply to topic   Topic: Undefined reference to OPENSSL_sk_num ERR for Apache 2.4.54 View previous topic :: View next topic
Post new topic   Forum Index -> Apache