Edit report at https://bugs.php.net/bug.php?id=60863&edit=1

 ID:                 60863
 Updated by:         a...@php.net
 Reported by:        csei...@php.net
 Summary:            mysqlnd does not compile in the combination NTS &
                     Debug (Windows)
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            MySQL related
 Operating System:   Windows XP
 PHP Version:        5.4SVN-2012-01-23 (SVN)
 Assigned To:        pierre
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Fixed with http://git.php.net/?p=php-
src.git;a=commitdiff;h=0d458ae89f7499da51636140c186970dbfdc06ae


Previous Comments:
------------------------------------------------------------------------
[2012-01-23 23:14:00] csei...@php.net

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

------------------------------------------------------------------------
[2012-01-23 23:11:44] csei...@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

Reply via email to