config.h missing from MacOS package

asked 2023-02-06 14:01:22 +0000

SimonC gravatar image

One can download a MacOS package from the wireshark homepage as a dmg package without having to install homebrew

Unfortunately this package does not include a config.h file associated with it so you can't build directly against it.

Do you have to build against the homebrew package and hope there is compatibility between homebrew and the dmg available on the download site ?

edit retag flag offensive close merge delete

Comments

config.h is created during the cmake step of building.

CMakeLists.txt:

configure_file(${CMAKE_SOURCE_DIR}/cmakeconfig.h.in ${CMAKE_BINARY_DIR}/config.h)


Are you trying to compile a plugin to work with a release version of Wireshark?

Chuckc gravatar imageChuckc ( 2023-02-06 14:39:25 +0000 )edit

yes, I am trying to build a plugin against a released version of wireshark. Specifically against 4.0.3 on MacOS arm64

The dmg package doesn't appear to have the config.h file.

I've looked at the homebrew package https://formulae.brew.sh/cask/wireshark and config.h is missing from there too.

SimonC gravatar imageSimonC ( 2023-02-06 14:53:06 +0000 )edit

Have you tried building using the steps in README.plugins?
(I'm not a mac guy so will stop here so as to not cause confusion)

Chuckc gravatar imageChuckc ( 2023-02-06 15:19:01 +0000 )edit

yes, looked there. All of the linux development packages include the config.h, and the config.h file was present in 3.0.6. I'll check in 3.6.11 build and see if it is there, guess I've got a bit of digging to do.

SimonC gravatar imageSimonC ( 2023-02-06 15:53:27 +0000 )edit

Is your plugin including config.h itself, or is it including a Wireshark header file that includes config.h?

Guy Harris gravatar imageGuy Harris ( 2023-02-06 19:47:46 +0000 )edit