Snort mailing list archives

Unified2 with Barnyard2 + Postgresql


From: Andrew Shagayev <drewshg () gmail com>
Date: Tue, 10 Mar 2015 13:54:30 -0700

*Hi guys!*

*OSX 10.10.2 Yosemite*

*I'm using unified2 and want to use barnyard2 to direct all info from Snort
to Postgresql database.*




*Trying to compile barnyard 2 from source and getting warnings and
errors.Did anyone have troubles compiling barnyard2?trying:*
$ sudo make

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
Making all in sfutil
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o getopt_long.o getopt_long.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sfmemcap.o sfmemcap.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sfprimetable.o sfprimetable.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sfxhash.o sfxhash.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sf_ip.o sf_ip.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sf_iph.o sf_iph.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sf_ipvar.o sf_ipvar.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sf_textlog.o sf_textlog.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I/usr/local/include
-DENABLE_POSTGRESQL  -g -O2 -Wall -c -o sf_vartable.o sf_vartable.c
rm -f libsfutil.a
ar cru libsfutil.a getopt_long.o sfmemcap.o sfprimetable.o sfxhash.o
sf_ip.o sf_iph.o sf_ipvar.o sf_textlog.o sf_vartable.o
ranlib libsfutil.a
Making all in output-plugins
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I ../sfutil
-I/usr/local/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c -o
spo_alert_arubaaction.o spo_alert_arubaaction.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I ../sfutil
-I/usr/local/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c -o
spo_alert_bro.o spo_alert_bro.c
gcc -DHAVE_CONFIG_H -I. -I../..  -I.. -I ../sfutil
-I/usr/local/include -DENABLE_POSTGRESQL  -g -O2 -Wall -c -o
spo_alert_cef.o spo_alert_cef.c
In file included from spo_alert_cef.c:66:*../strlcatu.h:24:8: error:
expected parameter declarator*
size_t strlcat(char *, const char *, size_t);
       ^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from spo_alert_cef.c:66:*../strlcatu.h:24:8: error:
expected ')'*
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
../strlcatu.h:24:8: note: to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                    ^
In file included from spo_alert_cef.c:66:
../strlcatu.h:24:8: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
size_t strlcat(char *, const char *, size_t);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from spo_alert_cef.c:66:
../strlcatu.h:24:8: error: conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
../strlcatu.h:24:8: note: '__builtin___strlcat_chk' is a builtin with type
      'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
In file included from spo_alert_cef.c:67:*../strlcpyu.h:24:8: error:
expected parameter declarator*
size_t strlcpy(char *, const char *, size_t);
       ^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from spo_alert_cef.c:67:*../strlcpyu.h:24:8: error:
expected ')'*
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
../strlcpyu.h:24:8: note: to match this '('
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                    ^
In file included from spo_alert_cef.c:67:
../strlcpyu.h:24:8: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
size_t strlcpy(char *, const char *, size_t);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from spo_alert_cef.c:67:*../strlcpyu.h:24:8: error:
conflicting types for '__builtin___strlcpy_chk'*
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
../strlcpyu.h:24:8: note: '__builtin___strlcpy_chk' is a builtin with type
      'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^*2 warnings and 6 errors generated.
make[3]: *** [spo_alert_cef.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2 *


*Please gimme a hint how to install barnyard and make it direct all the
information from Snort to Postgresql database!*

*Thank you!*

-- 
A.S.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Snort-users mailing list
Snort-users () 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://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: