Comment 0 for bug 9730

Revision history for this message
In , Daniel Schepler (schepler-math) wrote :

Package: qt-x11-free
Version: 3:3.3.3-4.1
Severity: normal
Tags: patch

From my build log:

...
g++ -c -pipe -I/usr/include/mysql -I/usr/include/freetype2 -I/usr/include/postgresql -I/usr/include/postgresql/server -fno-exceptions -Wall -W -O2 -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SHARED -I/tmp/buildd/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../../../include -I.moc/release-shared/ -o .obj/qsql_odbc.o ../../../../src/sql/drivers/odbc/qsql_odbc.cpp
./../../../src/sql/drivers/odbc/qsql_odbc.cpp:61:1: warning: "SQLLEN" redefined
In file included from /usr/include/sql.h:91,
                 from ../../../../src/sql/drivers/odbc/qsql_odbc.h:72,
                 from ../../../../src/sql/drivers/odbc/qsql_odbc.cpp:37:
/usr/include/sqltypes.h:139:1: warning: this is the location of the previous definition
./../../../src/sql/drivers/odbc/qsql_odbc.cpp:62:1: warning: "SQLULEN" redefined
/usr/include/sqltypes.h:140:1: warning: this is the location of the previous definition
./../../../src/sql/drivers/odbc/qsql_odbc.cpp: In function `QString qGetStringData(void*, int, int, bool&, bool)':
./../../../src/sql/drivers/odbc/qsql_odbc.cpp:277: error: cannot convert `SQLINTEGER*' to `long int*' for argument `6' to `SQLRETURN SQLGetData(void*, SQLUSMALLINT, SQLSMALLINT, void*, long int, long int*)'
..
make[4]: *** [.obj/qsql_odbc.o] Error 1
make[4]: Leaving directory `/tmp/buildd/qt-x11-free-3.3.3/plugins/src/sqldrivers/odbc'
make[3]: *** [sub-odbc] Error 2
make[3]: Leaving directory `/tmp/buildd/qt-x11-free-3.3.3/plugins/src/sqldrivers'
make[2]: *** [sub-sqldrivers] Error 2
make[2]: Leaving directory `/tmp/buildd/qt-x11-free-3.3.3/plugins/src'
make[1]: *** [sub-plugins] Error 2
make[1]: Leaving directory `/tmp/buildd/qt-x11-free-3.3.3'
make: *** [libqt-stamp] Error 2

Changing line 61 of qsql_odbc.cpp from "#ifndef Q_OS_WIN64" to "#if
!defined(Q_OS_WIN64) && !defined(__amd64__)" fixes the build.
--
Daniel Schepler "Please don't disillusion me. I
<email address hidden> haven't had breakfast yet."
                                 -- Orson Scott Card