#41921 [NEW]: ext/curl/config.m4 does detect nss crypto usage in curl

2007-07-08 Thread dragonheart at gentoo dot org
From: dragonheart at gentoo dot org
Operating system: all
PHP version:  5CVS-2007-07-08 (CVS)
PHP Bug Type: cURL related
Bug description:  ext/curl/config.m4 does detect nss crypto usage in curl

Description:

when curl is compiled to use NSS as a crypto engine, curl fails to detect
it as a valid crypto engine.

Reproduce code:
---
configure curl with:
./configure --without-ssl --without-gnutls --with-nss

curl --version now shows:
curl 7.16.3 (x86_64-pc-linux-gnu) libcurl/7.16.3 NSS/3.11.5 zlib/1.2.3
libidn/0.6.5
Protocols: tftp ftp telnet dict http file https ftps
Features: IDN IPv6 Largefile SSL libz

php5 configure:
./configure --with-curl
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.16.3
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... yes
checking for curl_version_info in -lcurl... yes
checking for curl_easy_strerror in -lcurl... yes
checking for curl_multi_strerror in -lcurl... yes

Expected result:

to detect the nss crypto engine and work with it
OR bombout nicely with an unsupported error.

Actual result:
--
checking for SSL support in libcurl... no

-- 
Edit bug report at http://bugs.php.net/?id=41921edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41921r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41921r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41921r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41921r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=41921r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=41921r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=41921r=needscript
Try newer version:http://bugs.php.net/fix.php?id=41921r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=41921r=support
Expected behavior:http://bugs.php.net/fix.php?id=41921r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=41921r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=41921r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41921r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41921r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41921r=dst
IIS Stability:http://bugs.php.net/fix.php?id=41921r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=41921r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41921r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=41921r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=41921r=mysqlcfg


#39687 [Com]: compile fails due to undefined references

2006-12-08 Thread dragonheart at gentoo dot org
 ID:   39687
 Comment by:   dragonheart at gentoo dot org
 Reported By:  cnt at crustal dot ucsb dot edu
 Status:   No Feedback
 Bug Type: cURL related
 Operating System: Solaris 10
 PHP Version:  5.2.0
 New Comment:

Same with Gentoo Linux (x86)

$ curl --version
curl 7.16.0 (i686-pc-linux-gnu) libcurl/7.16.0 GnuTLS/1.6.0 
zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile SSL libz

On latest snapshot:
/tmp/php5.2-200612090330 $ ./configure --with-curl


checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.16.0
checking for SSL support in libcurl... yes
checking for SSL library used... gnutls
.
.
(success)
/tmp/php5.2-200612090330 $ make
/bin/sh /tmp/php5.2-200612090330/libtool --silent --preserve-dup-deps
--mode=compile 
gcc  -Iext/curl/ -I/tmp/php5.2-200612090330/ext/curl/ -DPHP_ATOM_INC
-I/tmp/php5.2-200612090330/include -I/tmp/php5.2-200612090330/main
-I/tmp/php5.2-200612090330 -I/usr/include/libxml2
-I/tmp/php5.2-200612090330/ext/date/lib -I/tmp/php5.2-200612090330/TSRM
-I/tmp/php5.2-200612090330/Zend-I/usr/include -g -O2  -c
/tmp/php5.2-200612090330/ext/curl/streams.c -o 
ext/curl/streams.lo
/bin/sh /tmp/php5.2-200612090330/libtool --silent --preserve-dup-deps
--mode=compile 
gcc -Iext/date/lib -Iext/date/ -I/tmp/php5.2-200612090330/ext/date/
-DPHP_ATOM_INC -I/tmp/php5.2-200612090330/include
-I/tmp/php5.2-200612090330/main -I/tmp/php5.2-200612090330
-I/usr/include/libxml2 -I/tmp/php5.2-200612090330/ext/date/lib
-I/tmp/php5.2-200612090330/TSRM -I/tmp/php5.2-200612090330/Zend   
-I/usr/include -g -O2  -c /tmp/php5.2-200612090330/ext/date/php_date.c
-o 
ext/date/php_date.lo

seems to be fixed - thankyou


Previous Comments:


[2006-12-07 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2006-11-29 21:51:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip





[2006-11-29 21:25:07] cnt at crustal dot ucsb dot edu

Description:

Had problems with ext/curl during build.  Found unreferenced
symbols (CURLOPT_FTPASCII, CURLOPT_PASSWDFUNCTIONO, 
CURLOPT_PASSWDDATA).
Apparently these are all deprecated for awhile and have been 
removed from curl
(at least as of 7.16.0), but are still in the php code.
Found references to this at http://curl.haxx.se/mail/
archive-2004-04/0056.html
and other similar links at the curl site.
Replaced the CURLOPT_FTPASCII with CURLOPT_TRANSFERTEXT
but had to just comment out the two PASSWD functions.
Not sure if this will harm the curl support under php.  
I am using the blastwave.org curl package which is the 
newest (7.16.0).
I would guess that this new version removes support for 
those 
deprecated options.

Build completed ok after these changes!

I saw references that this is fixed already in the php cvs 
tree.  Maybe will be resolved with php-5.2.1

Reproduce code:
---
standard php build






-- 
Edit this bug report at http://bugs.php.net/?id=39687edit=1