[Bro] problems compiling bro 25 master on centos 6

Johanna Amann johanna at icir.org
Wed Sep 21 12:47:08 PDT 2016


>From looking at the include output, it seems like your compiler uses the
wrong include files; the include directory uses the c++ includes of g++
4.4.7, which is below the cutoff and will not work.

So - the compiler include paths got messed up in some way - I assume that
this is a problem of your installation, not of Bro itself.

I hope that this  might help a little bit :)
 Johanna

On Wed, Sep 21, 2016 at 03:28:03PM +0000, philosnef wrote:
> RHEL 6.7. I had to pull clang34 from EPEL, since 6.7 only supports g++ 4.4 and not 4.8. It always errors out at bif_parse.cc.o, 5% into the build. Here is the error:----[  5%] Building CXX object src/CMakeFiles/bifcl.dir/bif_parse.cc.oIn file included from builtin-func.y:2:In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:61:In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66:In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:60:/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:57:14: error:       rvalue reference to type 'typename std::remove_reference<BuiltinFuncArg      *&>::type' (aka 'BuiltinFuncArg *') cannot bind to lvalue of type      'BuiltinFuncArg *'    { return __t; }             ^~~/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:27: note:       in instantiation of function template specialization      'std::move<BuiltinFuncArg *&>' requested here      { emplace_back(std::move(__x)); }                          ^builtin-func.y:611:12: note: in instantiation of member function      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>      >::push_back' requested here    { args.push_back(new BuiltinFuncArg((yyvsp[(1) - (5)].str), (yyvsp[(...           ^In file included from builtin-func.y:2:In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:69:/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:96:9: error:       no matching function for call to 'forward'                                    std::forward<_Args>(__args)...);                                    ^~~~~~~~~~~~~~~~~~~/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:9: note:       in instantiation of function template specialization      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>      >::emplace_back<BuiltinFuncArg *>' requested here      { emplace_back(std::move(__x)); }        ^builtin-func.y:611:12: note: in instantiation of member function      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>      >::push_back' requested here    { args.push_back(new BuiltinFuncArg((yyvsp[(1) - (5)].str), (yyvsp[(...           ^/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:51:5: note:       candidate function [with _Tp = BuiltinFuncArg *] not viable: no known      conversion from 'BuiltinFuncArg *' to 'typename      std::identity<BuiltinFuncArg *>::type &&' (aka 'BuiltinFuncArg *&&') for      1st argument    forward(typename std::identity<_Tp>::type&& __t)    ^2 errors generated.
> 
> Thanks for peeping into this! 
> 
>     On Wednesday, September 21, 2016 10:56 AM, Seth Hall <seth at icir.org> wrote:
>  
> 
>  Is this on RedHat or CentOS 6.x?  I'm not sure if anyone has tried building on those.
> 
>   .Seth
> 
> 
> > On Sep 20, 2016, at 7:55 AM, philosnef <philosnef at yahoo.com> wrote:
> > 
> > See the following cmake error. I have run --disable-auxtools and --disable-broccoli. Not exact sure where this is breaking.
> > 
> > ---
> > /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:57:14: error: 
> >      rvalue reference to type 'typename std::remove_reference<BuiltinFuncArg
> >      *&>::type' (aka 'BuiltinFuncArg *') cannot bind to lvalue of type
> >      'BuiltinFuncArg *'
> >    { return __t; }
> >              ^~~
> > /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:27: note: 
> >      in instantiation of function template specialization
> >      'std::move<BuiltinFuncArg *&>' requested here
> >      { emplace_back(std::move(__x)); }
> >                          ^
> > builtin-func.y:611:12: note: in instantiation of member function
> >      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>
> >      >::push_back' requested here
> >    { args.push_back(new BuiltinFuncArg((yyvsp[(1) - (5)].str), (yyvsp[(...
> >            ^
> > In file included from builtin-func.y:2:
> > In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:69:
> > /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:96:9: error: 
> >      no matching function for call to 'forward'
> >                                    std::forward<_Args>(__args)...);
> >                                    ^~~~~~~~~~~~~~~~~~~
> > /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:9: note: 
> >      in instantiation of function template specialization
> >      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>
> >      >::emplace_back<BuiltinFuncArg *>' requested here
> >      { emplace_back(std::move(__x)); }
> >        ^
> > builtin-func.y:611:12: note: in instantiation of member function
> >      'std::vector<BuiltinFuncArg *, std::allocator<BuiltinFuncArg *>
> >      >::push_back' requested here
> >    { args.push_back(new BuiltinFuncArg((yyvsp[(1) - (5)].str), (yyvsp[(...
> >            ^
> > /usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:51:5: note: 
> >      candidate function [with _Tp = BuiltinFuncArg *] not viable: no known
> >      conversion from 'BuiltinFuncArg *' to 'typename
> >      std::identity<BuiltinFuncArg *>::type &&' (aka 'BuiltinFuncArg *&&') for
> >      1st argument
> >    forward(typename std::identity<_Tp>::type&& __t)
> >    ^
> > 2 errors generated.
> > make[3]: *** [src/CMakeFiles/bifcl.dir/bif_parse.cc.o] Error 1
> > make[3]: Leaving directory `/opt/src/bro_25_master/direct_dl/bro-2.5-beta.master/build'
> > make[2]: *** [src/CMakeFiles/bifcl.dir/all] Error 2
> > make[2]: Leaving directory `/opt/src/bro_25_master/direct_dl/bro-2.5-beta.master/build'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/opt/src/bro_25_master/direct_dl/bro-2.5-beta.master/build'
> > make: *** [all] Error 2
> > ---
> > 
> > _______________________________________________
> > Bro mailing list
> > bro at bro-ids.org
> > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
> 
> --
> Seth Hall
> International Computer Science Institute
> (Bro) because everyone has a network
> http://www.bro.org/
> 
> 
>    

> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro




More information about the Bro mailing list