Snort mailing list archives
Re: Snort libmysql error
From: vincent () cojot name
Date: Wed, 15 Dec 2010 18:29:32 +0100 (CET)
Hi Azher, I see in the log below that it is trying to link with /usr/lib/mysql/libmysqlclient.* (32bit librairies) instead of /usr/lib64/mysql/libmysqlclient.* (64bit libraries). I fixed that issue in my 2.9.0.x rpms for RHEL5.5. Since centos5 and rhel5 are pretty similar, you might want to download the source rpms and give them a try. They're at: http://vscojot.free.fr/dist/snort/snort-2.9.0.2 I hope this helps, Vincent On Wed, 15 Dec 2010, Azher Mughal wrote:
Hi, I am compiling snort 2.9.0.2 on CentOS5.5 64bit, but its complaining about libmysql. Please see below. Any suggestions to correct this issue ? Thanks -Azher # rpm -qa | grep mysql mysql-5.0.77-4.el5_5.4 libdbi-dbd-mysql-0.8.1a-1.2.2 perl-DBD-mysql-4.014-1.el5.rf mysql-devel-5.0.77-4.el5_5.4 php-mysql-5.1.6-27.el5_5.3 mysql-server-5.0.77-4.el5_5.4 mysql-devel-5.0.77-4.el5_5.4 mysql-5.0.77-4.el5_5.4 # ls -l /usr/lib64/mysql/libmysql* -rw-r--r-- 1 root root 1837166 Nov 3 16:54 /usr/lib64/mysql/libmysqlclient.a -rw-r--r-- 1 root root 1855206 Nov 3 16:54 /usr/lib64/mysql/libmysqlclient_r.a lrwxrwxrwx 1 root root 26 Dec 1 07:25 /usr/lib64/mysql/libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 26 Dec 1 07:22 /usr/lib64/mysql/libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 -rwxr-xr-x 1 root root 1520696 Nov 3 16:54 /usr/lib64/mysql/libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 24 Dec 1 07:25 /usr/lib64/mysql/libmysqlclient.so -> libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root 24 Dec 1 07:22 /usr/lib64/mysql/libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 -rwxr-xr-x 1 root root 1510224 Nov 3 16:54 /usr/lib64/mysql/libmysqlclient.so.15.0.0 # ls -l /usr/lib/mysql/libmysql* -rw-r--r-- 1 root root 1640064 Nov 3 16:54 /usr/lib/mysql/libmysqlclient.a -rw-r--r-- 1 root root 1652652 Nov 3 16:54 /usr/lib/mysql/libmysqlclient_r.a lrwxrwxrwx 1 root root 26 Dec 1 07:25 /usr/lib/mysql/libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 26 Dec 1 07:24 /usr/lib/mysql/libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 -rwxr-xr-x 1 root root 1460748 Nov 3 16:54 /usr/lib/mysql/libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 24 Dec 1 07:25 /usr/lib/mysql/libmysqlclient.so -> libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root 24 Dec 1 07:24 /usr/lib/mysql/libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 -rwxr-xr-x 1 root root 1451932 Nov 3 16:54 /usr/lib/mysql/libmysqlclient.so.15.0.0 #./configure --enable-dynamicplugin --with-mysql /bin/sh ../../../libtool --tag=CC --mode=link gcc -g -O2 -fvisibility=hidden -fno-strict-aliasing -Wall -shared -export-dynamic -module -lpcre -L/usr/lib64 -ldnet -L/usr/lib/mysql -o libsf_engine.la -rpath /usr/local/lib/snort_dynamicengine bmh.lo sf_snort_detection_engine.lo sf_snort_plugin_api.lo sf_snort_plugin_byte.lo sf_snort_plugin_content.lo sf_snort_plugin_hdropts.lo sf_snort_plugin_loop.lo sf_snort_plugin_pcre.lo sf_snort_plugin_rc4.lo sfhashfcn.lo sfghash.lo sfprimetable.lo sf_ip.lo -lmysqlclient -lz -ldaq_static -lpcre -lpcap -lnsl -lm -lm -ldl -L/usr/local/lib -ldaq_static_modules -lpcap -lsfbpf libtool: link: gcc -shared .libs/bmh.o .libs/sf_snort_detection_engine.o .libs/sf_snort_plugin_api.o .libs/sf_snort_plugin_byte.o .libs/sf_snort_plugin_content.o .libs/sf_snort_plugin_hdropts.o .libs/sf_snort_plugin_loop.o .libs/sf_snort_plugin_pcre.o .libs/sf_snort_plugin_rc4.o .libs/sfhashfcn.o .libs/sfghash.o .libs/sfprimetable.o .libs/sf_ip.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/lib64 -ldnet -L/usr/lib/mysql -lmysqlclient -lz /usr/local/lib/libdaq_static.a -lpcre -lnsl -lm -ldl -L/usr/local/lib /usr/local/lib/libdaq_static_modules.a -lpcap /usr/local/lib/libsfbpf.so -Wl,-soname -Wl,libsf_engine.so.0 -o .libs/libsf_engine.so.0.0.0 /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[6]: *** [libsf_engine.la] Error 1 make[6]: Leaving directory `/root/snort-2.9.0.2/src/dynamic-plugins/sf_engine' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/root/snort-2.9.0.2/src/dynamic-plugins/sf_engine' make[4]: *** [all] Error 2 make[4]: Leaving directory `/root/snort-2.9.0.2/src/dynamic-plugins/sf_engine' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/snort-2.9.0.2/src/dynamic-plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/snort-2.9.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/snort-2.9.0.2' make: *** [all] Error 2
-- ,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-, Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~ Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,. Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~' http://step.polymtl.ca/~coyote _.,-*~'`^`'~*-,._ coyote () NOSPAM4cojot name They cannot scare me with their empty spaces Between stars - on stars where no human race is I have it in me so much nearer home To scare myself with my own desert places. - Robert Frost ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ 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:
- Snort libmysql error Azher Mughal (Dec 15)
- Re: Snort libmysql error vincent (Dec 15)
- Re: Snort libmysql error Azher Mughal (Dec 15)
- Re: Snort libmysql error vincent (Dec 15)
- Re: Snort libmysql error vincent (Dec 15)