php-windows Digest 28 Nov 2010 04:31:31 -0000 Issue 3889
Topics (messages 30431 through 30432):
Re: Compiling error
30431 by: Niel Archer
building binary libraries
30432 by: Tommy Pham
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 ---
Hi
This is more a question for internals-...@lists.php.net
> 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.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Niel Archer
--- End Message ---
--- Begin Message ---
Hi,
What do you use to build the necessary binary libraries, such as libiconv?
Cygwin? MinGW?
Thanks,
Tommy
--- End Message ---