#39130 [Opn->Asn]: Compile failure with the compiler of VC++ 2005
| From: | sniper@php.net | Date: | Sat, 19 May 2007 18:24:06 +0000 |
| Subject: | #39130 [Opn->Asn]: Compile failure with the compiler of VC++ 2005 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112859@lists.php.net to get a copy of this message | ||
ID: 39130
Updated by: sniper@php.net
Reported By: ben dot yan at msn dot com
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: Windows
PHP Version: 5.2.2
Assigned To: wez
New Comment:
Wez, you never got to the company laptop..? Or was it stolen? :D
Previous Comments:
------------------------------------------------------------------------
[2007-05-16 04:04:44] ben dot yan at msn dot com
I tried PHP5.2.2, but the problem is still there. :(
------------------------------------------------------------------------
[2007-04-14 05:00:20] dmain at themainfamily dot net
If I move this change, then the compiler errors are gone. I still have
another separate issue with compilation though.
This would induce the compile error. and if
#include <stdio.h>
BEHIND the
#ifdef ZEND_WIN32
# include "zend_config.w32.h"
# define ZEND_PATHS_SEPARATOR ';'
#elif defined(XXX)
...
#endif
,it will be ok.
------------------------------------------------------------------------
[2007-04-14 04:53:41] dmain at themainfamily dot net
This is my output when compiling a simple dll extension using the
sample source code in the online documentation.
1>------ Build started: Project: Win32_SystemCalls, Configuration:
Release_TS Win32 ------
1>Compiling...
1>Source1.c
1>C:\Program Files\Microsoft Visual Studio
8\VC\include\sys/stat.inl(44) : error C2466: cannot allocate an array of
constant size 0
1>C:\Program Files\Microsoft Visual Studio
8\VC\include\sys/stat.inl(49) : error C2466: cannot allocate an array of
constant size 0
1>c:\projects\phpextensions\php-5.2.1\tsrm\tsrm_config_common.h(4) :
fatal error C1017: invalid integer constant expression
1>Build log was saved at
"file://c:\Projects\PhpExtensions\php-5.2.1\ext\Win32_SystemCalls\Release_TS\BuildLog.htm"
1>Win32_SystemCalls - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
------------------------------------------------------------------------
[2006-11-04 15:27:35] sailormax at inbox dot lv
I have same error while trying compile my module. With previous PHP all
was fine.
With 5.2.0 all fine too, if comment 2 lines at config.w32.h:
#define _USE_32BIT_TIME_T 1
#define HAVE_STDLIB_H 1
used VC++ 2005 Express Edition
------------------------------------------------------------------------
[2006-10-12 11:19:20] wez@php.net
I've seen this before; I think have the fix on a company laptop that is
currently occupied and I'll commit it just as soon as I can get access
to it again.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39130
--
Edit this bug report at http://bugs.php.net/?id=39130&edit=1