Bug #60863 [Opn]: mysqlnd does not compile in the combination NTS & Debug (Windows)
| From: | cseiler@php.net | Date: | Mon, 23 Jan 2012 23:14:00 +0000 |
| Subject: | Bug #60863 [Opn]: mysqlnd does not compile in the combination NTS & Debug (Windows) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166748@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60863&edit=1
ID: 60863
Updated by: cseiler@php.net
Reported by: cseiler@php.net
Summary: mysqlnd does not compile in the combination NTS &
Debug (Windows)
Status: Open
Type: Bug
Package: MySQL related
Operating System: Windows XP
PHP Version: 5.4SVN-2012-01-23 (SVN)
Block user comment: N
Private report: N
New Comment:
The following error messages are produced by the VC9 compiler (messages unfortunately in German, but
"nichtdeklarierter Bezeichner" means "undeclared identifier"):
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2143:
Syntaxfehler: Es fehlt ';' vor 'Typ'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2275:
'uint64_t': UngÃÅltige Verwendung dieses Typs als Ausdruck
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\win32\php_stdint.h(87): Siehe Deklaration von
'uint64_t'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2146:
Syntaxfehler: Fehlendes ';' vor Bezeichner '__dbg_prof_start'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'__dbg_prof_start': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2275:
'zend_bool': UngÃÅltige Verwendung dieses Typs als Ausdruck
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\zend\zend_types.h(25): Siehe Deklaration von
'zend_bool'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2146:
Syntaxfehler: Fehlendes ';' vor Bezeichner 'dbg_skip_trace'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'dbg_skip_trace': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'dbg_skip_trace': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : warning C4133:
'Funktion': Inkompatible Typen - von 'int *' zu 'timeval *'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'__dbg_prof_start': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2224: Der linke
Teil von '.tv_sec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : error C2224: Der linke
Teil von '.tv_usec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : warning C4133:
'Funktion': Inkompatible Typen - von 'int *' zu 'timeval *'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2224: Der linke
Teil von '.tv_sec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2065:
'__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2224: Der linke
Teil von '.tv_usec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : error C2065:
'__dbg_prof_start': nichtdeklarierter Bezeichner
Previous Comments:
------------------------------------------------------------------------
[2012-01-23 23:11:44] cseiler@php.net
Description:
------------
The mysqlnd driver does not compile in the combination NTS (thread UNsafe) + Debug build under
Microsoft Windows XP. (WinSDK 6.1, VC9 SP1 Pro)
See <http://thread.gmane.org/gmane.comp.php.devel/70394>
for further details and discussion.
The following configure line was used:
cscript /nologo configure.js
"--disable-phar"
"--disable-ipv6"
"--disable-zts"
"--enable-cgi"
"--disable-bcmath"
"--disable-calendar"
"--disable-odbc"
"--disable-tokenizer"
"--disable-xmlreader"
"--disable-xmlwriter"
"--without-wddx"
"--enable-debug"
"--enable-cli-win32"
"--enable-pdo"
"--with-openssl"
"--with-php-build=..\deps"
"--with-libxml"
"--with-pdo-sqlite"
It chokes on the following two lines:
mysqlnd_driver.c, 100:
DBG_ENTER("mysqlnd_error_list_pdtor");
mysqlnd_driver.c, 104:
DBG_VOID_RETURN;
Debug + ZTS (thread safe), Release + NTS and Release + ZTS all compile. As do all 4 variants of PHP
5.3 with the same configure line.
Could potentially be related to PHP bug #60840
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60863&edit=1