Build failed on Windows

php.internals

Igor Golubev

19 years ago
Hello, I spent the whole day trying to build PHP 4.4.x on Windows from source. I have read through the documentation (http://www.php.net/manual/ru/install.windows.building.php) and did everything in accordance to it. I tried to build PHP 4.4.6, 4.4.0 and the latest snapshot with MSVS6 SP6 and MSVS2005 SP1, all with no success. The problem is that the projects in the win32 subfolder don't match the actual code. For example, both php4dll.dsp and php4dllts.dsp in the latest releases refer to absent files in ext\pcre. Moreover, all these VS-projects weren't updated for ages. I managed to fix the projects, but then I received some other errors during compilation, which aren't related to my fixes. The more I fixed them, the more I got in return. I've given up. After all the headaches, I've decided to ask here. Could someone here give me some advice on how to build PHP 4 on Windows from the source? PS. I wonder how all these windows releases had been built, as it seems impossible to achieve this with the prepackaged project files? With regards, Igor

Richard Quadling

19 years ago
Also a clear understanding of exactly what MS compiler must be used. Will the free MS VC++ 2005 Express Edition be suitable? If so, this could actually allow more building and testing by those like me who have no access to a *ix box and quite frankly don't know what the fuss is all about with *ix as Windows does EVERYTHING you could possibly want! Hmmm.. (Wait for gasp of breath and sudden adrenaline boost ...) Ok. Just joking there, *ix is great (or so I've been told - really NOT sure you know!), but I spend too long talking to users who have a locked down system and bosses who can get a 2 hour turnaround on anything they have (from a PDA to a server) if it all goes wrong and won't pay for anything else! What I'm basically saying is that you lot already understand the build process and for those like me and Igor, some support would be great if for nothing else we could maybe help fix some of the window specific problems and missing functionality from windows and if we don't succeed first time, we will learn, PHP grows, we all create world peace, yada, yada, yada. Save us from repeating previous mistakes, etc., etc. On 07/04/07, Igor Golubev <ooptimum@gmail.com> wrote:
> Hello, > > I spent the whole day trying to build PHP 4.4.x on Windows from > source. I have read through the documentation > (http://www.php.net/manual/ru/install.windows.building.php) and did > everything in accordance to it. I tried to build PHP 4.4.6, 4.4.0 and > the latest snapshot with MSVS6 SP6 and MSVS2005 SP1, all with no > success. The problem is that the projects in the win32 subfolder > don't match the actual code. For example, both php4dll.dsp and > php4dllts.dsp in the latest releases refer to absent files in > ext\pcre. Moreover, all these VS-projects weren't updated for ages. I > managed to fix the projects, but then I received some other errors > during compilation, which aren't related to my fixes. The more I fixed > them, the more I got in return. I've given up. After all the > headaches, I've decided to ask here. Could someone here give me some > advice on how to build PHP 4 on Windows from the source? > > PS. I wonder how all these windows releases had been built, as it > seems impossible to achieve this with the prepackaged project files? > > With regards, > Igor > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

Johannes Schlueter

19 years ago
Hi, On Sat, 2007-04-07 at 23:16 +0100, Richard Quadling wrote:
> Also a clear understanding of exactly what MS compiler must be used. > Will the free MS VC++ 2005 Express Edition be suitable?
Quoting the documentation: | Since PHP 5 the free Microsoft .NET toolchain is also supported (you | need to install Windows Platform SDK, Visual C++ Toolkit and .NET | Framework SDK). <http://www.php.net/manual/en/install.windows.building.php> I think the express Edition includes these so it should work. Last problems I heared where that the free stuff didn'T include nmake.exe but I think meanwhile nmake.exe is available with the free stuff, too but I never looked into that free stuff. If you just want to test patches and stuff and are not interested in running a *nix system (at least inside some kind of virtual machine/vmware/colinux like manner) you can still use cygwin for building PHP. To the original poster: Do you really need PHP 4? - The build system introduced with PHP 5 make life way simpler - and PHP 4 is from the stone-age... johannes

Igor Golubev

19 years ago
On 4/8/07, Johannes Schlüter <johannes@php.net> wrote:
> If you just want to test patches and > stuff and are not interested in running a *nix system (at least inside > some kind of virtual machine/vmware/colinux like manner) you can still > use cygwin for building PHP.
AFAIR, using cygwin in this case isn't supported nor working.
> To the original poster: Do you really need PHP 4? - The build system > introduced with PHP 5 make life way simpler - and PHP 4 is from the > stone-age...
Yes, I really do need to build PHP4 from the source. Actually my need is very rare and specific. I test Phalanger (PHP compiler for .NET) and need to build some missing extension for it. Of course, before that I need development libraries from PHP. Fortunately, Phalanger permits us to develop managed (in terms of .NET) wrapper for any third-party PHP extension, but unfortunately it does support PHP4 extensions only. Besides, it was very interesting to know how to build PHP on Windows. I never ever had any problems with that in Linux/FreeBSD, and was amazed how it's cumbersome in Windows. Igor.