This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Make Error.

0

Hello All ,

I am new to Wireshark and also linux env . I am trying to install on ubuntu 12.04 LTS . I checked out from the version repository trying to install . ./autogen.sh ./configure

Both work fine . However , in the next step. when I try to make .

It gives me below error .

[email protected]:~/wireshark$ sudo make
/usr/bin/perl ./make-version.pl .
Version configuration file version.conf not found.  Using defaults.
svnversion.h unchanged.
make  all-recursive
make[1]: Entering directory `/home/yash/wireshark'
Making all in tools
make[2]: Entering directory `/home/yash/wireshark/tools'
Making all in lemon
make[3]: Entering directory `/home/yash/wireshark/tools/lemon'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/yash/wireshark/tools/lemon'
make[3]: Entering directory `/home/yash/wireshark/tools'
sed \
        -e 's,@BIN_PREFIX\@,/usr/local/bin,' \
        -e 's,@TSHARK_BIN\@,tshark,' \
        -e 's,@DUMPCAP_BIN\@,dumpcap,' \
        < ./setuid-root.pl.in > setuid-root.pl
chmod +x setuid-root.pl
make[3]: Leaving directory `/home/yash/wireshark/tools'
make[2]: Leaving directory `/home/yash/wireshark/tools'
Making all in wsutil
make[2]: Entering directory `/home/yash/wireshark/wsutil'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I./..  -DINET6 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -D_FORTIFY_SOURCE=2 -D_U_="__attribute__((unused))"  -I/usr/local/include -I/usr/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.7.2"' -Werror -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security -Wold-style-definition -Wno-error=unused-but-set-variable -fexcess-precision=fast -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -MT airpdcap_wep.lo -MD -MP -MF .deps/airpdcap_wep.Tpo -c -o airpdcap_wep.lo airpdcap_wep.c
mv -f .deps/airpdcap_wep.Tpo .deps/airpdcap_wep.Plo
mv: cannot stat `.deps/airpdcap_wep.Tpo': No such file or directory
make[2]: *** [airpdcap_wep.lo] Error 1
make[2]: Leaving directory `/home/yash/wireshark/wsutil'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yash/wireshark'
make: *** [all] Error 2

Any ideas on this ?

Best Regards, yash

asked 25 May '12, 03:54

yash's gravatar image

yash
2334
accept rate: 0%

edited 25 May '12, 04:51

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

0

Some suggestions:

  1. run this command prior to compiling the code: apt-get build-dep wireshark
  2. Fetch the source code *.tgz instead of the current SVN trunk and try to compile that. http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.7.1.tar.bz2

EDIT: I was able to build the current SVN trunk on Ubuntu 12.04, after I ran: apt-get build-dep wireshark

BTW: There is no reason to run make as root (sudo make)! Only make install requires root privileges (sudo make install).

Regards
Kurt

answered 25 May '12, 04:08

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 25 May '12, 06:14