View unanswered posts | View active topics It is currently Thu Apr 27, 2017 3:22 am



Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next
 General errors and solutions 
Author Message

Joined: Wed Sep 16, 2009 10:45 pm
Posts: 128
Reply with quote
Post General errors and solutions
Errors compiling Xplico:

Code:
pcap.c:32:18: error: pcap.h: No such file or directory

root@kubuntu:~# sudo apt-get install libpcap-dev



Code:
mms.c:35:18: error: zlib.h: No such file or directory

root@kubuntu:~# sudo apt-get install zlib1g-dev



Code:
lite.c:34:67: error: sqlite.h: No such file or directory

root@kubuntu:~# sudo apt-get install libsqlite0-dev



Code:
dbinterface.c:28:25: error: mysql/mysql.h: No such file or directory

root@kubuntu:~# sudo apt-get install libmysqlclient15-dev


Fri Oct 09, 2009 8:00 pm
Profile

Joined: Mon Oct 12, 2009 7:29 pm
Posts: 1
Reply with quote
Post Re: General errors and solutions
Any solutions to this one:
Code:
make[2]: Entering directory `/home/harley/toys/xplico/dissectors/pcapf'
make[2]: *** No rule to make target `dis_log.o', needed by `dis_pcapf.so'.  Stop.
make[2]: Leaving directory `/home/harley/toys/xplico/dissectors/pcapf'
make[1]: *** [subdir] Error 1
make[1]: Leaving directory `/home/harley/toys/xplico/dissectors'
make: *** [subdir] Error 1

This was came after running make against the xplico-0.5.2.tgz.


Thanks,
Harley


Mon Oct 12, 2009 7:32 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 390
Reply with quote
Post Re: General errors and solutions
Hi Harley,
solution from root source code:
Code:
make clean
make


Tue Oct 13, 2009 9:21 am
Profile WWW

Joined: Wed Sep 16, 2009 10:45 pm
Posts: 128
Reply with quote
Post Re: General errors and solutions
Code:
xplico@xplico_demo:~/videosnarf-0.62$ make
Making all in src
make[1]: Entering directory `/home/xplico/videosnarf-0.62/src'
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"videosnarf\" -DVERSION=\"0.5\" -I. -I.     -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
   then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
In file included from main.c:1:
videosnarf.h:21:20: error: libnet.h: No such file or directory
In file included from main.c:1:
videosnarf.h:46: error: ‘ETHER_ADDR_LEN’ undeclared here (not in a function)
main.c: In function ‘main’:
main.c:52: warning: incompatible implicit declaration of built-in function ‘strlen’
main.c:57: warning: incompatible implicit declaration of built-in function ‘strncpy’
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/xplico/videosnarf-0.62/src'
make: *** [all-recursive] Error 1


Solution: install libnet1 and libnet1-dev packages. In Debian/Ubuntu:
Code:
apt-get install  libnet1 libnet1-dev


Tue Apr 20, 2010 4:02 pm
Profile

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post Re: General errors and solutions
I'd like to start by saying Xplico is a really nice tool. I got it installed without problems and was playing around with it in no time. I am now trying to install Xplico_0.71 with the source rather than using apt-get. I am getting a few errors. Any solutions to these:?

Using this guide:
http://wiki.xplico.org/doku.php?id=tutorial:0.7.0

Code:
cd xplico
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gzip -d GeoLiteCity.dat.gz
rm -f *dat.gz
make  <-- errors occur at this point in the build process


Errors:
Code:
LOG_DIS_VAR_NAME=dis_ip_log_id   -c -o ip.o ip.c
ip.c:156:2: warning: #warning we have to be implement the fragment ip
ip.c: In function ‘DissecRegist’:
ip.c:289: error: ‘DLT_IPV4’ undeclared (first use in this function)
ip.c:289: error: (Each undeclared identifier is reported only once
ip.c:289: error: for each function it appears in.)
make[2]: *** [ip.o] Error 1
make[2]: Leaving directory `/xbuild/xplico-0.7.1/dissectors/ip'
make[1]: *** [subdir] Error 1
make[1]: Leaving directory `/xbuild/xplico-0.7.1/dissectors'
make: *** [subdir] Error 1


*Also, I have python-httplib2 installed and not python3-httplib2. Not sure if that will cause problems.


Thu Feb 02, 2012 6:35 pm
Profile

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post Re: General errors and solutions
Installed a fresh copy of Ubuntu 11.10 and ran apt-get update and apt-get dist-upgrade. That fixed my errors.

New error:
rm -f *.bz2
cd ghostpdl-8.70
make <-- error here

Code:
In file included from ../gs/base/gp_unix.c:17:0:
../gs/base/pipe_.h:39:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
In file included from ../gs/base/gp_unix.c:19:0:
../gs/base/time_.h:49:8: error: redefinition of ‘struct timeval’
/usr/include/i386-linux-gnu/bits/time.h:75:8: note: originally defined here
../gs/base/gp_unix.c: In function ‘gp_get_realtime’:
../gs/base/gp_unix.c:148:2: warning: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]
make[2]: *** [obj/gp_unix.o] Error 1
make[2]: Leaving directory `/xbuild/ghostpdl-8.70/main'
make[1]: *** [pdl-product] Error 2
make[1]: Leaving directory `/xbuild/ghostpdl-8.70/main'
make: *** [pcl] Error 2


Thu Feb 02, 2012 8:38 pm
Profile

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post Re: General errors and solutions
Fixed the problem. Was able to build ghostpdl-8.70 by doing the following:

make clean
make XCFLAGS=-DHAVE_SYS_TIME_H=1

*http://bugs.ghostscript.com/show_bug.cgi?id=692443


Thu Feb 02, 2012 9:18 pm
Profile

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post Re: General errors and solutions
Error installing videosnarf-0.63:

Code:
root@ubuntu:/xbuild/videosnarf-0.63# make
Making all in src
make[1]: Entering directory `/xbuild/videosnarf-0.63/src'
make  all-am
make[2]: Entering directory `/xbuild/videosnarf-0.63/src'
g++  -g -O2   -o videosnarf -lpcap main.o stream.o videosnarf.o h264rtp.o g722_decode.o g726_decoder.o g729_decoder.o g723_decoder.o ../codec-lib/libG729a.a ../codec-lib/libG7231.a ../codec-lib/libG726.a
videosnarf.o: In function `mediasnarfStart':
/xbuild/videosnarf-0.63/src/videosnarf.c:75: undefined reference to `pcap_open_offline'
/xbuild/videosnarf-0.63/src/videosnarf.c:103: undefined reference to `pcap_compile'
/xbuild/videosnarf-0.63/src/videosnarf.c:107: undefined reference to `pcap_setfilter'
/xbuild/videosnarf-0.63/src/videosnarf.c:113: undefined reference to `pcap_datalink'
/xbuild/videosnarf-0.63/src/videosnarf.c:117: undefined reference to `pcap_datalink'
/xbuild/videosnarf-0.63/src/videosnarf.c:123: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:115: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:119: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:80: undefined reference to `pcap_open_live'
/xbuild/videosnarf-0.63/src/videosnarf.c:108: undefined reference to `pcap_geterr'
/xbuild/videosnarf-0.63/src/videosnarf.c:104: undefined reference to `pcap_geterr'
collect2: ld returned 1 exit status
make[2]: *** [videosnarf] Error 1
make[2]: Leaving directory `/xbuild/videosnarf-0.63/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/xbuild/videosnarf-0.63/src'
make: *** [all-recursive] Error 1


Thu Feb 02, 2012 9:49 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 390
Reply with quote
Post Re: General errors and solutions
Hi,
This is a videosnaf compilation problem... it is very likely to be linked to the pcap library.
Where is (the path) of libpcap.so file?
Try to launch ldconfig (as root).

Ciao.
Gianluca


Wed Feb 08, 2012 9:47 pm
Profile WWW

Joined: Thu Feb 02, 2012 3:25 pm
Posts: 26
Reply with quote
Post Re: General errors and solutions
Thanks for the help. I've just ignored the videosnarf error for now and using Xplico without that functionality. Its not that big of a deal for now. Below is the info you requested and the results. Still no luck unfortunately.

Location of libpcap.so:
/usr/lib/i386-linux-gnu/libpcap.so

Ran ldconfig -v

Code:
root@ubuntu:/xbuild/videosnarf-0.63# ldconfig -v | grep libpcap
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/i386-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/i386-linux-gnu' given more than once
   libpcap.so.0.8 -> libpcap.so.1.1.1
/sbin/ldconfig.real: Cannot stat /usr/lib/libilu.so: No such file or directory
/sbin/ldconfig.real: Cannot stat /usr/lib/libilu-c.so: No such file or directory
/sbin/ldconfig.real: Cannot stat /usr/lib/libVICF.so: No such file or directory
/sbin/ldconfig.real: Cannot stat /usr/lib/libVICFbase.so: No such file or directory


Looks like its the same error when I try to make videosnarf...

Code:
root@ubuntu:/xbuild/videosnarf-0.63# make
Making all in src
make[1]: Entering directory `/xbuild/videosnarf-0.63/src'
make  all-am
make[2]: Entering directory `/xbuild/videosnarf-0.63/src'
g++  -g -O2   -o videosnarf -lpcap main.o stream.o videosnarf.o h264rtp.o g722_decode.o g726_decoder.o g729_decoder.o g723_decoder.o ../codec-lib/libG729a.a ../codec-lib/libG7231.a ../codec-lib/libG726.a
videosnarf.o: In function `mediasnarfStart':
/xbuild/videosnarf-0.63/src/videosnarf.c:75: undefined reference to `pcap_open_offline'
/xbuild/videosnarf-0.63/src/videosnarf.c:103: undefined reference to `pcap_compile'
/xbuild/videosnarf-0.63/src/videosnarf.c:107: undefined reference to `pcap_setfilter'
/xbuild/videosnarf-0.63/src/videosnarf.c:113: undefined reference to `pcap_datalink'
/xbuild/videosnarf-0.63/src/videosnarf.c:117: undefined reference to `pcap_datalink'
/xbuild/videosnarf-0.63/src/videosnarf.c:123: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:115: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:119: undefined reference to `pcap_loop'
/xbuild/videosnarf-0.63/src/videosnarf.c:80: undefined reference to `pcap_open_live'
/xbuild/videosnarf-0.63/src/videosnarf.c:108: undefined reference to `pcap_geterr'
/xbuild/videosnarf-0.63/src/videosnarf.c:104: undefined reference to `pcap_geterr'
collect2: ld returned 1 exit status
make[2]: *** [videosnarf] Error 1
make[2]: Leaving directory `/xbuild/videosnarf-0.63/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/xbuild/videosnarf-0.63/src'
make: *** [all-recursive] Error 1


Wed Feb 08, 2012 10:09 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.