[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-users
Subject:    Re: [Snort-users] Barnyard2 error: 'mysql' support is not compiled into this build of snort
From:       beenph <beenph () gmail ! com>
Date:       2013-08-27 2:28:31
Message-ID: CAFU9AX-w2uAEB54+z0EEPNhA_TCiVwUTx6Jf1nDFFNT-TNh7TQ () mail ! gmail ! com
[Download RAW message or body]

I think that james did a build before enabling mysql support and since
he did not do make clean after re-running configure, when he run make
nothing is happening.

Thus James do make clean; make

and your binary should be built with mysql support.

-elz


On Mon, Aug 26, 2013 at 5:59 PM, James Lieu <j0liu001@yahoo.com> wrote:
> [root@CentOS64 barnyard2]# barnyard2 --version
> 
> ______   -*> Barnyard2 <*-
> / ,,_  \  Version 2.1.13 (Build 327)
> > o"  )~|  By Ian Firns (SecurixLive): http://www.securixlive.com/
> + '''' +  (C) Copyright 2008-2013 Ian Firns <firnsy@securixlive.com>
> 
> 
> ________________________________
> From: "Jefferson, Shawn" <Shawn.Jefferson@bcferries.com>
> To: James Lieu <j0liu001@gmail.com>; Joel Esler <jesler@sourcefire.com>;
> "barnyard2-users@googlegroups.com" <barnyard2-users@googlegroups.com>;
> snort-users <snort-users@lists.sourceforge.net>
> Sent: Monday, August 26, 2013 5:50 PM
> Subject: RE: [Snort-users] Barnyard2 error: 'mysql' support is not compiled
> into this build of snort
> 
> Does barnyard2 give you the same message about mysql support being missing
> after the make/make install?
> 
> What does “which barnyard2” tell you?  Are you running the version of
> barnyard2 you think you are?
> 
> From: James Lieu [mailto:j0liu001@yahoo.com]
> Sent: Monday, August 26, 2013 2:31 PM
> To: Joel Esler; barnyard2-users@googlegroups.com; snort-users
> Subject: Re: [Snort-users] Barnyard2 error: 'mysql' support is not compiled
> into this build of snort
> 
> Hi, Joel:
> 
> Can you please provide any hint why Barnyard2 hate me ...:=(
> I am dead in the water ...
> 
> 
> Sincerely
> 
> James
> 
> 
> ________________________________
> From: James Lieu <j0liu001@yahoo.com>
> To: Joel Esler <jesler@sourcefire.com>; "barnyard2-users@googlegroups.com"
> <barnyard2-users@googlegroups.com>; snort-users
> <snort-users@lists.sourceforge.net>
> Sent: Monday, August 26, 2013 2:54 PM
> Subject: Re: [Snort-users] Barnyard2 error: 'mysql' support is not compiled
> into this build of snort
> 
> [root@CentOS64 barnyard2]# make
> make  all-recursive
> make[1]: Entering directory `/usr/local/src/barnyard2'
> Making all in src
> make[2]: Entering directory `/usr/local/src/barnyard2/src'
> Making all in sfutil
> make[3]: Entering directory `/usr/local/src/barnyard2/src/sfutil'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/sfutil'
> Making all in output-plugins
> make[3]: Entering directory `/usr/local/src/barnyard2/src/output-plugins'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/output-plugins'
> Making all in input-plugins
> make[3]: Entering directory `/usr/local/src/barnyard2/src/input-plugins'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/input-plugins'
> make[3]: Entering directory `/usr/local/src/barnyard2/src'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src'
> make[2]: Leaving directory `/usr/local/src/barnyard2/src'
> Making all in etc
> make[2]: Entering directory `/usr/local/src/barnyard2/etc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/etc'
> Making all in doc
> make[2]: Entering directory `/usr/local/src/barnyard2/doc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/doc'
> Making all in rpm
> make[2]: Entering directory `/usr/local/src/barnyard2/rpm'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/rpm'
> Making all in schemas
> make[2]: Entering directory `/usr/local/src/barnyard2/schemas'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/schemas'
> Making all in m4
> make[2]: Entering directory `/usr/local/src/barnyard2/m4'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/m4'
> make[2]: Entering directory `/usr/local/src/barnyard2'
> make[2]: Leaving directory `/usr/local/src/barnyard2'
> make[1]: Leaving directory `/usr/local/src/barnyard2'
> 
> [root@CentOS64 barnyard2]# make install
> Making install in src
> make[1]: Entering directory `/usr/local/src/barnyard2/src'
> Making install in sfutil
> make[2]: Entering directory `/usr/local/src/barnyard2/src/sfutil'
> make[3]: Entering directory `/usr/local/src/barnyard2/src/sfutil'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/sfutil'
> make[2]: Leaving directory `/usr/local/src/barnyard2/src/sfutil'
> Making install in output-plugins
> make[2]: Entering directory `/usr/local/src/barnyard2/src/output-plugins'
> make[3]: Entering directory `/usr/local/src/barnyard2/src/output-plugins'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/output-plugins'
> make[2]: Leaving directory `/usr/local/src/barnyard2/src/output-plugins'
> Making install in input-plugins
> make[2]: Entering directory `/usr/local/src/barnyard2/src/input-plugins'
> make[3]: Entering directory `/usr/local/src/barnyard2/src/input-plugins'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src/input-plugins'
> make[2]: Leaving directory `/usr/local/src/barnyard2/src/input-plugins'
> make[2]: Entering directory `/usr/local/src/barnyard2/src'
> make[3]: Entering directory `/usr/local/src/barnyard2/src'
> test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
> /bin/sh ../libtool   --mode=install /usr/bin/install -c barnyard2
> '/usr/local/bin'
> libtool: install: /usr/bin/install -c barnyard2 /usr/local/bin/barnyard2
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/usr/local/src/barnyard2/src'
> make[2]: Leaving directory `/usr/local/src/barnyard2/src'
> make[1]: Leaving directory `/usr/local/src/barnyard2/src'
> Making install in etc
> make[1]: Entering directory `/usr/local/src/barnyard2/etc'
> make[2]: Entering directory `/usr/local/src/barnyard2/etc'
> make[2]: Nothing to be done for `install-exec-am'.
> test -e /usr/local/etc || \
> /bin/sh /usr/local/src/barnyard2/install-sh -d
> /usr/local/etc
> test -e /usr/local/etc/barnyard2.conf || \
> /usr/bin/install -c -m 644 -m 600 ../etc/barnyard2.conf \
> /usr/local/etc/barnyard2.conf
> make[2]: Leaving directory `/usr/local/src/barnyard2/etc'
> make[1]: Leaving directory `/usr/local/src/barnyard2/etc'
> Making install in doc
> make[1]: Entering directory `/usr/local/src/barnyard2/doc'
> make[2]: Entering directory `/usr/local/src/barnyard2/doc'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/doc'
> make[1]: Leaving directory `/usr/local/src/barnyard2/doc'
> Making install in rpm
> make[1]: Entering directory `/usr/local/src/barnyard2/rpm'
> make[2]: Entering directory `/usr/local/src/barnyard2/rpm'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/rpm'
> make[1]: Leaving directory `/usr/local/src/barnyard2/rpm'
> Making install in schemas
> make[1]: Entering directory `/usr/local/src/barnyard2/schemas'
> make[2]: Entering directory `/usr/local/src/barnyard2/schemas'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/schemas'
> make[1]: Leaving directory `/usr/local/src/barnyard2/schemas'
> Making install in m4
> make[1]: Entering directory `/usr/local/src/barnyard2/m4'
> make[2]: Entering directory `/usr/local/src/barnyard2/m4'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/usr/local/src/barnyard2/m4'
> make[1]: Leaving directory `/usr/local/src/barnyard2/m4'
> make[1]: Entering directory `/usr/local/src/barnyard2'
> make[2]: Entering directory `/usr/local/src/barnyard2'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/usr/local/src/barnyard2'
> make[1]: Leaving directory `/usr/local/src/barnyard2'
> [root@CentOS64 barnyard2]#
> 
> 
> ________________________________
> From: Joel Esler <jesler@sourcefire.com>
> To: James Lieu <j0liu001@gmail.com>
> Cc: beenph <beenph@gmail.com>; barnyard2-users@googlegroups.com; snort-users
> <snort-users@lists.sourceforge.net>
> Sent: Monday, August 26, 2013 2:49 PM
> Subject: Re: [Snort-users] Barnyard2 error: 'mysql' support is not compiled
> into this build of snort
> 
> okay, and what happens after you type “make” after that?
> 
> 
> On Aug 26, 2013, at 1:40 PM, James Lieu <j0liu001@yahoo.com> wrote:
> 
> 
> [root@CentOS64 barnyard2]# ./configure --with-mysql
> --with-mysql-libraries=/usr/lib64/mysql/ --with-mysql-includes=/usr/include/
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking dependency style of gcc... none
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for fgrep... /bin/grep -F
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 1966080
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for gcc option to accept ISO C99... -std=gnu99
> checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
> -std=gnu99
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking dependency style of gcc... (cached) none
> checking whether byte ordering is bigendian... no
> checking for bison... bison
> checking for flex... flex
> checking for strings.h... (cached) yes
> checking for string.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking sys/sockio.h usability... no
> checking sys/sockio.h presence... no
> checking for sys/sockio.h... no
> checking paths.h usability... yes
> checking paths.h presence... yes
> checking for paths.h... yes
> checking for inttypes.h... (cached) yes
> checking wchar.h usability... yes
> checking wchar.h presence... yes
> checking for wchar.h... yes
> checking math.h usability... yes
> checking math.h presence... yes
> checking for math.h... yes
> checking for floor in -lm... yes
> checking for ceil in -lm... yes
> checking for inet_ntoa in -lnsl... yes
> checking for socket in -lsocket... no
> checking whether printf must be declared... no
> checking whether fprintf must be declared... no
> checking whether syslog must be declared... no
> checking whether puts must be declared... no
> checking whether fputs must be declared... no
> checking whether fputc must be declared... no
> checking whether fopen must be declared... no
> checking whether fclose must be declared... no
> checking whether fwrite must be declared... no
> checking whether fflush must be declared... no
> checking whether getopt must be declared... no
> checking whether bzero must be declared... no
> checking whether bcopy must be declared... no
> checking whether memset must be declared... no
> checking whether strtol must be declared... no
> checking whether strcasecmp must be declared... no
> checking whether strncasecmp must be declared... no
> checking whether strerror must be declared... no
> checking whether perror must be declared... no
> checking whether socket must be declared... no
> checking whether sendto must be declared... no
> checking whether vsnprintf must be declared... no
> checking whether snprintf must be declared... no
> checking whether strtoul must be declared... no
> checking for snprintf... yes
> checking for strlcpy... no
> checking for strlcat... no
> checking for strerror... yes
> checking for vswprintf... yes
> checking for wprintf... yes
> checking size of char... 1
> checking size of short... 2
> checking size of int... 4
> checking size of long int... 8
> checking size of long long int... 8
> checking size of unsigned int... 4
> checking size of unsigned long int... 8
> checking size of unsigned long long int... 8
> checking for u_int8_t... yes
> checking for u_int16_t... yes
> checking for u_int32_t... yes
> checking for u_int64_t... yes
> checking for uint8_t... yes
> checking for uint16_t... yes
> checking for uint32_t... yes
> checking for uint64_t... yes
> checking for int8_t... yes
> checking for int16_t... yes
> checking for int32_t... yes
> checking for int64_t... yes
> checking for INADDR_NONE... yes
> checking for __FUNCTION__... yes
> checking pcap.h usability... yes
> checking pcap.h presence... yes
> checking for pcap.h... yes
> checking for pcap_datalink in -lpcap... yes
> checking for sparc... no
> checking for mysql... yes
> checking for compress in -lz... yes
> checking for mysql default client reconnect... no
> checking for mysql reconnect option... yes
> checking for mysql setting of reconnect option before connect bug... no
> checking for linuxthreads... no
> checking for a BSD-compatible install... /usr/bin/install -c
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating src/sfutil/Makefile
> config.status: creating src/input-plugins/Makefile
> config.status: creating src/output-plugins/Makefile
> config.status: creating etc/Makefile
> config.status: creating doc/Makefile
> config.status: creating rpm/Makefile
> config.status: creating schemas/Makefile
> config.status: creating m4/Makefile
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> config.status: executing libtool commands
> [root@CentOS64 barnyard2]#
> 
> 
> ________________________________
> From: beenph <beenph@gmail.com>
> To: James Lieu <j0liu001@gmail.com>; "barnyard2-users@googlegroups.com"
> <barnyard2-users@googlegroups.com>
> Sent: Monday, August 26, 2013 1:16 PM
> Subject: Re: [Snort-users] Barnyard2 error: 'mysql' support is not compiled
> into this build of snort
> 
> On Mon, Aug 26, 2013 at 12:08 PM, James Lieu <j0liu001@yahoo.com> wrote:
> > Joel:
> > 
> > Desperately need your help, has been struggling for two-weeks !!
> > 
> > I have been trying to get Barnyard2 to read Snort's output, so the mysql
> > data can been used by Snorby/BASE etc.
> > But Barnyard2 is not cooperating..
> > 
> > The new version Snort removed ./configure --enable-mysql option
> > (http://blog.snort.org/2012/07/database-output-is-dead-rip.html)
> > what should I do ?  what/where am  I doing wrong?
> > 
> > 
> > My environment:
> > Snort Version 2.9.5.3 GRE (Build 132)
> > Barnyard2 Version 2.1.13 (Build 327)
> > OS: CentOS 6.4, 64-bits
> > 
> > 
> > Snort compiled as:
> > ./configure --enable-sourcefire --enable-gre
> > (I am receiving ERSPAN data directly from CISCO 62xx)
> > 
> > Barnyard2 compiled as:
> > ./configure --with-mysql --with-mysql-libraries=/usr/lib64/mysql/
> > --with-mysql-includes=/usr/include/
> > 
> 
> Whats is the output of configure when you run:
> 
> ./configure --with-mysql --with-mysql-libraries=/usr/lib64/mysql/
> --with-mysql-includes=/usr/include/ ?
> 
> 
> -elz
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
>  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!
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> 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!

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
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!


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic