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

MySQL sqldriver plugin fails to compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.8.0
    • Build System
    • None
    • Gentoo Linux, GCC 6.3.0
    • a2b4705ac66564397f78b416b8c98fe075a3bbd9

    Description

      make[4]: Entering directory '/home/eugene/develop/alien/qt5/qt5/qtbase/src/plugins/sqldrivers/mysql'
      g++ -c -pipe -march=native -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -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. -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 -isystem /usr/include/mysql -isystem /usr/include -I../../../../mkspecs/linux-g++ -o .obj/qsql_mysql.o qsql_mysql.cpp
      In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stl_algo.h:59:0,
                       from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/algorithm:62,
                       from ../../../../include/QtCore/../../src/corelib/global/qglobal.h:108,
                       from ../../../../include/QtCore/qglobal.h:1,
                       from ../../../../include/QtSql/../../src/sql/kernel/qtsqlglobal.h:43,
                       from ../../../../include/QtSql/qtsqlglobal.h:1,
                       from ../../../../include/QtSql/../../src/sql/kernel/qsqldriver.h:43,
                       from ../../../../include/QtSql/qsqldriver.h:1,
                       from qsql_mysql_p.h:54,
                       from qsql_mysql.cpp:40:
      /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
       #include_next <stdlib.h>
      

      So, there is '-isystem /usr/include' in the command line, but where does it come from?
      I have mariadb installed, and pkg-config --cflags mariadb returns -I/usr/include/mysql only.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            eugeneshalygin Eugene Shalygin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes