[Bro] Problems compiling with --enable-int64

Paul Schmehl pauls at utdallas.edu
Tue Apr 15 15:42:51 PDT 2008


--On Tuesday, April 15, 2008 15:11:48 -0700 Vern Paxson <vern at icir.org> wrote:

>> Val.cc: In member function 'virtual Val* Val::SizeVal() const':
>> Val.cc:567: error: call of overloaded 'abs(const bro_int_t&)' is ambiguous
>
> I'm guessing that the line you're looking at is
>
> 	return new Val(abs(val.int_val), TYPE_COUNT);
>
> (it's at a different location in the latest snapshot).  If so, try
>
> 	return new Val(bro_int_t(abs(val.int_val)), TYPE_COUNT);
>
> and see if that fixes the problem.
>

That did not fix the problem.

Val.cc: In member function 'virtual Val* Val::SizeVal() const':
Val.cc:567: error: call of overloaded 'abs(const bro_int_t&)' is ambiguous
/usr/include/stdlib.h:84: note: candidates are: int abs(int)
/usr/include/c++/4.2/cstdlib:143: note:                 long int std::abs(long 
int)

-- 
Paul Schmehl (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/




More information about the Bro mailing list