dpkg-buildpackage -us -uc fails on trusty
Opened this issue · 2 comments
derjohn commented
Hello,
even after installing the build-deps
sudo apt-get install libwireshark3 libwsutil3 wireshark wireshark-doc wireshark-dev
the build fails
CMake Error at cmake/FindWireshark.cmake:26 (MESSAGE):
Could NOT find the wireshark library and headers
Call Stack (most recent call first):
CMakeLists.txt:48 (find_package)
brunomarx commented
Hi! I've got the same error! Did you solve your problem?
hcw70 commented
I solved that issue by setting
WIRESHARK_INCLUDE_DIRS:PATH=/usr/include/wireshark/
in CMakeCache.txt (via cmake-gui).
However, compilation afterwards fails:
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c: In function ‘dissect_whatsapp_message’:
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:118:5: warning: passing argument 2 of ‘tvb_memdup’ makes integer from pointer without a cast [enabled by default]
guint8* buffer = tvb_memdup(NULL, tvb, 0, length);
^
In file included from /usr/include/wireshark/epan/proto.h:51:0,
from /usr/include/wireshark/epan/packet.h:29,
from /home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:11:
/usr/include/wireshark/epan/tvbuff.h:339:21: note: expected ‘gint’ but argument is of type ‘struct tvbuff_t *’
WS_DLL_PUBLIC void* tvb_memdup(tvbuff_t*, const gint offset, size_t length);
^
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:118:5: error: too many arguments to function ‘tvb_memdup’
guint8* buffer = tvb_memdup(NULL, tvb, 0, length);
^