Bug #13651: Symbol referencing errors

From: Date: Fri, 12 Oct 2001 11:13:29 +0000
Subject: Bug #13651: Symbol referencing errors
Groups: php.dev 
Request: Send a blank email to php-dev+get-67843@lists.php.net to get a copy of this message
From: edward.t.quick@britishairways.com Operating system: Solaris 8 PHP version: 4.0.6 PHP Bug Type: Compile Failure Bug description: Symbol referencing errors Hi, I am trying to build apache-1.3.20 with mod-ssl and php. After running mod-ssl configure, I run the apache configure, then goto the php directory and run that configure. That's where I get stuck. Here's my configure command: ./configure --with-apache=../apache_1.3.20 --with-mysql=/usr/local/mysql --enable-memory-limit=yes --enable-debug=no --with-java=/usr/local/java --with-openssl=/usr/local/openssl That runs for quite a long time and finally ends with a message about libssl not found: checking whether to install PEAR... yes checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin checking for OpenSSL support... yes checking for OpenSSL version... >= 0.9.5 checking for CRYPTO_free in -lcrypto... yes checking for SSL_CTX_set_ssl_version in -lssl... no configure: error: libssl not found! This is the tail -50 from config.log: configure:7217: checking for readdir_r configure:7245: cc -o conftest -g -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket 1>&5 configure:7267: checking for type of readdir_r configure:7303: cc -o conftest -g -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket 1>&5 configure:7404: checking whether to include debugging symbols configure:7457: checking layout of installed files configure:7502: checking path to configuration file configure:7563: checking whether to install PEAR configure:7621: checking whether to enable safe mode by default configure:7676: checking for safe mode exec dir configure:7717: checking for OpenSSL support configure:7782: checking for OpenSSL version configure:7844: checking for CRYPTO_free in -lcrypto configure:7863: cc -o conftest -g -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/local/openssl/lib -L/usr/local/openssl/lib conftest.c -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket 1>&5 configure:7901: checking for SSL_CTX_set_ssl_version in -lssl configure:7920: cc -o conftest -g -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/local/openssl/lib -L/usr/local/openssl/lib conftest.c -lssl -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket 1>&5 Undefined first referenced symbol in file __eprintf /usr/local/openssl/lib/libcrypto.a(b_print.o) ld: fatal: Symbol referencing errors. No output written to conftest configure: failed program was: #line 7909 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char SSL_CTX_set_ssl_version(); int main() { SSL_CTX_set_ssl_version() ; return 0; } Let me know if you need any more information. Thanks, Ed. -- Edit bug report at: http://bugs.php.net/?id=13651&edit=1

« previous php.dev (#67843) next »