barnyard2 icon indicating copy to clipboard operation
barnyard2 copied to clipboard

Help me

Open phap231 opened this issue 4 years ago • 1 comments

make all-recursive make[1]: Entering directory '/root/barnyard2-2-1.13' Making all in src make[2]: Entering directory '/root/barnyard2-2-1.13/src' Making all in sfutil make[3]: Entering directory '/root/barnyard2-2-1.13/src/sfutil' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/root/barnyard2-2-1.13/src/sfutil' Making all in output-plugins make[3]: Entering directory '/root/barnyard2-2-1.13/src/output-plugins' gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil -I/usr/include/mysql -DENABLE_MYSQL -g -O2 -Wall -c -o spo_database.o spo_database.c In file included from spo_database.c:103: ../output-plugins/spo_database.h:112:1: error: expected identifier or ‘(’ before ‘--’ token --- spo_database.h.orig ^~ ../output-plugins/spo_database.h:114:1: error: stray ‘@’ in program @@ -357,7 +357,7 @@ ^ ../output-plugins/spo_database.h:114:2: error: stray ‘@’ in program @@ -357,7 +357,7 @@ ^ ../output-plugins/spo_database.h:114:18: error: stray ‘@’ in program @@ -357,7 +357,7 @@ ^ ../output-plugins/spo_database.h:114:19: error: stray ‘@’ in program @@ -357,7 +357,7 @@ ^ ../output-plugins/spo_database.h:118:1: error: expected identifier or ‘(’ before ‘-’ token

  • my_bool mysql_reconnect; /* We will handle it via the api. */ ^ ../output-plugins/spo_database.h:119:1: error: expected identifier or ‘(’ before ‘+’ token
  • bool mysql_reconnect; /* We will handle it via the api. / ^ ../output-plugins/spo_database.h:368:5: error: unknown type name ‘my_bool’ my_bool mysql_reconnect; / We will handle it via the api. / ^~~~~~~ ../output-plugins/spo_database.h:631:2: error: #endif without #if #endif / SPO_DATABASE_H */ ^~~~~ make[3]: *** [Makefile:390: spo_database.o] Error 1 make[3]: Leaving directory '/root/barnyard2-2-1.13/src/output-plugins' make[2]: *** [Makefile:496: all-recursive] Error 1 make[2]: Leaving directory '/root/barnyard2-2-1.13/src' make[1]: *** [Makefile:411: all-recursive] Error 1 make[1]: Leaving directory '/root/barnyard2-2-1.13' make: *** [Makefile:343: all] Error 2

help me I use libcap1.8 mysqld-commity mysql-commyti-devel

phap231 avatar Jul 14 '21 17:07 phap231

I send you a pull request for mysql problem. https://github.com/firnsy/barnyard2/pull/265 Also I used this pull request for libpcap 1.9.x. https://github.com/firnsy/barnyard2/pull/254

And successfully compiled.

fatihusta avatar Jan 26 '22 18:01 fatihusta