Thank you, that solved my immediate problem. I now have a fully compiled and linked php.exe. I have to play with my configuration a little more to be sure that it works properly.
I'll report a bug against php-4.3.1.tar.gz and /manual/en/install.windows.php for this situation with zlib.lib so it can be tracked. I have a couple of related questions if anyone can help get me up the PHP "Build from source" learning curve. 1) I should have dug deeper in CVS [PHP] /zlib to discover that it builds zlib.lib and that would have saved both of us some time. But I wasn't clear on the CVS [PHP] structure and how it relates to [PHP] /php4/ext/zlib. Is there a readme somewhere that explains the overall directory structure of CVS [PHP]? 2) I just installed WinCVS and I'm looking at /anoncvs.php which is written from a command-line CVS client point of view. Are there any pointers on translating the various instructions to their appropriate section of the WinCVS config? 3) Where is the php 5.0.x tree in CVS? I see [PHP] /php3 and [PHP] /php4 but no [PHP] /php5. Once again, thanks for your help. Regards John P.S. Unlike your situation, as a newbie to PHP source compilation I tend to avoid head revisions which can be less stable (perhaps don't even compile?), in the hopes that I'll have fewer gotchyahs to worry about. Don't know if that backfired this time. ----- Original Message ----- From: "Frank M. Kromann" <[EMAIL PROTECTED]> To: "John M. Calvert" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, March 15, 2003 12:57 PM Subject: Re: [PHP-WIN] link error on compile php4ts.dsw -cannotopen input file "zlib.lib" Hi John, I have never used the pre build version of the source code (I allways build from the cvs version). From version 4.3.0 of php we decided to have the zlib extension compiled in so there is no need for php_zlib.dll. In order to compile php you need to get a copy of the zlib sources. I guess we need to update the build instructions and include this code in the distribution. You can get zlib from the cvs server (cvs.php.net). This will give you a zlib directory next to php4 and bindlib_w32. You will find zlib.dsp and dsw files in this directory. These files can be used to build the zlib.lib - Frank > I'm not familiar enough with the architecture of PHP to fully understand > your comment. When you say module, to me that means *.dll. However, my error > occurs when the linker is trying to link a library, zlib.lib. The relevant > details are in the /win32/php4dllts.dsp project which is part of the > /win32/php4ts.dsw workspace. I'm trying to build php4ts.dsw as per > /manual/en/install.windows.php#install.windows.build. > > Given the linker error I get, I'm looking for zlib.lib which I don't see > anywhere. Mind you, is there a search function for cvs.php.net? I had to > look by randomly rooting around. The zlib project (/ext/zlib/zlib.dsp) > builds php_zlib.dll so that is not it. > > Some external libraries are included in /extra/win32build.zip, and the above > instructions even have us build an additional resolv.lib, but there is no > sign of zlib.lib. > > I've tried this with both the PHP 4.3.1 (tar.gz) [4,395Kb] - 17 February > 2003 and a PHP snapshot Latest CVS (4.5.x-dev). Same problem with both. But > I'm not sure if the problem is my machine configuration, or an error in the > MS VC++ workspace / project details. > > John > > ----- Original Message ----- > From: "Frank M. Kromann" <[EMAIL PROTECTED]> > To: "John M. Calvert" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, March 15, 2003 3:22 AM > Subject: Re: [PHP-WIN] link error on compile php4ts.dsw -cannot open input > file "zlib.lib" > > > the zlib extension is compiled in and you need to get the zlib module from > cvs.php.net. > > - Frank > > > Hi, I trying for the first time ever to compile PHP on my Windows 2000 > > machine using MS VC++ 6. I have been following the instructions in > > /manual/en/install.windows.php. Everything goes fine until the linker > kicks > > in: > > > > Linking... > > LINK : fatal error LNK1181: cannot open input file "zlib.lib" > > Error executing link.exe. > > > > php.exe - 1 error(s), 21 warning(s) > > > > I've spent a few hours poking at it but there is too much new to me to > > figure my way out. The best I can figure is that zlib.lib should be in > > win32build/lib but it isn't. > > > > Can anyone help? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php