Ask Your Question
0

Wireshark build failing on Mac Ventura

asked 2023-02-11 07:32:51 +0000

GopiKrishna gravatar image

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.

edit retag flag offensive 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 gravatar imageGuy Harris ( 2023-02-11 12:06:36 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-12 04:28:44 +0000

GopiKrishna gravatar image

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.

edit flag offensive delete link more

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 gravatar imageGuy Harris ( 2023-02-12 08:31:21 +0000 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2023-02-11 07:32:51 +0000

Seen: 165 times

Last updated: Feb 12 '23