Wireshark-dev: Re: [Wireshark-dev] Compile error: no member named 'current_stream_id' in 'http2
From: Bruno Rijsman <brunorijsman@xxxxxxxxx>
Date: Thu, 27 Sep 2018 10:33:43 -0700
I found the solution already:

brew install nghttp2

fixes it

(It causes HAVE_NGHTTP2 to be set, which adds current_stream_id to http2_session_t)

The code should probably still be fixed to avoid a compile error when NGHTTP2 is not installed

On Sep 27, 2018, at 10:21 AM, Bruno Rijsman <brunorijsman@xxxxxxxxx> wrote:

Any suggestions on how to avoid the following compiler error?

[ 30%] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-hsrp.c.o
[ 30%] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-http.c.o
[ 30%] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-http2.c.o
/Users/brunorijsman/wireshark/epan/dissectors/packet-http2.c:1124:23: error: no member named 'current_stream_id' in 'http2_session_t'
    return h2session->current_stream_id;
           ~~~~~~~~~  ^
1 error generated.

Info:

macOS High Sierra 10.13.6

cd wireshark/
mkdir build
cd build
brew install doxygen
brew install libgcrypt
brew install glib
brew install qt5
cmake ..
make