Skip to Content.
Sympa Menu

freetds - [freetds] freetds-0.82 and sqsh-2.1.{3,4}

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Richard Brown" <rbrown AT exherbo.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] freetds-0.82 and sqsh-2.1.{3,4}
  • Date: Mon, 19 May 2008 14:55:20 +0100

Hi, I'm trying to compile sqsh-2.1.(3,4) against freetds-0.82, and it
refuses to compile with the following message

cmd_bcp.c: In function 'cmd_bcp':
cmd_bcp.c:345: error: 'BLK_VERSION_150' undeclared (first use in this
function)
cmd_bcp.c:345: error: (Each undeclared identifier is reported only once
cmd_bcp.c:345: error: for each function it appears in.)
cmd_bcp.c:350: error: 'BLK_VERSION_125' undeclared (first use in this
function)
cmd_bcp.c:355: error: 'BLK_VERSION_120' undeclared (first use in this
function)

It appears cmd_bcp.c expects BLK_VERSION_X to be defined if
CS_VERSION_X is defined. This commit:

http://freetds.cvs.sourceforge.net/freetds/freetds/include/cspublic.h?r1=1.56&r2=1.57

added CS_VERSIONS_120, 125 and 150 without the corresponding BLK_VERSIONS.

I've attached a patch to add the BLK_VERSIONS into cspublic.h on the
assumption that this is the correct thing to do.

Regards,

--
Richard Brown
diff -ur freetds-0.82.orig/include/cspublic.h freetds-0.82/include/cspublic.h
--- freetds-0.82.orig/include/cspublic.h	2007-06-25 10:48:20.000000000 +0100
+++ freetds-0.82/include/cspublic.h	2008-05-19 14:46:58.000000000 +0100
@@ -447,6 +447,9 @@
 
 #define BLK_VERSION_100 CS_VERSION_100
 #define BLK_VERSION_110 CS_VERSION_100
+#define BLK_VERSION_120 CS_VERSION_120
+#define BLK_VERSION_125 CS_VERSION_125
+#define BLK_VERSION_150 CS_VERSION_150
 
 #define CS_FORCE_EXIT	300
 #define CS_FORCE_CLOSE  301



Archive powered by MHonArc 2.6.24.

Top of Page