locked
wspiapi.h error, while compiling PHP in WIN32 RRS feed

  • Question

  • Hi, im trying to compile a PHP souce with win32 but i gives me always this error :s
    Installed:

    Microsoft Platform SDK 2003 Sp1
    VS6 C++

    When trying to build i found this error:

    Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
    Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
    
    php_cli.c
    c:\programas\microsoft platform sdk\include\wspiapi.h(197) : error C2027: use of
     undefined type 'addrinfo'
            c:\programas\microsoft platform sdk\include\wspiapi.h(60) : see declarat
    ion of 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(213) : error C2037: left o
    f 'ai_family' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(214) : error C2037: left o
    f 'ai_socktype' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(215) : error C2037: left o
    f 'ai_protocol' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(216) : error C2037: left o
    f 'ai_addrlen' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(217) : error C2037: left o
    f 'ai_addr' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(232) : error C2065: 'NI_MA
    XHOST' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(232) : error C2057: expect
    ed constant expression
    c:\programas\microsoft platform sdk\include\wspiapi.h(232) : error C2466: cannot
     allocate an array of constant size 0
    c:\programas\microsoft platform sdk\include\wspiapi.h(278) : error C2065: 'EAI_M
    EMORY' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(280) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(292) : error C2065: 'EAI_N
    ONAME' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(293) : error C2065: 'EAI_A
    GAIN' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(294) : error C2065: 'EAI_F
    AIL' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(295) : error C2065: 'EAI_N
    ODATA' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(338) : error C2057: expect
    ed constant expression
    c:\programas\microsoft platform sdk\include\wspiapi.h(338) : error C2466: cannot
     allocate an array of constant size 0
    c:\programas\microsoft platform sdk\include\wspiapi.h(339) : error C2057: expect
    ed constant expression
    c:\programas\microsoft platform sdk\include\wspiapi.h(339) : error C2466: cannot
     allocate an array of constant size 0
    c:\programas\microsoft platform sdk\include\wspiapi.h(376) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(377) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(416) : error C2037: left o
    f 'ai_protocol' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(418) : error C2037: left o
    f 'ai_addr' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(418) : error C2198: 'Wspia
    piNewAddrInfo' : too few actual parameters
    c:\programas\microsoft platform sdk\include\wspiapi.h(423) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(423) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(424) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(425) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(456) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(457) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(457) : warning C4022: '_fr
    ee_dbg' : pointer mismatch for actual parameter 1
    c:\programas\microsoft platform sdk\include\wspiapi.h(457) : error C2198: '_free
    _dbg' : too few actual parameters
    c:\programas\microsoft platform sdk\include\wspiapi.h(459) : error C2037: left o
    f 'ai_addr' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(460) : error C2037: left o
    f 'ai_addr' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(460) : warning C4022: '_fr
    ee_dbg' : pointer mismatch for actual parameter 1
    c:\programas\microsoft platform sdk\include\wspiapi.h(460) : error C2198: '_free
    _dbg' : too few actual parameters
    c:\programas\microsoft platform sdk\include\wspiapi.h(462) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(527) : error C2037: left o
    f 'ai_addrlen' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(528) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(529) : error C2037: left o
    f 'ai_addr' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(530) : error C2037: left o
    f 'ai_next' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(541) : error C2037: left o
    f 'ai_flags' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(542) : error C2065: 'AI_CA
    NONNAME' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(543) : error C2065: 'EAI_B
    ADFLAGS' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(546) : error C2037: left o
    f 'ai_family' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(548) : error C2065: 'EAI_F
    AMILY' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(551) : error C2037: left o
    f 'ai_socktype' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(556) : error C2065: 'EAI_S
    OCKTYPE' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(559) : error C2037: left o
    f 'ai_protocol' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(596) : error C2065: 'EAI_S
    ERVICE' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(622) : error C2065: 'AI_PA
    SSIVE' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(637) : error C2037: left o
    f 'ai_flags' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(637) : error C2065: 'AI_NU
    MERICHOST' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(642) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(644) : error C2037: left o
    f 'ai_canonname' specifies undefined struct/union 'addrinfo'
    c:\programas\microsoft platform sdk\include\wspiapi.h(750) : error C2065: 'NI_NU
    MERICHOST' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(750) : error C2065: 'NI_NA
    MEREQD' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(760) : error C2065: 'NI_NU
    MERICSERV' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(769) : error C2065: 'NI_DG
    RAM' : undeclared identifier
    c:\programas\microsoft platform sdk\include\wspiapi.h(812) : error C2065: 'NI_NO
    FQDN' : undeclared identifier
    NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
    Stop.


    Can somenone help
    Thankiu
    Saturday, October 21, 2006 4:06 PM

Answers

  • This is a problem with the PHP package, or a system requirement which you are not fulfilling. You will have a much better chance of resolving it through the PHP support forums. Fixing the sources yourself is probably not the best way to go.

    Be sure to see if the package you've got is compatible with VC6.

    Sunday, October 22, 2006 3:16 PM

All replies

  • This is a problem with the PHP package, or a system requirement which you are not fulfilling. You will have a much better chance of resolving it through the PHP support forums. Fixing the sources yourself is probably not the best way to go.

    Be sure to see if the package you've got is compatible with VC6.

    Sunday, October 22, 2006 3:16 PM
  •  einaros wrote:

    This is a problem with the PHP package, or a system requirement which are not fulfilling. You will have a much better chance of resolving it through the PHP support forums. Fixing the sources yourself is probably not the best way to go.

    Be sure to see if the package you've got is compatible with VC6.

     

    yes, it was a problem of compatibility.

    i have Installed VStudio 8 express and it works fine

    Tuesday, October 24, 2006 12:43 PM