php-windows Digest 26 Nov 2010 14:40:16 -0000 Issue 3888
Topics (messages 30430 through 30430):
Compiling error
30430 by: Steven Scott
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
I am attempting to build our DLL on PHP 5.3.4. The problem I am
encountering has to do with the time32. I am receiving the following
errors:
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/stat.inl(44) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/stat.inl(49) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(39) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(44) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(49) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(78) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(32) :
warning C4244: 'argument' : conversion from 'time_t' to '__time32_t',
possible loss of data
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(32) :
warning C4244: 'argument' : conversion from 'time_t' to '__time32_t',
possible loss of data
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(38) :
error C2664: '_ctime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(44) :
error C2664: 'errno_t _ctime32_s(char *,size_t,const __time32_t *)' :
cannot convert parameter 3 from 'const time_t *' to 'const __time32_t
*'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(51) :
error C2664: '_gmtime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(57) :
error C2664: '_gmtime32_s' : cannot convert parameter 2 from 'const
time_t *' to 'const __time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(64) :
error C2664: '_localtime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(69) :
error C2664: '_localtime32_s' : cannot convert parameter 2 from 'const
time_t *' to 'const __time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(81) :
error C2664: '_time32' : cannot convert parameter 1 from 'time_t *' to
'__time32_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
When I comment the line defining macro _USE_32BIT_TIME_T in
config.w32.h of PHP, the source will compile, but I get an exception
when attempting to start our library. This code, as is, will compile
against the 5.2.x branch of PHP.
--- End Message ---