FreeTDS 0.8.2 & PHP 5.2.6 won't compile php extension
"Alastair Hole" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Hello All Sorry if this isn't quite the place for this but searching the documentation gleans no answers and Google has failed me also. I am struggling to compile freetds 0.82 as a php extension on windows (vista business). I can compile PHP 5.2.6 on its own without any problems using the recommended 'nmake' method. FreeTDS appears to compile OK using the win32\msvc6\FreeTDS.dsw project within VS 2005, creating the 'db', 'odbc', and 'tds' _Release folders with the compiled code. Now when I add the '--with-dblib=shared' option to the php config command everything seems ok, so i run nmake and then get rather a lot of unresolved external symbol errors (see end of message) So my question is really does anyone know at which stage this is failing? Is it an issue with my build of FreeTDS or is it an issue with FreeTDS + PHP somehow. And has anyone successfully built freetds 0.8.2 with php as the dblib/mssql extension on windows? Any advice gratefully received Many Thanks, Alastair Hole PHP Configure command: --------------------- cscript /nologo configure.js --with-extra-includes=D:\Users\afhole\Desktop\php\php-sdk\libxml2-2.7.2. win32\include;D:\Users\afhole\Desktop\php\php-sdk\iconv-1.9.2.win32\incl ude;D:\Users\afhole\Desktop\php\php-sdk\zlib123\include;D:\Users\afhole\ Desktop\freetds-0.82\include;D:\Users\afhole\Desktop\freetds-0.82\win32 --with-extra-libs=D:\Users\afhole\Desktop\php\php-sdk\iconv-1.9.2.win32\ lib;D:\Users\afhole\Desktop\php\php-sdk\libxml2-2.7.2.win32\lib;D:\Users \afhole\Desktop\php\php-sdk\zlib123\lib;D:\Users\afhole\Desktop\freetds- 0.82\win32\msvc6\db_Release;D:\Users\afhole\Desktop\freetds-0.82\win32\m svc6\odbc_Release;D:\Users\afhole\Desktop\freetds-0.82\win32\msvc6\tds_R elease --with-dblib=shared --------------------- Nmake errors: http://pastebin.com/f675da4df ----------------------------------------------------------------------- This message is sent in confidence for the addressee only. It may contain confidential or sensitive information. The contents are not to be disclosed to anyone other than the addressee unless specific authorisation has been given by the sender. Unauthorised recipients are requested to preserve this confidentiality and to advise us of any errors in transmission. Thank you. Save paper, only print this email if really necessary and think green. Please turn off PC's and lights when not in use. Don't just standby, Switch Off! Worcester College of Technology EcoCampus Group. -----------------------------------------------------------------------