Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireshark 2.6 support #16

Closed
blshkv opened this issue May 2, 2018 · 4 comments
Closed

wireshark 2.6 support #16

blshkv opened this issue May 2, 2018 · 4 comments
Assignees
Milestone

Comments

@blshkv
Copy link

blshkv commented May 2, 2018

 $ ebuild wireshark-sap-plugin-0.5.2-r1.ebuild manifest clean install 
>>> Creating Manifest for /data/pentoo/pentoo/net-misc/wireshark-sap-plugin
 * wireshark-sap-plugin-0.5.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking wireshark-sap-plugin-0.5.2.tar.gz to /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work
>>> Source unpacked in /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work
>>> Preparing source in /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build"
cmake -C /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64/wireshark/plugins/2.6.0 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/gentoo_toolchain.cmake  /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2
loading initial cache file /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 6.4.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Wireshark: /usr/lib64/wireshark/WiresharkConfig.cmake (found version "2.6.0") 
-- Wireshark libraries found, performing a stand-alone plug-in build.
-- Plug-in will be installed in: /usr/lib64/wireshark/plugins/2.6.0
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") 
-- Checking for one of the modules 'glib-2.0>=2.4.0'
-- Found GLIB2: /usr/lib64/libglib-2.0.so  
-- Found PythonInterp: /usr/bin/python (found version "3.5.5") 
-- Found python module make-dissector-reg: /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/tools/make-dissector-reg.py
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe
C++             -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Module          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
Shared          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build"
make -j4 VERBOSE=1 
/usr/bin/cmake -H/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 -B/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
make -f CMakeFiles/sap.dir/build.make CMakeFiles/sap.dir/depend
make[2]: Entering directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
[  6%] Generating plugin.c
/usr/bin/python /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/tools/make-dissector-reg.py /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 plugin src/packet-sapdiag.c src/packet-sapenqueue.c src/packet-sapigs.c src/packet-saprouter.c src/packet-sapprotocol.c src/packet-saprfc.c src/packet-sapms.c src/packet-sapsnc.c src/sapdecompress.cpp src/vpa105CsObjInt.cpp src/vpa106cslzc.cpp src/vpa107cslzh.cpp src/vpa108csulzh.cpp
Updating plugin.c
cd /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2 /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/sap.dir/DependInfo.cmake --color=
Dependee "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/sap.dir/DependInfo.cmake" is newer than depender "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/sap.dir/depend.internal".
Dependee "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/CMakeFiles/sap.dir/depend.internal".
Scanning dependencies of target sap
make[2]: Leaving directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
make -f CMakeFiles/sap.dir/build.make CMakeFiles/sap.dir/build
make[2]: Entering directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
[ 12%] Building C object CMakeFiles/sap.dir/plugin.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -Dsap_EXPORTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wireshark -I/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2   -DNDEBUG -march=native -O2 -pipe -fPIC   -o CMakeFiles/sap.dir/plugin.c.o -c /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build/plugin.c
[ 31%] Building C object CMakeFiles/sap.dir/src/packet-sapdiag.c.o
[ 31%] Building C object CMakeFiles/sap.dir/src/packet-sapenqueue.c.o
[ 31%] Building C object CMakeFiles/sap.dir/src/packet-sapigs.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -Dsap_EXPORTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wireshark -I/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2   -DNDEBUG -march=native -O2 -pipe -fPIC   -o CMakeFiles/sap.dir/src/packet-sapigs.c.o -c /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c
/usr/bin/x86_64-pc-linux-gnu-gcc -Dsap_EXPORTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wireshark -I/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2   -DNDEBUG -march=native -O2 -pipe -fPIC   -o CMakeFiles/sap.dir/src/packet-sapdiag.c.o -c /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c
/usr/bin/x86_64-pc-linux-gnu-gcc -Dsap_EXPORTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wireshark -I/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2   -DNDEBUG -march=native -O2 -pipe -fPIC   -o CMakeFiles/sap.dir/src/packet-sapenqueue.c.o -c /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapenqueue.c
[ 37%] Building C object CMakeFiles/sap.dir/src/packet-saprouter.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -Dsap_EXPORTS -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wireshark -I/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2   -DNDEBUG -march=native -O2 -pipe -fPIC   -o CMakeFiles/sap.dir/src/packet-saprouter.c.o -c /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c: In function ‘proto_reg_handoff_sapigs’:
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:371:36: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
   range_foreach(sapigs_port_range, range_delete_callback);
                                    ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:28:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:371:3: error: too few arguments to function ‘range_foreach’
   range_foreach(sapigs_port_range, range_delete_callback);
   ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:28:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:376:35: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
  range_foreach(sapigs_port_range, range_add_callback);
                                   ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:28:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:376:2: error: too few arguments to function ‘range_foreach’
  range_foreach(sapigs_port_range, range_add_callback);
  ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapigs.c:28:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/sap.dir/build.make:152: CMakeFiles/sap.dir/src/packet-sapigs.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c: In function ‘proto_reg_handoff_sapdiag’:
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:3656:37: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
   range_foreach(sapdiag_port_range, range_delete_callback);
                                     ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:24:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:3656:3: error: too few arguments to function ‘range_foreach’
   range_foreach(sapdiag_port_range, range_delete_callback);
   ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:24:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:3661:36: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
  range_foreach(sapdiag_port_range, range_add_callback);
                                    ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:24:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:3661:2: error: too few arguments to function ‘range_foreach’
  range_foreach(sapdiag_port_range, range_add_callback);
  ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-sapdiag.c:24:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/sap.dir/build.make:104: CMakeFiles/sap.dir/src/packet-sapdiag.c.o] Error 1
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c: In function ‘proto_reg_handoff_saprouter’:
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:875:39: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
   range_foreach(saprouter_port_range, range_delete_callback);
                                       ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:26:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:875:3: error: too few arguments to function ‘range_foreach’
   range_foreach(saprouter_port_range, range_delete_callback);
   ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:26:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:880:38: warning: passing argument 2 of ‘range_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
  range_foreach(saprouter_port_range, range_add_callback);
                                      ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:26:
/usr/include/wireshark/epan/range.h:128:20: note: expected ‘void (*)(guint32,  void *) {aka void (*)(unsigned int,  void *)}’ but argument is of type ‘void (*)(guint32) {aka void (*)(unsigned int)}’
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:880:2: error: too few arguments to function ‘range_foreach’
  range_foreach(saprouter_port_range, range_add_callback);
  ^~~~~~~~~~~~~
In file included from /usr/include/wireshark/epan/prefs.h:21:0,
                 from /usr/include/wireshark/epan/epan.h:19,
                 from /usr/include/wireshark/epan/packet.h:16,
                 from /var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/SAP-Dissection-plug-in-for-Wireshark-0.5.2/src/packet-saprouter.c:26:
/usr/include/wireshark/epan/range.h:128:20: note: declared here
 WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val, gpointer ptr), gpointer ptr);
                    ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/sap.dir/build.make:176: CMakeFiles/sap.dir/src/packet-saprouter.c.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/sap.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-misc/wireshark-sap-plugin-0.5.2-r1/work/wireshark-sap-plugin-0.5.2_build'
make: *** [Makefile:130: all] Error 2

@martingalloar martingalloar self-assigned this May 2, 2018
@martingalloar martingalloar added this to the v0.6.1 milestone May 2, 2018
@martingalloar
Copy link
Contributor

I started to play with this in the master-0.6 branch. Got it working on my env, need to fix some of the tests and build in Windows.

@martingalloar
Copy link
Contributor

This is working and somehow validated in the master-0.6 branch. I'll probably publish a 0.6.1 version when Wireshak 2.6 is more broadly available in stock distros.

@blshkv
Copy link
Author

blshkv commented Jun 23, 2018

Please push once it is ready to be realesed and let distros to deal with it. They all have different branches or stages and will handle it

martingalloar added a commit that referenced this issue Jul 12, 2018
* Moved all building to master-2.6 branch of Wireshark.
* Droped support for automake builds.
* Ported to new APIs.
@martingalloar
Copy link
Contributor

Published v0.6.1 to address this! Closing! Thanks @blshkv for the support on this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants