Re: [INTERNALS-WIN] DLL Build Problem on PHP 5.3.4
| From: | 惠新宸 | Date: | Mon, 29 Nov 2010 02:18:17 +0000 |
| Subject: | Re: [INTERNALS-WIN] DLL Build Problem on PHP 5.3.4 | ||
| References: | 1 2 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-734@lists.php.net to get a copy of this message | ||
FYI
http://bugs.php.net/bug.php?id=39130
Best regards
惠新宸 Xinchen Hui
http://www.laruence.com/
On 2010/11/27 5:42, Pierre Joye wrote:
hi, there are many changes in 5.3 vs 5.2. But it is hard to say the source of this error without seeing the code. On Fri, Nov 26, 2010 at 9:20 PM, Steven Scott<chowarmaan@gmail.com> wrote: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 *'-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- Windows Internals Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php .Types pointed to are unrelated; conversion requiresreinterpret_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 requiresreinterpret_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 requiresreinterpret_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 requiresreinterpret_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 requiresreinterpret_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 requiresreinterpret_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 requiresreinterpret_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. -- Windows Internals Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php