Snort mailing list archives
Re: Barnyard, /usr/bin/ld: cannot find ???lmysqlclient
From: "Gregory W. MacPherson" <greg () netpublishing com>
Date: Tue, 11 Jan 2011 09:46:43 -0800
This error - like many compile time errors - is misleading - the linker found the library, it just doesn't like it:
/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
This says that your system looked in the LIBPATH and in the directory where your mysql libraries (presumably) live (/usr/lib/mysql):
-L/usr/lib/mysql
and every mysqlclient library instance that it found is not compatible with what the build wants. The linker is looking for a reference, and you probably need a newer version containing an unresolved reference that your existing libraries do not contain. Likely, your mysql is backlevel and needs to be upgraded before barnyard will compile and link cleanly. You could just build without mysql, upgrade mysql, and then rebuild barnyard with mysql support, but that's more work. G On or about 2011.01.11 09:09:03 +0000, Jerry McCaslin (jerrymccaslin () yahoo com) said:
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 2010On, 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 McCaslinjerrymccaslin@yahoo.comhttp://www.snort.org/assets/159/Snort_2.9.0.3_FC14_Base.pdf
------------------------------------------------------------------------------ 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
-- Gregory W. MacPherson Global Network Exploitation Specialist, CISSP, Security+, ITIL http://www.netpublishing.com/greg/ Government is like fire - a handy servant, but a dangerous master. - George Washington ------------------------------------------------------------------------------ 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:
- Barnyard, /usr/bin/ld: cannot find –lmysqlclient Jerry McCaslin (Jan 11)
- Re: [Snort-users] Barnyard, /usr/bin/ld: cannot find –lmysqlclient Castle, Shane (Jan 11)
- Re: Barnyard, /usr/bin/ld: cannot find ???lmysqlclient Gregory W. MacPherson (Jan 11)