1 |
dirtyepic 10/04/02 21:18:49 |
2 |
|
3 |
Added: wxGTK-2.8.10.1-odbc-defines.patch |
4 |
Log: |
5 |
Build fix for unixODBC-2.2.14 (bug #310923 by Martin von Gagern). |
6 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-libs/wxGTK/files/wxGTK-2.8.10.1-odbc-defines.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/files/wxGTK-2.8.10.1-odbc-defines.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/files/wxGTK-2.8.10.1-odbc-defines.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: wxGTK-2.8.10.1-odbc-defines.patch |
15 |
=================================================================== |
16 |
unixODBC 2.2.14 defines SQLLEN and SQLULEN using the compiler typedef |
17 |
declaration instead of preprocessor #define macro definition. This breaks |
18 |
the preprocessor checks in this include file.cpp, causing the source to fall |
19 |
back to older types instead, leading to compile time errors like this: |
20 |
|
21 |
db.cpp:1636: error: cannot convert ‘SQLINTEGER*’ to ‘SQLLEN*’ for argument ‘6’ to |
22 |
‘SQLRETURN SQLGetData(void*, SQLUSMALLINT, SQLSMALLINT, void*, SQLLEN, SQLLEN*)’ |
23 |
... |
24 |
dbtable.cpp:592: error: cannot convert ‘SQLUINTEGER*’ to ‘SQLULEN*’ for argument ‘4’ to |
25 |
‘SQLRETURN SQLExtendedFetch(void*, SQLUSMALLINT, SQLLEN, SQLULEN*, SQLUSMALLINT*)’ |
26 |
... |
27 |
|
28 |
This change hard-wires the new names, breaking compatibility with ancient |
29 |
(pre 2001) unixODBC versions. This change may break other ODBC implementations |
30 |
but in Gentoo only unixODBC is supported. |
31 |
|
32 |
References: |
33 |
http://bugs.gentoo.org/310923 |
34 |
|
35 |
2010-03-23 Martin von Gagern |
36 |
|
37 |
--- wxPython-src-2.6.4.0.orig/include/wx/db.h |
38 |
+++ wxPython-src-2.6.4.0/include/wx/db.h |
39 |
@@ -134,15 +134,6 @@ enum enumDummy {enumDum1}; |
40 |
#endif |
41 |
#endif |
42 |
|
43 |
-#ifndef _WIN64 |
44 |
-#ifndef SQLLEN |
45 |
-#define SQLLEN SQLINTEGER |
46 |
-#endif |
47 |
-#ifndef SQLULEN |
48 |
-#define SQLULEN SQLUINTEGER |
49 |
-#endif |
50 |
-#endif |
51 |
- |
52 |
const int wxDB_PATH_MAX = 254; |
53 |
|
54 |
extern WXDLLIMPEXP_DATA_ODBC(wxChar const *) SQL_LOG_FILENAME; |