Skip to Content.
Sympa Menu

freetds - [freetds] FreeTDS 0.8.2 & PHP 5.2.6 won't compile php extension

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Alastair Hole" <afhole AT wortech.ac.uk>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] FreeTDS 0.8.2 & PHP 5.2.6 won't compile php extension
  • Date: Mon, 3 Nov 2008 14:56:50 -0000

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.
-----------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page