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

[Qt 5.6.3] Namespace build fails with undefined reference to `qt_version_tag'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.3
    • Fix Version/s: 5.6.3
    • Component/s: Build System
    • Labels:
    • Environment:
      Ubuntu 14.04, Ubuntu 16.04, RHEL 6.6
    • Commits:
      79b4a69586966707e9fddac038322f121f1e7167

      Description

      Steps to reproduce:

      1. Download Qt 5.6.3 source package and unzip it
      2. Configure with:
        ./configure -nomake tests -qt-libjpeg -qt-libpng -qt-xcb -qt-pcre -openssl -confirm-license -verbose -release -no-use-gold-linker -skip qtwebengine -skip qtwebsockets -skip qtwebchannel -skip qtwebview -commercial -qtnamespace RTA -prefix /home/user/tmp/src-5.6/qtbase
      1. build with 'make module-qtbase'

      Expected result:

      QtBase gets build.

       

      Actual result:

      Building of network examples fails with:

      /home/user/tmp/src-5.6/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I/home/user/tmp/src-5.6/qtbase/mkspecs/linux-g++ -I/home/user/tmp/src-5.6/qtbase/examples/dbus/remotecontrolledcar/controller -I/home/user/tmp/src-5.6/qtbase/include -I/home/user/tmp/src-5.6/qtbase/include/QtWidgets -I/home/user/tmp/src-5.6/qtbase/include/QtGui -I/home/user/tmp/src-5.6/qtbase/include/QtDBus -I/home/user/tmp/src-5.6/qtbase/include/QtCore -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward -I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include car_interface.h -o .moc/moc_car_interface.cpp
      /home/user/tmp/src-5.6/qtbase/lib/libQt5Gui.so: undefined reference to `qt_version_tag'
      collect2: error: ld returned 1 exit status
      Makefile:138: recipe for target 'broadcastreceiver' failed
      make[4]: *** [broadcastreceiver] Error 1
      make[4]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/network/broadcastreceiver'
      Makefile:159: recipe for target 'sub-broadcastreceiver-make_first' failed
      make[3]: *** [sub-broadcastreceiver-make_first] Error 2
      make[3]: *** Waiting for unfinished jobs....
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/moc_car.o .moc/moc_car.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I../../../../mkspecs/linux-g++ -o .obj/moc_controller.o .moc/moc_controller.cpp
      /home/user/tmp/src-5.6/qtbase/lib/libQt5Gui.so: undefined reference to `qt_version_tag'
      collect2: error: ld returned 1 exit status
      Makefile:144: recipe for target 'blockingfortuneclient' failed
      make[4]: *** [blockingfortuneclient] Error 1
      make[4]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/network/blockingfortuneclient'
      Makefile:134: recipe for target 'sub-blockingfortuneclient-make_first' failed
      make[3]: *** [sub-blockingfortuneclient-make_first] Error 2
      make[3]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/network'
      Makefile:154: recipe for target 'sub-network-make_first' failed
      make[2]: *** [sub-network-make_first] Error 2
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I../../../../mkspecs/linux-g++ -o .obj/car_interface.o car_interface.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../include -I../../../include/QtWidgets -I../../../include/QtGui -I../../../include/QtDBus -I../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I../../../mkspecs/linux-g++ -o .obj/moc_chat_interface.o .moc/moc_chat_interface.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../include -I../../../include/QtWidgets -I../../../include/QtGui -I../../../include/QtDBus -I../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I../../../mkspecs/linux-g++ -o .obj/moc_chat_adaptor.o .moc/moc_chat_adaptor.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/car_adaptor.o car_adaptor.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/moc_car_adaptor.o .moc/moc_car_adaptor.cpp
      g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NAMESPACE=RTA -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I../../../../mkspecs/linux-g++ -o .obj/moc_car_interface.o .moc/moc_car_interface.cpp
      g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/home/user/tmp/src-5.6/qtbase/lib -o chat .obj/chat.o .obj/moc_chat.o .obj/chat_interface.o .obj/chat_adaptor.o .obj/moc_chat_interface.o .obj/moc_chat_adaptor.o -L/home/user/tmp/src-5.6/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5DBus -lQt5Core -lGL -lpthread
      /home/user/tmp/src-5.6/qtbase/lib/libQt5Gui.so: undefined reference to `qt_version_tag'
      collect2: error: ld returned 1 exit status
      Makefile:146: recipe for target 'chat' failed
      make[4]: *** [chat] Error 1
      make[4]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/dbus/chat'
      Makefile:121: recipe for target 'sub-chat-make_first' failed
      make[3]: *** [sub-chat-make_first] Error 2
      make[3]: *** Waiting for unfinished jobs....
      g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/home/user/tmp/src-5.6/qtbase/lib -o controller .obj/main.o .obj/controller.o .obj/moc_controller.o .obj/car_interface.o .obj/moc_car_interface.o -L/home/user/tmp/src-5.6/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5DBus -lQt5Core -lGL -lpthread
      g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/home/user/tmp/src-5.6/qtbase/lib -o car .obj/car.o .obj/main.o .obj/moc_car.o .obj/car_adaptor.o .obj/moc_car_adaptor.o -L/home/user/tmp/src-5.6/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5DBus -lQt5Core -lGL -lpthread
      /home/user/tmp/src-5.6/qtbase/lib/libQt5Gui.so: undefined reference to `qt_version_tag'
      collect2: error: ld returned 1 exit status
      Makefile:145: recipe for target 'controller' failed
      make[5]: *** [controller] Error 1
      make[5]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/dbus/remotecontrolledcar/controller'
      Makefile:68: recipe for target 'sub-controller-make_first' failed
      make[4]: *** [sub-controller-make_first] Error 2
      make[4]: *** Waiting for unfinished jobs....
      /home/user/tmp/src-5.6/qtbase/lib/libQt5Gui.so: undefined reference to `qt_version_tag'
      collect2: error: ld returned 1 exit status
      Makefile:145: recipe for target 'car' failed
      make[5]: *** [car] Error 1
      make[5]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/dbus/remotecontrolledcar/car'
      Makefile:43: recipe for target 'sub-car-make_first' failed
      make[4]: *** [sub-car-make_first] Error 2
      make[4]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/dbus/remotecontrolledcar'
      Makefile:146: recipe for target 'sub-remotecontrolledcar-make_first' failed
      make[3]: *** [sub-remotecontrolledcar-make_first] Error 2
      make[3]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples/dbus'
      Makefile:79: recipe for target 'sub-dbus-make_first' failed
      make[2]: *** [sub-dbus-make_first] Error 2
      make[2]: Leaving directory '/home/user/tmp/src-5.6/qtbase/examples'
      Makefile:71: recipe for target 'sub-examples-make_first' failed
      make[1]: *** [sub-examples-make_first] Error 2
      make[1]: Leaving directory '/home/user/tmp/src-5.6/qtbase'
      Makefile:68: recipe for target 'module-qtbase-make_first' failed
      make: *** [module-qtbase-make_first] Error 2
      

      Building without 'namespace' option build succeeds.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes