Re: need help building php on windows
| From: | Elizabeth M Smith | Date: | Fri, 14 Mar 2008 14:09:23 +0000 |
| Subject: | Re: need help building php on windows | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28831@lists.php.net to get a copy of this message | ||
Jason wrote:
> Hi all,
>
> I'm having trouble compiling PHP 5.2.5 using Visual C 6 (SP6).
>
> I have (to the best of my knowledge) followed the tips/instructions on
> the following two pages:
>
> http://news.php.net/php.windows/28659 (the black text,
> not green)
>
> http://php.mirror.camelnetwork.com/manual/en/install.windows.building.php
>
> I can get most of php to build (albeit with a lot of warnings) using the
> snapshot build option, however the two extensions that won't build are
> the two I need:
>
> php_mssql.dll (less important)
> php_dblib.dll (the one I'm really after)
>
> The reason for the build is to compile a php_dblib.dll using the new RC
> code of FreeTDS as we are seeing some strange errors using the pre-built
> dblib.dll from http://kromann.info (which I believe to be built
> using
> FreeTDS 0.63 from 2005?).
>
> Here's the compile error I'm getting:
>
> main\internal_functions.c(69) : error C2065: 'phpext_dblib_ptr' :
> undeclared identifier
> main\internal_functions.c(69) : error C2099: initializer is not a constant
> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
>
> Can anyone who has built this DLL on windows shed any light?
>
> TIA
> Jason
>
Actually I haven't been able to get the dblib version of the mssql
extension building on windows either but don't have the time to tackle
it at the moment - you can try building it with JUST dblib or JUST
mssql, I know building both at the same time leads to weirdnesses