We are trying to build php 5.0.0b1 on our Solaris 2.8 platform with gcc 3.3 and
openssl 0.9.7b. The configuration failed with the following message:


Configuring extensions
checking for OpenSSL support... yes
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... no
configure: error: libssl not found!

The relevant lines in config.log look like:

configure:17773: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS
      -L/depot/package/openssl_0.9.7b/vendor/lib -lcrypto
      -R/usr/ucblib -L/usr/ucblib 
-R/depot/package/gcc_3.3/lib/gcc-lib/sparc-sun-solaris2.8/3.3 
-L/depot/package/gcc_3.3/lib/gcc-lib/sparc-sun-solaris2.8/3.3 conftest.c -lssl  
-lresolv -lm -ldl -lnsl -lsocket  -lgcc 1>&5
Undefined                       first referenced
 symbol                             in file
CRYPTO_lock                         
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_cert.o)
lh_free                             
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_lib.o)
COMP_CTX_free                       
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_lib.o)
CRYPTO_dup_ex_data                  
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_lib.o)
EVP_get_cipherbyname                
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_ciph.o)
...
sk_set                              
/depot/package/openssl_0.9.7b/vendor/lib/libssl.a(ssl_lib.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 17762 "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; }

According to the header file ssl.h file in the openssl package, the function
SSL_CTX_set_ssl_version is defined as:

/* This sets the 'default' SSL version that SSL_new() will create */
int SSL_CTX_set_ssl_version(SSL_CTX *ctx,SSL_METHOD *meth);
 
which looks different from the test program generated by configure. 

Does php 5.0.0b1 have special requirement for the openssl package or is it
an error in the configuration file?

Thanks.
Ziying Sherwin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to