Forgot to attached it... On Tue, 13 Nov 2001, Derick Rethans wrote:
> Hello, > > can you replace the file ext/curl/config.m4 with the one attached and see > if it works then? (dont forgot to (re)run ./buildconf). > > regards, > Derick > > On Tue, 13 Nov 2001, Balazs Nagy wrote: > > > On Tue, Nov 13 2001, Zeev Suraski <[EMAIL PROTECTED]> wrote: > > > > > http://www.php.net/~zeev/php-4.1.0RC2.tar.gz > > > > > > Do your thang :) > > > > make[1]: Entering directory /home/js/dl/linux/web/php-4.1.0RC2/ext/curl' > > gcc -I. -I/home/js/dl/linux/web/php-4.1.0RC2/ext/curl > > -I/home/js/dl/linux/web/php-4.1.0RC2/main > > -I/home/js/dl/linux/web/php-4.1.0RC2 > > -I/home/js/dl/linux/web/php-4.1.0RC2/Zend -I/usr/include/freetype2/freetype > > -I/home/js/dl/linux/web/php-4.1.0RC2/ext/xml/expat > > -I/home/js/dl/linux/web/php-4.1.0RC2/TSRM -g -Wall -c curl.c && touch > > curl.lo > > curl.c: In function `zm_startup_curl': > > curl.c:145: `CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function) > > curl.c:145: (Each undeclared identifier is reported only once > > curl.c:145: for each function it appears in.) > > curl.c: In function `zif_curl_setopt': > > curl.c:640: `CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function) > > make[1]: *** [curl.lo] Error 1 > > make[1]: Leaving directory /home/js/dl/linux/web/php-4.1.0RC2/ext/curl' > > make: *** [all-recursive] Error 1 > > > > It doesn't work with curl-7.8. It's old enough but this version is included > > into Red Hat Linux 7.2. In the 7.9.1 CHANGES file: > > > > Version 7.8.1-pre4 > > > > [...] > > > > - Patrick Bihan-Faou introduced CURLOPT_SSL_VERIFYHOST, which makes curl > > verify the server's CN field when talking https://. If --cacert is not used, > > any failures in matching is only displayed as information (-v). > > > > Thus configure's curl check should contain a version check for 7.8.1 or > > higher. > > -- > > jul > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > Derick Rethans > > --------------------------------------------------------------------- > PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] > SRM: Site Resource Manager - www.vl-srm.net > --------------------------------------------------------------------- > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------
dnl $Id: config.m4,v 1.8 2001/08/06 15:40:47 sniper Exp $ dnl config.m4 for extension CURL PHP_ARG_WITH(curl, for CURL support, [ --with-curl[=DIR] Include CURL support]) if test "$PHP_CURL" != "no"; then if test -r $PHP_CURL/include/curl/easy.h; then CURL_DIR=$PHP_CURL else AC_MSG_CHECKING(for CURL in default path) for i in /usr/local /usr; do if test -r $i/include/curl/easy.h; then CURL_DIR=$i AC_MSG_RESULT(found in $i) fi done fi if test -z "$CURL_DIR"; then AC_MSG_RESULT(not found) AC_MSG_ERROR(Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/) fi CURL_CONFIG="curl-config" AC_MSG_CHECKING(for cURL greater than 7.8.1) if ${CURL_DIR}/bin/curl-config --libs print > /dev/null 2>&1; then CURL_CONFIG=${CURL_DIR}/bin/curl-config fi curl_version_full=`$CURL_CONFIG --version` curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test "$curl_version" -ge 7008001; then AC_MSG_RESULT($curl_version_full) CURL_LIBS=`$CURL_CONFIG --libs` else AC_MSG_ERROR(cURL version 7.8.1 or later is required to compile php with cURL support) fi PHP_ADD_INCLUDE($CURL_DIR/include) PHP_EVAL_LIBLINE($CURL_LIBS, CURL_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, CURL_SHARED_LIBADD) AC_CHECK_LIB(curl,curl_easy_perform, [ AC_DEFINE(HAVE_CURL,1,[ ]) ],[ AC_MSG_ERROR(There is something wrong. Please check config.log for more information.) ],[ $CURL_LIBS -L$CURL_DIR/lib ]) PHP_EXTENSION(curl, $ext_shared) PHP_SUBST(CURL_SHARED_LIBADD) fi
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]