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

[REG 5.7 -> 5.8.0] Failure to build mysql, postgresql plugins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0 Beta
    • Fix Version/s: 5.8.0 RC
    • Component/s: SQL Support
    • Labels:
      None
    • Environment:
      Debian 7.11 AMD64
    • Commits:
      d01c774f4508b1606dfac0905a66ac5748af6b90

      Description

      Running configure without any sql-related flags:

      Qt Sql:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. yes
        OCI (Oracle) ........................... no
        ODBC ................................... yes
        PostgreSQL ............................. yes
        SQLite2 ................................ yes
        SQLite ................................. yes
          Using system provided SQLite ......... no
        TDS (Sybase) ........................... yes
      

      detects the DBs installed, but compilation fails to find them:

      g++ -c -pipe -O2 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I/home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/psql -I. -I../../../../include/QtSql/5.8.0 -I../../../../include/QtSql/5.8.0/QtSql -I../../../../include/QtCore/5.8.0 -I../../../../include/QtCore/5.8.0/QtCore -I../../../../include -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I/home/marc/Qt/qt5/qtbase/mkspecs/linux-g++ -o .obj/qsql_psql.o /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/psql/qsql_psql.cpp
      /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/psql/qsql_psql.cpp:57:22: fatal error: libpq-fe.h: No such file or directory
       #include <libpq-fe.h>
                            ^
      compilation terminated.
      make[4]: *** [.obj/qsql_psql.o] Error 1
      make[4]: Target `first' not remade because of errors.
      make[4]: Leaving directory `/home/marc/Qt/qt5-build/qtbase/src/plugins/sqldrivers/psql'
      make[3]: *** [sub-psql-make_first] Error 2
      cd mysql/ && ( test -e Makefile || /home/marc/Qt/qt5-build/qtbase/bin/qmake -o Makefile /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/mysql.pro -qtconf /home/marc/Qt/qt5-build/qtbase/bin/qt.conf -- -opensource -confirm-license -developer-build -release -skip qtwebkit -skip qtserialport -skip qtscxml -skip qtquick1 -skip qtspeech -skip qtsystems -no-pch -sanitize undefined -sanitize address -force-debug-info ) && make -f Makefile 
      make[4]: Entering directory `/home/marc/Qt/qt5-build/qtbase/src/plugins/sqldrivers/mysql'
      g++ -c -pipe -O2 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I/home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql -I. -I../../../../include/QtSql/5.8.0 -I../../../../include/QtSql/5.8.0/QtSql -I../../../../include/QtCore/5.8.0 -I../../../../include/QtCore/5.8.0/QtCore -I../../../../include -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I/home/marc/Qt/qt5/qtbase/mkspecs/linux-g++ -o .obj/qsql_mysql.o /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
      In file included from /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp:40:0:
      /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h:60:19: fatal error: mysql.h: No such file or directory
       #include <mysql.h>
                         ^
      compilation terminated.
      make[4]: *** [.obj/qsql_mysql.o] Error 1
      g++ -c -pipe -O2 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I/home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql -I. -I../../../../include/QtSql/5.8.0 -I../../../../include/QtSql/5.8.0/QtSql -I../../../../include/QtCore/5.8.0 -I../../../../include/QtCore/5.8.0/QtCore -I../../../../include -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I/home/marc/Qt/qt5/qtbase/mkspecs/linux-g++ -o .obj/main.o /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/main.cpp
      In file included from /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/main.cpp:42:0:
      /home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h:60:19: fatal error: mysql.h: No such file or directory
       #include <mysql.h>
                         ^
      compilation terminated.
      make[4]: *** [.obj/main.o] Error 1
      g++ -c -pipe -O2 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I/home/marc/Qt/qt5/qtbase/src/plugins/sqldrivers/mysql -I. -I../../../../include/QtSql/5.8.0 -I../../../../include/QtSql/5.8.0/QtSql -I../../../../include/QtCore/5.8.0 -I../../../../include/QtCore/5.8.0/QtCore -I../../../../include -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I/home/marc/Qt/qt5/qtbase/mkspecs/linux-g++ -o .obj/moc_qsql_mysql_p.o .moc/moc_qsql_mysql_p.cpp
      In file included from .moc/moc_qsql_mysql_p.cpp:9:0:
      .moc/../../../../../../../qt5/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h:60:19: fatal error: mysql.h: No such file or directory
       #include <mysql.h>
                         ^
      compilation terminated.
      make[4]: *** [.obj/moc_qsql_mysql_p.o] Error 1
      

      Yet:

      $ locate mysql.h
      /usr/include/mysql/mysql.h
      $ locate libpq-fe.h
      /usr/include/postgresql/libpq-fe.h
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              mmutz Marc Mutz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes