First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Wireshark build failing on Mac Ventura

  • retag add tags

Failing when trying to build using both cmake and cmake ninja commands :

-- Found PCAP: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libpcap.tbd -- Looking for pcap_lib_version -- Looking for pcap_lib_version - not found CMake Error at cmake/modules/FindPCAP.cmake:212 (message): You need libpcap 0.8 or later

I do have libpcap already installed : libpcap 1.10.3 is already installed and up-to-date.

Tried same process on another mac which is on Monterey and everything worked fine. Please let me know how to fix this. I have attached the Cmake files.

GopiKrishna's avatar
1
GopiKrishna
asked 2023-02-11 07:32:51 +0000
edit flag offensive 0 remove flag close merge delete

Comments

I have attached the Cmake files.

There are no files attached to this question.

Please attempt to attach the CMakeFiles/CMakeError.log file, from the build directory, to this question, and then check to see whether it's shown as an attachment. If it isn't, please either:

  1. upload it to some online service and add a link to it to this question;
  2. open an issue on the Wireshark issue list and attach it to that issue.

Without it, we cannot determine why that is happening; it does not happen on, for example, my Ventura virtual machine. It might be an issue with the way you installed libpcap (you are not required to install libpcap in order to build Wireshark, given that it's shipped with macOS and the headers are shipped with Xcode and should also be shipped with the command-line tools, and the version of libpcap that comes ... (more)

Guy Harris's avatar Guy Harris (2023-02-11 12:06:36 +0000) edit
add a comment see more comments

1 Answer

0

After checking the error logs I found that the issue is because my working directory had a folder with a space in it. The space has created trouble when running some commands. When I replaced the space with "_" it worked.

GopiKrishna's avatar
1
GopiKrishna
answered 2023-02-12 04:28:44 +0000
edit flag offensive 0 remove flag delete link

Comments

Could you please open up an issue on the Wireshark issue list about this? Spaces in working directories shouldn't cause hard-to-diagnose failures; they should, preferably, Just Work, with the right quoting being done in CMake files to ensure that.

Guy Harris's avatar Guy Harris (2023-02-12 08:31:21 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer