Bug #13651 Updated: Symbol referencing errors
| From: | sniper@php.net | Date: | Sat, 13 Oct 2001 14:02:05 +0000 |
| Subject: | Bug #13651 Updated: Symbol referencing errors | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67882@lists.php.net to get a copy of this message | ||
ID: 13651
Updated by: sniper
Reported By: edward.t.quick@britishairways.com
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 8
PHP Version: 4.0.6
New Comment:
Check this out:
http://www.sun.com/software/star/gnome/faq/gnome14techfaq.html#55
You should propably use this configure option:
--enable-libgcc Enable explicitly linking against libgcc
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-10-12 07:40:24] edward.t.quick@britishairways.com
I forgot to mention I have openssl-0.9.6b
Ed.
------------------------------------------------------------------------
[2001-10-12 07:13:27] edward.t.quick@britishairways.com
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 this bug report at http://bugs.php.net/?id=13651&edit=1