Skip to Content.
Sympa Menu

freetds - dbsetmaxprocs required (?) for sybtcl 3.0

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "D. J. Hagberg" <dhagberg AT millibits.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: dbsetmaxprocs required (?) for sybtcl 3.0
  • Date: Mon, 4 Dec 2000 20:53:32 -0500


Hi all,

As Tom's delegated interim maintainer for Sybtcl, I wanted to make
sure that at least the basics of Sybtcl would work OK with freetds'
implementation of dblib before I released the version 3.0 package.

It looks like I can get everything to compile OK by adding a
couple more define's to sybdb.h and some #ifdef checks in the code
for datatypes not supported by freetds (SYBBOUNDARY and
SYBSENSITIVITY). The sybdb.h changes were to add return codes for
error handler functions:

--- sybdb.h.orig Mon Dec 4 18:46:18 2000
+++ sybdb.h Mon Dec 4 17:59:33 2000
@@ -47,7 +47,9 @@
#define DBNOERR -1

#define INT_EXIT 0
+#define INT_CONTINUE 1
#define INT_CANCEL 2
+#define INT_TIMEOUT 3

#define DBMAXNUMLEN 33
#define MAXNAME 30

But I'm not sure if this is appropriate. Should I assume that
return codes /not/ listed in sybdb.h for error handlers are not
handled property by freetds? This seems the safer alternative,
I guess...

Next, after a relatively clean compile, I'm getting an error
when the lib is loaded, looking like one function isn't
implemented:

tclsh: fatal: relocation error: file
/opt/tcltk/lib/sybtcl3.0/libsybtcl3.0.so: symbol dbsetmaxprocs: referenced
symbol not found

After looking through the freetds code, I cannot find anywhere that
this function has been implemented. Nor have I found any need for
it. Looks like this function was for an implementation that had
a static array of DBPROCESS structures with a hard upper-limit.
I can't see any such limit in freetds from my cursory examination.
Am I nuts?

So.... Is there a #define somewhere in the freetds code that I can
check so that I can #ifndef-out this call to dbsetmaxprocs?

Thanks all,

-=- D. J.
-=- dhagberg AT millibits.com



  • dbsetmaxprocs required (?) for sybtcl 3.0, D. J. Hagberg, 12/04/2000

Archive powered by MHonArc 2.6.24.

Top of Page