[Snort-devel] Barnyard compile error

Steve Halligan agent33 at ...269...
Mon Nov 5 11:56:03 EST 2001


Barnyard --current from CVS
MySQL 3.23
OpenBSD 2.9

configure options: --enable-mysql
--with-mysql-includes=/usr/local/include/mysql
--with-mysql-libraries=/usr/local/lib/mysql

./configure completes without error.

make dies while compiling op_acid_db.c


------output from make-----------
make  all-recursive
Making all in src
Making all in output-plugins
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_decode.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_fast.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_plugbase.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_logdump.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c
op_alert_syslog.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_log_pcap.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I/usr/local/include/mysql/ -DENABLE_MYSQL  -g -O2 -Wall -c op_acid_db.c
op_acid_db.c: In function `DbConnect':
op_acid_db.c:783: warning: passing arg 1 of `MysqlConnect' from incompatible
pointer type
op_acid_db.c: At top level:
op_acid_db.c:908: conflicting types for `MysqlConnect'
op_acid_db.c:108: previous declaration of `MysqlConnect'
op_acid_db.c: In function `MysqlClose':
op_acid_db.c:922: void value not ignored as it ought to be
op_acid_db.c:923: warning: control reaches end of non-void function
*** Error code 1

Stop in /usr/local/tarballs/barnyard/src/output-plugins.
*** Error code 1

Stop in /usr/local/tarballs/barnyard/src (line 194 of Makefile).
*** Error code 1

Stop in /usr/local/tarballs/barnyard (line 164 of Makefile).
*** Error code 1

Stop in /usr/local/tarballs/barnyard (line 294 of Makefile).




More information about the Snort-devel mailing list