|
Prev: SSL Session control
Next: need help! plz
From: Jason on 14 Mar 2008 04:58 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
From: Elizabeth M Smith on 14 Mar 2008 10:09 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
From: Jason on 14 Mar 2008 10:16 At 14:09 14/03/2008, you wrote: >Jason wrote: > > Hi all, > > ><snip> > > > > 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 To be honest, I can't actually get either of the mssql variants to compile properly. Specifically I can compile the MS mssql dll, but can't link it (unresolved external _in6addr_any in php5ts.dll). I have a sneaking suspicion that I'm missing some little "not-widely-documented" file location or ENV var. setting. It's always the little things :/ I notice from your post I linked to, that I should use nmake.exe from the SDK - but I could only find an x64 variant included, so I'm using the VisStudio6 SP6 version - would this be a possible cause? TIA Jason
From: Elizabeth M Smith on 14 Mar 2008 12:00 Jason wrote: > To be honest, I can't actually get either of the mssql variants to > compile properly. Specifically I can compile the MS mssql dll, but can't > link it (unresolved external _in6addr_any in php5ts.dll). > > I have a sneaking suspicion that I'm missing some little > "not-widely-documented" file location or ENV var. setting. It's always > the little things :/ > > I notice from your post I linked to, that I should use nmake.exe from > the SDK - but I could only find an x64 variant included, so I'm using > the VisStudio6 SP6 version - would this be a possible cause? > > TIA > Jason Hmmm, that unresolved external _in6addr_any in php5ts.dll is an ipv6 error - you can --disable-ipv6 or check to make sure you have the sdk include and lib paths set up right Elizabeth
From: Jason on 14 Mar 2008 11:53 At 16:00 14/03/2008, you wrote: >Jason wrote: > > To be honest, I can't actually get either of the mssql variants to > > compile properly. Specifically I can compile the MS mssql dll, but can't > > link it (unresolved external _in6addr_any in php5ts.dll). > > > > I have a sneaking suspicion that I'm missing some little > > "not-widely-documented" file location or ENV var. setting. It's always > > the little things :/ > > > > I notice from your post I linked to, that I should use nmake.exe from > > the SDK - but I could only find an x64 variant included, so I'm using > > the VisStudio6 SP6 version - would this be a possible cause? > > > > TIA > > Jason > >Hmmm, that unresolved external _in6addr_any in php5ts.dll is an ipv6 >error - you can --disable-ipv6 or check to make sure you have the sdk >include and lib paths set up right Yeah, a little embarassing - I forgot to run SetVars.bat from the SDK. Sorted that. Even so, doing the following doesn't reveal a new php_mssql.dll: cscript configure.js --with-mssql nmake I don't get a link error, but neither do I get a php_mssql.dll. I do get new php_gd2.dll though :) Jason
|
Pages: 1 Prev: SSL Session control Next: need help! plz |