<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 class="gmail_quot&lt;blockquote class=" 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">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">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>