[freetds] FreeTDS Digest, Vol 64, Issue 44

Jason networkadmin at emarket2.com
Fri May 30 04:50:48 EDT 2008


At 18:13 29/05/2008, you wrote:
>Jason wrote:
> > >I'm not going to actually build it for you, but I might be able to help
> > >you decypher what's happening.
> >
> > Here's the error that stops the compile (there are several previous
> > warnings about types being redefined -
>
>Let's take it from the top, as it were.  Those warnings might be an
>indicication you need to change your configure options or otherwise adjust
>your build environment.  What are they?  I wouldn't dismiss them just
>because the compiler kept going.

Fair enough! Full configure output at the bottom of this email.


> > but those don't seem to be stopping things:
> >
> > 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'
> > Stop.
>
>That's probably telling you 'phpext_dblib_ptr' is declared as a variable
>whose type is undefined.
>
>Please post the URL from which you downloaded your PHP sources.  I fetched
>  php5.2-200805271630.tar.bz2.  It doesn't include a file by that name or a
>variable by that name:
>
>$ find . -name internal_functions*.c
>./main/internal_functions_nw.c
>./main/internal_functions_win32.c
>$ find . -name \*.c | xargs  grep -n phpext_dblib_ptr | wc -l
>        0
>
>--jkl

The sources were downloaded from the php.net site (release 5.2.5 
source) - I grabbed the tar.gz at the time.
Free TDS source was downlaoded from freetds.org - I grabbed a copy of 
the .64 release and also tried a .82 RC build.

Folder structure:

PHP Source in d:\PHPWIN32\php-5.2.5
Win32Build files in; d:\PHPWIN32\win32build
MS 2003 SDK installed in: C:\Program Files\Microsoft SDK


Output from configure command is below:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
Checking for cl.exe ...  <in default path>
Detected MS compiler version 12
Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files\Microsoft Visual Studio\VC98\bin
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for flex.exe ...  <in default path>
Checking for re2c.exe ...  <not found>
Checking for zip.exe ...  <not found>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files\Microsoft SDK\Bin
Checking for mt.exe ...  C:\Program Files\Microsoft SDK\Bin\WinNT
Checking for arpa\nameser.h ...  ..\win32build\include
Checking for library resolv.lib ... ..\win32build\lib\resolv.lib

Build dir: Release_TS
PHP Core:  php5ts.dll and php5ts.lib

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Checking for NewAPIs.h ...  <in default path>
Enabling SAPI sapi\cgi
Enabling SAPI sapi\cli
Enabling extension ext\bcmath
Enabling extension ext\calendar
Checking for library oleaut32.lib ... <in LIB path> OleAut32.Lib
Enabling extension ext\com_dotnet
Checking for mscoree.h ...  ..\win32build\include
Enabling extension ext\ctype
Enabling extension ext\date
Enabling extension ext\filter
Enabling extension ext\ftp
Checking for library libjpeg.lib ... ..\win32build\lib\libjpeg.lib
Checking for library freetype2.lib ... ..\win32build\lib\freetype2.lib
Checking for library libpng.lib ... ..\win32build\lib\libpng.lib
Checking for gd.h ...  ext\gd\libgd
Checking for library T1_StaticMD.lib ... ..\win32build\lib\T1_StaticMD.lib
Checking for t1lib.h ...  ..\win32build\include\t1lib
Checking for library User32.lib ... <in LIB path> User32.Lib
Checking for library Gdi32.lib ... <in LIB path> Gdi32.Lib
Enabling extension ext\gd [shared]
Enabling extension ext\hash
Checking for iconv.h ...  ..\win32build\include
Enabling extension ext\iconv
Enabling extension ext\json
Checking for library dblib.lib ... ..\win32build\lib\dblib\dblib.lib
Checking for sybfront.h ...  <not found>
Checking for sybfront.h ...  ext\dblib
Enabling extension ext\mssql (via ext\dblib)
Enabling extension ext\odbc
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\session
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard
Enabling extension ext\tokenizer
Enabling extension ext\zlib
Checking for library zlib.lib ... ..\win32build\lib\zlib.lib
Checking for zlib.h ...  ..\win32build\include
Checking for library libxml2_a.lib;libxml2.lib ... 
..\win32build\lib\libxml2_a.lib
Checking for library iconv_a.lib;iconv.lib ... ..\win32build\lib\iconv_a.lib
Checking for libxml/parser.h ...  ..\win32build\include
Enabling extension ext\libxml
Enabling extension ext\dom
Enabling extension ext\simplexml
Enabling extension ext\wddx
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\xml
Enabling extension ext\xmlreader
Checking for libxml/xmlwriter.h ...  ..\win32build\include
Enabling extension ext\xmlwriter

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
         [content unchanged; skipping]
Generating main/config.w32.h
Done.

Type 'nmake' to build PHP





More information about the FreeTDS mailing list