Package: libccscript3
Version: 0.7.0-1
Severity: serious
Tags: patch
When building 'libccscript3' on amd64/unstable,
I get the following error:
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../../src -fPIC
-DPIC -g -O2 -D_GNU_SOURCE -I/usr/include/cc++2 -c thread.cpp
thread.cpp: In member function 'virtual void
ccscript3Database::SQLThread::run()':
thread.cpp:121: error: cannot convert 'long int*' to 'SQLINTEGER*' for argument
'2' to 'SQLRETURN SQLRowCount(void*, SQLINTEGER*)'
thread.cpp:149: error: cannot convert 'long int*' to 'SQLINTEGER*' for argument
'6' to 'SQLRETURN SQLGetData(void*, SQLUSMALLINT, SQLSMALLINT, void*,
SQLINTEGER, SQLINTEGER*)'
make[3]: *** [thread.o] Error 1
make[3]: Leaving directory `/libccscript3-0.7.0/optional/odbc'
With the attached patch 'libccscript3' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/libccscript3-0.7.0/optional/odbc/thread.cpp
./optional/odbc/thread.cpp
--- ../tmp-orig/libccscript3-0.7.0/optional/odbc/thread.cpp 2005-04-30
14:55:20.000000000 +0000
+++ ./optional/odbc/thread.cpp 2005-09-05 13:52:56.000000000 +0000
@@ -63,7 +63,7 @@
SQLCHAR stat[10];
SQLCHAR errmsg[128];
SQLSMALLINT mlen, col, cols;
- long int rowcnt;
+ SQLINTEGER rowcnt;
char buf[1024];
char nbuf[12];
unsigned row = 0, len = 0;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]