Re: Win32 Mod_PHP4
| From: | Alex Akilov | Date: | Mon, 14 Aug 2000 19:23:11 +0000 |
| Subject: | Re: Win32 Mod_PHP4 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1777@lists.php.net to get a copy of this message | ||
Daniel,
I'm new to all this and I'm trying to build the php4apache module
myself on Win32. Obviously you and/or Andreas have done this
so I was wondering if you could help me out.
Here's what I did so far:
1. Followed http://www.php.net/version4/win32build.php.
This all works fine but there was no php4apache.dll produced.
BTW, I also built phpsrvlt.
2. Set up Apache 1.3.12 to run with the php.exe that I produced.
Again, this works fine.
3. Added the %apache%\src\include directory to the Directories tab
of the VC++ 6.0 workbench and selected the php4apache configuration.
This is the output I get:
--------------------Configuration: php4apache - Win32
Release_TS--------------------
Compiling...
mod_php4.c
F:\APACHE\SRC\INCLUDE\../os/win32/os.h(111) : warning C4142: benign
redefinition of type
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(16) : error C2011: 'dirent'
: 'struct' type redefinition
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(31) : error C2371: 'DIR' :
redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(34) : error C2373: 'opendir'
: redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(35) : error C2373: 'readdir'
: redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(36) : error C2373:
'closedir' : redefinition; different type modifiers
..\..\win32/readdir.h(40) : see declaration of 'closedir'
F:\php4-200008071345\sapi\apache\mod_php4.c(135) : warning C4018: '!=' :
signed/unsigned mismatch
php_apache.c
F:\APACHE\SRC\INCLUDE\../os/win32/os.h(111) : warning C4142: benign
redefinition of type
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(16) : error C2011: 'dirent'
: 'struct' type redefinition
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(31) : error C2371: 'DIR' :
redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(34) : error C2373: 'opendir'
: redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(35) : error C2373: 'readdir'
: redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(36) : error C2373:
'closedir' : redefinition; different type modifiers
..\..\win32/readdir.h(40) : see declaration of 'closedir'
sapi_apache.c
F:\APACHE\SRC\INCLUDE\../os/win32/os.h(111) : warning C4142: benign
redefinition of type
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(16) : error C2011: 'dirent'
: 'struct' type redefinition
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(31) : error C2371: 'DIR' :
redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(34) : error C2373: 'opendir'
: redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(35) : error C2373: 'readdir'
: redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir'
F:\APACHE\SRC\INCLUDE\../os/win32/readdir.h(36) : error C2373:
'closedir' : redefinition; different type modifiers
..\..\win32/readdir.h(40) : see declaration of 'closedir'
Error executing cl.exe.
php4apache.dll - 15 error(s), 4 warning(s)
Any ideas? Thanks in advance.
Alex