This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can you help me understanding a build error?

0

Hi, I'm just trying to build wireshark on a Windows 10 x64 environment from source code available on the website. I do not modify the source code until now.

Folllowing the developer's guide, i'm generating the build file at paragraph 2.2.11.

the cmake command line return the following error :

-- Found SBC: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/include
-- SBC FOUND
-- SBC includes: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/include
-- SBC libs: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/lib/sbc.lib
-- Could NOT find SETCAP (missing: SETCAP_EXECUTABLE)
-- SETCAP NOT FOUND
-- Could NOT find SH (missing: SH_EXECUTABLE)
 CMake Error at cmake/modules/FindSH.cmake:29 (message):
  The bash executable (SH_EXECUTABLE-NOTFOUND) isn't from Cygwin.  Check your
  path
 Call Stack (most recent call first):
  CMakeLists.txt:982 (find_package)-- Found SBC: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/include
-- SBC FOUND
-- SBC includes: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/include
-- SBC libs: C:/Nicolas/Dev/wireshark-win64-libs/sbc-1.3-win64ws/lib/sbc.lib
-- Could NOT find SETCAP (missing: SETCAP_EXECUTABLE)
-- SETCAP NOT FOUND
-- Could NOT find SH (missing: SH_EXECUTABLE)
 CMake Error at cmake/modules/FindSH.cmake:29 (message):
  The bash executable (SH_EXECUTABLE-NOTFOUND) isn't from Cygwin.  Check your
  path
 Call Stack (most recent call first):
  CMakeLists.txt:982 (find_package)

What can generate this error ? What are SETCAP and SH and what do i need to do to correct this error ?

Thank you for your help!

asked 27 Jul '17, 08:57

Bob17136's gravatar image

Bob17136
6112
accept rate: 0%

edited 27 Jul '17, 12:11

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


One Answer:

0

Presumably you installed CMake 3.9 (that was just released) and we have an issue with this version related to cygwin path discovery that we need to investigate.

In the meantime install CMake 3.8.2. It should fix your error (do not forget to clean your cmake build folder first).

answered 27 Jul '17, 09:35

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

Hi,

You're right, cmake 3.9 was installed by default.

I uninstall it and install cmake 3.8.2.

Buildins is OK now ! Thank you very much.

(28 Jul '17, 11:09) Bob17136

I've converted your post from an Answer (which it clearly wasn't) to a Comment to Pascal's Answer.

Please accept Pascal's Answer as the correct one (by clicking the checkmark icon next to it) as doing so marks your Question as usefully answered, helping others who might be interested in the same. No one else that the author of the Question can do that.

(28 Jul '17, 11:24) sindy