#34174 [Opn->Csd]: Compiling SOAP extension fails (patch included)
| From: | sniper@php.net | Date: | Wed, 17 Aug 2005 17:04:58 +0000 |
| Subject: | #34174 [Opn->Csd]: Compiling SOAP extension fails (patch included) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83713@lists.php.net to get a copy of this message | ||
ID: 34174
Updated by: sniper@php.net
Reported By: mj@php.net
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: GNU/Linux
PHP Version: 5CVS-2005-08-17 (snap)
New Comment:
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.
btw. Your patch is not the way to fix this..
Previous Comments:
------------------------------------------------------------------------
[2005-08-17 18:02:05] mj@php.net
Description:
------------
Compiling PHP with the SOAP extension (using GCC 4.x) fails with the
following error message:
/home/martin/src/php5-200508171430/ext/soap/soap.c: In function
'verify_soap_headers_array':
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error:
'tsrm_ls' undeclared (first use in this function)
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error: (Each
undeclared identifier is reported only once
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error: for
each function it appears in.)
The following patch seems to fix this:
Index: soap.c
===================================================================
RCS file: /repository/php-src/ext/soap/soap.c,v
retrieving revision 1.158
diff -u -r1.158 soap.c
--- soap.c 17 Aug 2005 07:04:50 -0000 1.158
+++ soap.c 17 Aug 2005 15:58:52 -0000
@@ -30,6 +30,10 @@
# include "zend_exceptions.h"
#endif
+#ifdef ZTS
+static void ***tsrm_ls;
+#endif
+
static int le_sdl = 0;
int le_url = 0;
static int le_service = 0;
Reproduce code:
---------------
Compile PHP with the following configure options:
./configure --with-zlib --disable-cgi --with-apxs2=/usr/bin/apxs2
--disable-pear --with-mysql --enable-readline --with-curl --enable-soap
--with-xmlrpc
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34174&edit=1