[syslog-ng] problems compiling OSE 3.4.1 on redhat enterprise 6.4

Xuri Nagarin secsubs at gmail.com
Sat Jun 1 22:11:04 CEST 2013


Patch form:

--- modules/afsocket/afinet-dest.h.orig 2013-06-01 20:07:20.486110490 -0700
+++ modules/afsocket/afinet-dest.h 2013-06-01 20:07:48.165628435 -0700
@@ -23,7 +23,7 @@

 #ifndef AFINET_DEST_H_INCLUDED
 #define AFINET_DEST_H_INCLUDED
-
+#include <linux/types.h>
 #include "afinet.h"
 #include "afsocket-dest.h"




On Sat, Jun 1, 2013 at 1:22 AM, Xuri Nagarin <secsubs at gmail.com> wrote:

> 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" :
> "#include <linux/types.h>"
>
> Now, I am stuck with a different problem though :)
>
>
>
>
> On Sat, May 11, 2013 at 3:21 AM, Balazs Scheidler <bazsi77 at gmail.com>wrote:
>
>> This seems to be a lib net compilation issue.
>>
>> The __be16 type is not defined for some reason. It might be caused by
>> mismatching kernel, glibc versions.
>>
>> Try to locate the be16 type in your header files and add its inclusion
>> before the libnet include file to afinet.c
>>
>> 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.
>>
>> Alternatively you can disable spoof source support if you don't need it.
>>
>> On 6/05/2013, at 6:31 AM, Balazs Scheidler <bazsi77 at gmail.com> wrote:
>>
>> > This is only a partial error message. Can you include some more details?
>>
>> Sorry!  missed the vital last line with the error in the cutnpaste!
>>  DOH!!!
>>
>> /usr/include/linux/if_ether.h:122: error: expected
>> specifier-qualifier-list before '__be16'
>>
>>
>> >
>> > On May 5, 2013 3:28 AM, "Russell Fulton" <r.fulton at auckland.ac.nz>
>> wrote:
>> > make[4]: Entering directory
>> `/home/rful011/syslog-ng-3.4.1/modules/afsocket'
>> > /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
>> > 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
>> > In file included from /usr/include/net/ethernet.h:27,
>> >                  from /usr/include/libnet.h:98,
>> >                  from afinet-dest.c:43:
>> >
>> >
>> > 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.
>> >
>> > 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.
>> >
>> > Russell
>> >
>> >
>> ______________________________________________________________________________
>> > Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> > Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> > FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>> >
>> >
>> ______________________________________________________________________________
>> > Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> > Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> > FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>> >
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130601/2e384d7a/attachment.htm 


More information about the syslog-ng mailing list