curl-and-php
Re: curl (with php to HTTPS)
Date: Fri, 13 Apr 2001 09:40:06 +0800
Does it mean curl was not built properly with SSL if I got the following
message during PHP ./configure (in debug.log) ?
gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib
conftest.c -lcurl -lm -lcrypt 1>&5
/usr/local/lib/libcurl.so: undefined reference to `SSL_set_fd'
/usr/local/lib/libcurl.so: undefined reference to `SSL_set_connect_state'
/usr/local/lib/libcurl.so: undefined reference to `SSL_CTX_free'
/usr/local/lib/libcurl.so: undefined reference to `X509_free'
/usr/local/lib/libcurl.so: undefined reference to `SSL_shutdown'
/usr/local/lib/libcurl.so: undefined reference to `X509_NAME_oneline'
/usr/local/lib/libcurl.so: undefined reference to `SSL_get_error'
/usr/local/lib/libcurl.so: undefined reference to `RAND_seed'
/usr/local/lib/libcurl.so: undefined reference to `SSL_read'
..... (more and more here) .....
but my curl -V shows :
curl 7.6.1 (i386-unknown-freebsd4.1) libcurl 7.6.1 (SSL 0.9.6)
> > But after recompiling PHP with
> >
'./configure --with-mysql --with-curl=/usr/local/lib --with-openssl=/usr/loc
> > al/ssl', the phpinfo() still printed me the following :
>
> > > > curl
> > > > CURL support enabled
> > > > CURL Information libcurl 7.6.1 (ipv6 enabled)
>
> Hm, did you 'make install' the no-ipv6 version from above? Anyhow, this
looks
> like you now have two different curl libraries in your system, and the one
> without IPv6 support is the one you want.
Ya.. I did 'make install'. The two curl libraries is more likely possible.
But now whenever I configure PHP with curl, it failed with the above
"undefined reference" messages.. I didn't get this last time.
> > Any other setting required for PHP? The new libcurl.a is already in
> > /usr/local/lib (which I assumed it should be ipv6-disabled).
>
> PHP generally use the shared version of libcurl, while libcurl.a won't be
> used; libcurl.so will.
>
> > Have tried even with '--with-curl=../curl-7.6.1' and 'make distclean',
> > none of these made a difference.
>
> When you've built your php library, run 'ldd <lib>' on it to see exactly
> which libcurl library (you'll see the full path) that is used within it.
>
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-04-15