[xdebug-general] can't compile xdebug2.2 on windows

From: Hen Barshak <hen[@]seekersec.com>
Date: Thu, 31 May 2012 10:38:57 +0300

Hi,

I am trying to compile xdebug on windows.

I am using php-5.3.5-dev-devel-VC9-x86 package that contains phpize.bat.

 

Console output:

 

C:\Users\win764\Desktop\xdebug-2.2.0>c:\Users\win764\Desktop\php-5.3.5-d
ev-devel-VC9-x86\phpize.bat

Rebuilding configure.js

c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86

module ...

Now run 'configure --help'

 

C:\Users\win764\Desktop\xdebug-2.2.0>configure.bat --help

Options that enable extensions and SAPI will accept 'yes' or 'no' as a

parameter. They also accept 'shared' as a synonym for 'yes' and request
a

shared build of that module. Not all modules can be built as shared
modules;

configure will display [shared] after the module name if can be built
that

way.

 

  --enable-debug Compile with debugging symbols

  --enable-object-out-dir Alternate location for binary objects
during

                             build

  --enable-debug Compile with debugging symbols

  --enable-debug-pack Release binaries with external debug
symbols

                             (--enable-debug must not be specified)

  --with-prefix PHP installation prefix

 --with-mp Tell VC9+ use up to [n,auto,disable]
processes

                             for compilation

  --with-snapshot-template Path to snapshot builder template dir

  --with-php-build Path to where you extracted the development

                             libraries

 
(http://wiki.php.net/internals/windows/libs).

                             Assumes that it is a sibling of this source
dir

                             (..\deps) if not specified

  --with-extra-includes Extra include path to use when building

                             everything

  --with-extra-libs Extra library path to use when linking
everything

  --with-xdebug Xdebug support

 

C:\Users\win764\Desktop\xdebug-2.2.0>configure.bat --with-xdebug

Saving configure options to config.nice.bat

Checking for cl.exe ... <in default path>

  Detected compiler MSVC9 (Visual C++ 2008)

  Detected 32-bit compiler

Checking for link.exe ... C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\Bin

Checking for nmake.exe ... <in default path>

Checking for lib.exe ... <in default path>

Checking for bison.exe ... <in default path>

Checking for re2c.exe ... <in default path>

  Detected re2c version 0.13.5

Checking for zip.exe ... <in default path>

Checking for lemon.exe ... <not found>

Checking for mc.exe ... C:\Program Files\Microsoft
SDKs\Windows\v6.1\Bin\x64

Checking for mt.exe ... C:\Program Files\Microsoft
SDKs\Windows\v6.1\Bin\x64

 

Build dir: Release_TS

PHP Core: php5ts.dll and php5ts.lib

 

Checking for cl.exe ... <in default path>

  Detected compiler MSVC9 (Visual C++ 2008)

AC_DEFINE[COMPILER]="MSVC9 (Visual C++ 2008)": is already defined to
"MSVC9 (Visual C++ 2008)"

AC_DEFINE[PHP_COMPILER_ID]="VC9": is already defined to "VC9"

  Detected 32-bit compiler

AC_DEFINE[ARCHITECTURE]="x86": is already defined to "x86"

Checking for link.exe ... C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\Bin

Checking for nmake.exe ... <in default path>

Checking for lib.exe ... <in default path>

Checking for bison.exe ... <in default path>

Checking for re2c.exe ... <in default path>

  Detected re2c version 0.13.5

Checking for zip.exe ... <in default path>

Checking for lemon.exe ... <not found>

Checking for mc.exe ... C:\Program Files\Microsoft
SDKs\Windows\v6.1\Bin\x64

Checking for mt.exe ... C:\Program Files\Microsoft
SDKs\Windows\v6.1\Bin\x64

 

Build dir: Release_TS

PHP Core: php5ts.dll and php5ts.lib

AC_DEFINE[HAVE_STRNLEN]=1: is already defined to 1

 

AC_DEFINE[PHP_DIR]="c:\\Users\\win764\\Desktop\\php-5.3.5-dev-devel-VC9-
x86": is already defined to

"c:\\Users\\win764\\Desktop\\php-5.3.5-dev-devel-VC9-x86"

Enabling extension C:\Users\win764\Desktop\xdebug-2.2.0 [shared]

 

Creating build dirs...

Generating files...

Generating Makefile

Done.

 

 

 

Enabled extensions:

----------------------

| Extension | Mode |

----------------------

| xdebug | shared |

----------------------

 

 

-------------------------------------------

| | |

-------------------------------------------

| Build type | Release |

| Thread Safety | Yes |

| Compiler | MSVC9 (Visual C++ 2008) |

| Architecture | x86 |

-------------------------------------------

 

 

Type 'nmake' to build PHP

 

C:\Users\win764\Desktop\xdebug-2.2.0>nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08

Copyright (C) Microsoft Corporation. All rights reserved.

 

usefulstuff.c

xdebug.c

xdebug_code_coverage.c

xdebug_com.c

xdebug_compat.c

xdebug_handler_dbgp.c

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_handler_dbgp.c(305) :
warning C4090: 'function' : differ

ent 'const' qualifiers

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

xdebug_var.c

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(219) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(219) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(437) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(535) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(748) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(846) : warning C4090:
'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(1247) : warning C4090:
'function' : different 'con

st' qualifiers

xdebug_xml.c

        rc /I
c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86/include /n /fo
Release_TS\php_xde

bug.dll.res /d FILE_DESCRIPTION="\"Xdebug\"" /d
FILE_NAME="\"php_xdebug.dll\"" /d URL="\"http://www.

php.net\"" /d INTERNAL_NAME="\"XDEBUG extension\"" /d
THANKS_GUYS="\"Thanks to Derick Rethans, Ilia

Alshanetsky, Harald Radi\""
c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\build\template.rc

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation. All rights reserved.

 

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08
for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

 

Microsoft (R) Incremental Linker Version 9.00.21022.08

Copyright (C) Microsoft Corporation. All rights reserved.

 

/out:usefulstuff.exe

/out:Release_TS\php_xdebug.dll

/dll

/libpath:c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\lib\;c:\Use
rs\win764\Desktop\php-5.3.5-

dev-devel-VC9-x86

Release_TS\Users\win764\Desktop\xdebug-2.2.0\usefulstuff.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_code_coverage.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_com.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_compat.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_handler_dbgp.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_handlers.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_hash.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_llist.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_private.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_profiler.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_set.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_stack.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_str.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_superglobals.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_tracing.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_xml.obj

c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\lib\php5ts.lib

kernel32.lib

ole32.lib

user32.lib

advapi32.lib

shell32.lib

ws2_32.lib

Dnsapi.lib

Release_TS\php_xdebug.dll.res

xdebug_var.obj : error LNK2019: unresolved external symbol
_xdebug_globals_id referenced in function

_xdebug_var_export

xdebug_profiler.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_stack.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_superglobals.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_tracing.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

usefulstuff.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_code_coverage.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_handler_dbgp.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_private.obj : error LNK2001: unresolved external symbol
_xdebug_globals_id

xdebug_stack.obj : error LNK2019: unresolved external symbol
_xdebug_is_output_tty referenced in fun

ction _select_formats

Release_TS\php_xdebug.dll : fatal error LNK1120: 2 unresolved externals

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\Bin\cl.exe"' : re

turn code '0x2'

Stop.

 

C:\Users\win764\Desktop\xdebug-2.2.0>

 

I think that I am missing a library...
Received on Thu May 31 2012 - 08:46:05 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST