Snort mailing list archives

Typical barnyard compile problems


From: "Mike Cohen" <mike () antropyinc com>
Date: Tue, 4 May 2004 14:29:04 -0700

Hi All, 

Having problems installing the barnyard 0.2.0 on my Suse 9 server.

I have installed mysql and the accompanying packages using YAST (since Im a
rookie)

I get the following error when I try to run configure on barnyard

**********************************************
  ERROR: unable to find mysqlclient library
  checked in the following places
        /usr/lib/mysql
**********************************************

Here are some of the specifics of my box. It's a standard suse 9 install

# uname -a
Linux XXXXXXXX 2.4.21-202-smp4G #1 SMP Fri Apr 2 21:32:50 UTC 2004 i686 i686
i386 GNU/Linux

#: /usr/src/packages/SOURCES/barnyard-0.2.0 # rpm -q mysql
mysql-4.0.15-13

#:/usr/lib/mysql # ls
.           libmyisam.a        libmysqlclient.so.12      libmysys.a
..          libmyisammrg.a     libmysqlclient.so.12.0.0  libnisam.a
libdbug.a   libmysqlclient.a   libmysqlclient_r.a        libvio.a
libheap.a   libmysqlclient.la  libmysqlclient_r.la       mysqld.sym
libmerge.a  libmysqlclient.so  libmystrings.a





#:/usr/src/packages/SOURCES/barnyard-0.2.0 # ./configure --enable-mysql
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking host system type... i686-pc-linux-gnu
checking whether byte ordering is bigendian... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
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 for sys/sockio.h... (cached) no
checking for paths.h... (cached) yes
checking for socket in -lsocket... (cached) no
checking whether printf must be declared... (cached) no
checking whether fprintf must be declared... (cached) no
checking whether syslog must be declared... (cached) no
checking whether puts must be declared... (cached) no
checking whether fputs must be declared... (cached) no
checking whether fputc must be declared... (cached) no
checking whether fopen must be declared... (cached) no
checking whether fclose must be declared... (cached) no
checking whether fwrite must be declared... (cached) no
checking whether fflush must be declared... (cached) no
checking whether getopt must be declared... (cached) no
checking whether bzero must be declared... (cached) no
checking whether bcopy must be declared... (cached) no
checking whether memset must be declared... (cached) no
checking whether strtol must be declared... (cached) no
checking whether strcasecmp must be declared... (cached) no
checking whether strncasecmp must be declared... (cached) no
checking whether strerror must be declared... (cached) no
checking whether perror must be declared... (cached) no
checking whether socket must be declared... (cached) no
checking whether sendto must be declared... (cached) no
checking whether vsnprintf must be declared... (cached) no
checking whether snprintf must be declared... (cached) no
checking whether strtoul must be declared... (cached) no
checking for snprintf... (cached) yes
checking for strlcpy... (cached) no
checking for strlcat... (cached) no
checking for strerror... (cached) yes
checking for /usr/include/mysql/mysql.h... yes
checking for mysql_real_connect in -lmysqlclient... no


**********************************************
  ERROR: unable to find mysqlclient library
  checked in the following places
        /usr/lib/mysql
**********************************************




Ive looked through the mailing list and I find tons of people with this
question, no one using barnyard 2, and most deal with editing the
configure.in which in this case has mysql_real_connect on line 285. I found
One other posting that said to change this like to "my" instead of "mysql.."
I tried this followed by 
Aclocal
Autoheader
Autoconf
Automake 

And Im still getting this problem.


Any suggestions?  Are there any good alternatives to barnyard?



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: