<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 <linux/types.h></div><div> #include "afinet.h"</div><div>
#include "afsocket-dest.h"</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"><<a href="mailto:secsubs@gmail.com" target="_blank">secsubs@gmail.com</a>></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 "afinet.h"// to "modules/afsocket/afinet-dest.h" :<div>
<div>"#include <linux/types.h>"</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"><<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>></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'd be nice to know.</p>
<p dir="ltr">Alternatively you can disable spoof source support if you don'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 <<a href="mailto:bazsi77@gmail.com" target="_blank">bazsi77@gmail.com</a>> wrote:<br>
<br>
> 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 '__be16'<br>
<br>
<br>
><br>
> On May 5, 2013 3:28 AM, "Russell Fulton" <<a href="mailto:r.fulton@auckland.ac.nz" target="_blank">r.fulton@auckland.ac.nz</a>> wrote:<br>
> make[4]: Entering directory `/home/rful011/syslog-ng-3.4.1/modules/afsocket'<br>
> /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 'afinet-dest.c' || echo './'`afinet-dest.c<br>
> 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>
> In file included from /usr/include/net/ethernet.h:27,<br>
> from /usr/include/libnet.h:98,<br>
> from afinet-dest.c:43:<br>
><br>
><br>
> 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>
><br>
> 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>
><br>
> Russell<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>
> ______________________________________________________________________________<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>
______________________________________________________________________________<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>