Re: php4apache.dll won't compile
| From: | waldschrott | Date: | Fri, 30 Jun 2000 13:32:25 +0000 |
| Subject: | Re: php4apache.dll won't compile | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23033@lists.php.net to get a copy of this message | ||
Just modify your readdir.h and delete anything but the included files,
then remove zendts.lib from the linker options in msdev..
Cynic wrote:
Hi all. A month ago, I reported to the php-dev list that it was no longer possible to build the DSO version of PHP4 for win32 Apache. I than couldn't try it until now. It still doesn't compile. Could someone please tell me what I do wrong (though I had built the dll several times before, then, when I wanted to update to the newest snapshot, it ceased working), or acknowledge there is a bug? (I'm not on the php-dev list, so please, cc me.) As soon as the compilation of mod_php4.c starts, msdev reports these errors: --------------------Configuration: php4apache - Win32 Release_TS_inline--------------------
Compiling... mod_php4.c N:\Compile\apache\apache_1.3.12\src\include\../os/win32/os.h(111) : warning C4142: benign redefinition of type
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(16) : error C2011: 'dirent' : 'struct' type redefinition
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(31) : error C2371: 'DIR' : redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(34) : error C2373: 'opendir' : redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(35) : error C2373: 'readdir' : redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(36) : error C2373: 'closedir' : redefinition; different type modifiers
..\..\win32/readdir.h(40) : see declaration of 'closedir' N:\Compile\php\php4-200006291145\sapi\apache\mod_php4.c(145) : warning C4018: '!=' : signed/unsigned mismatch
php_apache.c N:\Compile\apache\apache_1.3.12\src\include\../os/win32/os.h(111) : warning C4142: benign redefinition of type
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(16) : error C2011: 'dirent' : 'struct' type redefinition
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(31) : error C2371: 'DIR' : redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(34) : error C2373: 'opendir' : redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(35) : error C2373: 'readdir' : redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir' N:\Compile\apache\apache_1.3.12\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 N:\Compile\apache\apache_1.3.12\src\include\../os/win32/os.h(111) : warning C4142: benign redefinition of type
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(16) : error C2011: 'dirent' : 'struct' type redefinition
N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(31) : error C2371: 'DIR' : redefinition; different basic types
..\..\win32/readdir.h(34) : see declaration of 'DIR' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(34) : error C2373: 'opendir' : redefinition; different type modifiers
..\..\win32/readdir.h(37) : see declaration of 'opendir' N:\Compile\apache\apache_1.3.12\src\include\../os/win32/readdir.h(35) : error C2373: 'readdir' : redefinition; different type modifiers
..\..\win32/readdir.h(38) : see declaration of 'readdir' N:\Compile\apache\apache_1.3.12\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) ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz ICQ: 2808 2505-- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·