|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Errors Building PHP 5.1.0 in win32
Hi, i fallowd all the instructions in the instalation manual from PHP
Installed: Microsoft Platform SDK 2003 Sp1 VS6 C++ When trying to build i found this error in the make step: Code:
C:PHPDEVphp-5.1.0>buildconf
Rebuilding configure.js
Now run 'cscript /nologo configure.js --help'
C:PHPDEVphp-5.1.0>config.nice.bat
C:PHPDEVphp-5.1.0>cscript /nologo configure.js "--without-xml" "--without-wdd
x" "--without-simplexml" "--without-dom" "--without-libxml" "--disable-zlib" "--
without-sqlite" "--disable-odbc" "--disable-cgi" "--enable-cli" "--enable-debug"
"--without-iconv"
Saving configure options to config.nice.bat
Checking for cl.exe ... <in default path>
Checking for cl.exe ... <in default path>
Detected MS compiler version 12
Checking for link.exe ... C:PROGRA~1MICROS~3VC98BIN
Checking for nmake.exe ... <in default path>
Checking for lib.exe ... <in default path>
Checking for bison.exe ... <in default path>
Checking for flex.exe ... <in default path>
Checking for re2c.exe ... <not found>
Checking for zip.exe ... <not found>
Checking for lemon.exe ... <not found>
Checking for mc.exe ... C:PROGRA~1MICROS~3VC98BIN
Checking for arpanameser.h ... ..win32buildinclude
Checking for library resolv.lib ... ..bindlib_w32Debugresolv.lib
Build dir: Debug_TS
PHP Core: php5ts_debug.dll and php5ts_debug.lib
Checking for wspiapi.h ... <in default path>
Enabling IPv6 support
Checking for NewAPIs.h ... <in default path>
Enabling SAPI sapicli
Enabling extension extbcmath
Enabling extension extcalendar
Checking for library oleaut32.lib ... <in LIB path> oleaut32.lib
Enabling extension extcom_dotnet
Checking for mscoree.h ... <not found>
Checking for mscoree.h ... <not found>
Enabling extension extctype
Enabling extension extdate
Enabling extension extftp
Checking for library libjpeg.lib ... <not found>
WARNING: gd not enabled; libraries and headers not found
Enabling extension extpcre
Enabling extension extsession
Enabling extension extspl
Checking for timelib_config.h ... ext/date/lib
Enabling extension extstandard
Enabling extension exttokenizer
Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
[content unchanged; skipping]
Generating main/config.w32.h
Done.
Type 'nmake' to build PHP
C:PHPDEVphp-5.1.0>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
php_cli.c
c:programasmicrosoft platform sdkincludewspiapi.h(197) : error C2027: use of
undefined type 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(60) : see declarat
ion of 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(213) : error C2037: left o
f 'ai_family' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(214) : error C2037: left o
f 'ai_socktype' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(215) : error C2037: left o
f 'ai_protocol' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(216) : error C2037: left o
f 'ai_addrlen' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(217) : error C2037: left o
f 'ai_addr' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(232) : error C2065: 'NI_MA
XHOST' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(232) : error C2057: expect
ed constant expression
c:programasmicrosoft platform sdkincludewspiapi.h(232) : error C2466: cannot
allocate an array of constant size 0
c:programasmicrosoft platform sdkincludewspiapi.h(278) : error C2065: 'EAI_M
EMORY' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(280) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(292) : error C2065: 'EAI_N
ONAME' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(293) : error C2065: 'EAI_A
GAIN' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(294) : error C2065: 'EAI_F
AIL' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(295) : error C2065: 'EAI_N
ODATA' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(338) : error C2057: expect
ed constant expression
c:programasmicrosoft platform sdkincludewspiapi.h(338) : error C2466: cannot
allocate an array of constant size 0
c:programasmicrosoft platform sdkincludewspiapi.h(339) : error C2057: expect
ed constant expression
c:programasmicrosoft platform sdkincludewspiapi.h(339) : error C2466: cannot
allocate an array of constant size 0
c:programasmicrosoft platform sdkincludewspiapi.h(376) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(377) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(416) : error C2037: left o
f 'ai_protocol' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(418) : error C2037: left o
f 'ai_addr' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(418) : error C2198: 'Wspia
piNewAddrInfo' : too few actual parameters
c:programasmicrosoft platform sdkincludewspiapi.h(423) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(423) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(424) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(425) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(456) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(457) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(457) : warning C4022: '_fr
ee_dbg' : pointer mismatch for actual parameter 1
c:programasmicrosoft platform sdkincludewspiapi.h(457) : error C2198: '_free
_dbg' : too few actual parameters
c:programasmicrosoft platform sdkincludewspiapi.h(459) : error C2037: left o
f 'ai_addr' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(460) : error C2037: left o
f 'ai_addr' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(460) : warning C4022: '_fr
ee_dbg' : pointer mismatch for actual parameter 1
c:programasmicrosoft platform sdkincludewspiapi.h(460) : error C2198: '_free
_dbg' : too few actual parameters
c:programasmicrosoft platform sdkincludewspiapi.h(462) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(527) : error C2037: left o
f 'ai_addrlen' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(528) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(529) : error C2037: left o
f 'ai_addr' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(530) : error C2037: left o
f 'ai_next' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(541) : error C2037: left o
f 'ai_flags' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(542) : error C2065: 'AI_CA
NONNAME' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(543) : error C2065: 'EAI_B
ADFLAGS' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(546) : error C2037: left o
f 'ai_family' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(548) : error C2065: 'EAI_F
AMILY' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(551) : error C2037: left o
f 'ai_socktype' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(556) : error C2065: 'EAI_S
OCKTYPE' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(559) : error C2037: left o
f 'ai_protocol' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(596) : error C2065: 'EAI_S
ERVICE' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(622) : error C2065: 'AI_PA
SSIVE' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(637) : error C2037: left o
f 'ai_flags' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(637) : error C2065: 'AI_NU
MERICHOST' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(642) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(644) : error C2037: left o
f 'ai_canonname' specifies undefined struct/union 'addrinfo'
c:programasmicrosoft platform sdkincludewspiapi.h(750) : error C2065: 'NI_NU
MERICHOST' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(750) : error C2065: 'NI_NA
MEREQD' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(760) : error C2065: 'NI_NU
MERICSERV' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(769) : error C2065: 'NI_DG
RAM' : undeclared identifier
c:programasmicrosoft platform sdkincludewspiapi.h(812) : error C2065: 'NI_NO
FQDN' : undeclared identifier
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.
I´ve tried all the configurations but no results Can somenone help Thankiu |
|
#2
|
|||
|
|||
|
RE: Errors Building PHP 5.1.0 in win32
I'll ask the obvious question - why are you building PHP for windows instead of using the pre-built windows binary?
If you are doing this to get an extension installed, you normally only need to uncomment the extension=something.dll line in php.ini and stop/start the web server. |
|
#3
|
|||
|
|||
|
RE: Errors Building PHP 5.1.0 in win32
i am building a costum extension for miself, not using another extensio hehe ... thats why i need to compile it.
Im using WIN32 becuase the librarys for the hardaware (GBIB) i will use for this project must be for windows...sadly. In *nix i dont have this problems :s |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Errors Building PHP 5.1.0 in win32 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|