[Bro-Dev] Compile errors

Jonathan Siwek jsiwek at ncsa.illinois.edu
Wed Feb 16 13:27:35 PST 2011


> Can someone give me an idea of how to resolve the following errors?
> 
> > In file included from
> > /home/condor/execute/dir_4281/userdir/bro/src/Conn.h:11,
> >                  from
> >                  /home/condor/execute/dir_4281/userdir/bro/src/Analyzer.h:11,
> >                  from
> >                  /home/condor/execute/dir_4281/userdir/bro/src/binpac_bro.h:11,
> >                  from
> >                  /home/condor/execute/dir_4281/userdir/bro/build/src/bittorrent_pac.h:11,
> >                  from
> >                  /home/condor/execute/dir_4281/userdir/bro/build/src/bittorrent_pac.cc:3:
> > /home/condor/execute/dir_4281/userdir/bro/src/Val.h:130: error:
> > 'Val::Val(int64, TypeTag)' cannot be overloaded
> > /home/condor/execute/dir_4281/userdir/bro/src/Val.h:100: error: with
> > 'Val::Val(long int, TypeTag)'
> > /home/condor/execute/dir_4281/userdir/bro/src/Val.h:140: error:
> > 'Val::Val(uint64, TypeTag)' cannot be overloaded
> > /home/condor/execute/dir_4281/userdir/bro/src/Val.h:120: error: with
> > 'Val::Val(long unsigned int, TypeTag)'

I don't have a resolution, but can suggest what to look at to (maybe) figure one out or at least better define what the problem is.

int64 looks like it's typedef'd in src/util.h depending on the definition of SIZEOF_LONG_LONG and SIZEOF_LONG_INT, which are both determined at configure time by cmake/CheckTypes.cmake and the result gets put in build/config.h.

So you can check the differences in the config.h's that get generated, but I think it looks like you'd always get this error if SIZEOF_LONG_LONG != 8 and SIZEOF_LONG_INT == 8, causing two declarations of the Val(long int, TypeTag) constructor.  Either the Val constructors or the logic for typedef'ing int64 probably need to be revised.

- Jon


More information about the bro-dev mailing list