Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62689

Cannot compile DB2 plugin on 64bit linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.1
    • SQL Support
    • Ubuntu 16.04, DB2 client version 9.7.0.6

    Description

      Compilation fails with:

      /home/user/work/qt/git/qtbase/src/plugins/sqldrivers/db2/qsql_db2.cpp: In constructor ‘QDB2Driver::QDB2Driver(Qt::HANDLE, Qt::HANDLE, QObject*)’:
      /home/user/work/qt/git/qtbase/src/plugins/sqldrivers/db2/qsql_db2.cpp:1188:46: error: cast from ‘Qt::HANDLE {aka void*}’ to ‘SQLHANDLE {aka int}’ loses precision [-fpermissive]
           d->hEnv = reinterpret_cast<SQLHANDLE>(env);
                                                    ^
      /home/user/work/qt/git/qtbase/src/plugins/sqldrivers/db2/qsql_db2.cpp:1189:46: error: cast from ‘Qt::HANDLE {aka void*}’ to ‘SQLHANDLE {aka int}’ loses precision [-fpermissive]
           d->hDbc = reinterpret_cast<SQLHANDLE>(con);
                                                    ^
      Makefile:810: recipe for target '.obj/qsql_db2.o' failed
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mabrand Mark Brand
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes