[freetds] mingw, gcc 3.4.2 & freetds-0.64

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Thu Aug 17 05:42:06 EDT 2006


> 
> Hi All,
> 
> Has anybody had any luck compiling freetds 0.64 under mingw?  
>  I've tried the default options to configure, as well as:
> --prefix=/usr/local/freetds --disable-odbc --build=mingw32 
> --disable-server --disable-poool --disable-shared .
> 
> While the static libraries appear to build fine, tsql bombs 
> out on references to gettimeofday (tsql.c:215) and 
> readpassphrase(tsql.c 409).  I tried commenting out that 
> functionality in tsql, but then I got conflicting types for 
> PARAMDATA (declared in oleauto.h and freebcp.h).
> 
> If anybody has any hints I'd appreciate it.
> 
> 
> Thanks,
> David
> 

Well... I did some months ago and fixed some issue on CVS HEAD... that
is after 0.64. As you spot I had to implement  gettimeofday and
readpassphrase for Windows and rename PARAMDATA to BCPPARAMDATA.
Yesterday I tried again using a cross compiler and I was able to compile
without problems.

freddy77




More information about the FreeTDS mailing list