<div dir="ltr">Patch form:<div><br></div><div><div>--- modules/afsocket/afinet-dest.h.orig<span class="" style="white-space:pre">        </span>2013-06-01 20:07:20.486110490 -0700</div><div>+++ modules/afsocket/afinet-dest.h<span class="" style="white-space:pre">        </span>2013-06-01 20:07:48.165628435 -0700</div>
<div>@@ -23,7 +23,7 @@</div><div> </div><div> #ifndef AFINET_DEST_H_INCLUDED</div><div> #define AFINET_DEST_H_INCLUDED</div><div>-</div><div>+#include &lt;linux/types.h&gt;</div><div> #include &quot;afinet.h&quot;</div><div>
 #include &quot;afsocket-dest.h&quot;</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 1:22 AM, Xuri Nagarin <span dir="ltr">&lt;<a href="mailto:secsubs@gmail.com" target="_blank">secsubs@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">DIsabling spoof source support did not help. On CentOS 6, I added this before the statement //#include &quot;afinet.h&quot;// to &quot;modules/afsocket/afinet-dest.h&quot; :<div>
<div>&quot;#include &lt;linux/types.h&gt;&quot;</div>
</div><div><br></div><div>Now, I am stuck with a different problem though :)</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 11, 2013 at 3:21 AM, Balazs Scheidler <span dir="ltr">&lt;<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">This seems to be a lib net compilation issue.</p>
<p dir="ltr">The __be16 type is not defined for some reason. It might be caused by mismatching kernel, glibc versions.</p>
<p dir="ltr">Try to locate the be16 type in your header files and add its inclusion before the libnet include file to afinet.c</p>
<p dir="ltr">We do compile syslog-ng on rhel ourselves so this problem might be specific to your system. If you can find the root cause it&#39;d be nice to know.</p>
<p dir="ltr">Alternatively you can disable spoof source support if you don&#39;t need it.<br>
</p><div><div>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 6/05/2013, at 6:31 AM, Balazs Scheidler &lt;<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>&gt; wrote:<br>
<br>
&gt; This is only a partial error message. Can you include some more details?<br>
<br>
Sorry!  missed the vital last line with the error in the cutnpaste!  DOH!!!<br>
<br>
/usr/include/linux/if_ether.h:122: error: expected specifier-qualifier-list before &#39;__be16&#39;<br>
<br>
<br>
&gt;<br>
&gt; On May 5, 2013 3:28 AM, &quot;Russell Fulton&quot; &lt;<a href="mailto:r.fulton@auckland.ac.nz" target="_blank">r.fulton@auckland.ac.nz</a>&gt; wrote:<br>
&gt; make[4]: Entering directory `/home/rful011/syslog-ng-3.4.1/modules/afsocket&#39;<br>
&gt; /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../lib -I../../lib  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/local/include/eventlog       -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I../../lib/ivykis/src/include -I../../lib/ivykis/src/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -pthread -MT libafsocket_notls_la-afinet-dest.lo -MD -MP -MF .deps/libafsocket_notls_la-afinet-dest.Tpo -c -o libafsocket_notls_la-afinet-dest.lo `test -f &#39;afinet-dest.c&#39; || echo &#39;./&#39;`afinet-dest.c<br>



&gt; libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lib -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/eventlog -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I../../lib/ivykis/src/include -I../../lib/ivykis/src/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -pthread -MT libafsocket_notls_la-afinet-dest.lo -MD -MP -MF .deps/libafsocket_notls_la-afinet-dest.Tpo -c afinet-dest.c  -fPIC -DPIC -o .libs/libafsocket_notls_la-afinet-dest.o<br>



&gt; In file included from /usr/include/net/ethernet.h:27,<br>
&gt;                  from /usr/include/libnet.h:98,<br>
&gt;                  from afinet-dest.c:43:<br>
&gt;<br>
&gt;<br>
&gt; when I first encountered this error I went and did some googling and followed some vague leads to install a bunch of -devel packages (most of which were already installed ) but it did not make any difference.<br>
&gt;<br>
&gt; Googling the message brings up a bunch of hits for both redhat and debian families and a range of packages.  There did not seem to be any common cause.<br>
&gt;<br>
&gt; Russell<br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</div>
</div></div><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>