#34174 [NEW]: Compiling SOAP extension fails (patch included)
| From: | mj@php.net | Date: | Wed, 17 Aug 2005 16:02:06 +0000 |
| Subject: | #34174 [NEW]: Compiling SOAP extension fails (patch included) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83708@lists.php.net to get a copy of this message | ||
From: mj@php.net
Operating system: GNU/Linux
PHP version: 5CVS-2005-08-17 (snap)
PHP Bug Type: Compile Failure
Bug description: Compiling SOAP extension fails (patch included)
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 bug report at http://bugs.php.net/?id=34174&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34174&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34174&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34174&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34174&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34174&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34174&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34174&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34174&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34174&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34174&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34174&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34174&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34174&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34174&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34174&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34174&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34174&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34174&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34174&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34174&r=mysqlcfg