php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60863 mysqlnd does not compile in the combination NTS & Debug (Windows)
Submitted: 2012-01-23 23:11 UTC Modified: 2013-07-05 07:08 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cseiler@php.net Assigned: pierre (profile)
Status: Closed Package: MySQL related
PHP Version: 5.4SVN-2012-01-23 (SVN) OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cseiler@php.net
New email:
PHP Version: OS:

 

 [2012-01-23 23:11 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-23 23:14 UTC] cseiler@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-24 02:30 UTC] laruence@php.net
-Assigned To: +Assigned To: pierre
 [2013-07-05 07:08 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2013-07-05 07:08 UTC] ab@php.net
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
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 17:01:27 2025 UTC