# Issue while installing GR 3.7

**URL:** <https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297>\
**Category:** GNU Radio\
**Created:** [February 20, 2014, 11:00pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297 "2014-02-20T23:00:53Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [February 20, 2014, 11:00pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/1 "2014-02-20T23:00:53Z")

</div>

Hello GR,

While building GR 3.7 (clone it from  
[GitHub - gnuradio/gnuradio: GNU Radio – the Free and Open Software Radio Ecosystem](https://github.com/gnuradio/gnuradio))  
on a Centos machine I got this error.

In file included from  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:27:  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.h:48:  
error:  
‘mt19937’ in namespace ‘boost::random’ does not name a type  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc: In  
constructor  
‘gr::blocks::message\_strobe\_random\_impl::message\_strobe\_random\_impl(pmt::pmt\_t,  
gr::blocks::message\_strobe\_random\_distribution\_t, float, float)’:  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:57:  
error: class ‘gr::blocks::message\_strobe\_random\_impl’ does not have any  
field named ‘d\_rng’  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc: In  
member function ‘void  
gr::blocks::message\_strobe\_random\_impl::update\_dist()’:  
/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:89:  
error: ‘d\_rng’ was not declared in this scope

make[2]: \*\*\*  
[gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message\_strobe\_random\_impl.cc.o]  
Error 1  
make[1]: \*\*\* [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/all] Error 2  
make: \*\*\* [all] Error 2

I did not figured out how to solve this issue .  
Any hints will be appreciated.

Regards,

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 20, 2014, 11:29pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/2 "2014-02-20T23:29:43Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

mt19937 refers to the standard mersenne twister random number  
generator used in boost; so this is your compiler complaining about  
boost::random not having that. Which version of boost does your centos  
machine have?

Greetings  
Marcus

On 20.02.2014 22:59, Ruecan wrote:

> Hello GR,
> 
> While building GR 3.7 (clone it from  
> [GitHub - gnuradio/gnuradio: GNU Radio – the Free and Open Software Radio Ecosystem · GitHub](https://github.com/gnuradio/gnuradio)) on a Centos machine I got  
> this error.
> 
> In file included from  
> /raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:27:

/raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.h:48:  
error:

> ‘mt19937’ in namespace ‘boost::random’ does not name a type  
> /raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:  
> In constructor  
> ‘gr::blocks::message\_strobe\_random\_impl::message\_strobe\_random\_impl(pmt::pmt\_t,

gr::blocks::message\_strobe\_random\_distribution\_t, float, float)’:

> /raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:57:

error: class ‘gr::blocks::message\_strobe\_random\_impl’ does not have any

> field named ‘d\_rng’  
> /raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:  
> In member function ‘void  
> gr::blocks::message\_strobe\_random\_impl::update\_dist()’:  
> /raid/nae/gnuradio-3.7/gr-blocks/lib/message\_strobe\_random\_impl.cc:89:

error: ‘d\_rng’ was not declared in this scope

> make[2]: \*\*\*  
> [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message\_strobe\_random\_impl.cc.o]

Error 1

> – View this message in context:  
> [http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435.html)

Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJTBoF2AAoJEAFxB7BbsDrLph4IAIZNzm1pWVh71uGVbZOmebbB  
xPEApwWsQCDyCUOaPGkUagximKQ2YJ3Ygacz1LxnXgUnlGUaA386OO8x0pYtpT20  
me92586ElkQpQsAZUtkGivv3WDBb7bADXFWETXbztcB756Qomdv3ozPSS67eJ17z  
9DfGg1Gto2d40AYOKEm2ddRCyKMmxV35nms8sD0peSRm3soQF6xmhmba7+uwv4oY  
VaRikxOMeHYo5k/jJv8FexKZeEIicOUFuxthynn3BR77Kady9YO3NcNRjPEdmb8Z  
nG6+UlwbUMXv05C++tsiJbW+OxdOZQkO52ywk8jFLrXiAGhvvyGYbUx+G1tncGY=  
=eQjh  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 4:38pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/3 "2014-02-21T16:38:45Z")

</div>

Should be 🙂  
Just as side info:  
[http://www.boost.org/doc/libs/1\_54\_0/doc/html/boost/random/mt19937.html](http://www.boost.org/doc/libs/1_54_0/doc/html/boost/random/mt19937.html)

Sorry, totally running low on clues here…  
This is twice as strange since boost::random is missing mt19937; if it  
was std:: I’d guess on a non-C++11 standard library, but like it is…  
If cleaning and rebuilding doesn’t help, make sure that libstdc+±devel  
is correctly installed

Basically, it should be right here:  
[http://www.boost.org/doc/libs/1\_54\_0/boost/random/mersenne\_twister.hpp](http://www.boost.org/doc/libs/1_54_0/boost/random/mersenne_twister.hpp)  
and is included.

AAAAAAAAAAAND bam.  
Found the bug. header include protection by #ifdef at the very beginning  
of the file.  
you might pull my bugfix from  
[GitHub - marcusmueller/gnuradio: GNU Radio](https://github.com/marcusmueller/gnuradio.git);

git pull [GitHub - marcusmueller/gnuradio: GNU Radio](https://github.com/marcusmueller/gnuradio.git)  
master\_fix\_message\_strobe\_random\_ifndef

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 4:02pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/4 "2014-02-21T16:02:16Z")

</div>

Thanks Marcus,

Actually the boost version I have is 1.54.0.

Is this ok ?

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46451.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46451.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 4:52pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/5 "2014-02-21T16:52:54Z")

</div>

Ruecan:  
I got carried away. This is indeed a bugfix for the header file not  
being processed in some cases, but since the error appeared although  
actually processing the fixed header file, I’ve run out of ideas, still.

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 5:26pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/6 "2014-02-21T17:26:27Z")

</div>

Yeah, start completely clean.

Very Respectfully,

Dan CaJacob

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 5:18pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/7 "2014-02-21T17:18:47Z")

</div>

I just pulled the changes then did make but get the same error.

I am not so familiar with git. After pulling your bugfix, do I need to  
make  
clean, remove the CMakeCache then do cmake again then make or am I  
missing  
some part of the process.

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46457.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46457.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 5:33pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/8 "2014-02-21T17:33:31Z")

</div>

good find, this was probably my fault - sorry  
We should consider changing headers to use “#pragma once” which is  
simpler and less error prone  
do people still use gcc older than 3.4 ? I think this is pretty widely  
supported now  
not sure if that would cause swig issues as well -  
-Tim

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 5:59pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/9 "2014-02-21T17:59:26Z")

</div>

Guys,  
I re make from clean but still got the same error.  
PS: after pulling the bugfix, do I need to execute any other command,  
other  
than

\*git pull [GitHub - marcusmueller/gnuradio: GNU Radio · GitHub](https://github.com/marcusmueller/gnuradio.git)  
master\_fix\_message\_strobe\_random\_ifndef \*

Tim, I did not get what you mean by  
Tim O’Shea wrote

> changing headers to use “#pragma once”

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46461.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46461.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 6:00pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/10 "2014-02-21T18:00:01Z")

</div>

Well don’t worry, it wasn’t actually causing problems 😉

After fixing, I got out my zsh-foo and tried  
echo $(( $(git ls-files |grep .h$|xargs git grep --heading “#ifndef  
INCLUDED”|wc -l) - $(git ls-files |grep .h$|xargs git grep --heading  
“#ifndef INCLUDED”| uniq | wc -l) ))  
luckily, there are no duplicate lines containing #ifndef INCLUDED, so  
I’m hopeful enough everything else is fine in current master.

I agree on the #pragma once suggestion, and choose to believe  
[pragma once - Wikipedia](http://en.wikipedia.org/wiki/Pragma_once#Portability) which says that we  
should maybe suggest that people move away from gcc 3.4.  
Although I don’t think this would break a relevant numbers of GNU Radio  
environments, it could be something maintainers might want to save up  
for 3.8 or 4 😉

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 6:02pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/11 "2014-02-21T18:02:58Z")

</div>

Hi Ruecan,

this just the question if we should move away from

#ifndef INCLUDED\_FILENAME\_OF\_HEADER\_H  
#define INCLUDED\_FILENAME\_OF\_HEADER\_H  
  
#endif

to the more sanity-ensuring

#pragma once

preprocessor directive.

Sadly, this was not related to your problem…  
Still have no idea what’s causing your problems.

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 21, 2014, 9:59pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/12 "2014-03-21T21:59:44Z")

</div>

Has anyone found a fix for this? I will not be using the  
message\_strobe\_random block and am very time limited, so I simply added  
an #ifdef _DO\_NOT\_BUILD_ at the beginning of the cc and h files, but  
would like to know the correct solution.

Thanks,

- Kevin

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [February 21, 2014, 9:26pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/13 "2014-02-21T21:26:12Z")

</div>

Do you think that if I go back and try to install GR 3.7.0 instead, it  
may  
work ?

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46466.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p46466.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 26, 2014, 2:28pm UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/14 "2014-03-26T14:28:59Z")

</div>

Incredibly simple fix. In  
./gnuradio\_src/gr-blocks/lib/message\_strobe\_random\_impl.h, change:

```
  boost::random::mt19937 d_rng;

```

to:

```
  boost::mt19937 d_rng;

```

Done.

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 30, 2014, 7:51am UTC](https://www.ruby-forum.com/t/issue-while-installing-gr-3-7/239297/15 "2014-03-30T07:51:27Z")

</div>

I’m on CentOS 6.5 and just hit this same issue – the default version of  
boost for this rev of the OS is 1.41.0-18.el6 – it does appear to be  
there,  
but I get the same error as the original poster did (I used the

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

build-gnuradio script).

From the header (/usr/include/boost/random/mersenne\_twister.hpp):  
/typedef random::mersenne\_twister\<uint32\_t,32,624,397,31,0x9908b0df,11,  
7,0x9d2c5680,15,0xefc60000,18, 3346425566U\> mt19937;/

In file included from  
/usr/local/src/gnuradio/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc:27:  
/usr/local/src/gnuradio/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.h:48:  
error: ‘mt19937’ in namespace ‘boost::random’ does not name a type

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p47304.html](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-tp46435p47304.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
