Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

firnsy-barnyard2-2f5d496 fails to compile #46

Closed
DigiAngel opened this Issue · 8 comments

3 participants

@DigiAngel

And there we go:

gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil -DSUP_IP6 -DGRE -I/usr/include/mysql -DENABLE_MYSQL -I/usr/local/include/tcl8.5 -DENABLE_TCL -g -O2 -fno-strict-aliasing -Wall -c spo_syslog_full.c
spo_syslog_full.c: In function âSyslog_FormatIPHeaderAlertâ:
spo_syslog_full.c:499:9: error: incompatible type for argument 1 of âsfip_to_strâ
../sfutil/sf_ip.h:426:7: note: expected âconst struct sfip_t â but argument is of type âconst struct in_addrâ
spo_syslog_full.c:502:2: error: incompatible type for argument 1 of âsfip_to_strâ
../sfutil/sf_ip.h:426:7: note: expected âconst struct sfip_t *â but argument is of type âconst struct in_addrâ
spo_syslog_full.c: In function âNetSendâ:
spo_syslog_full.c:1821:9: warning: format not a string literal and no format arguments
make[3]: *
* [spo_syslog_full.o] Error 1
make[3]: Leaving directory /home/jlay/firnsy-barnyard2-2f5d496/src/output-plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
/home/jlay/firnsy-barnyard2-2f5d496/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jlay/firnsy-barnyard2-2f5d496'
make: *** [all] Error 2

@binf
Collaborator

What are your configure option and under which plateform are you trying to build

@DigiAngel

Linux ids 2.6.38-16-generic-pae #67-Ubuntu SMP Thu Sep 6 18:18:02 UTC 2012 i686 i686 i386 GNU/Linux

It was created by configure, which was
generated by GNU Autoconf 2.67. Invocation command line was

$ ./configure --prefix=/opt --enable-ipv6 --enable-gre --with-mysql --with-tcl

Thanks for the quick response.

James

@binf
Collaborator

it should compile fine with --enable-ipv6, also note that the current spooler does not support ipv6 events thus it shouldn't be used. 2.2x serie will be v6 native.

@DigiAngel

Ah...interesting...this compiles fine with:

./configure --prefix=/opt --enable-gre --with-mysql --with-tcl

Thank you.

@binf
Collaborator

I will review some stuff and make a fix so that it compiles with --enable-ipv6 but the only pluggin really supporting it is platypus, and its only a type conversion since no event type of below type will pass beyond the spooler
UNIFIED2_IDS_EVENT_IPV6
UNIFIED2_IDS_EVENT_IPV6_MPLS
UNIFIED2_IDS_EVENT_IPV6_VLAN

@DigiAngel

Thank you....running latest sans ipv6, which is fine.

@binf
Collaborator

I wrote the fix, so you could compile if you choose with --enable-ipv6 as previously stated ipv6 will not be logged but it will compile without error, if you wish to test it you can get it from my branch @ https://github.com/binf/barnyard2/tree/bug-fix (Build 311)

@binf
Collaborator

Can be closed

@firnsy firnsy closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.