Author |
|
seinstein
Joined: 02 May 2006 Posts: 4 Location: Dublin, Ireland
|
Posted: Thu 06 Jul '06 20:23 Post subject: how is php built with by the php.net people? |
|
|
Hi,
I see people are building with Visual Studio and so on. I don't really know much about 'building' and building programs as such, but I would like to know how come when I download previous versions of the Apache binary and php (from the php.net site) I don't need to install this Visual C++ runtime package. Can anyone help me? What is being used to build these mysterious binaries that I don't need the VC++ runtime to run?
Thanx in advance! |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Thu 06 Jul '06 21:10 Post subject: |
|
|
Please note: Apache Lounge is NOT part of the Apache Software Foundation or PHP.net.
There is nothing mysterious about it at all. Winthin the context that you are using the PHP module for Apache that is downloaded at this site, it is because Steffen compiles using VC++ 2005. The runtime library for VC++ 2005 is not included with Win XP or subsequent Service Packs. This is primarily due to the fact that VC++ 2005 was released AFTER XP and subsequent service packs were released. There are other factors as well. That being said, if you use Steffen's DLL you must have the appropriate runtime version of C++ - in this case, VC++ 2005 runtime.
Apache and PHP, at least in the past, use VC++ 6. The VC++ 6 runtime libraries are included in XP, hence, no need to install something that is already there.
..
. |
|
Back to top |
|
seinstein
Joined: 02 May 2006 Posts: 4 Location: Dublin, Ireland
|
Posted: Thu 06 Jul '06 21:17 Post subject: |
|
|
so then, does this mean that the people at apache foundation would use visual studio also to build their binaries of apache, or people at php would do the same? Or do they have some specialised software?
(p.s. thanx for the help already given!)
|
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Thu 06 Jul '06 21:41 Post subject: |
|
|
ASF (Apache) and PHP.net usually coordinate very well...at least they have in the past. They, at least to my knowledge, use VC++ 6. VC++ 6 is an older version of Microsoft's C++.
I have built both from source provided by Apache and PHP. Other than acquiring all the libraries necessary for the compile, there is no need for special software or compilers.
Know that in order to build the PHP module for Apache, you must first build Apache and have the source available at compile time for PHP build properly. |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Fri 07 Jul '06 9:38 Post subject: |
|
|
Yes ASF is using VC++ 6 for there binaries... there was talk about change to a newer version but that didn't get passed IIRC.
Only mod_aspdotnet isn't compiled with version 6 but with .net 2002 |
|
Back to top |
|
seinstein
Joined: 02 May 2006 Posts: 4 Location: Dublin, Ireland
|
Posted: Fri 07 Jul '06 16:55 Post subject: |
|
|
well no wonder i was confused! i thought vc++ 6 was some newer version. i've also seen *.exe.manifest files in the directories of other programs like Intervideo's WinDVD, so am I to assume that these programs were also built using vc++ that phpapache2.dll from this site
was built with?
Thanx for the help! |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Fri 07 Jul '06 17:49 Post subject: |
|
|
The manifest file is generated during compile time, and allows support throught the .NET Framework.
Where are you going with all of this? |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Sat 08 Jul '06 14:19 Post subject: |
|
|
pnllan wrote: | The manifest file is generated during compile time, and allows support throught the .NET Framework. |
The propper way would be to include them in the exe it self...
But that somehow doesn't seem to work for httpd and others for me.
The files are xml file that include references to the runtime libraries they use.
In this case MSVC80 |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 08 Jul '06 15:51 Post subject: |
|
|
You include the manifest with mt.exe, for example:
mt -manifest out32dll\ssleay32.dll.manifest -outputresource:out32dll\ssleay32.dll;1 |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Sat 08 Jul '06 17:58 Post subject: |
|
|
Steffen wrote: | You include the manifest with mt.exe, for example:
mt -manifest out32dll\ssleay32.dll.manifest -outputresource:out32dll\ssleay32.dll;1 |
really... that bloody briljant!
I'll do that next with the next release of the httpd 2.2 branch when i compile the binaries |
|
Back to top |
|