<div>When compiling with the --enable-int64 flag, the variable val.int_val is a &#39;long long int&#39;. It appears the abs function on your system is defined for &#39;int&#39; and &#39;long int&#39;. You could probalby typecast the variable so that the compiler uses the &#39;long int&#39; version. Though depending of the size of &#39;long int&#39; on your system this could have an undesired effect. If &#39;long int&#39; on your system is 64bits wide though you should be ok.</div>

<div>&nbsp;</div>
<div>You can try:</div>
<div>&nbsp;</div>
<div>return new Val(abs((long int)val.int_val), TYPE_COUNT);</div>
<div>&nbsp;</div>
<div>The other concern here is that this is a one function fix and your going to run into this issue everytime you pass a &#39;long long int&#39; to a function that has defines for just &#39;int&#39; and &#39;long int&#39;.</div>

<div>&nbsp;</div>
<div>If &#39;long int&#39; is 64bits wide on your system, you might be better off editing the bro header file util.h so that you redefine int64.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>typedef long long int int64;</div>
<div>&nbsp;</div>
<div>would become</div>
<div>&nbsp;</div>
<div>typedef long int int64;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>// Joel <br><br><br></div>
<div class="gmail_quote">On Tue, Apr 15, 2008 at 7:30 PM, Paul Schmehl &lt;<a href="mailto:pauls@utdallas.edu">pauls@utdallas.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">--On April 15, 2008 4:02:14 PM -0700 Vern Paxson &lt;<a href="mailto:vern@icir.org">vern@icir.org</a>&gt; wrote:<br><br>&gt;&gt; That did not fix the problem.<br>&gt;<br>&gt; Rats. &nbsp;Well, this doesn&#39;t repreoduce for me (w/ g++ 4.0.1), so I&#39;m<br>
&gt; reduced to guessing. &nbsp;The next thing I&#39;d try is<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; return new Val(abs(bro_int_t(val.int_val)), TYPE_COUNT);<br>&gt;<br>&gt; but if that doesn&#39;t work, I&#39;m not sure what next to try.<br>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vern<br><br></div>Sadly, that did not work either. &nbsp;I&#39;m afraid I&#39;m not a programmer, so all<br>I can do is follow your lead. &nbsp;For now I&#39;ll make that option is<br>non-working and continue working on the update to the port.<br>
<br>If anyone on the list has the same version of gcc and can test this and<br>find a resolution, please post it to the list. &nbsp;I&#39;ll include a patch in<br>the port to fix it.<br>
<div class="Ih2E3d"><br>Paul Schmehl (<a href="mailto:pauls@utdallas.edu">pauls@utdallas.edu</a>)<br>Senior Information Security Analyst<br>The University of Texas at Dallas<br><a href="http://www.utdallas.edu/ir/security/" target="_blank">http://www.utdallas.edu/ir/security/</a><br>
<br>_______________________________________________<br></div>
<div>
<div></div>
<div class="Wj3C7c">Bro mailing list<br><a href="mailto:bro@bro-ids.org">bro@bro-ids.org</a><br><a href="http://mailman.icsi.berkeley.edu/mailman/listinfo/bro" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro</a><br>
</div></div></blockquote></div><br>