Snort mailing list archives

Re: [Snort-users] Barnyard, /usr/bin/ld: cannot find –lmysqlclient


From: "Castle, Shane" <scastle () bouldercounty org>
Date: Tue, 11 Jan 2011 10:19:15 -0700

Bet you need to add "--with-mysql-libraries=/usr/lib64/mysql" to your configure settings.

-- 
Shane Castle
Data Security Mgr, Boulder County IT
CISSP GSEC GCIH


-----Original Message-----
From: Jerry McCaslin [mailto:jerrymccaslin () yahoo com] 
Sent: Tuesday, January 11, 2011 10:09
To: snort-users () lists sourceforge net
Subject: [Snort-users] Barnyard, /usr/bin/ld: cannot find –lmysqlclient

Snort-Users,

Please Help if you can, I’m using the below guide, but having a issue with the make for Barnyard

Nick Moore, December 2010

http://www.snort.org/assets/159/Snort_2.9.0.3_FC14_Base.pdf 
<http://www.snort.org/assets/159/Snort_2.9.0.3_FC14_Base.pdf> 

On, Red Hat 5.5

Any and all help will be much appreciated

Error

/usr/bin/ld: cannot find –lmysqlclient

============================================

./configure --with-mysql &&make

…

/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -fno-strict-aliasing -Wall  -L/usr/lib/mysql -o barnyard2 
barnyard2.o debug.o decode.o log.o log_text.o map.o mstring.o parser.o plugbase.o spooler.o strlcatu.o strlcpyu.o 
util.o output-plugins/libspo.a input-plugins/libspi.a sfutil/libsfutil.a -lmysqlclient -lz -lpcap -lnsl -lm -lm 

libtool: link: gcc -g -O2 -fno-strict-aliasing -Wall -o barnyard2 barnyard2.o debug.o decode.o log.o log_text.o map.o 
mstring.o parser.o plugbase.o spooler.o strlcatu.o strlcpyu.o util.o  -L/usr/lib/mysql output-plugins/libspo.a 
input-plugins/libspi.a sfutil/libsfutil.a -lmysqlclient -lz -lpcap -lnsl -lm

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient

/usr/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status

make[3]: *** [barnyard2] Error 1

make[3]: Leaving directory `/usr/local/barnyard2-1.9/src'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/usr/local/barnyard2-1.9/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/usr/local/barnyard2-1.9'

make: *** [all] Error 2

 

Very Restfully

Jerry McCaslin

jerrymccaslin () yahoo com <mailto:jerrymccaslin () yahoo com> 


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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: