Snort mailing list archives

Re: Error while compile snort with mysql version 4.0.17


From: <bclark () bwkip com>
Date: Wed, 14 Jan 2004 18:37:16 -0500 (EST)

Hi Dirk,

Thanks for the suggestion, but I think I am now further back then before. 
Here is what I did; maybe I misunderstood. Not sure what that flag was
suppose to do?

[root@laptop snort]# LDFLAGS="-lz" ./configure --with-mysql=/usr/src/mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
[root@laptop snort]#

Brian


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: