php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34007 cURL compilation fails with GCC 4.x
Submitted: 2005-08-05 15:03 UTC Modified: 2005-08-06 00:28 UTC
From: mj@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2005-08-05 (dev) OS: GNU/Linux
Private report: No CVE-ID: None
 [2005-08-05 15:03 UTC] mj@php.net
Description:
------------
Building the latest snapshot of PHP 5.1 with cURL support enabled fails.  This seems to be a problem with GCC 4.x only, because it builds fine with GCC 3.3.

$ gcc --version
gcc (GCC) 4.0.2 20050725 (prerelease) (Debian 4.0.1-3)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Actual result:
--------------
/home/martin/src/php5-200508051030/ext/curl/interface.c: In function 'zif_curl_init':
/home/martin/src/php5-200508051030/ext/curl/interface.c:829: error: invalid lvalue in assignment
/home/martin/src/php5-200508051030/ext/curl/interface.c: In function 'zif_curl_copy_handle':
/home/martin/src/php5-200508051030/ext/curl/interface.c:890: error: invalid lvalue in assignment
make: *** [ext/curl/interface.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-06 00:12 UTC] sniper@php.net
Hint: To not waste our time, always include your configure line in the report. Now I first tried compile, then when it didn't fail or give any warnings even, I checked the sources and noticed that this can only happen when ZTS is enabled..


 [2005-08-06 00:28 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 21:00:01 2025 UTC