#36 Fedora 16 build fails on vncview

Unstable (GIT)
open-fixed
nobody
5
2011-10-29
2011-10-29
Anonymous
No

OS: Fedora 16 Final TC2, x86_64
aqemu 0.8.2
libvncserver-devel 0.9.7-5
qt-devel 4.8.0-0.17.rc1
cmake 2.8.5-3

While creating a RPM for Fedora 16 64-bit under a clean mock environment, build fails:

/usr/bin/cmake -E cmake_progress_report /builddir/build/BUILD/aqemu-0.8.2/CMakeFiles
[ 79%] Building CXX object CMakeFiles/libvncclient.dir/Embedded_Display/vncview.o
/usr/lib64/ccache/c++ -Dlibvncclient_EXPORTS -DQT_GUI_LIB -DQT_CORE_LIB -DVNC_DISPLAY -DQTONLY -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtScriptTools -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtXmlPatterns -I/usr/include/QtHelp -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/Qt3Support -I/usr/lib64/qt4/mkspecs/default -I/builddir/build/BUILD/aqemu-0.8.2 -o CMakeFiles/libvncclient.dir/Embedded_Display/vncview.o -c /builddir/build/BUILD/aqemu-0.8.2/Embedded_Display/vncview.cpp
In file included from /usr/include/QtGui/qevent.h:57:0,
from /usr/include/QtGui/QMouseEvent:1,
from /builddir/build/BUILD/aqemu-0.8.2/Embedded_Display/vncview.cpp:44:
/usr/include/QtCore/qfile.h:117:21: error: macro "error" requires 3 arguments, but only 1 given
/usr/include/QtCore/qfile.h:117:15: error: expected ';' at end of member declaration
/usr/include/QtCore/qfile.h:117:23: error: declaration does not declare anything [-fpermissive]
/usr/bin/cmake -E cmake_progress_report /builddir/build/BUILD/aqemu-0.8.2/CMakeFiles 19
[ 80%] Building CXX object CMakeFiles/aqemu.dir/Embedded_Display/vncview.o
/usr/lib64/ccache/c++ -DQT_GUI_LIB -DQT_CORE_LIB -DVNC_DISPLAY -DQTONLY -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtScriptTools -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtXmlPatterns -I/usr/include/QtHelp -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/Qt3Support -I/usr/lib64/qt4/mkspecs/default -I/builddir/build/BUILD/aqemu-0.8.2 -o CMakeFiles/aqemu.dir/Embedded_Display/vncview.o -c /builddir/build/BUILD/aqemu-0.8.2/Embedded_Display/vncview.cpp
make[2]: *** [CMakeFiles/libvncclient.dir/Embedded_Display/vncview.o] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/aqemu-0.8.2'
make[1]: *** [CMakeFiles/libvncclient.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/cmake -E cmake_progress_report /builddir/build/BUILD/aqemu-0.8.2/CMakeFiles
[ 80%] Building CXX object CMakeFiles/aqemu.dir/moc_About_Window.o
/usr/lib64/ccache/c++ -DQT_GUI_LIB -DQT_CORE_LIB -DVNC_DISPLAY -DQTONLY -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtScriptTools -I/usr/include/QtDBus -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtXmlPatterns -I/usr/include/QtHelp -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/Qt3Support -I/usr/lib64/qt4/mkspecs/default -I/builddir/build/BUILD/aqemu-0.8.2 -o CMakeFiles/aqemu.dir/moc_About_Window.o -c /builddir/build/BUILD/aqemu-0.8.2/moc_About_Window.cxx
In file included from /usr/include/QtGui/qevent.h:57:0,
from /usr/include/QtGui/QMouseEvent:1,
from /builddir/build/BUILD/aqemu-0.8.2/Embedded_Display/vncview.cpp:44:
/usr/include/QtCore/qfile.h:117:21: error: macro "error" requires 3 arguments, but only 1 given
/usr/include/QtCore/qfile.h:117:15: error: expected ';' at end of member declaration
/usr/include/QtCore/qfile.h:117:23: error: declaration does not declare anything [-fpermissive]
make[2]: *** [CMakeFiles/aqemu.dir/Embedded_Display/vncview.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/builddir/build/BUILD/aqemu-0.8.2'
make[1]: Leaving directory `/builddir/build/BUILD/aqemu-0.8.2'
make[1]: *** [CMakeFiles/aqemu.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Andrey Rijov
    Andrey Rijov
    2011-10-29

    • labels: --> Build system
    • milestone: --> Unstable (GIT)
    • status: open --> open-fixed
     
  • Andrey Rijov
    Andrey Rijov
    2011-10-29

    Thanks for your bug report.

    Open file aqemu-0.8.2/Embedded_Display/vncview.cpp and comment lines 30-31 like this:

    Before:
    #define error(parent, message, caption) \ critical(parent, caption, message)

    After:
    /*#define error(parent, message, caption) \ critical(parent, caption, message)*/

    Or use code from Git.

     
  • same bug on Arch Linux (current)