Hi list!
I tried to install the 802.11 BBN code following exactly the instruction
in
the https://www.cgran.org/wiki/BBN80211 page but when I run any example
I
got this error:
Traceback (most recent call last):
File “bbn_80211b_rx.py”, line 33, in
from bbn_80211b_pkt import *
File “/home/cmdd/bbn_80211/src/examples/bbn_80211b_pkt.py”, line 31, in
from gnuradio import bbn
ImportError: cannot import name bbn
My machine is an OpenSUSE11 and I installed both current GNURadio
version
and subversion r7596.
Do I forget something?
Thanks a lot
Chiara
Chiara De Dominicis wrote:
My machine is an OpenSUSE11 and I installed both current GNURadio
version and subversion r7596.
Do I forget something?
Hi Chiara,
I have only tried installing it on Ubuntu. I wrote the instructions on
CGRAN and it worked fine for me.
Are you making sure you get no errors trying to make or make install on
it?
Hi George!
When I run ./bootstrap I get this:
doc/Makefile.am:77: %'-style pattern rules are a GNU make extension doc/Makefile.am:80:
%'-style pattern rules are a GNU make extension
I thought it was only a warning but probably it isn’t so…
I searched the way to fix it in the web but I did not find any clear
information (I am quite new to Linux/GNU Radio).
However ./configure seems ok but when I run ‘make’ I get this:
make[4]: Entering directory /home/cmdd/bbn_80211/src/bbn' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -DOMNITHREAD_POSIX=1 -pthread -I/usr/local/include/gnuradio -I/usr/include/python2.5 -g -O2 -Wall -Woverloaded-virtual -pthread -MT bbn_tap.lo -MD -MP -MF .deps/bbn_tap.Tpo -c -o bbn_tap.lo bbn_tap.cc g++ -DHAVE_CONFIG_H -I. -I../.. -DOMNITHREAD_POSIX=1 -pthread -I/usr/local/include/gnuradio -I/usr/include/python2.5 -g -O2 -Wall -Woverloaded-virtual -pthread -MT bbn_tap.lo -MD -MP -MF .deps/bbn_tap.Tpo -c bbn_tap.cc -fPIC -DPIC -o .libs/bbn_tap.o bbn_tap.cc: In constructor 'bbn_tap::bbn_tap(std::string, int)': bbn_tap.cc:51: error: 'memset' was not declared in this scope bbn_tap.cc:53: error: 'strncpy' was not declared in this scope make[4]: *** [bbn_tap.lo] Error 1 make[4]: Leaving directory
/home/cmdd/bbn_80211/src/bbn’
make[3]: *** [all] Error 2
make[3]: Leaving directory /home/cmdd/bbn_80211/src/bbn' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/cmdd/bbn_80211/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cmdd/bbn_80211’
make: *** [all] Error 2
Thanks
Chiara
2008/12/4 George N. [email protected]
Chiara De Dominicis wrote am 2008-12-09 11:53:
Hi George!
When I run ./bootstrap I get this:
doc/Makefile.am:77: %'-style pattern rules are a GNU make extension doc/Makefile.am:80:
%’-style pattern rules are a GNU make extension
Seems the wrong version of something like automake.
Have you checked that all your used auto-tools are at the same or
higher version as specified in the README file?
Often systems have more than one version of say automake installed, and
you can configure via a distribution-specific tool which one to use or
you can use environment variable to select the right one.
If unsure, send us the output of ‘automake --version’.
Regards
Patrick
Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telematik, Techn. University Graz, Austria
On Tue, 2008-12-09 at 11:53 +0100, Chiara De Dominicis wrote:
doc/Makefile.am:77: %'-style pattern rules are a GNU make extension doc/Makefile.am:80:
%’-style pattern rules are a GNU make extension
I thought it was only a warning but probably it isn’t so…
This is indeed a warning, and harmless.
bbn_tap.cc: In constructor ‘bbn_tap::bbn_tap(std::string, int)’:
bbn_tap.cc:51: error: ‘memset’ was not declared in this scope
bbn_tap.cc:53: error: ‘strncpy’ was not declared in this scope
Are you using gcc 4.3? It now enforces having the proper #include
directives for certain standard library functions that it would
previously silently ignore. I’d try adding
#include <string.h>
…at the top of bbn_tap.cc to see if this goes away.
-Johnathan
I had the same problems and I ended up wasting half hour adding
#include to about 30 odd files. I would suggest that you
change your g++ to an older version. Install g+±4.2 and then do this:
sudo rm /usr/bin/g++
sudo ln -s g+±4.2 /usr/bin/g++
then make.
This is a known problem in gcc-4.3 and 4.4. See here:
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include
http://www.cyrius.com/journal/gcc/gcc-4.4-include
If need be, I can post my updated source files of BBN (with the added
#includes). Let me know.
-Ritesh
On Tue, Dec 9, 2008 at 11:53 AM, Johnathan C.
First of all, thank you very much for your help.
Now everything seems OK: I am using gcc version 3.4.1 and I only added
#include <string.h>
at the top of bbn_rap.cc and bbn_plcp80211_bb.cc.
Thanks again… now I can start working… 
Chiara