https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=13960

            Bug ID: 13960
           Summary: Compilation error with Wireshark 2.4.0 and Qt 4.8.7:
                    'qt_metatype_id' is not a member of
                    'QMetaTypeId<QToolBar*>'
           Product: Wireshark
           Version: 2.4.0
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Low
         Component: Build process
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: arcc...@poczta.onet.pl
  Target Milestone: ---

Build Information:
I can't check from the application, but here's the result of ./configure:

  CPPFLAGS: -D_FORTIFY_SOURCE=2 

  CFLAGS: -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security
-fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wno-long-long -Wc++-compat -Wshadow -Wno-pointer-sign
-Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init
-Werror=implicit -fexcess-precision=fast -fvisibility=hidden -g -O2

  CXXFLAGS: -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security
-fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wno-long-long -fexcess-precision=fast
-fvisibility=hidden -g -O2

  LDFLAGS: -Wl,--as-needed 

  LIBS: -lz -lm 

The Wireshark package has been configured with the following options:
                       GLib version : v2.46.2
                    Build wireshark : yes (with Qt4 v4.8.7)
                Build wireshark-gtk : no
                       Build tshark : yes
                      Build tfshark : no
                     Build capinfos : yes
                      Build captype : yes
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                   Build reordercap : yes
                    Build text2pcap : yes
                      Build randpkt : yes
                       Build dftest : yes
                     Build rawshark : yes
                       Build sharkd : yes
                  Build androiddump : yes
                      Build sshdump : yes
                    Build ciscodump : yes
                  Build randpktdump : yes
                      Build udpdump : yes

   Save files as pcap-ng by default : yes
  Install dumpcap with capabilities : no
             Install dumpcap setuid : no
                  Use dumpcap group : (none)
                        Use plugins : yes
       Use external capture sources : yes
                    Use Lua library : no
                Build Qt RTP player : yes
              Build GTK+ RTP player : no
             Build profile binaries : no
                   Use pcap library : yes
                   Use zlib library : yes
               Use kerberos library : no
                 Use c-ares library : no (name resolution will be disabled)
                Use SMI MIB library : no
             Use GNU gcrypt library : yes
             Use SSL crypto library : no
                 Use GnuTLS library : yes
     Use POSIX capabilities library : yes
                  Use GeoIP library : yes
                 Use libssh library : yes
            Have ssh_userauth_agent : yes
                     Use nl library : yes (v3)
              Use SBC codec library : yes
                Use SpanDSP library : no
                Use libxml2 library : yes
                Use nghttp2 library : no
                    Use LZ4 library : no
                 Use Snappy library : no

--
Hi,

I'm on Slackware-14.2, with gcc-5.3.0 and Qt-4.8.7. I'm getting the following
build error:

In file included from /usr/lib64/qt/include/QtCore/qvariant.h:48:0,
                 from /usr/lib64/qt/include/QtCore/qabstractitemmodel.h:45,
                 from /usr/lib64/qt/include/QtGui/qabstractitemview.h:46,
                 from /usr/lib64/qt/include/QtGui/qtreeview.h:45,
                 from /usr/lib64/qt/include/QtGui/qtreewidget.h:45,
                 from /usr/lib64/qt/include/QtGui/QTreeWidgetItem:1,
                 from preferences_dialog.h:34,
                 from display_filter_edit.h:25,
                 from capture_file_dialog.h:26,
                 from main_window.h:55,
                 from main_window_slots.cpp:30:
/usr/lib64/qt/include/QtCore/qmetatype.h: In instantiation of 'static int
QMetaTypeId2<T>::qt_metatype_id() [with T = QToolBar*]':
/usr/lib64/qt/include/QtCore/qmetatype.h:230:43:   required from 'int
qMetaTypeId(T*) [with T = QToolBar*]'
/usr/lib64/qt/include/QtCore/qvariant.h:573:35:   required from 'T
qvariant_cast(const QVariant&) [with T = QToolBar*]'
/usr/lib64/qt/include/QtCore/qvariant.h:333:30:   required from 'T
QVariant::value() const [with T = QToolBar*]'
main_window_slots.cpp:499:62:   required from here
/usr/lib64/qt/include/QtCore/qmetatype.h:169:79: error: 'qt_metatype_id' is not
a member of 'QMetaTypeId<QToolBar*>'
     static inline int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }
                                                                              
^
Makefile:1912: recipe for target 'main_window_slots.o' failed
make[2]: *** [main_window_slots.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/arcctgx/temp/wireshark-2.4.0/ui/qt'
Makefile:3402: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/arcctgx/temp/wireshark-2.4.0'
Makefile:1746: recipe for target 'all' failed
make: *** [all] Error 2

I looked around a bit, and found very similar error reported some time ago:
https://www.wireshark.org/lists/wireshark-dev/201608/msg00103.html.
Unfortunately, the patch mentioned in that mail thread is not applicable to
Wireshark 2.4.0.

I'm aware that using Qt 5 is preferred, but I think Qt 4 is still supported, so
I'm reporting this.

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to