Wireshark-dev: Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but n
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Thu, 15 Oct 2015 08:00:33 +0200
Hi,

Do you have try with Qt5 ?

Regards,

On Wed, Oct 14, 2015 at 7:04 PM, Gerlof Fokkema <gerlof.fokkema@xxxxxxxxx> wrote:
Hello all,

I'm trying to compile wireshark 1.99+ from git and have a few issues while doing so.
The first issue was mentioned elsewhere on the mailing list already (removing -Wc++-compat).

The second error however I don't see mentioned anywhere and occurs only when compiling wireshark-qt:

In file included from ../../image/about.rcc.cpp:9:0:
../../image/about.rcc.cpp:1627:44: error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable]
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))
^
/usr/include/qt4/QtCore/qglobal.h:939:21: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
static const int AFUNC ## __init_variable__ = AFUNC();
^
../../image/about.rcc.cpp:1627:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))
^
../../image/about.rcc.cpp:1627:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))

The config.log file (building most recent git version, tried 1.99.9 as well with the same result).
http://pastebin.com/sGKwiPeH

Any ideas on what causes this?

Kind regards,
Gerlof Fokkema

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe