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

undefined references in mysql plugin when building qtbase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.0.0 Beta 1
    • 5.0.0 Beta 1
    • Build System
    • None
    • Ubuntu 12.04 64-bit
    • I2f523d5cffb27c3d0a16cdef6ca8a4877c9983c0

    Description

      I checked out 853f78e1259e46a3072b3aef2b4612cdc5232510 from qtbase, configured with:

      ../qtbase/configure -debug -opensource -developer-build -confirm-license

      and then ran make:

      ...
      make[4]: Leaving directory `/home/micurtis/dev/qtbase-debug/src/plugins/platforms/xcb'
      make[3]: Leaving directory `/home/micurtis/dev/qtbase-debug/src/plugins/platforms'
      .obj/debug-shared/main.o: In function `QMYSQLDriverPlugin::create(QString const&)':
      /home/micurtis/dev/qtbase/src/plugins/sqldrivers/mysql/main.cpp:66: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/plugins/sqldrivers/mysql/main.cpp:66: undefined reference to `QString::operator==(QLatin1String) const'
      .obj/debug-shared/main.o: In function `QMYSQLDriverPlugin::metaObject() const':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/.moc/debug-shared/main.moc:71: undefined reference to `QObjectData::dynamicMetaObject() const'
      .obj/debug-shared/main.o:(.data.rel.ro._ZTV18QMYSQLDriverPlugin[vtable for QMYSQLDriverPlugin]+0x60): undefined reference to `QObject::connectNotify(QMetaMethod const&)'
      .obj/debug-shared/main.o:(.data.rel.ro._ZTV18QMYSQLDriverPlugin[vtable for QMYSQLDriverPlugin]+0x68): undefined reference to `QObject::disconnectNotify(QMetaMethod const&)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::cleanup()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:447: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::fetch(int)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:506: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::fetchNext()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:537: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::data(int)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:593: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::reset(QString const&)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:698: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:704: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::nextResult()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:807: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:817: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResult::prepare(QString const&)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:891: undefined reference to `QCoreApplication::translate(char const*, char const*, char const*, int)'
      .obj/debug-shared/qsql_mysql.o:/home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:899: more undefined references to `QCoreApplication::translate(char const*, char const*, char const*, int)' follow
      .obj/debug-shared/qsql_mysql.o: In function `qLibraryInit':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1095: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `setOptionFlag':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1202: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1204: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1206: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1208: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1210: undefined reference to `QString::operator==(QLatin1String) const'
      .obj/debug-shared/qsql_mysql.o:/home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1212: more undefined references to `QString::operator==(QLatin1String) const' follow
      .obj/debug-shared/qsql_mysql.o: In function `setOptionFlag':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1217: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1236: undefined reference to `QString::split(QChar, QString::SplitBehavior, Qt::CaseSensitivity) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1249: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1252: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1253: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1253: undefined reference to `QString::operator==(QLatin1String) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1257: undefined reference to `QString::operator==(QLatin1String) const'
      .obj/debug-shared/qsql_mysql.o:/home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1257: more undefined references to `QString::operator==(QLatin1String) const' follow
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1261: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::primaryIndex(QString const&) const':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1400: undefined reference to `QString::arg(QString const&, int, QChar) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1402: undefined reference to `QString::operator==(QLatin1String) const'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::beginTransaction()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1444: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::commitTransaction()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1461: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::rollbackTransaction()':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1478: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::formatValue(QSqlField const&, bool) const':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1499: undefined reference to `QString::replace(QLatin1String, QLatin1String, Qt::CaseSensitivity)'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1513: undefined reference to `QMessageLogger::warning(char const*, ...)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::escapeIdentifier(QString const&, QSqlDriver::IdentifierType) const':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1526: undefined reference to `QString::startsWith(QChar, Qt::CaseSensitivity) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1526: undefined reference to `QString::endsWith(QChar, Qt::CaseSensitivity) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1528: undefined reference to `QString::replace(QChar, QLatin1String, Qt::CaseSensitivity)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLDriver::isIdentifierEscaped(QString const&, QSqlDriver::IdentifierType) const':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1537: undefined reference to `QString::startsWith(QChar, Qt::CaseSensitivity) const'
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:1538: undefined reference to `QString::endsWith(QChar, Qt::CaseSensitivity) const'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResultPrivate::metaObject() const':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/.moc/debug-shared/qsql_mysql.moc:84: undefined reference to `QObjectData::dynamicMetaObject() const'
      .obj/debug-shared/qsql_mysql.o: In function `QArrayData::sharedNull()':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:126: undefined reference to `QArrayData::shared_null'
      .obj/debug-shared/qsql_mysql.o: In function `QString::operator+=(QChar)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qstring.h:403: undefined reference to `QString::reallocData(unsigned int, bool)'
      .obj/debug-shared/qsql_mysql.o: In function `QString::reserve(int)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qstring.h:913: undefined reference to `QString::reallocData(unsigned int, bool)'
      .obj/debug-shared/qsql_mysql.o: In function `QListData::dispose()':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qlist.h:79: undefined reference to `QListData::dispose(QListData::Data*)'
      .obj/debug-shared/qsql_mysql.o: In function `QMYSQLResultPrivate':
      /home/micurtis/dev/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp:176: undefined reference to `QMetaObject::Connection::~Connection()'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<char>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<unsigned short>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QList<QString>::dealloc(QListData::Data*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qlist.h:765: undefined reference to `QListData::dispose(QListData::Data*)'
      .obj/debug-shared/qsql_mysql.o: In function `int qRegisterNormalizedMetaType<st_mysql_res*>(QByteArray const&, st_mysql_res**)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:590: undefined reference to `QMetaType::registerNormalizedTypedef(QByteArray const&, int)'
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:599: undefined reference to `QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)'
      .obj/debug-shared/qsql_mysql.o: In function `int qRegisterNormalizedMetaType<st_mysql*>(QByteArray const&, st_mysql**)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:590: undefined reference to `QMetaType::registerNormalizedTypedef(QByteArray const&, int)'
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:599: undefined reference to `QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)'
      .obj/debug-shared/qsql_mysql.o: In function `int qRegisterNormalizedMetaType<st_mysql_stmt*>(QByteArray const&, st_mysql_stmt**)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:590: undefined reference to `QMetaType::registerNormalizedTypedef(QByteArray const&, int)'
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/kernel/qmetatype.h:599: undefined reference to `QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QVariant>::allocate(unsigned long, QFlags<QArrayData::AllocationOption>)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:226: undefined reference to `QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QMYSQLResultPrivate::QMyField>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QMYSQLResultPrivate::QMyField>::allocate(unsigned long, QFlags<QArrayData::AllocationOption>)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:226: undefined reference to `QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<st_mysql_time*>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QByteArray>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QVariant>::deallocate(QArrayData*)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:232: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<char>::allocate(unsigned long, QFlags<QArrayData::AllocationOption>)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:226: undefined reference to `QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<st_mysql_time*>::allocate(unsigned long, QFlags<QArrayData::AllocationOption>)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:226: undefined reference to `QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)'
      .obj/debug-shared/qsql_mysql.o: In function `QTypedArrayData<QByteArray>::allocate(unsigned long, QFlags<QArrayData::AllocationOption>)':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../../qtbase/src/corelib/tools/qarraydata.h:226: undefined reference to `QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)'
      .obj/debug-shared/qsql_mysql.o:(.data.rel.ro._ZTV19QMYSQLResultPrivate[vtable for QMYSQLResultPrivate]+0x60): undefined reference to `QObject::connectNotify(QMetaMethod const&)'
      .obj/debug-shared/qsql_mysql.o:(.data.rel.ro._ZTV19QMYSQLResultPrivate[vtable for QMYSQLResultPrivate]+0x68): undefined reference to `QObject::disconnectNotify(QMetaMethod const&)'
      .obj/debug-shared/moc_qsql_mysql.o: In function `QMYSQLDriver::metaObject() const':
      /home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql/.moc/debug-shared/moc_qsql_mysql.cpp:71: undefined reference to `QObjectData::dynamicMetaObject() const'
      .obj/debug-shared/moc_qsql_mysql.o:(.data.rel.ro._ZTV12QMYSQLDriver[vtable for QMYSQLDriver]+0x60): undefined reference to `QObject::connectNotify(QMetaMethod const&)'
      .obj/debug-shared/moc_qsql_mysql.o:(.data.rel.ro._ZTV12QMYSQLDriver[vtable for QMYSQLDriver]+0x68): undefined reference to `QObject::disconnectNotify(QMetaMethod const&)'
      collect2: ld returned 1 exit status
      make[4]: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1
      make[4]: Leaving directory `/home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers/mysql'
      make[3]: *** [sub-mysql-make_first] Error 2
      make[3]: Leaving directory `/home/micurtis/dev/qtbase-debug/src/plugins/sqldrivers'
      make[2]: *** [sub-sqldrivers-make_first] Error 2
      make[2]: Leaving directory `/home/micurtis/dev/qtbase-debug/src/plugins'
      make[1]: *** [sub-plugins-make_first] Error 2
      make[1]: Leaving directory `/home/micurtis/dev/qtbase-debug/src'
      make: *** [sub-src-make_first] Error 2

      Attachments

        Activity

          People

            buddenha Oswald Buddenhagen
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: