[stunnel-users] compilation error with stunnel-5.35

Viorel Panaite Viorel.Panaite at tecsys.com
Fri Sep 16 21:14:01 CEST 2016


Hi
I did compile openssl myself, I forgot to mention the version of the compiler is :

gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)



From: Josealf.rm [mailto:josealf at rocketmail.com]
Sent: September-16-16 2:04 PM
To: Viorel Panaite
Cc: stunnel-users at stunnel.org
Subject: Re: [stunnel-users] compilation error with stunnel-5.35


Visorel,

Did you compile OpenSSL yourself? Did you enable shared library support?
Maybe you system is picking system installed OpenSSL headers (0.9.8) instead of the new ones.

Regards
Jose


Enviado desde mi iPhone
El 16/09/2016, a las 9:39 a.m., Viorel Panaite <Viorel.Panaite at tecsys.com<mailto:Viorel.Panaite at tecsys.com>> escribió:
I downloaded stunnel-5.35 and I’m trying to compile using openssl-1.0.2h on RedHat EL linux 5.4

I get this error when  I’m trying to compile them together,

Configure log
./configure --prefix=/apps/stunnel/535 --with-ssl=/apps/openssl/1.0.2h/
…………………….
hecking for broken poll() implementation... no
checking for pipe2... no
checking for accept4... no
configure: **************************************** optional features
checking whether to enable IPv6 support... yes (default)
checking whether to enable FIPS support... autodetecting
checking whether to enable systemd socket activation support... autodetecting
checking for library containing sd_listen_fds... no
configure: systemd library not found
checking whether to enable TCP wrappers support... autodetecting
checking for hosts_access in -lwrap... yes
configure: libwrap support enabled
configure: **************************************** SSL
checking for compiler sysroot... /
checking for SSL directory... /apps/openssl/1.0.2h/
checking for FIPS_mode_set... yes
configure: FIPS support enabled
configure: **************************************** write the results
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: **************************************** success

make log

[root at mybox stunnel-5.35]# make
Making all in src
make[1]: Entering directory `/apps/stunnel/stunnel-5.35/src'
make  all-am
make[2]: Entering directory `/apps/stunnel/stunnel-5.35/src'
  CCLD     stunnel
/usr/bin/ld: skipping incompatible /apps/openssl/1.0.2h//lib/libssl.a when searching for -lssl
/usr/bin/ld: skipping incompatible /apps/openssl/1.0.2h//lib/libcrypto.a when searching for -lcrypto
stunnel-client.o: In function `client_run':
/apps/stunnel/stunnel-5.35/src/client.c:201: undefined reference to `ERR_remove_thread_state'
stunnel-options.o: In function `parse_service_option':
/apps/stunnel/stunnel-5.35/src/options.c:2669: undefined reference to `TLSv1_2_client_method'
/apps/stunnel/stunnel-5.35/src/options.c:2670: undefined reference to `TLSv1_2_server_method'
/apps/stunnel/stunnel-5.35/src/options.c:2662: undefined reference to `TLSv1_1_client_method'
/apps/stunnel/stunnel-5.35/src/options.c:2663: undefined reference to `TLSv1_1_server_method'
stunnel-ctx.o: In function `auth_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:442: undefined reference to `SSL_CTX_set_psk_server_callback'
stunnel-ctx.o: In function `context_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:133: undefined reference to `SSL_CTX_set_client_cert_engine'
stunnel-ctx.o: In function `auth_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:440: undefined reference to `SSL_CTX_set_psk_client_callback'
stunnel-ctx.o: In function `conf_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:376: undefined reference to `SSL_CONF_CTX_new'
/apps/stunnel/stunnel-5.35/src/ctx.c:381: undefined reference to `SSL_CONF_CTX_set_ssl_ctx'
/apps/stunnel/stunnel-5.35/src/ctx.c:382: undefined reference to `SSL_CONF_CTX_set_flags'
/apps/stunnel/stunnel-5.35/src/ctx.c:383: undefined reference to `SSL_CONF_CTX_set_flags'
/apps/stunnel/stunnel-5.35/src/ctx.c:385: undefined reference to `SSL_CONF_CTX_set_flags'
/apps/stunnel/stunnel-5.35/src/ctx.c:392: undefined reference to `SSL_CONF_cmd'
/apps/stunnel/stunnel-5.35/src/ctx.c:420: undefined reference to `SSL_CONF_CTX_finish'
/apps/stunnel/stunnel-5.35/src/ctx.c:422: undefined reference to `SSL_CONF_CTX_free'
stunnel-ctx.o: In function `ecdh_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:351: undefined reference to `EC_KEY_new_by_curve_name'
/apps/stunnel/stunnel-5.35/src/ctx.c:359: undefined reference to `EC_KEY_free'
stunnel-ctx.o: In function `conf_init':
/apps/stunnel/stunnel-5.35/src/ctx.c:414: undefined reference to `SSL_CONF_CTX_free'
/apps/stunnel/stunnel-5.35/src/ctx.c:409: undefined reference to `SSL_CONF_CTX_free'
/apps/stunnel/stunnel-5.35/src/ctx.c:425: undefined reference to `SSL_CONF_CTX_free'
stunnel-ctx.o: In function `servername_cb':
/apps/stunnel/stunnel-5.35/src/ctx.c:229: undefined reference to `SSL_get_servername'
/apps/stunnel/stunnel-5.35/src/ctx.c:253: undefined reference to `SSL_set_SSL_CTX'
stunnel-verify.o: In function `ocsp_request':
/apps/stunnel/stunnel-5.35/src/verify.c:499: undefined reference to `OCSP_CERTID_dup'
stunnel-verify.o: In function `ocsp_get_response':
/apps/stunnel/stunnel-5.35/src/verify.c:614: undefined reference to `OCSP_sendreq_new'
/apps/stunnel/stunnel-5.35/src/verify.c:625: undefined reference to `OCSP_REQ_CTX_add1_header'
/apps/stunnel/stunnel-5.35/src/verify.c:629: undefined reference to `OCSP_REQ_CTX_add1_header'
/apps/stunnel/stunnel-5.35/src/verify.c:634: undefined reference to `OCSP_REQ_CTX_set1_req'
/apps/stunnel/stunnel-5.35/src/verify.c:641: undefined reference to `OCSP_sendreq_nbio'
/apps/stunnel/stunnel-5.35/src/verify.c:668: undefined reference to `OCSP_REQ_CTX_free'
stunnel-verify.o: In function `cert_check_subject':
/apps/stunnel/stunnel-5.35/src/verify.c:299: undefined reference to `X509_check_host'
stunnel-verify.o: In function `ocsp_check':
/apps/stunnel/stunnel-5.35/src/verify.c:457: undefined reference to `X509_get1_ocsp'
stunnel-verify.o: In function `cert_check_subject':
/apps/stunnel/stunnel-5.35/src/verify.c:312: undefined reference to `X509_check_email'
/apps/stunnel/stunnel-5.35/src/verify.c:323: undefined reference to `X509_check_ip_asc'
stunnel-verify.o: In function `cert_check_local':
/apps/stunnel/stunnel-5.35/src/verify.c:356: undefined reference to `X509_STORE_get1_certs'
stunnel-sthreads.o: In function `sthreads_init':
/apps/stunnel/stunnel-5.35/src/sthreads.c:287: undefined reference to `CRYPTO_THREADID_set_callback'
stunnel-sthreads.o: In function `threadid_func':
/apps/stunnel/stunnel-5.35/src/sthreads.c:268: undefined reference to `CRYPTO_THREADID_set_numeric'
collect2: ld returned 1 exit status
make[2]: *** [stunnel] Error 1
make[2]: Leaving directory `/apps/stunnel/stunnel-5.35/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/apps/stunnel/stunnel-5.35/src'
make: *** [all-recursive] Error 1

Thanks for your help.


_______________________________________________
stunnel-users mailing list
stunnel-users at stunnel.org<mailto:stunnel-users at stunnel.org>
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20160916/12957b8b/attachment.html>


More information about the stunnel-users mailing list