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

dpkg-buildpackage -us -uc fails on trusty #24

Open
derjohn opened this issue Aug 3, 2015 · 2 comments
Open

dpkg-buildpackage -us -uc fails on trusty #24

derjohn opened this issue Aug 3, 2015 · 2 comments

Comments

@derjohn
Copy link

derjohn commented Aug 3, 2015

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
Copy link

Hi! I've got the same error! Did you solve your problem?

@hcw70
Copy link

hcw70 commented Mar 3, 2016

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);
     ^

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

No branches or pull requests

3 participants