Snort mailing list archives

Re: Barnyard 0.1.0 and the "unable to find mysqlclient library" issue


From: Jeff Nathan <jeff () snort org>
Date: Wed, 11 Feb 2004 14:30:26 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

HI guys.

I've posted this before but it got lost in the noise (I changed the subject of the original message).

Here's how to fix your problem with mysql.

(this refers to 0.1.0 only!!)

Edit the configure.in file.

On line 285 you will see:

AC_CHECK_LIB(mysqlclient, mysql_connect, FOUND=yes, FOUND=no)

change it so it reads:

AC_CHECK_LIB(mysqlclient, mysql_real_connect, FOUND=yes, FOUND=no)

Then, save configure.in

Once you have made this change you will need to re-generate the configure script using tools that are part of GNU autoconf and GNU automake. Run the
following commands in the order they are shown:

# aclocal
# autoheader
# automake
# autoconf

Once you have done this, try running configure again using - --enable-mysql.

- -Jeff

On Jan 19, 2004, at 7:12 PM, John Sage wrote:

Dirk:

On Mon, Jan 19, 2004 at 11:16:50PM +0100, Dirk Geschke wrote:
Subject: Re: [Snort-users] Barnyard 0.1.0 and the "unable to find
        mysqlclient library" issue
From: Dirk Geschke <Dirk () geschke-online de>
To: John Sage <jsage () finchhaven com>
Cc: John Whitson <john () technologicus net>, snort-users () lists sourceforge net
Date: Mon, 19 Jan 2004 23:16:50 +0100

Hi John,

I've been screwing aroung with this issue for about three hours now,
and I'm just about ready to cd /usr/local/barnyard-0.1.0. and rm -rf *
the whole f*cking thing.

specs:

snort 2.1.0 build 9
barnyard 0.1.0
mysql Ver 11.18 Distrib 3.23.58
uname -a Linux 2.4.20-24.9

where is you libmysql installed and what kind of library
do you have?

Here's what's going on, snipped.

Any variation on:

[root@greatwall barnyard-0.1.0]# ./configure --enable-mysql \
 --with-mysql-includes=/usr/local/mysql-3.23.58/include \
 --with-mysql-libraries=/usr/local/mysql-3.23.58/libmysql

or

 --with-mysql-libraries=/usr/lib/mysql

fails, thus:

/* snip */

checking for strerror... yes
checking /usr/local/mysql-3.23.58/include/mysql.h usability... yes
checking /usr/local/mysql-3.23.58/include/mysql.h presence... yes
checking for /usr/local/mysql-3.23.58/include/mysql.h... yes
checking for mysql_connect in -lmysqlclient... no

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

/* snip */


[root@greatwall /usr/lib/mysql]# ls
libmysqlclient_r.so.10      libmysqlclient.so.10
libmysqlclient_r.so.10.0.0  libmysqlclient.so.10.0.0


[root@greatwall /usr/lib/mysql]# less /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.1/lib
/usr/lib/mysql
/usr/local/mysql-3.23.58/libmysql




It's interesting that google comes up with many variants on this
question, but no apparent answers...



- John
--
"Mad cow? You'd be mad too, if someone was trying to eat you."


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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


- --
http://cerberus.sourcefire.com/~jeff       (gpg/pgp key id 6923D3FD)
"Great spirits have always encountered violent opposition from
mediocre minds."   - Albert Einstein

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAKoLVEqr8+Gkj0/0RApvaAKCJz9G5JtycOptb7VwgQZa2kxgAAACaAnzE
75kiVsFy0MyotuwxnyjIRR0=
=YMdg
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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: