Skip to Content.
Sympa Menu

freetds - RE: Make failed (Was RE: [freetds] FreeTDS/DBD::Sybase dumping co re.)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT lists.ibiblio.org>
  • Subject: RE: Make failed (Was RE: [freetds] FreeTDS/DBD::Sybase dumping co re.)
  • Date: 12 Feb 2003 22:07:59 +0100

Il mer, 2003-02-12 alle 21:47, Lowden, James K ha scritto:
> > From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> > Sent: February 12, 2003 1:53 AM
> > >
> > > 1. My fix to odbc.c, to allow building if unixodbc doesn't define
> > > SQLULEN.
> >
> > I putted a fix too (in tdsodbc.h). Doesn't this fix work for you ?
>
> No, your code is guarded by
> #if defined(WIN32) && ODBCVER <= 0x0351
>
> I'm not running Win32; I just have an older version of unixodbc that lacks
> SQLULEN.
>

Opps... I forgot to commit.
Patch (for 0.61 and 0.62) is

diff -u -u -1 -0 -b -r1.19.2.1 tdsodbc.h
--- include/tdsodbc.h 6 Feb 2003 09:46:49 -0000 1.19.2.1
+++ include/tdsodbc.h 12 Feb 2003 21:05:13 -0000
@@ -24,23 +24,25 @@

#ifdef UNIXODBC
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
#else
#include "isql.h"
#include "isqlext.h"
#endif

-#if defined(WIN32) && ODBCVER <= 0x0351
-typedef SQLUINTEGER SQLULEN;
-typedef SQLINTEGER SQLLEN;
+#ifndef SQLULEN
+#define SQLULEN SQLUINTEGER
+#endif
+#ifndef SQLLEN
+#define SQLLEN SQLINTEGER
#endif

#ifdef __cplusplus
extern "C" {
#endif

static char rcsid_sql_h [ ] =
"$Id: tdsodbc.h,v 1.19.2.1 2003/02/06 09:46:49 freddy77 Exp
$";
static void *no_unused_sql_h_warn[]={rcsid_sql_h,
no_unused_sql_h_warn};

This work on recent unixODBC and windows... I think you should try with
old unixODBC version...

freddy77







Archive powered by MHonArc 2.6.24.

Top of Page