# windows build for idiots anywhere?

- Thread: https://externals.io/message/6728
- Original archive: https://news-web.php.net/php.internals/6728
- Started by Robert Janeczek on 2003-12-30T09:33:13+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6728 — Robert Janeczek — 2003-12-30T09:33:13+00:00

URL: https://externals.io/message/6728#6728

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

---

## #6729 — Steph — 2003-12-30T15:17:34+00:00

URL: https://externals.io/message/6728#6729 · In reply to: #6728

>
>  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 allowed
>
> i`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?
