Bug#803312: mathgl: FTBFS: json/Backend.hpp:6:1: error: expected class-name before '{' token

Chris Lamb lamby at debian.org
Wed Oct 28 16:32:35 UTC 2015


Source: mathgl
Version: 2.3.3-3
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

mathgl fails to build from source in unstable/amd64:

  [..]

  [ 79%] Building CXX object udav/CMakeFiles/udav.dir/args_dlg.cpp.o
  cd /build/mathgl-2.3.3/obj-x86_64-linux-gnu/udav && /usr/bin/c++  
  -DHAVE_MEMRCHR -DNO_COLOR_ARRAY -DQT_CORE_LIB -DQT_GUI_LIB
  -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
  -D_FORTIFY_SOURCE=2  -I/build/mathgl-2.3.3/obj-x86_64-linux-gnu/udav
  -I/build/mathgl-2.3.3/udav -I/build/mathgl-2.3.3/include
  -I/build/mathgl-2.3.3/obj-x86_64-linux-gnu/include
  -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
  -I/usr/include/hdf5/serial -isystem /usr/include/x86_64-linux-gnu/qt5
  -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem
  /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem
  /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
  /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
  /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport    -fPIC -o
  CMakeFiles/udav.dir/args_dlg.cpp.o -c
  /build/mathgl-2.3.3/udav/args_dlg.cpp
  In file included from
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/MainWindow.hpp:3:0,
                   from
                   /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/moc_MainWindow.cpp:9:
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:6:1:
  error: expected class-name before '{' token
   {
   ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:7:2:
  error: 'Q_OBJECT' does not name a type
    Q_OBJECT
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:14:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString show(const QString& text) const;
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:15:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString coor(const QString& xy, const QString& text)
    const;
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:16:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString geometry(const QString& mgl) const;
    ^
  [ 79%] Building CXX object udav/CMakeFiles/udav.dir/help_pnl.cpp.o
  In file included from
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/moc_Backend.cpp:9:0:
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:6:1:
  error: expected class-name before '{' token
   {
   ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:7:2:
  error: 'Q_OBJECT' does not name a type
    Q_OBJECT
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:14:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString show(const QString& text) const;
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:15:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString coor(const QString& xy, const QString& text)
    const;
    ^
  /build/mathgl-2.3.3/obj-x86_64-linux-gnu/json/../../json/Backend.hpp:16:2:
  error: 'Q_INVOKABLE' does not name a type
    Q_INVOKABLE QString geometry(const QString& mgl) const;
    ^

  [..]

The full build log is attached or (an alternate build) can be viewed
here:

    https://reproducible.debian.net/logs/unstable/amd64/mathgl_2.3.3-3.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathgl.2.3.3-3.unstable.amd64.log.txt.gz
Type: application/gzip
Size: 49770 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20151028/29116590/attachment-0001.bin>


More information about the debian-science-maintainers mailing list