Ask Your Question
0

I faced an error when I tried to build wireshark deb package

asked 2019-05-29 11:08:58 +0000

updated 2019-05-29 11:10:22 +0000

grahamb gravatar image

Hi there,

Wireshark was cloned from github and I tried to build debian pack via this command "dpkg-buildpackage -us -uc" and I faced an error:

/root/wireshark/ui/qt/simple_dialog.cpp
/root/wireshark/ui/qt/simple_dialog.cpp: In member function ‘void SimpleDialog::show()’:
/root/wireshark/ui/qt/simple_dialog.cpp:414:13: error: ‘bind’ is not a member of ‘std’
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
             ^
/root/wireshark/ui/qt/simple_dialog.cpp:414:66: error: ‘std::placeholders’ has not been declared
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));                                                               ^
ui/qt/CMakeFiles/qtui.dir/build.make:2482: recipe for target 'ui/qt/CMakeFiles/qtui.dir/simple_dialog.cpp.o' failed
edit retag flag offensive close merge delete

Comments

OS and compiler versions?

grahamb gravatar imagegrahamb ( 2019-05-29 11:10:44 +0000 )edit

OS:Ubuntu 16.04.6 LTS GCC Version: 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)

furkan.inciroglu gravatar imagefurkan.inciroglu ( 2019-05-29 11:22:11 +0000 )edit

I'm running into similar problems with the "ubuntu vagrant" build environment:

[ 45%] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-igmp.c.o
[ 45%] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-igrp.c.o
[ 45%] Building CXX object ui/qt/CMakeFiles/qtui.dir/splash_overlay.cpp.o
/home/vagrant/wireshark/ui/qt/simple_dialog.cpp: In member function ‘void SimpleDialog::show()’:
/home/vagrant/wireshark/ui/qt/simple_dialog.cpp:414:13: error: ‘bind’ is not a member of ‘std’
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
             ^
/home/vagrant/wireshark/ui/qt/simple_dialog.cpp:414:66: error: ‘std::placeholders’ has not been declared
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
                                                                  ^
ui/qt/CMakeFiles/qtui.dir/build.make:2479: recipe for target 'ui/qt/CMakeFiles/qtui.dir/simple_dialog.cpp.o' failed
make[2]: *** [ui/qt/CMakeFiles/qtui.dir/simple_dialog.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 45%] Building C object ...
(more)
SYN-bit gravatar imageSYN-bit ( 2019-05-29 23:37:31 +0000 )edit

The error looks more like a C++ issue

... error: ‘bind’ is not a member of ‘std’
             std::bind(visible_message_finished,message_box_,std::placeholders::_1));
             ^

I believe std::bind was introduced in C++11, and apparently GCC 4.8.1 has full C++11 compatibility. Notably the build bot (18.04) uses GCC 7.3.0

grahamb gravatar imagegrahamb ( 2019-05-30 09:16:01 +0000 )edit

I periodically build the developmental release via 'git pull; mkdir -p build; cd build; cmake -G Ninja ..; ninja'. A build in late April (commit 8f2277ce8ce0d77490f89067fce4338770d012b2) builds fine, but I have been trying the latest version for the last week or so and it always gives me this same error about 'bind is not a member of std'. Ubuntu 16.04, fully up to date (same GCC as original poster).

westonj gravatar imagewestonj ( 2019-06-12 13:13:38 +0000 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2019-06-14 12:26:58 +0000

updated 2019-06-14 12:27:50 +0000

Hello everyone,

Problem is solved. I finally created Wireshark 3.0.2 Debian packages. In my opinion, problem was old Ubuntu versions. I had been working on Ubuntu 16.04 when I tried to make debian packages. gcc versions was 5.4 and I upgraded my OS to Ubuntu 18.04. Gcc and cmake versions are newer(7.4) and I haven't had any problem now.

edit flag offensive delete link more
0

answered 2019-05-29 20:01:58 +0000

Jaap gravatar image

You may have missed this commit.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-05-29 11:08:58 +0000

Seen: 438 times

Last updated: Jun 14 '19