# problem with win32 build

- Thread: https://externals.io/message/6839
- Original archive: https://news-web.php.net/php.internals/6839
- Started by Greg Beaver on 2004-01-08T01:58:19+00:00
- Messages: 5
- 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

---

## #6839 — Greg Beaver — 2004-01-08T01:58:19+00:00

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

Hi,

in late December right before beta 3, I compiled PHP 5 successfully from 
  HEAD using the new win32 build system.

Today, I tried another compile, and came up empty.  Anything obviously 
changed that I missed?

Here's a transcript:

C:\L\php-src>C:\WINNT\SYSTEM32\cscript.exe /nologo configure.js 
--enable-prefix=C:\php5 --with-php-build=C:\usr\local 
--with-extra-includes=C:\usr\local\include
  --with-extra-libs=C:\usr\local\lib --enable-debug --enable-apache 
--with-apache
-includes=C:\l\apache-1.3.27\src\include 
--with-apache-libs=C:\l\apache-1.3.27\src\lib
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
Checking for link.exe ...  <in default path>
Checking for nmake.exe ...  <in default path>
Checking for make.exe ...  <not found>
Checking for arpa\nameser.h ...  ..\win32build\include

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 httpd.h ...  C:\Program Files\Apache Group\Apache\include
Checking for ApacheCore.lib ...  C:\Program Files\Apache 
Group\Apache\libexec
Enabling SAPI sapi\apache
Enabling SAPI sapi\cgi
Enabling SAPI sapi\cli
Enabling extension ext\bcmath
Enabling extension ext\calendar
Enabling extension ext\com_dotnet
Checking for mscoree.h ...  <in default path>
Enabling extension ext\ctype
Enabling extension ext\dom
Enabling extension ext\ftp
Checking for libjpeg.lib ...  <not found>
Checking for libjpeg.lib ...  <not found>
WARNING: gd not enabled; libraries and headers not found

Checking for iconv.h ...  C:\usr\local\include
Enabling extension ext\iconv
Checking for libxml2_a.lib ...  C:\usr\local\lib
Checking for iconv_a.lib ...  C:\usr\local\lib
Checking for libxml/parser.h ...  C:\usr\local\include
Enabling extension ext\libxml
Enabling extension ext\odbc
Enabling extension ext\pcre
Enabling extension ext\session
Enabling extension ext\simplexml
Enabling extension ext\sqlite
Enabling extension ext\standard
Enabling extension ext\tokenizer
Enabling extension ext\wddx
Enabling extension ext\xml
Enabling extension ext\zlib
Checking for zlib_a ...  <not found>
Checking for zlib_a ...  <not found>
Checking for zlib.lib ...  ..\win32build\lib
Checking for zlib.h ...  ..\win32build\include

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
Generating main/config.w32.h
Done.

Type 'nmake' to build PHP

C:\L\php-src>set PATH=C:\Program Files\Microsoft Visual Studio .NET 
2003\Common7
\IDE;C:\Program Files\Microsoft Visual Studio .NET 
2003\VC7\BIN;C:\Program Files
\Microsoft Visual Studio .NET 003\Common7\Tools;C:\Program 
Files\Microsoft Visua
l Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program 
Files\Microsoft Visua
l Studio .NET 2003\Common7\Tools\bin;C:\Program 
Files\Microsoft.NET\SDK\v1.1\bin
;C:\WINNT\Microsoft.NET\Framework\v1.1.4322;C:\WINNT\system32;C:\WINT;C:\WINNT\S
ystem32\Wbem;C:\Program Files\PC-Doctor for Windows\services;C:\Program 
Files\Co
mmon Files\Adaptec 
Shared\System;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wb
em;C:\Program Files\PC-Doctor for Windows\services;C:\Program 
Files\Common Files
\Adaptec Shared\System;C:\Program Files\php;C:\php-gtk\php4;C:\usr\local\bin

C:\L\php-src>set BISON=bison

C:\L\php-src>set FLEX=flex

C:\L\php-src>nmake

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'win32\phpts.def'
Stop.

---

## #6840 — Wez Furlong — 2004-01-08T03:06:50+00:00

URL: https://externals.io/message/6839#6840 · In reply to: #6839

Is that really HEAD from today?
Also, it is best if you set up your PATH before you run configure,
and note that setting BISON and FLEX env vars will have no effect
on the build.

--Wez.


----- Original Message ----- 
From: "Greg Beaver" <greg@chiaraquartet.net>
To: <internals@lists.php.net>
Sent: Thursday, January 08, 2004 1:58 AM
Subject: [PHP-DEV] problem with win32 build


> Hi,
>
> in late December right before beta 3, I compiled PHP 5 successfully from
>   HEAD using the new win32 build system.
>
> Today, I tried another compile, and came up empty.  Anything obviously
> changed that I missed?
>
> Here's a transcript:
>
> C:\L\php-src>C:\WINNT\SYSTEM32\cscript.exe /nologo configure.js
> --enable-prefix=C:\php5 --with-php-build=C:\usr\local
> --with-extra-includes=C:\usr\local\include
>   --with-extra-libs=C:\usr\local\lib --enable-debug --enable-apache
> --with-apache
> -includes=C:\l\apache-1.3.27\src\include
> --with-apache-libs=C:\l\apache-1.3.27\src\lib
> Saving configure options to config.nice.bat
> Checking for cl.exe ...  <in default path>
> Checking for link.exe ...  <in default path>
> Checking for nmake.exe ...  <in default path>
> Checking for make.exe ...  <not found>
> Checking for arpa\nameser.h ...  ..\win32build\include
>
> 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 httpd.h ...  C:\Program Files\Apache Group\Apache\include
> Checking for ApacheCore.lib ...  C:\Program Files\Apache
> Group\Apache\libexec
> Enabling SAPI sapi\apache
> Enabling SAPI sapi\cgi
> Enabling SAPI sapi\cli
> Enabling extension ext\bcmath
> Enabling extension ext\calendar
> Enabling extension ext\com_dotnet
> Checking for mscoree.h ...  <in default path>
> Enabling extension ext\ctype
> Enabling extension ext\dom
> Enabling extension ext\ftp
> Checking for libjpeg.lib ...  <not found>
> Checking for libjpeg.lib ...  <not found>
> WARNING: gd not enabled; libraries and headers not found
>
> Checking for iconv.h ...  C:\usr\local\include
> Enabling extension ext\iconv
> Checking for libxml2_a.lib ...  C:\usr\local\lib
> Checking for iconv_a.lib ...  C:\usr\local\lib
> Checking for libxml/parser.h ...  C:\usr\local\include
> Enabling extension ext\libxml
> Enabling extension ext\odbc
> Enabling extension ext\pcre
> Enabling extension ext\session
> Enabling extension ext\simplexml
> Enabling extension ext\sqlite
> Enabling extension ext\standard
> Enabling extension ext\tokenizer
> Enabling extension ext\wddx
> Enabling extension ext\xml
> Enabling extension ext\zlib
> Checking for zlib_a ...  <not found>
> Checking for zlib_a ...  <not found>
> Checking for zlib.lib ...  ..\win32build\lib
> Checking for zlib.h ...  ..\win32build\include
>
> Creating build dirs...
> Generating files...
> Generating Makefile
> Generating main/internal_functions.c
> Generating main/config.w32.h
> Done.
>
> Type 'nmake' to build PHP
>
> C:\L\php-src>set PATH=C:\Program Files\Microsoft Visual Studio .NET
> 2003\Common7
> \IDE;C:\Program Files\Microsoft Visual Studio .NET
> 2003\VC7\BIN;C:\Program Files
> \Microsoft Visual Studio .NET 003\Common7\Tools;C:\Program
> Files\Microsoft Visua
> l Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program
> Files\Microsoft Visua
> l Studio .NET 2003\Common7\Tools\bin;C:\Program
> Files\Microsoft.NET\SDK\v1.1\bin
>
;C:\WINNT\Microsoft.NET\Framework\v1.1.4322;C:\WINNT\system32;C:\WINT;C:\WIN
NT\S
> ystem32\Wbem;C:\Program Files\PC-Doctor for Windows\services;C:\Program
> Files\Co
> mmon Files\Adaptec
> Shared\System;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wb
> em;C:\Program Files\PC-Doctor for Windows\services;C:\Program
> Files\Common Files
> \Adaptec Shared\System;C:\Program
Files\php;C:\php-gtk\php4;C:\usr\local\bin
>
> C:\L\php-src>set BISON=bison
>
> C:\L\php-src>set FLEX=flex
>
> C:\L\php-src>nmake
>
> Microsoft (R) Program Maintenance Utility Version 7.10.3077
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> NMAKE : fatal error U1073: don't know how to make 'win32\phpts.def'
> Stop.

---

## #6842 — Greg Beaver — 2004-01-08T05:09:18+00:00

URL: https://externals.io/message/6839#6842 · In reply to: #6840

Hi Wez,

It is HEAD from today, and before I set BISON = bison, it was giving me 
an error that --output was not a valid command, which I traced to the 
$(BISON) line of the Makefile.  I'll try again with path set before 
configure, but I wonder what changed over the holiday?  I ran nmake 
clean before configure, just to be sure that it was not some old dependency.

Thanks,
Greg

Wez Furlong wrote:

>Is that really HEAD from today?
>Also, it is best if you set up your PATH before you run configure,
>and note that setting BISON and FLEX env vars will have no effect
>on the build.

---

## #6915 — Greg Beaver — 2004-01-09T03:54:04+00:00

URL: https://externals.io/message/6839#6915 · In reply to: #6840

Hi Wez,

Thanks for you help so far.  I decided to re-download php-src and start 
over from scratch, I suspect the problem was that I didn't re-run 
buildconf.bat.

I have one other issue that I'm sure can be fixed easily, I need to know 
how I should grab SPL so that simplexml can compile.  The build works 
now though, so for future idiots, it's good to remind us to always run 
buildconf before configure.js is run

Thanks,
Greg

---

## #6924 — Wez Furlong — 2004-01-09T10:18:47+00:00

URL: https://externals.io/message/6839#6924 · In reply to: #6915

Hi Greg,

Yep, always run buildconf.bat after you cvs update or
if you modified one of the config.w32 file.

I need to tweak something with SPL build, but until then,
checking out pecl so it sits in the same dir as php-src
should do the trick; the build system will find all the
pecl extensions there when you run buildconf.

--Wez.


----- Original Message ----- 
From: "Greg Beaver" <greg@chiaraquartet.net>
To: "Wez Furlong" <wez@thebrainroom.com>
Cc: <internals@lists.php.net>
Sent: Friday, January 09, 2004 3:54 AM
Subject: Re: [PHP-DEV] problem with win32 build


> Hi Wez,
> 
> Thanks for you help so far.  I decided to re-download php-src and start 
> over from scratch, I suspect the problem was that I didn't re-run 
> buildconf.bat.
> 
> I have one other issue that I'm sure can be fixed easily, I need to know 
> how I should grab SPL so that simplexml can compile.  The build works 
> now though, so for future idiots, it's good to remind us to always run 
> buildconf before configure.js is run
> 
> Thanks,
> Greg
