Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with SlStreamer.py compiling for Ubuntu

Maverynthia Dannunzio
Registered User
Join date: 13 Apr 2006
Posts: 23
06-30-2006 02:02
I'm needing help getting the SlStreamer to compile since it uses PCapy. Ubuntu doesn't have access to PCapy so I had to download the Debian version with a patch, however I need some tools that can't be updated like cdbs and another one that build-essential uses. Basically it says I need an updated version, but I can't get it because it's not in the apt-get library.

So does anybody have a prepatched/compiled PCapy for Ubuntu so I can yet use it with python?
_____________________
AMD Athlon XP 2400+ 2Ghz | 512 MB RAM
ATI Radeon 9600 | AGP
Sound Blaster Audigy 2 Platinum
Ubuntu 7.04 | Win XP Pro Sp 2
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
06-30-2006 02:16
From: Maverynthia Dannunzio
I'm needing help getting the SlStreamer to compile since it uses PCapy. Ubuntu doesn't have access to PCapy so I had to download the Debian version with a patch, however I need some tools that can't be updated like cdbs and another one that build-essential uses. Basically it says I need an updated version, but I can't get it because it's not in the apt-get library.

So does anybody have a prepatched/compiled PCapy for Ubuntu so I can yet use it with python?


Hmm.. Why did you need to patch the debian version?

IIRC ubuntu uses python2.4 by default, so you should be okay with python2.4-pcapy binary package from debian testing repository.. You should not need to build anything so you don't need to install cdbs.

http://packages.debian.org/testing/python/python2.4-pcapy

If this does not work, you may be better off just downloading pcapy from the pcapy main homepage..

http://oss.coresecurity.com/projects/pcapy.html

and doing a manual compile and install (or build a deb if you are up to it!)

As I use debian (not ubuntu) I can't really help much more.
Suntan Nadir
Registered User
Join date: 16 Jun 2006
Posts: 22
06-30-2006 02:27
I'm using Ubuntu Dapper and just downloaded pcapy from

http://oss.coresecurity.com/projects/pcapy.html then followed the installation instructions.

No need for anything more complicated - it just worked......

S
Tylor Drebin
Registered User
Join date: 12 Mar 2006
Posts: 8
One caveat
07-03-2006 19:23
Make sure you have all the g++ and and dev headers loaded or it wont build when you run the setup.py script.
Kel Hartunian
Reformed Solipsist
Join date: 6 May 2006
Posts: 28
07-30-2006 16:40
From: Tylor Drebin
Make sure you have all the g++ and and dev headers loaded or it wont build when you run the setup.py script.


Do you have a line on exactly what headers I'd need to have? I'm trying to compile and getting the following errors:

CODE
kel@computer:~/pcapy-0.10.4 $ sudo python setup.py install
running install
my_init_posix: changing LDSHARED = 'gcc -pthread -shared' to 'g++ -pthread -shar ed'
running build
running build_ext
building 'pcapy' extension
creating build
creating build/temp.linux-i686-2.4
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPI C -I/usr/include/python2.4 -c pcapdumper.cc -o build/temp.linux-i686-2.4/pcapdum per.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/O bjC but not for C++
pcapdumper.cc:12:18: error: pcap.h: No such file or directory
pcapdumper.h:16: error: 'pcap_dumper_t' was not declared in this scope
pcapdumper.h:16: error: 'dumper' was not declared in this scope
pcapdumper.cc:21: error: ISO C++ forbids declaration of 'pcap_dumper_t' with no type
pcapdumper.cc:21: error: expected ';' before '*' token
pcapdumper.cc: In function 'void pcap_dealloc(pcapdumper*)':
pcapdumper.cc:30: error: 'struct pcapdumper' has no member named 'dumper'
pcapdumper.cc:31: error: 'struct pcapdumper' has no member named 'dumper'
pcapdumper.cc:31: error: 'pcap_dump_close' was not declared in this scope
pcapdumper.cc:33: error: 'struct pcapdumper' has no member named 'dumper'
pcapdumper.cc: At global scope:
pcapdumper.cc:78: error: redefinition of 'PyObject* new_pcapdumper'
pcapdumper.h:16: error: 'PyObject* new_pcapdumper' previously defined here
pcapdumper.cc:78: error: 'pcap_dumper_t' was not declared in this scope
pcapdumper.cc:78: error: 'dumper' was not declared in this scope
pcapdumper.cc: In function 'PyObject* p_dump(pcapdumper*, PyObject*)':
pcapdumper.cc:106: error: aggregate 'pcap_pkthdr hdr' has incomplete type and ca nnot be defined
pcapdumper.cc:110: error: 'struct pcapdumper' has no member named 'dumper'
pcapdumper.cc:110: error: 'pcap_dump' was not declared in this scope
error: command 'gcc' failed with exit status 1
kel@computer:~/pcapy-0.10.4 $
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
07-31-2006 03:46
You need to also install libpcap from www.tcpdump.org as mentioned in requirements on the pcapy page.
Kel Hartunian
Reformed Solipsist
Join date: 6 May 2006
Posts: 28
07-31-2006 13:59
From: Theora Aquitaine
You need to also install libpcap from www.tcpdump.org as mentioned in requirements on the pcapy page.



Thanks Theora!

I'd mistakenly thought that the python-pcap package on my system covered that requirement for pcapy. The script works like an utter charm now! Kudos to you!

-Kel