Author Topic: 'make' fails  (Read 1591 times)

mhoes

  • Guest
'make' fails
« on: December 04, 2015, 10:47:09 pm »
Hi,


Im not sure if this should be a bug report or not, or if Im simply doing something wrong or missing something obvious ?.

Im trying to build latest git (commit: f4ef0633c93e19c433f23913c377c1a09938e188 date: 2015-11-29 18:13:58) on Fedora 23, but 'make' fails [1] for me fairly on. './configure' completes without errors.


- Maarten



[1]
$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether OS is FreeBSD... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the GUI... yes
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking whether Qt4 should be enabled... no
checking for /usr/lib64/qt5/bin/qmake... yes
checking for Qt5 qmake >= 5.2.0... /usr/lib64/qt5/bin/qmake
checking whether QtDBus should be enabled... yes
checking for Qt5DBus >= 5.2.0... found
checking for boostlib >= 1.35... yes
configure: Boost CPPFLGAS: -I/usr/include
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
configure: Boost.System LIB: -lboost_system
checking which qtsingleapplication to use... shipped
checking for libtorrent... yes
checking for zlib... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating conf.pri
config.status: executing depfiles commands
configure: Running qmake to generate the makefile...
Project MESSAGE: Building translations
Project MESSAGE: Processing lang/qbittorrent_fr
Project MESSAGE: Processing lang/qbittorrent_zh
Project MESSAGE: Processing lang/qbittorrent_zh_TW
Project MESSAGE: Processing lang/qbittorrent_zh_HK
Project MESSAGE: Processing lang/qbittorrent_en
Project MESSAGE: Processing lang/qbittorrent_en_AU
Project MESSAGE: Processing lang/qbittorrent_en_GB
Project MESSAGE: Processing lang/qbittorrent_ca
Project MESSAGE: Processing lang/qbittorrent_es
Project MESSAGE: Processing lang/qbittorrent_eo
Project MESSAGE: Processing lang/qbittorrent_pl
Project MESSAGE: Processing lang/qbittorrent_ko
Project MESSAGE: Processing lang/qbittorrent_de
Project MESSAGE: Processing lang/qbittorrent_nl
Project MESSAGE: Processing lang/qbittorrent_tr
Project MESSAGE: Processing lang/qbittorrent_sv
Project MESSAGE: Processing lang/qbittorrent_el
Project MESSAGE: Processing lang/qbittorrent_ru
Project MESSAGE: Processing lang/qbittorrent_uk
Project MESSAGE: Processing lang/qbittorrent_bg
Project MESSAGE: Processing lang/qbittorrent_id
Project MESSAGE: Processing lang/qbittorrent_it
Project MESSAGE: Processing lang/qbittorrent_sk
Project MESSAGE: Processing lang/qbittorrent_sl
Project MESSAGE: Processing lang/qbittorrent_ro
Project MESSAGE: Processing lang/qbittorrent_pt
Project MESSAGE: Processing lang/qbittorrent_nb
Project MESSAGE: Processing lang/qbittorrent_fi
Project MESSAGE: Processing lang/qbittorrent_da
Project MESSAGE: Processing lang/qbittorrent_ja
Project MESSAGE: Processing lang/qbittorrent_hu
Project MESSAGE: Processing lang/qbittorrent_pt_BR
Project MESSAGE: Processing lang/qbittorrent_cs
Project MESSAGE: Processing lang/qbittorrent_sr
Project MESSAGE: Processing lang/qbittorrent_ar
Project MESSAGE: Processing lang/qbittorrent_hr
Project MESSAGE: Processing lang/qbittorrent_gl
Project MESSAGE: Processing lang/qbittorrent_hy
Project MESSAGE: Processing lang/qbittorrent_lt
Project MESSAGE: Processing lang/qbittorrent_ka
Project MESSAGE: Processing lang/qbittorrent_be
Project MESSAGE: Processing lang/qbittorrent_eu
Project MESSAGE: Processing lang/qbittorrent_he
Project MESSAGE: Processing lang/qbittorrent_vi
Project MESSAGE: Processing lang/qbittorrent_hi_IN
Reading /home/maarten/src/qbittorrent/src/src.pro
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.

configure: Good, your configure finished.

[maarten@fedora qbittorrent]$ make
cd src/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake /home/maarten/src/qbittorrent/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/maarten/src/qbittorrent/src'
uic gui/properties/propertieswidget.ui
uic gui/properties/trackersadditiondlg.ui
uic gui/properties/peersadditiondlg.ui
uic gui/rss/rss.ui
uic gui/rss/rsssettingsdlg.ui
uic gui/rss/automatedrssdownloader.ui
uic gui/rss/cookiesdlg.ui
uic gui/mainwindow.ui
uic gui/about.ui
uic gui/preview.ui
uic gui/login.ui
uic gui/downloadfromurldlg.ui
uic gui/bandwidth_limit.ui
uic gui/updownratiodlg.ui
uic gui/confirmdeletiondlg.ui
uic gui/torrentimportdlg.ui
uic gui/executionlog.ui
uic gui/addnewtorrentdialog.ui
uic gui/autoexpandabledialog.ui
uic gui/statsdialog.ui
uic gui/options.ui
uic gui/torrentcreatordlg.ui
uic searchengine/search.ui
uic searchengine/engineselect.ui
uic searchengine/pluginsource.ui
compiling app/qtsingleapplication/qtsingleapplication.cpp
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from app/qtsingleapplication/qtsingleapplication.h:44,
                 from app/qtsingleapplication/qtsingleapplication.cpp:42:
/usr/include/qt5/QtWidgets/qapplication.h:100:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:136:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:166:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtGui/qguiapplication.h:39:0,
                 from /usr/include/qt5/QtWidgets/qapplication.h:45,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from app/qtsingleapplication/qtsingleapplication.h:44,
                 from app/qtsingleapplication/qtsingleapplication.cpp:42:
/usr/include/qt5/QtGui/qinputmethod.h:75:18: error: expected ‘;’ at end of member declaration
     Q_ENUM(Action)
                  ^
/usr/include/qt5/QtGui/qinputmethod.h:82:5: error: ‘QLocale’ does not name a type
     QLocale locale() const;
     ^
/usr/include/qt5/QtGui/qinputmethod.h:91:21: error: ‘Qt::InputMethodQueries’ has not been declared
     void update(Qt::InputMethodQueries queries);
                     ^
In file included from /usr/include/qt5/QtWidgets/qapplication.h:45:0,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from app/qtsingleapplication/qtsingleapplication.h:44,
                 from app/qtsingleapplication/qtsingleapplication.cpp:42:
/usr/include/qt5/QtGui/qguiapplication.h:85:12: error: ‘QWindowList’ does not name a type
     static QWindowList allWindows();
            ^
/usr/include/qt5/QtGui/qguiapplication.h:86:12: error: ‘QWindowList’ does not name a type
     static QWindowList topLevelWindows();
            ^
/usr/include/qt5/QtGui/qguiapplication.h:138:12: error: ‘QFunctionPointer’ does not name a type
     static QFunctionPointer platformFunction(const QByteArray &function);
            ^
/usr/include/qt5/QtGui/qguiapplication.h:143:16: error: ‘ApplicationState’ in namespace ‘Qt’ does not name a type
     static Qt::ApplicationState applicationState();
                ^
/usr/include/qt5/QtGui/qguiapplication.h:146:36: error: expected ‘;’ at end of member declaration
     bool notify(QObject *, QEvent *) Q_DECL_OVERRIDE;
                                    ^
/usr/include/qt5/QtGui/qguiapplication.h:146:38: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool notify(QObject *, QEvent *) Q_DECL_OVERRIDE;
                                      ^
/usr/include/qt5/QtGui/qguiapplication.h:164:38: error: ‘Qt::ApplicationState’ has not been declared
     void applicationStateChanged(Qt::ApplicationState state);
                                      ^
/usr/include/qt5/QtGui/qguiapplication.h:173:24: error: expected ‘;’ at end of member declaration
     bool event(QEvent *) Q_DECL_OVERRIDE;
                        ^
/usr/include/qt5/QtGui/qguiapplication.h:173:26: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool event(QEvent *) Q_DECL_OVERRIDE;
                          ^
/usr/include/qt5/QtGui/qguiapplication.h:174:69: error: expected ‘;’ at end of member declaration
     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) Q_DECL_OVERRIDE;
                                                                     ^
/usr/include/qt5/QtGui/qguiapplication.h:174:71: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) Q_DECL_OVERRIDE;
                                                                       ^
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from app/qtsingleapplication/qtsingleapplication.h:44,
                 from app/qtsingleapplication/qtsingleapplication.cpp:42:
/usr/include/qt5/QtWidgets/qapplication.h:65:37: error: expected initializer before ‘:’ token
 class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
                                     ^
Makefile:2320: recipe for target 'qtsingleapplication.o' failed
make[1]: *** [qtsingleapplication.o] Error 1
make[1]: Leaving directory '/home/maarten/src/qbittorrent/src'
Makefile:42: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2

mhoes

  • Guest
Re: 'make' fails
« Reply #1 on: December 06, 2015, 01:57:39 pm »
Browsing through the bug reports resulted in using this : './configure --prefix=/usr CPPFLAGS=-I/usr/include/qt5', which fixes the issue.