I just managed to compile and run successfully
db2tcl 0.0.2 with tcl 8.4 and IBM db2 8.1 libraries,
with the attached patch.
Changes are:
- a small patch to "ibmdb2.m4", needed because
"db2_prefix" and "ibm-db2" were oddly mixed. Note that
"configure" should be rebuilt with autoconf/automake
after the
change.
- the number of arguments to db2_execute is 3, not 2.
Wonder
how it worked before.
- missing fields for Db2_ConnType initialized to NULL.
- SQLGetData() returns only garbage if last field is NULL.
Don't know if this is a Linux-specific bug in IBM
libraries or
what, but passing an "int *" solved the issue.
- some "CONST" added to avoid warnings here and there.
Tested on RedHat 9 and Mandrake 9.2.
Patch is obtained with:
diff -ru db2tcl-0.0.2 db2tcl-0.0.2.pl1
>patch-db2tcl.0.0.2.pl1
Apply patch to 0.0.02 with:
patch -p0 <patch-db2tcl.0.0.2.pl1
Patch against 0.0.2