# Problems installing gr-foo and gr-ieee802-11

**URL:** <https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400>\
**Category:** GNU Radio\
**Created:** [June 22, 2015, 10:38am UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400 "2015-06-22T10:38:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 22, 2015, 10:38am UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/1 "2015-06-22T10:38:40Z")

</div>

Hello,

I was trying to run some flow graphs from gr-ieee802-11 examples. When I  
opened them at the first time , there were some missing blocks like WIFI  
Phy Hier and foo\_packet\_pad. I got the first one fixed. For the second  
one I read that we need to install gr-foo to make it work. I followed  
these steps:

git clone [GitHub - bastibl/gr-foo: Some GNU Radio blocks that I use.](https://github.com/bastibl/gr-foo.git)  
cd gr-foo  
mkdir build  
cd build  
cmake …  
make  
sudo make install  
sudo ldconfig

but when I run the command make, this error pops up:

/home/comlab/pybombs/src/gr-foo/lib/wireshark\_connector\_impl.cc: In  
member function ‘virtual int  
gr::foo::wireshark\_connector\_impl::general\_work(int, gr\_vector\_int&,  
gr\_vector\_const\_void\_star&, gr\_vector\_void\_star&)’:  
/home/comlab/pybombs/src/gr-foo/lib/wireshark\_connector\_impl.cc:165:57:  
error: no matching function for call to  
‘gr::foo::wireshark\_connector\_impl::delete\_head\_blocking(pmt::pmt\_t,  
int)’  
pmt::pmt\_t msg(delete\_head\_blocking(pmt::mp(“in”), 100));  
^  
/home/comlab/pybombs/src/gr-foo/lib/wireshark\_connector\_impl.cc:165:57:  
note: candidate is:  
In file included from /usr/local/target/include/gnuradio/block.h:27:0,  
from  
/home/comlab/pybombs/src/gr-foo/include/foo/wireshark\_connector.h:21,  
from  
/home/comlab/pybombs/src/gr-foo/lib/wireshark\_connector\_impl.h:20,  
from  
/home/comlab/pybombs/src/gr-foo/lib/wireshark\_connector\_impl.cc:17:  
/usr/local/target/include/gnuradio/basic\_block.h:259:16: note:  
pmt::pmt\_t gr::basic\_block::delete\_head\_blocking(pmt::pmt\_t)  
pmt::pmt\_t delete\_head\_blocking( pmt::pmt\_t which\_port);  
^  
/usr/local/target/include/gnuradio/basic\_block.h:259:16: note:  
candidate expects 1 argument, 2 provided  
make[2]: \*\*\*  
[lib/CMakeFiles/gnuradio-foo.dir/wireshark\_connector\_impl.cc.o] Error 1  
make[1]: \*\*\* [lib/CMakeFiles/gnuradio-foo.dir/all] Error 2  
make: \*\*\* [all] Error 2

Could anyone tell me why is this happening?

---

<div class="post-metadata">

**Author:** ![gabri187](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@gabri187](https://www.ruby-forum.com/u/gabri187)\
**Post date:** [June 29, 2015, 1:24pm UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/2 "2015-06-29T13:24:53Z")

</div>

I faced the same problem. However, I was able to get it working by  
switching to the previous revision. I recommend to start from scratch as  
I had compilation errors when I changed the revision during the  
compilation of the latest revision.

After cloning the repo, just enter the following command:

git reset --hard 00beec517d096e4f2f6a45250750369db90dc104

Afterwards, carry on as usual.

Cheers

---

<div class="post-metadata">

**Author:** ![gabri187](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@gabri187](https://www.ruby-forum.com/u/gabri187)\
**Post date:** [June 30, 2015, 3:02pm UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/3 "2015-06-30T15:02:32Z")

</div>

Hello, thanks for your help. I tried the command but again it is not  
working I guess that parameter after --hard is different for each  
individual case, because this message appears now.

fatal: Could not parse object  
‘00beec517d096e4f2f6a45250750369db90dc104’.

Thanks anyways for your reply.  
Best regards.

---

<div class="post-metadata">

**Author:** ![gabri187](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@gabri187](https://www.ruby-forum.com/u/gabri187)\
**Post date:** [June 30, 2015, 3:21pm UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/4 "2015-06-30T15:21:29Z")

</div>

I actually introduced the command you sent to me after:

cd gr-foo

and it worked. Now everything is working. Thanks so much for your help.  
I should have tried more before posting.

BR

---

<div class="post-metadata">

**Author:** ![gabri187](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@gabri187](https://www.ruby-forum.com/u/gabri187)\
**Post date:** [June 30, 2015, 3:02pm UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/5 "2015-06-30T15:02:48Z")

</div>

The reply from Bastian B. to correspond with him about this error  
was as follow:

you need GNU Radio 3.7.6 for this. I will adapt the CMakeLists.txt file  
to produce a better error message.

---

<div class="post-metadata">

**Author:** ![gabri187](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@gabri187](https://www.ruby-forum.com/u/gabri187)\
**Post date:** [June 30, 2015, 3:27pm UTC](https://www.ruby-forum.com/t/problems-installing-gr-foo-and-gr-ieee802-11/242400/6 "2015-06-30T15:27:02Z")

</div>

On 06/30/2015 03:02 PM, Alta Alta wrote:

> The reply from Bastian B. to correspond with him about this error  
> was as follow:
> 
> you need GNU Radio 3.7.6 for this. I will adapt the CMakeLists.txt file  
> to produce a better error message.

I did that yesterday:

> <https://github.com/bastibl/gr-foo/commit/2f71946215255e77847dcb1054ab2615818953c0>

Recently, Sylvain added a timeout parameter to delete\_head\_blocking of  
basic\_block. This avoids busy-wating for new messages. One block uses  
this timeout parameters. Thus, you need 3.7.6.

> <https://github.com/gnuradio/gnuradio/commit/2d755af9cd2668a3a8f55bd14c8b598234729957>
>
> Signed-off-by: Sylvain Munaut \<tnt@246tNt.com\>

I guess with some cmake magic and preprocessor directives it’s possible  
to compile this also with older GNU Radio versions.

Best,  
Bastian
