Having problems building wireshark plugin for Ubertooth One - header files missing
Kennedy, Smith (Wireless Architect)
smith.kennedy at hp.com
Wed Oct 16 10:35:05 PDT 2013
Hi again,
I'm in the process of trying to build the Wireshark plugin for the Ubertooth One. The instructions are here:
http://ubertooth.sourceforge.net/usage/build/#osx
The issue I'm having is building the Wireshark plugin. Following these instructions (that need to be fixed):
> sudo port install wireshark wireshark-devel cmake
> cd libbtbb-2012-10-R3/wireshark/plugins/btbb
> cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib/wireshark/libwireshark1/plugins .
> make
> sudo make install
>
>
The "wireshark" and "wireshark-devel" ports are conflicting ports, and the path to the wireshark plugins directory is wrong. So I did this (including the "make" failure):
> hot-needle-of-inquiry:btbb [549]$ cmake -DCMAKE_INSTALL_LIBDIR=/opt/local/lib/wireshark/plugins .
> -- The C compiler identification is Clang 5.0.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Plugin will be installed in: /opt/local/lib/wireshark/plugins
> -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28")
> -- checking for one of the modules 'glib-2.0>=2.4.0'
> -- Found GLib2: glib-2.0;intl /opt/local/include/glib-2.0;/opt/local/lib/glib-2.0/include;/opt/local/include
> -- Looking for include file glib/gregex.h
> -- Looking for include file glib/gregex.h - not found
> -- Looking for include file glib/gchecksum.h
> -- Looking for include file glib/gchecksum.h - not found
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/smitty/ubertooth-one/libbtbb-2012-10-R3/wireshark/plugins/btbb
> hot-needle-of-inquiry:btbb [550]$ make
> [ 25%] Generating plugin.c
> Scanning dependencies of target btbb
> [ 50%] Building C object CMakeFiles/btbb.dir/plugin.c.o
> [ 75%] Building C object CMakeFiles/btbb.dir/packet-btbb.c.o
> In file included from /Users/smitty/ubertooth-one/libbtbb-2012-10-R3/wireshark/plugins/btbb/packet-btbb.c:31:
> In file included from /opt/local/include/wireshark/epan/packet.h:32:
> In file included from /opt/local/include/wireshark/epan/to_str.h:32:
> /opt/local/include/wireshark/epan/packet_info.h:31:10: fatal error:
> 'wmem/wmem_core.h' file not found
> #include "wmem/wmem_core.h"
> ^
> 1 error generated.
> make[2]: *** [CMakeFiles/btbb.dir/packet-btbb.c.o] Error 1
> make[1]: *** [CMakeFiles/btbb.dir/all] Error 2
> make: *** [all] Error 2
> hot-needle-of-inquiry:btbb [551]$ find /opt -name wmem_core.h
> hot-needle-of-inquiry:btbb [552]$
If I do this:
$ sudo port uninstall wireshark-devel; sudo port clean wireshark-devel; sudo port install wireshark-devel
but stop the build in the middle of compilation, and then do the search, the file is present in the tar ball:
> hot-needle-of-inquiry:btbb [562]$ find /opt -name wmem_core.h
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark-devel/wireshark-devel/work/wireshark-1.9.0/epan/wmem/wmem_core.h
How should this be resolved? File a ticket in Trac?
Smith
More information about the macports-users
mailing list