[Snort-users] Compiling Barnyard with ./configure --with-mysql --with-postgresql

Joel Esler jesler at ...1935...
Sun Aug 5 13:23:31 EDT 2012


What version of Snort, etc

--
Joel Esler
Sent from my iPad 

On Aug 5, 2012, at 12:49 PM, "Michael Steele" <michaels at ...9077...> wrote:

> $ make
> make  all-recursive
> make[1]: Entering directory `/cygdrive/e/development/cygwin/barnyard2'
> Making all in src
> make[2]: Entering directory `/cygdrive/e/development/cygwin/barnyard2/src'
> Making all in sfutil
> make[3]: Entering directory
> `/cygdrive/e/development/cygwin/barnyard2/src/sfutil
> '
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c
> getopt_long.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sfmemcap.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c
> sfprimetable.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sfxhash.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sf_ip.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sf_iph.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sf_ipvar.c
> sf_ipvar.c:39: warning: 'sfvar_list_compare' declared `static' but never
> defined
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c sf_textlog.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I..   -I/usr/local/mysql/include
> -DENABLE_MYSQL
> -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c
> sf_vartable.c
> rm -f libsfutil.a
> ar cru libsfutil.a getopt_long.o sfmemcap.o  sfprimetable.o sfxhash.o
> sf_ip.o  s                                            f_iph.o sf_ipvar.o
> sf_textlog.o  sf_vartable.o
> ranlib libsfutil.a
> make[3]: Leaving directory
> `/cygdrive/e/development/cygwin/barnyard2/src/sfutil'
> Making all in output-plugins
> make[3]: Entering directory
> `/cygdrive/e/development/cygwin/barnyard2/src/output
> -plugins'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_arubaaction.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_bro.c
> spo_alert_bro.c:274:22: warning: no newline at end of file
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_cef.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_csv.c
> spo_alert_csv.c: In function `AlertCSVParseArgs':
> spo_alert_csv.c:216: warning: subscript has type `char'
> spo_alert_csv.c:219: warning: subscript has type `char'
> spo_alert_csv.c:222: warning: subscript has type `char'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_fast.c
> spo_alert_fast.c: In function `ParseAlertFastArgs':
> spo_alert_fast.c:372: warning: subscript has type `char'
> spo_alert_fast.c:375: warning: subscript has type `char'
> spo_alert_fast.c:378: warning: subscript has type `char'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_full.c
> spo_alert_full.c: In function `ParseAlertFullArgs':
> spo_alert_full.c:292: warning: subscript has type `char'
> spo_alert_full.c:295: warning: subscript has type `char'
> spo_alert_full.c:298: warning: subscript has type `char'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_fwsam.c
> spo_alert_fwsam.c: In function `AlertFWsamInit':
> spo_alert_fwsam.c:426: warning: array subscript has type `char'
> spo_alert_fwsam.c:432: warning: array subscript has type `char'
> spo_alert_fwsam.c:438: warning: array subscript has type `char'
> spo_alert_fwsam.c:445: warning: array subscript has type `char'
> spo_alert_fwsam.c:455: warning: array subscript has type `char'
> spo_alert_fwsam.c: In function `FWsamReadLine':
> spo_alert_fwsam.c:618: warning: array subscript has type `char'
> spo_alert_fwsam.c:625: warning: array subscript has type `char'
> spo_alert_fwsam.c: In function `FWsamParseDuration':
> spo_alert_fwsam.c:678: warning: array subscript has type `char'
> spo_alert_fwsam.c:682: warning: subscript has type `char'
> spo_alert_fwsam.c:685: warning: array subscript has type `char'
> spo_alert_fwsam.c:687: warning: subscript has type `char'
> spo_alert_fwsam.c:688: warning: array subscript has type `char'
> spo_alert_fwsam.c: In function `FWsamParseOption':
> spo_alert_fwsam.c:750: warning: array subscript has type `char'
> spo_alert_fwsam.c:801: warning: array subscript has type `char'
> spo_alert_fwsam.c: In function `FWsamParseLine':
> spo_alert_fwsam.c:830: warning: array subscript has type `char'
> spo_alert_fwsam.c:832: warning: array subscript has type `char'
> spo_alert_fwsam.c:833: warning: subscript has type `char'
> spo_alert_fwsam.c: In function `AlertFWsam':
> spo_alert_fwsam.c:980: warning: unused variable `rn'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_prelude.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_syslog.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_test.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_alert_unixsock.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_common.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_log_ascii.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_log_null.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_log_tcpdump.c
> spo_log_tcpdump.c: In function `ParseTcpdumpArgs':
> spo_log_tcpdump.c:226: warning: subscript has type `char'
> spo_log_tcpdump.c:229: warning: subscript has type `char'
> spo_log_tcpdump.c:232: warning: subscript has type `char'
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_platypus.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_sguil.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_syslog_full.c
> gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil
> -I/usr/local/mysql/include -
> DENABLE_MYSQL -I/usr/local/pgsql/include -DENABLE_POSTGRESQL  -g -O2 -Wall
> -c sp                                            o_database.c
> spo_database.c: In function `snort_escape_string_STATIC':
> spo_database.c:2853: error: `write_len' undeclared (first use in this
> function)
> spo_database.c:2853: error: (Each undeclared identifier is reported only
> once
> spo_database.c:2853: error: for each function it appears in.)
> spo_database.c:2856: error: `error' undeclared (first use in this function)
> Makefile:282: recipe for target `spo_database.o' failed
> make[3]: *** [spo_database.o] Error 1
> make[3]: Leaving directory
> `/cygdrive/e/development/cygwin/barnyard2/src/output-
> plugins'
> Makefile:382: recipe for target `all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/cygdrive/e/development/cygwin/barnyard2/src'
> Makefile:313: recipe for target `all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/e/development/cygwin/barnyard2'
> Makefile:244: recipe for target `all' failed
> make: *** [all] Error 2
> 
> michael at ...3180... /cygdrive/e/development/cygwin/barnyard2
> $
> 
> Any ideas what it fails?
> 
> Kindest regards,
> Michael...
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> Go to this URL to change user options or unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/snort-users
> Snort-users list archive:
> http://www.geocrawler.com/redir-sf.php3?list=snort-users
> 
> Please visit http://blog.snort.org to stay current on all the latest Snort news!




More information about the Snort-users mailing list