View Issue Details

IDProjectCategoryView StatusLast Update
0000985XdebugInstallationpublic2014-05-19 23:12
ReporterJan-EAssigned Toderick 
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000985: The current Git head does not compile anymore for Windows
DescriptionCompilation of php_xdebug.dll with the latest sources fails:

   Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
php_xmlreader.obj : warning LNK4217: locally defined symbol _php_dom_create_object imported in function _php_xmlreader_set_relaxng_schema
php_xmlreader.obj : warning LNK4217: locally defined symbol _dom_node_class_entry imported in function _php_xmlreader_set_relaxng_schema
   Creating library Release_TS\php_xdebug.lib and object Release_TS\php_xdebug.exp
xdebug.obj : error LNK2019: unresolved external symbol __imp__xdebug_external_error_cb referenced in function _time
xdebug_stack.obj : error LNK2001: unresolved external symbol __imp__xdebug_external_error_cb
Release_TS\php_xdebug.dll : fatal error LNK1120: 1 unresolved externals

Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
Steps To ReproduceTry to compile php_xdebug.dll with VC9 (PHP 5.3 & PHP 5.4) or VC11 (x86 & x64, PHP 5.5). It does not succeed.
Additional InformationThe 2.2.3 release still compiles fine.
TagsNo tags attached.
Operating SystemWindows
PHP Version5.4.10-5.4.14

Activities

patrickallaert

2013-10-11 09:05

reporter   ~0002578

@Jan-E:

Can you try while applying the patch from PR: https://github.com/xdebug/xdebug/pull/84 ?

Jan-E

2013-10-12 07:12

reporter   ~0002579

Last edited: 2013-10-12 07:13

View 3 revisions

The patch worked. It compiled once again. Thanks.

Jan-E

2013-10-12 16:33

reporter   ~0002580

Although it compiled fine, I am now getting memory protection crashes in httpd.exe. Apache 2.4.6, PHP 5.4.21RC1 TS as mod_php under XP. Debugging with VC9 pointed in the direction of malloc.c. Without php_xdebug.dll no problems.

Jan-E

2013-10-13 02:39

reporter   ~0002581

The same happened under Win 7 Pro and while running php-cgi.exe as mod_fcgid.

Unhandled exception at 0x100f066e in php-cgi.exe: 0xC0000005: Access violation reading location 0x00000000

No problem with the 2.2.3 release.

patrickallaert

2013-10-14 07:31

reporter   ~0002589

About the other issue you are facing, I wonder if this is not related to 0000984. Can you investigate if the patch from that issue solves your memory protection crash issue? If not, probably better to fill another issue as it would be unrelated to this (compile-related) one.

Jan-E

2013-10-14 12:34

reporter   ~0002590

The patch from issue 984 did not solve my memory crashes. I will open a new issue when I've got the chance to investigate it further.

Jan-E

2013-10-14 12:38

reporter   ~0002591

How do I close this issue?

patrickallaert

2013-10-14 13:11

reporter   ~0002592

@Jan-E

You should not, wait that Derick accepts the Pull Request. When merged, this issue will be closed.

derick

2013-12-04 00:05

administrator   ~0002634

@patrickallaert, the user says it compiles now, but that it still crashes.

derick

2014-05-19 23:12

administrator   ~0002820

This must be fixed already, as I successfully compiled 2.2.4 binaries (and ripped out this code)

Issue History

Date Modified Username Field Change
2013-10-10 23:21 Jan-E New Issue
2013-10-11 09:05 patrickallaert Note Added: 0002578
2013-10-12 07:12 Jan-E Note Added: 0002579
2013-10-12 07:12 Jan-E Note Edited: 0002579 View Revisions
2013-10-12 07:13 Jan-E Note Edited: 0002579 View Revisions
2013-10-12 16:33 Jan-E Note Added: 0002580
2013-10-13 02:39 Jan-E Note Added: 0002581
2013-10-14 07:31 patrickallaert Note Added: 0002589
2013-10-14 12:34 Jan-E Note Added: 0002590
2013-10-14 12:38 Jan-E Note Added: 0002591
2013-10-14 13:11 patrickallaert Note Added: 0002592
2013-12-04 00:05 derick Note Added: 0002634
2014-05-19 23:12 derick Note Added: 0002820
2014-05-19 23:12 derick Status new => resolved
2014-05-19 23:12 derick Resolution open => fixed
2014-05-19 23:12 derick Assigned To => derick