latest git fails to compile

257 views
Skip to first unread message

nightfury

unread,
Jun 7, 2020, 1:12:35 AM6/7/20
to barnyard2-users
Hi all,
Today when I'm trying to install barnyard2, it's throwing an error that I couldn't figure it out on my own. I have all the prerequisites installed in my machine. And also I have snort installed already on my machine.

root@kali:/usr/src/barnyard2# make
make  all-recursive
make[1]: Entering directory '/usr/src/barnyard2'
Making all in src
make[2]: Entering directory '/usr/src/barnyard2/src'
Making all in sfutil
make[3]: Entering directory '/usr/src/barnyard2/src/sfutil'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/usr/src/barnyard2/src/sfutil'
Making all in output-plugins
make[3]: Entering directory '/usr/src/barnyard2/src/output-plugins'
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I ../sfutil   -g -O2 -Wall -c -o spo_alert_fwsam.o spo_alert_fwsam.c
In file included from /usr/include/pcap/pcap.h:87,
                 from /usr/include/pcap.h:43,
                 from ../barnyard2.h:46,
                 from spo_alert_fwsam.c:91:
spo_alert_fwsam.c:118:13: error: two or more data types in declaration specifiers
  118 | typedef int SOCKET;
      |             ^~~~~~
spo_alert_fwsam.c:118:1: warning: useless type name in empty declaration
  118 | typedef int SOCKET;
      | ^~~~~~~
spo_alert_fwsam.c: In function ‘FWsamReadLine’:
spo_alert_fwsam.c:620:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  620 |         if(p>buf);
      |         ^~
spo_alert_fwsam.c:621:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  621 |             strcpy(buf,p);
      |             ^~~~~~
spo_alert_fwsam.c: In function ‘AlertFWsam’:
spo_alert_fwsam.c:981:18: warning: variable ‘cn’ set but not used [-Wunused-but-set-variable]
  981 |     ClassType   *cn = NULL;
      |                  ^~
spo_alert_fwsam.c:980:18: warning: variable ‘sn’ set but not used [-Wunused-but-set-variable]
  980 |     SigNode     *sn = NULL;
      |                  ^~
spo_alert_fwsam.c:973:27: warning: variable ‘lastbsp’ set but not used [-Wunused-but-set-variable]
  973 |     static unsigned short lastbsp[FWSAM_REPET_BLOCKS];
      |                           ^~~~~~~
make[3]: *** [Makefile:391: spo_alert_fwsam.o] Error 1
make[3]: Leaving directory '/usr/src/barnyard2/src/output-plugins'
make[2]: *** [Makefile:498: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/barnyard2/src'
make[1]: *** [Makefile:412: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/barnyard2'

Can someone give any solution for this issue?

Reply all
Reply to author
Forward
0 new messages