View unanswered posts | View active topics It is currently Fri Aug 17, 2018 6:05 am



Post new topic Reply to topic  [ 8 posts ] 
 Problem installing xplico 1.0.1 in Ubuntu server 12.04 
Author Message

Joined: Mon Feb 20, 2012 9:31 pm
Posts: 5
Reply with quote
Post Problem installing xplico 1.0.1 in Ubuntu server 12.04
Hi:
I have a litter problem when I run 'make' in the Xplico distribution directory. This de error that I see:
--------------------------------------------------------------
Code:
src/include -I/opt/xbuild/xplico-1.0.1/../nDPI/src/lib -DLOG_DIS_VAR_NAME=dis_tcp_grb_log_id   -c -o tcp_garbage.o tcp_garbage.c
tcp_garbage.c:87:34: error: âNDPI_PROTOCOL_LONG_STRINGâ undeclared here (not in a function)
tcp_garbage.c: In function âDissecRegistâ:
tcp_garbage.c:566:10: warning: unused variable âcfgâ [-Wunused-variable]
tcp_garbage.c: In function âDissectInitâ:
tcp_garbage.c:605:20: warning: unused variable âiâ [-Wunused-variable]
tcp_garbage.c: At top level:
tcp_garbage.c:97:13: warning: ânDPIfreeâ defined but not used [-Wunused-function]
make[2]: *** [tcp_garbage.o] Error 1
make[2]: Leaving directory `/opt/xbuild/xplico-1.0.1/dissectors/tcp_grbg'
make[1]: *** [subdir] Error 1
make[1]: Leaving directory `/opt/xbuild/xplico-1.0.1/dissectors'
make: *** [subdir] Error 1

--------------------------------------------------------------
Xplico 1.0.1 can run perfectly in Ubuntu 12.04. Which could be the problem?
Thanks :D


Tue Jan 29, 2013 8:46 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 394
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Hi luismarichal,
the problem is the nDPI. If you use the last version of nDPI , then this version has a different API and it is not compatible with the old version.
But... you can use the the code attached.

Attachment:
tcp_garbage.c

Attachment:
udp_garbage.c


Ciao.


You do not have the required permissions to view the files attached to this post.


Fri Feb 01, 2013 6:33 pm
Profile WWW

Joined: Fri Oct 19, 2012 1:59 am
Posts: 7
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Hi gianluca,

I had the same compile error as the OP (trying to compile xplico 1.0.1 under Ubtuntu 12.10, using the latest version of nDPI).

So I tried the fix you posted (tcp_garbage.c and udp_garbage.c), but now I get a different error, still nDPI related I think...

Code:
talk@ZEUS-V:~/xplico$ make
make[1]: Entering directory `/home/talk/xplico/capt_dissectors'
make[2]: Entering directory `/home/talk/xplico/capt_dissectors/pcap'
make[2]: Leaving directory `/home/talk/xplico/capt_dissectors/pcap'
make[2]: Entering directory `/home/talk/xplico/capt_dissectors/pol'
make[2]: Leaving directory `/home/talk/xplico/capt_dissectors/pol'
make[2]: Entering directory `/home/talk/xplico/capt_dissectors/rltm'
make[2]: Leaving directory `/home/talk/xplico/capt_dissectors/rltm'
make[2]: Entering directory `/home/talk/xplico/capt_dissectors/rltm_pol'
make[2]: Leaving directory `/home/talk/xplico/capt_dissectors/rltm_pol'
make[1]: Leaving directory `/home/talk/xplico/capt_dissectors'
make[1]: Entering directory `/home/talk/xplico/common'
make[1]: Leaving directory `/home/talk/xplico/common'
make[1]: Entering directory `/home/talk/xplico/dissectors'
make[2]: Entering directory `/home/talk/xplico/dissectors/pcapf'
make[2]: Leaving directory `/home/talk/xplico/dissectors/pcapf'
make[2]: Entering directory `/home/talk/xplico/dissectors/eth'
make[2]: Leaving directory `/home/talk/xplico/dissectors/eth'
make[2]: Entering directory `/home/talk/xplico/dissectors/ip'
make[2]: Leaving directory `/home/talk/xplico/dissectors/ip'
make[2]: Entering directory `/home/talk/xplico/dissectors/ipv6'
make[2]: Leaving directory `/home/talk/xplico/dissectors/ipv6'
make[2]: Entering directory `/home/talk/xplico/dissectors/tcp'
make[2]: Leaving directory `/home/talk/xplico/dissectors/tcp'
make[2]: Entering directory `/home/talk/xplico/dissectors/tcp_grbg'
cc -rdynamic -I/home/talk/xplico/include -I/home/talk/xplico/common/include -I/home/talk/xplico/dissectors/include -I/home/talk/xplico/capt_dissectors/include -I/home/talk/xplico/dispatch/include -Wall -fPIC -D_FILE_OFFSET_BITS=64 -DXPL_PEDANTIC_STATISTICS=1 -g -ggdb -O0 -DFTBL_SORT=1 -DXPL_CHECK_CODE=1 -DXPL_X86=1 -DGEOIP_LIBRARY=0 -I/home/talk/xplico/../nDPI/src/include -I/home/talk/xplico/../nDPI/src/lib -DLOG_DIS_VAR_NAME=dis_tcp_grb_log_id   -c -o tcp_garbage.o tcp_garbage.c
tcp_garbage.c: In function ‘DissecRegist’:
tcp_garbage.c:566:10: warning: unused variable ‘cfg’ [-Wunused-variable]
tcp_garbage.c: In function ‘DissectInit’:
tcp_garbage.c:645:5: warning: passing argument 3 of ‘ndpi_init_detection_module’ from incompatible pointer type [enabled by default]
In file included from /home/talk/xplico/../nDPI/src/include/ndpi_api.h:46:0,
                 from tcp_garbage.c:51:
/home/talk/xplico/../nDPI/src/include/ndpi_public_functions.h:145:40: note: expected ‘void (*)(void *)’ but argument is of type ‘void (*)(u_int32_t,  void *, enum ndpi_log_level_t,  const char *)’
tcp_garbage.c:645:5: error: too few arguments to function ‘ndpi_init_detection_module’
In file included from /home/talk/xplico/../nDPI/src/include/ndpi_api.h:46:0,
                 from tcp_garbage.c:51:
/home/talk/xplico/../nDPI/src/include/ndpi_public_functions.h:145:40: note: declared here
tcp_garbage.c:605:20: warning: unused variable ‘i’ [-Wunused-variable]
tcp_garbage.c: At top level:
tcp_garbage.c:97:13: warning: ‘nDPIfree’ defined but not used [-Wunused-function]
make[2]: *** [tcp_garbage.o] Error 1
make[2]: Leaving directory `/home/talk/xplico/dissectors/tcp_grbg'
make[1]: *** [subdir] Error 1
make[1]: Leaving directory `/home/talk/xplico/dissectors'
make: *** [subdir] Error 1


Many thanks in advance if you have another fix!
In the meantime, I will also try an older nDPI version, as I guess that should work, Any idea how far back I have to go, i.e. what was the last version that still worked?

Thanks!


Mon Mar 18, 2013 3:48 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 394
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Hi cybil,
try with these:
Attachment:
tcp_garbage.c

Attachment:
udp_garbage.c

Ciao.
Gianluca


You do not have the required permissions to view the files attached to this post.


Mon Mar 18, 2013 7:54 pm
Profile WWW

Joined: Sat Mar 16, 2013 4:59 pm
Posts: 1
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Sweet, I have bee having the exact some error except I'm using arch.
Gianluca, the files you posted above built for me today


Tue Mar 19, 2013 2:08 am
Profile

Joined: Fri Oct 19, 2012 1:59 am
Posts: 7
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Excellent, that worked. It compiles now, many thanks Gianluca!

However I have run into a new problem now, a runtime issue. Trying to decode the "SIP example 1" file found at http://wiki.xplico.org/doku.php?id=pcap:pcap, I am getting a sox mix crash error in the SIP dissector. The problem seems to be this command:

sox -m tmp/xplico/sip/sip_media_0xb6f00468_1363707797_stereo_2.wav tmp/xplico/sip/sip_media_0xb6f00468_1363707797_stereo_1.wav -s tmp/xplico/sip/sip_media_0xb6f00468_1363707797_mix.wav

If fails because the wav files are *not* called [...]_stereo_1.wav and [...]_stereo_1.wav, but just [...]_1.wav and [...]_2.wav (found this out through debugging). So the word "stereo" is not part of the names. I don't think this is an xplico bug, because when I compile xplico 1.0.1 on one of the provided xplico Virtualbox images, this same SIP example 1 file works just fine.

However, in my Ubuntu 12.10 installation I get this sox mix crash. So I think it must be one of the dependencies, where I might have a newer version which has changed and is not calling the output files "stereo_1.wav" anymore... can you tell me how and where the wav files are created, so I know where to start looking?

Thanks again as always!!


Tue Mar 19, 2013 5:18 pm
Profile
Site Admin

Joined: Wed Sep 16, 2009 10:09 pm
Posts: 394
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Hi,
the problems arise because sox has changed its parameters, and Xplico now uses wrong parameters.
It will be fixed with 1.0.2 release.

Ciao.
Gianluca


Tue Mar 19, 2013 8:29 pm
Profile WWW

Joined: Fri Oct 19, 2012 1:59 am
Posts: 7
Reply with quote
Post Re: Problem installing xplico 1.0.1 in Ubuntu server 12.04
Great, thank you! I'll try an older SOX version in the meantime....


Wed Mar 20, 2013 10:07 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.