Results 1 to 4 of 4

Thread: Compile errors with OpenSSL?

  1. #1
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    1,746

    Question Compile errors with OpenSSL?

    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':

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    8,128
    Are you running a custom version of OpenSSL? What's the output of "openssl version" ?
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Oct 2003
    Location
    Scottsdale, AZ
    Posts
    1,181
    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.

  4. #4
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    1,746
    Quote Originally Posted by smtalk View Post
    Are you running a custom version of OpenSSL? What's the output of "openssl version" ?
    v1.1.0j.

    The only custom compiling I do is for Curl and Apache with /usr/local/lib_http2, on all servers, only this one complains.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •