with shiny new win32 build system i want to try to build php from source.
but its not as easy as it looks. this is why i`m asking for some hints, i
hope my questions are not to stupid :)
i follow steps from README.WIN32-BUILD-SYSTEM and man.
You need:
- Windows Scripting Host (cscript.exe)
checked!
- Microsoft Build Tools from:
Microsoft Visual Studio (VC6) or later
vs.net 2003
You also need:
- bindlib_w32 [http://www.php.net/extra/bindlib_w32.zip]
got it.
changed configuration to release. tried to build the solution:
d:\dev\php_source\bindlib_w32\res_send.c(920): warning C4715: 'res_send' :
not all control paths return a value
and
d:\dev\php_source\bindlib_w32\nsap_addr.c(37): error C2491: 'isxdigit' :
definition of dllimport function not allowed
i`ve commented out the definition of isxdigit and build went fine.
- win32build [http://www.php.net/extra/win32build.zip]
it`s here.
i`ve opened vs.net command prompt, changed dir to my phpsrc. buildconf,
configure --help. nice, i take --enable-snapshot-build - just for test.
nmake snap works for a while and stops here:
strlcpy.c
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' Stop.
NMAKE : fatal error U1077: '"D:\dev\Microsoft Visual Studio .NET
2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
now i need help :) i use php5-200312291830
You also need:
- bindlib_w32 [http://www.php.net/extra/bindlib_w32.zip]
got it.
changed configuration to release. tried to build the solution:d:\dev\php_source\bindlib_w32\nsap_addr.c(37): error C2491: 'isxdigit' :
definition of dllimport function not allowedi`ve commented out the definition of isxdigit and build went fine.
http://www.zend.com/lists/php-dev/200302/msg00588.html
Try taking bindlib_w32 direct from CVS (tortoise cvs client is fine), this
fix is in place there but not in the downloadable zip.
Can someone with karma please either update the zip or alter the
instructions to tell people to use CVS?