Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587830 - net-dns/avahi-0.6.32[qt4] calls moc directly
Summary: net-dns/avahi-0.6.32[qt4] calls moc directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on: 525884
Blocks: qtbindir
  Show dependency tree
 
Reported: 2016-07-02 18:26 UTC by selurvedu
Modified: 2018-01-21 03:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description selurvedu 2016-07-02 18:26:54 UTC
> Making all in avahi-qt
> make[2]: Entering directory '/var/tmp/portage/net-dns/avahi-0.6.32/work/avahi-0.6.32-abi_x86_32.x86/avahi-qt'
> /usr/bin/moc qt-watch.cpp > qt-watch.moc4
> make  all-am
> make[3]: Entering directory '/var/tmp/portage/net-dns/avahi-0.6.32/work/avahi-0.6.32-abi_x86_32.x86/avahi-qt'
> /bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I..  -I.. -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -DQT4 -fvisibility=hidden -DHAVE_VISIBILITY_HIDDEN   -O2 -march=amdfam10 -pipe -fstack-protector -c -o libavahi_qt4_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo './'`qt-watch.cpp
> libtool: compile:  x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I.. -I.. -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -DQT4 -fvisibility=hidden -DHAVE_VISIBILITY_HIDDEN -O2 -march=amdfam10 -pipe -fstack-protector -c qt-watch.cpp  -fPIC -DPIC -o .libs/libavahi_qt4_la-qt-watch.o
> In file included from qt-watch.cpp:195:0:
> qt-watch.moc4:14:2: error: #error "This file was generated using the moc from 5.5.1. It"
>  #error "This file was generated using the moc from 5.5.1. It"
>   ^
> qt-watch.moc4:15:2: error: #error "cannot be used with the include files from this version of Qt."
>  #error "cannot be used with the include files from this version of Qt."
>   ^
> qt-watch.moc4:16:2: error: #error "(The moc has changed too much.)"
>  #error "(The moc has changed too much.)"
>   ^
> qt-watch.moc4:21:5: error: ‘QByteArrayData’ does not name a type
>      QByteArrayData data[4];
>      ^
> qt-watch.moc4:27:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:31:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(0, 0, 10), // "AvahiWatch"
>  ^
> qt-watch.moc4:28:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:31:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(0, 0, 10), // "AvahiWatch"
>  ^
> qt-watch.moc4:27:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(1, 11, 5), // "gotIn"
>  ^
> qt-watch.moc4:28:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(1, 11, 5), // "gotIn"
>  ^
> qt-watch.moc4:27:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(2, 17, 0), // ""
>  ^
> qt-watch.moc4:28:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(2, 17, 0), // ""
>  ^
> qt-watch.moc4:27:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(3, 18, 6) // "gotOut"
>  ^
> qt-watch.moc4:28:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(3, 18, 6) // "gotOut"
>  ^
> qt-watch.moc4:80:65: error: ‘const struct qt_meta_stringdata_AvahiWatch_t’ has no member named ‘data’
>      { &QObject::staticMetaObject, qt_meta_stringdata_AvahiWatch.data,
>                                                                  ^
> qt-watch.moc4:81:53: error: ‘Q_NULLPTR’ was not declared in this scope
>        qt_meta_data_AvahiWatch,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
>                                                      ^
> qt-watch.moc4:81:64: error: ‘Q_NULLPTR’ was not declared in this scope
>        qt_meta_data_AvahiWatch,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
>                                                                 ^
> qt-watch.moc4: In member function ‘virtual const QMetaObject* AvahiWatch::metaObject() const’:
> qt-watch.moc4:87:57: error: ‘class QObjectData’ has no member named ‘dynamicMetaObject’
>      return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
>                                                          ^
> qt-watch.moc4: In member function ‘virtual void* AvahiWatch::qt_metacast(const char*)’:
> qt-watch.moc4:92:26: error: ‘Q_NULLPTR’ was not declared in this scope
>      if (!_clname) return Q_NULLPTR;
>                           ^
> qt-watch.moc4: In member function ‘virtual int AvahiWatch::qt_metacall(QMetaObject::Call, int, void**)’:
> qt-watch.moc4:107:22: error: ‘RegisterMethodArgumentMetaType’ is not a member of ‘QMetaObject’
>      } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
>                       ^
> qt-watch.moc4: At global scope:
> qt-watch.moc4:115:5: error: ‘QByteArrayData’ does not name a type
>      QByteArrayData data[3];
>      ^
> qt-watch.moc4:121:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:125:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(0, 0, 12), // "AvahiTimeout"
>  ^
> qt-watch.moc4:122:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:125:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(0, 0, 12), // "AvahiTimeout"
>  ^
> qt-watch.moc4:121:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:126:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(1, 13, 7), // "timeout"
>  ^
> qt-watch.moc4:122:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:126:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(1, 13, 7), // "timeout"
>  ^
> qt-watch.moc4:121:24: error: ‘QByteArrayData’ was not declared in this scope
>          - idx * sizeof(QByteArrayData)) \
>                         ^
> qt-watch.moc4:127:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(2, 21, 0) // ""
>  ^
> qt-watch.moc4:122:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
>      )
>      ^
> qt-watch.moc4:127:1: note: in expansion of macro ‘QT_MOC_LITERAL’
>  QT_MOC_LITERAL(2, 21, 0) // ""
>  ^
> qt-watch.moc4:170:67: error: ‘const struct qt_meta_stringdata_AvahiTimeout_t’ has no member named ‘data’
>      { &QObject::staticMetaObject, qt_meta_stringdata_AvahiTimeout.data,
>                                                                    ^
> qt-watch.moc4:171:55: error: ‘Q_NULLPTR’ was not declared in this scope
>        qt_meta_data_AvahiTimeout,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
>                                                        ^
> qt-watch.moc4:171:66: error: ‘Q_NULLPTR’ was not declared in this scope
>        qt_meta_data_AvahiTimeout,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
>                                                                   ^
> qt-watch.moc4: In member function ‘virtual const QMetaObject* AvahiTimeout::metaObject() const’:
> qt-watch.moc4:177:57: error: ‘class QObjectData’ has no member named ‘dynamicMetaObject’
>      return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
>                                                          ^
> qt-watch.moc4: In member function ‘virtual void* AvahiTimeout::qt_metacast(const char*)’:
> qt-watch.moc4:182:26: error: ‘Q_NULLPTR’ was not declared in this scope
>      if (!_clname) return Q_NULLPTR;
>                           ^
> qt-watch.moc4: In member function ‘virtual int AvahiTimeout::qt_metacall(QMetaObject::Call, int, void**)’:
> qt-watch.moc4:197:22: error: ‘RegisterMethodArgumentMetaType’ is not a member of ‘QMetaObject’
>      } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
>                       ^
> Makefile:591: recipe for target 'libavahi_qt4_la-qt-watch.lo' failed
> make[3]: *** [libavahi_qt4_la-qt-watch.lo] Error 1
> make[3]: Leaving directory '/var/tmp/portage/net-dns/avahi-0.6.32/work/avahi-0.6.32-abi_x86_32.x86/avahi-qt'
> Makefile:478: recipe for target 'all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory '/var/tmp/portage/net-dns/avahi-0.6.32/work/avahi-0.6.32-abi_x86_32.x86/avahi-qt'
> Makefile:740: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/var/tmp/portage/net-dns/avahi-0.6.32/work/avahi-0.6.32-abi_x86_32.x86'
> Makefile:649: recipe for target 'all' failed
> make: *** [all] Error 2

Compilation is successful with QT_SELECT=4.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-07-02 18:43:38 UTC
Pass in (from qmake-utils.eclass) $(qt4_get_bindir)/moc instead.
Comment 2 Thomas Capricelli 2016-08-16 20:03:42 UTC
hit by this here
Comment 3 Larry the Git Cow gentoo-dev 2018-01-11 22:32:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97f8e63b790fb4507a613a6ca5d0c35392fe243

commit f97f8e63b790fb4507a613a6ca5d0c35392fe243
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-01-11 22:26:56 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-01-11 22:31:58 +0000

    net-dns/avahi: Don't call moc directly
    
    Closes: https://bugs.gentoo.org/587830
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-dns/avahi/avahi-0.6.32-r2.ebuild          |  5 ++++-
 net-dns/avahi/avahi-0.7.ebuild                |  5 ++++-
 net-dns/avahi/files/avahi-0.6.32-mocqt4.patch | 12 ++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)
Comment 4 Anthony Basile gentoo-dev 2018-01-21 03:45:09 UTC
(In reply to Larry the Git Cow from comment #3)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=f97f8e63b790fb4507a613a6ca5d0c35392fe243
> 
> commit f97f8e63b790fb4507a613a6ca5d0c35392fe243
> Author:     Andreas Sturmlechner <asturm@gentoo.org>
> AuthorDate: 2018-01-11 22:26:56 +0000
> Commit:     Andreas Sturmlechner <asturm@gentoo.org>
> CommitDate: 2018-01-11 22:31:58 +0000
> 
>     net-dns/avahi: Don't call moc directly
>     
>     Closes: https://bugs.gentoo.org/587830
>     Package-Manager: Portage-2.3.19, Repoman-2.3.6
> 
>  net-dns/avahi/avahi-0.6.32-r2.ebuild          |  5 ++++-
>  net-dns/avahi/avahi-0.7.ebuild                |  5 ++++-
>  net-dns/avahi/files/avahi-0.6.32-mocqt4.patch | 12 ++++++++++++
>  3 files changed, 20 insertions(+), 2 deletions(-)

this should not have been applied against a stable ebuild.  we should have tested first.  please get my ack.