Compile errors with OpenSSL?

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,367
Location
London UK
Debian 9.

There's too much to paste, so I'm going just to paste a few lines.

This is repeated errors for more .c files than this.
Code:
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':/usr/include/openssl/x509.h:97: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1573: undefined reference to `TLS_client_method'
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1627: undefined reference to `SSL_CTX_set_security_level'
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1668: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1254: undefined reference to `SSL_CTX_get_options'
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1281: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/usr/local/directadmin/custombuild/php-7.2.18/ext/openssl/xp_ssl.c:1573: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
ext/ftp/.libs/php_ftp.o: In function `zm_startup_ftp':
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/php_ftp.c:323: undefined reference to `OPENSSL_init_ssl'
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/php_ftp.c:324: undefined reference to `OPENSSL_init_crypto'
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/php_ftp.c:325: undefined reference to `OPENSSL_init_crypto'
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/php_ftp.c:326: undefined reference to `OPENSSL_init_crypto'
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/php_ftp.c:328: undefined reference to `OPENSSL_init_ssl'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/ftp.c:277: undefined reference to `TLS_client_method'
/usr/local/directadmin/custombuild/php-7.2.18/ext/ftp/ftp.c:286: undefined reference to `SSL_CTX_set_options'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/usr/local/directadmin/custombuild/php-7.2.18/ext/phar/util.c:1563: undefined reference to `EVP_MD_CTX_new'
/usr/local/directadmin/custombuild/php-7.2.18/ext/phar/util.c:1595: undefined reference to `EVP_MD_CTX_free'
/usr/local/directadmin/custombuild/php-7.2.18/ext/phar/util.c:1586: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/usr/local/directadmin/custombuild/php-7.2.18/ext/phar/util.c:1860: undefined reference to `EVP_MD_CTX_new'
/usr/local/directadmin/custombuild/php-7.2.18/ext/phar/util.c:1892: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
Makefile:293: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: warning: libpcre.so.3, needed by //lib/x86_64-linux-gnu/libselinux.so.1, may conflict with libpcre.so.1
ext/openssl/.libs/openssl.o: In function `zm_startup_openssl':
 
Are you running a custom version of OpenSSL? What's the output of "openssl version" ?
 
The real error isn’t part of what you posted. Those are just telling you something(s) are not defined. Most likely you should see a message about a missing .so or .a above these errors. Perhaps Debian requires a -devel package like the RH variants do, I am not sure as I stick to RH and SuSE and their variants for my work and hosting.
 
Back
Top