Snort mailing list archives

Re: Error while compile snort with mysql version 4.0.17


From: Dirk Geschke <Dirk () geschke-online de>
Date: 14 Jan 2004 22:48:07 +0100

Hi, Bclark,

Commands I used:
./configure --with-mysql=/usr/local/mysql
make

[...]

gcc  -g -O2 -Wall  -L/usr/local/lib -lpcre -L/usr/local/mysql/lib -o
snort  codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o
snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o
ubi_SplayTree.o util.o detect.o signature.o mempool.o sf_sdlist.o
fpcreate.o fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o
event_wrapper.o output-plugins/libspo.a detection-plugins/libspd.a
preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a
preprocessors/flow/int-snort/libintsnort.a preprocessors/flow/libflow.a
parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a
sfutil/libsfutil.a -lpcre -lpcap -lm -lnsl  -lmysqlclient
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o)(.text+0xb4): In
function `my_compress_alloc':
: undefined reference to `compress'

you are linking against the static library of libmysql. Add the
option "-lz" either to the Makefile manually, add it to the above
linker line or add it to the LDFLAGS before you invoke configure like:

LDFLAGS="-lz" ./configure ...

Best regards

Dirk



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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: