2011-09-12
Complied gsmsp
cd airprobe/gsmsp
./configure
make
and oops! errors appearing:
gsm_run_bb.cc: In member function 'virtual int gsm_run_bb::work(int, gr_vector_const_void_star&, gr_vector_void_star&)':
gsm_run_bb.cc:317:6: error: 'printf' was not declared in this scope
make[5]: *** [gsm_run_bb.lo] Error 1
make[5]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make: *** [all-recursive] Error 1
I think it is lack of a header file <stdio.h>
gedit ./gsm/src/lib/gsm_run_bb.cc
add <stdio.h> in it
make again.
make all-recursive
make[1]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
Making all in config
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/config'
Making all in src
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
Making all in lib
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make all-am
make[4]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT gsm_run_bb.lo -MD -MP -MF .deps/gsm_run_bb.Tpo -c -o gsm_run_bb.lo gsm_run_bb.cc
g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT gsm_run_bb.lo -MD -MP -MF .deps/gsm_run_bb.Tpo -c gsm_run_bb.cc -fPIC -DPIC -o .libs/gsm_run_bb.o
mv -f .deps/gsm_run_bb.Tpo .deps/gsm_run_bb.Plo
/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -Woverloaded-virtual -pthread -module -avoid-version -o _gsm.la -rpath /usr/local/lib/python2.7/site-packages/gnuradio gsm.lo common.lo sch.lo cch.lo data_out.lo id_list.lo fire_crc.lo interleave.lo gsm_run_bb.lo -lstdc++ -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm
g++ -shared -nostdlib /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbeginS.o .libs/gsm.o .libs/common.o .libs/sch.o .libs/cch.o .libs/data_out.o .libs/id_list.o .libs/fire_crc.o .libs/interleave.o .libs/gsm_run_bb.o -L/usr/local/lib /usr/local/lib/libgnuradio-core.so -L/usr/lib /usr/local/lib/libgruel.so /usr/lib/libfftw3f.so -lgsl -lgslcblas -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtendS.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o -pthread -Wl,-soname -Wl,_gsm.so -o .libs/_gsm.so
creating _gsm.la
(cd .libs && rm -f _gsm.la && ln -s ../_gsm.la _gsm.la)
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
yeah, that is ok.
Complied gsm-tvoid
cd gsm-tvoid/
./bootstrap
./configure
make
oops oops oops!!!!!!
errors appearing:
out_pcap.c:8:18: fatal error: pcap.h: No such file or directory
compilation terminated.
make[4]: *** [out_pcap.lo] Error 1
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make: *** [all] Error 2
I do some research on Internet and find the reason which is no libpcap library file, whereas I find libpacp.so.1.1.1 in /usr/lib. I think there is no .h file so I install libpcap-dev.
apt-get insatll libpcap-dev
make again.
root@ubuntu:/home/my_project/usrp/airprobe/gsm-tvoid# make
make all-recursive
make[1]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid'
Making all in config
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/config'
Making all in src
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
Making all in lib
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make all-am
make[4]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -pthread -MT out_pcap.lo -MD -MP -MF .deps/out_pcap.Tpo -c -o out_pcap.lo out_pcap.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -pthread -MT out_pcap.lo -MD -MP -MF .deps/out_pcap.Tpo -c out_pcap.c -fPIC -DPIC -o .libs/out_pcap.o
out_pcap.c: In function ‘write_pcap_packet’:
out_pcap.c:104:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
mv -f .deps/out_pcap.Tpo .deps/out_pcap.Plo
/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -Woverloaded-virtual -pthread -module -avoid-version -o _gsm.la -rpath /usr/local/lib/python2.7/dist-packages/gnuradio fire_crc.lo gsmstack.lo interleave.lo conv.lo sch.lo cch.lo gsm.lo gsm_burst.lo gsm_burst_ff.lo mm_c.lo mm_f.lo gsm_burst_cf.lo gsm_burst_sink_c.lo out_pcap.lo -lstdc++ -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm
libtool: link: g++ -shared -nostdlib /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbeginS.o .libs/fire_crc.o .libs/gsmstack.o .libs/interleave.o .libs/conv.o .libs/sch.o .libs/cch.o .libs/gsm.o .libs/gsm_burst.o .libs/gsm_burst_ff.o .libs/mm_c.o .libs/mm_f.o .libs/gsm_burst_cf.o .libs/gsm_burst_sink_c.o .libs/out_pcap.o -L/usr/local/lib /usr/local/lib/libgnuradio-core.so /usr/local/lib/libgruel.so /usr/lib/libfftw3f.so -lgsl -lgslcblas -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtendS.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o -pthread -pthread -Wl,-soname -Wl,_gsm.so -o .libs/_gsm.so
libtool: link: ( cd ".libs" && rm -f "_gsm.la" && ln -s "../_gsm.la" "_gsm.la" )
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
Making all in python
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/python'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/python'
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
Wow, I did it.
Complied gsmsp
cd airprobe/gsmsp
./configure
make
and oops! errors appearing:
gsm_run_bb.cc: In member function 'virtual int gsm_run_bb::work(int, gr_vector_const_void_star&, gr_vector_void_star&)':
gsm_run_bb.cc:317:6: error: 'printf' was not declared in this scope
make[5]: *** [gsm_run_bb.lo] Error 1
make[5]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make: *** [all-recursive] Error 1
I think it is lack of a header file <stdio.h>
gedit ./gsm/src/lib/gsm_run_bb.cc
add <stdio.h> in it
make again.
make all-recursive
make[1]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
Making all in config
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/config'
Making all in src
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
Making all in lib
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make all-am
make[4]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT gsm_run_bb.lo -MD -MP -MF .deps/gsm_run_bb.Tpo -c -o gsm_run_bb.lo gsm_run_bb.cc
g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -Wall -Woverloaded-virtual -pthread -MT gsm_run_bb.lo -MD -MP -MF .deps/gsm_run_bb.Tpo -c gsm_run_bb.cc -fPIC -DPIC -o .libs/gsm_run_bb.o
mv -f .deps/gsm_run_bb.Tpo .deps/gsm_run_bb.Plo
/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -Woverloaded-virtual -pthread -module -avoid-version -o _gsm.la -rpath /usr/local/lib/python2.7/site-packages/gnuradio gsm.lo common.lo sch.lo cch.lo data_out.lo id_list.lo fire_crc.lo interleave.lo gsm_run_bb.lo -lstdc++ -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm
g++ -shared -nostdlib /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbeginS.o .libs/gsm.o .libs/common.o .libs/sch.o .libs/cch.o .libs/data_out.o .libs/id_list.o .libs/fire_crc.o .libs/interleave.o .libs/gsm_run_bb.o -L/usr/local/lib /usr/local/lib/libgnuradio-core.so -L/usr/lib /usr/local/lib/libgruel.so /usr/lib/libfftw3f.so -lgsl -lgslcblas -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtendS.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o -pthread -Wl,-soname -Wl,_gsm.so -o .libs/_gsm.so
creating _gsm.la
(cd .libs && rm -f _gsm.la && ln -s ../_gsm.la _gsm.la)
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src/lib'
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm/src'
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsmsp/gsm'
yeah, that is ok.
Complied gsm-tvoid
cd gsm-tvoid/
./bootstrap
./configure
make
oops oops oops!!!!!!
errors appearing:
out_pcap.c:8:18: fatal error: pcap.h: No such file or directory
compilation terminated.
make[4]: *** [out_pcap.lo] Error 1
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make: *** [all] Error 2
I do some research on Internet and find the reason which is no libpcap library file, whereas I find libpacp.so.1.1.1 in /usr/lib. I think there is no .h file so I install libpcap-dev.
apt-get insatll libpcap-dev
make again.
root@ubuntu:/home/my_project/usrp/airprobe/gsm-tvoid# make
make all-recursive
make[1]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid'
Making all in config
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/config'
Making all in src
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
Making all in lib
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make all-am
make[4]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -pthread -MT out_pcap.lo -MD -MP -MF .deps/out_pcap.Tpo -c -o out_pcap.lo out_pcap.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/local/include/gnuradio -I/usr/local/include -I/usr/include/python2.7 -g -O2 -pthread -MT out_pcap.lo -MD -MP -MF .deps/out_pcap.Tpo -c out_pcap.c -fPIC -DPIC -o .libs/out_pcap.o
out_pcap.c: In function ‘write_pcap_packet’:
out_pcap.c:104:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
mv -f .deps/out_pcap.Tpo .deps/out_pcap.Plo
/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -Woverloaded-virtual -pthread -module -avoid-version -o _gsm.la -rpath /usr/local/lib/python2.7/dist-packages/gnuradio fire_crc.lo gsmstack.lo interleave.lo conv.lo sch.lo cch.lo gsm.lo gsm_burst.lo gsm_burst_ff.lo mm_c.lo mm_f.lo gsm_burst_cf.lo gsm_burst_sink_c.lo out_pcap.lo -lstdc++ -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm
libtool: link: g++ -shared -nostdlib /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbeginS.o .libs/fire_crc.o .libs/gsmstack.o .libs/interleave.o .libs/conv.o .libs/sch.o .libs/cch.o .libs/gsm.o .libs/gsm_burst.o .libs/gsm_burst_ff.o .libs/mm_c.o .libs/mm_f.o .libs/gsm_burst_cf.o .libs/gsm_burst_sink_c.o .libs/out_pcap.o -L/usr/local/lib /usr/local/lib/libgnuradio-core.so /usr/local/lib/libgruel.so /usr/lib/libfftw3f.so -lgsl -lgslcblas -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtendS.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o -pthread -pthread -Wl,-soname -Wl,_gsm.so -o .libs/_gsm.so
libtool: link: ( cd ".libs" && rm -f "_gsm.la" && ln -s "../_gsm.la" "_gsm.la" )
make[4]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/lib'
Making all in python
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/python'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src/python'
make[3]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid/src'
make[2]: Entering directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make[2]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
make[1]: Leaving directory `/home/my_project/usrp/airprobe/gsm-tvoid'
Wow, I did it.