cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Configuring PHP with Curl(with ssl) support.

From: Paul McGarry <PaulM_at_opentec.com.au>
Date: Thu, 8 Mar 2001 18:10:53 +1100

Howdy,
I'm trying to configure PHP with curl support and I am
having problems at configuration time. The contents of
my PHP debug.log file are included here, any ideas?

The problem seems to stem from the fact that libcurl
has SSL support compiled in (which I need) as
the undefined symbols seem to be part of the openssl.

I'm using PHP 4.0.4pl1, Curl 7.6.1 and openssl 0.9.6

==========
# cat debug.log
CONFIGURE: './configure' '--with-apxs=/opt/iebusiness/app/apache/bin/apxs'
'--without-mysql' '--with-curl'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208101
-DEAPI -DEAPI_MM -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES: -I/opt/iebusiness/app/apache/include -I$(top_builddir)/Zend
-I/usr/local/include
LDFLAGS: -R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
-L/usr/local/lib/gcc-lib/sparc-sun-solaris
2.7/2.95.2 -R/usr/local/lib -L/usr/local/lib
LIBS: -lcurl -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket
-lsocket -lgcc
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
/usr/local/lib
uname -a: SunOS storedev 5.7 Generic_106541-06 sun4m sparc sun4m

gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270
-DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT -R/usr/ucblib -L/usr/uc
blib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -R/usr/local/lib
-L/usr/l
ocal/lib conftest.c -lcurl -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket
-lsocket -lgcc 1>&5
Undefined first referenced
 symbol in file
SSL_library_init /usr/local/lib/libcurl.so
ERR_error_string /usr/local/lib/libcurl.so
CRYPTO_free /usr/local/lib/libcurl.so
X509_get_issuer_name /usr/local/lib/libcurl.so
X509_STORE_CTX_get_current_cert /usr/local/lib/libcurl.so
SSL_shutdown /usr/local/lib/libcurl.so
SSLv3_client_method /usr/local/lib/libcurl.so
X509_free /usr/local/lib/libcurl.so
SSL_CIPHER_get_name /usr/local/lib/libcurl.so
SSL_CTX_use_PrivateKey_file /usr/local/lib/libcurl.so
SSL_CTX_set_default_passwd_cb /usr/local/lib/libcurl.so
SSL_CTX_set_verify /usr/local/lib/libcurl.so
SSL_CTX_check_private_key /usr/local/lib/libcurl.so
SSL_CTX_free /usr/local/lib/libcurl.so
RAND_seed /usr/local/lib/libcurl.so
SSLv23_client_method /usr/local/lib/libcurl.so
SSL_load_error_strings /usr/local/lib/libcurl.so
SSLv2_client_method /usr/local/lib/libcurl.so
SSL_get_verify_result /usr/local/lib/libcurl.so
SSL_get_current_cipher /usr/local/lib/libcurl.so
RAND_status /usr/local/lib/libcurl.so
EVP_PKEY_copy_parameters /usr/local/lib/libcurl.so
SSL_CTX_use_certificate_file /usr/local/lib/libcurl.so
SSL_connect /usr/local/lib/libcurl.so
SSL_CTX_new /usr/local/lib/libcurl.so
SSL_set_connect_state /usr/local/lib/libcurl.so
X509_get_subject_name /usr/local/lib/libcurl.so
SSL_get_privatekey /usr/local/lib/libcurl.so
SSL_get_certificate /usr/local/lib/libcurl.so
SSL_set_fd /usr/local/lib/libcurl.so
SSL_write /usr/local/lib/libcurl.so
SSL_CTX_load_verify_locations /usr/local/lib/libcurl.so
SSL_new /usr/local/lib/libcurl.so
X509_get_pubkey /usr/local/lib/libcurl.so
SSL_get_error /usr/local/lib/libcurl.so
SSL_free /usr/local/lib/libcurl.so
SSL_get_peer_certificate /usr/local/lib/libcurl.so
SSL_read /usr/local/lib/libcurl.so
X509_NAME_oneline /usr/local/lib/libcurl.so
ERR_get_error /usr/local/lib/libcurl.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
==========

--
Paul McGarry            mailto:paulm_at_opentec.com.au 
Systems Integrator      http://www.opentec.com.au 
Opentec Pty Ltd         http://www.iebusiness.com.au
6 Lyon Park Road        Phone: (02) 9878 1744 
North Ryde NSW 2113     Fax:   (02) 9878 1755
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-03-08