View Issue Details

IDProjectCategoryView StatusLast Update
0000608XdebugInstallationpublic2010-08-15 16:40
Reporterjsmitka Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.2dev 
Summary0000608: Xdebug rev. 3337 won't compile on Windows
Description

Hello,
today I've updated my copy of Xdebug sources and tried to compile the extension, but the build failed. When I tried to compile rev. 3336, the build succeeded. See additional information for relevant information from the build log (I've grepped out all warnings).

With my little knowledge of C, I've tried to write a patch: http://jan.smitka.org/xdebug-3337.patch
With this patch applied, Xdebug compiles fine on my machine and seems to work properly.

Please review the patch and consider merging it into the official source tree. Thanks!

Jan "Panda" Smitka

Additional Information
"cl.exe" /D COMPILE_DL_XDEBUG /D XDEBUG_EXPORTS=1 /nologo /FD /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3   /wd4996 /Wp64   /MP5  /LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /D ZTS=1 /I "D:\sources\php\win64build\include"  /D FD_SETSIZE=256 /Fox64\Release_TS\ext\xdebug\ /Fdx64\Release_TS\ext\xdebug\ /Fpx64\Release_TS\ext\xdebug\ /FRx64\Release_TS\ext\xdebug\ /c ext\xdebug\usefulstuff.c ext\xdebug\xdebug.c ext\xdebug\xdebug_code_coverage.c ext\xdebug\xdebug_com.c ext\xdebug\xdebug_compat.c ext\xdebug\xdebug_handler_dbgp.c ext\xdebug\xdebug_handlers.c ext\xdebug\xdebug_hash.c ext\xdebug\xdebug_llist.c ext\xdebug\xdebug_private.c ext\xdebug\xdebug_profiler.c ext\xdebug\xdebug_set.c ext\xdebug\xdebug_stack.c ext\xdebug\xdebug_str.c ext\xdebug\xdebug_superglobals.c ext\xdebug\xdebug_tracing.c ext\xdebug\xdebug_var.c ext\xdebug\xdebug_xml.c

usefulstuff.c
xdebug.c
xdebug_code_coverage.c
xdebug_com.c
xdebug_compat.c
xdebug_handler_dbgp.c
ext\xdebug\xdebug.c(314) : error C2039: 'output_is_tty' : is not a member of '_zend_xdebug_globals'
d:\sources\php\php-svn-5.3\ext\xdebug\php_xdebug.h(143) : see declaration of '_zend_xdebug_globals'
ext\xdebug\xdebug.c(314) : error C2065: 'OUTPUT_NOT_CHECKED' : undeclared identifier
xdebug_handlers.c
xdebug_hash.c
xdebug_llist.c
xdebug_private.c
xdebug_profiler.c
xdebug_set.c
xdebug_stack.c
xdebug_str.c
xdebug_superglobals.c
xdebug_tracing.c
ext\xdebug\xdebug_stack.c(139) : error C2198: 'select_formats' : too few arguments for call
ext\xdebug\xdebug_stack.c(421) : error C2065: 'tsrm_ls' : undeclared identifier
xdebug_var.c
xdebug_xml.c

TagsNo tags attached.
Operating SystemWindows 7 x64 Professional
PHP Version5.3-dev

Activities

derick

2010-08-15 16:40

administrator   ~0001562

I already had a patch, but forgot to commit it. Thanks for the report; this should now be fixed in SVN.

Issue History

Date Modified Username Field Change
2010-08-13 12:28 jsmitka New Issue
2010-08-13 12:28 jsmitka Operating System => Windows 7 x64 Professional
2010-08-13 12:28 jsmitka PHP Version => 5.3-dev
2010-08-13 12:28 jsmitka Xdebug Version => 2.2.0-dev
2010-08-15 16:40 derick Note Added: 0001562
2010-08-15 16:40 derick Status new => resolved
2010-08-15 16:40 derick Resolution open => fixed
2010-08-15 16:40 derick Assigned To => derick