Bluehost.com Web Hosting $6.95

RE: [Snort-users] compress/uncompress

This is a discussion on RE: [Snort-users] compress/uncompress within the Snort forums, part of the System Security and Security Related category; I found that I had to change the following in snort-dist/src/Makefile: LIBS = -lz -lpcre -lpcap -lm -lnsl -...


Go Back   Usenet Forums > System Security and Security Related > Snort

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-20-2004
Botwick, Jason
 
Posts: n/a
Default RE: [Snort-users] compress/uncompress

I found that I had to change the following in snort-dist/src/Makefile:

LIBS = -lz -lpcre -lpcap -lm -lnsl -lmysqlclient

to

LIBS = -lpcre -lpcap -lm -lnsl -lmysqlclient -lz

Read up on linkers if you want to understand why, but the order in which you
specify libraries is important.

-----Original Message-----
From: cc [mailto:cc@belfordhk.com]
Sent: Wednesday, October 20, 2004 5:17 AM
To: snort-users@lists.sourceforge.net
Subject: [Snort-users] compress/uncompress


Hi,

I have read the FAQ and it did say to add the 'lz' to the
LIBS statement in the Makefile. I even did it in the
LDFLAGS during the configure. I am compiling Snort 2.2.0
against MySQL 4.0.21.

I still get :
gcc -O0 -DDEBUG -g -L/usr/local/lib -lpcre -L/usr/local/mysql/lib
-lnet -o sno
rt codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o snort.o
snprint
f.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o
detect.o si
gnature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o
byte_extract.o sfth
reshold.o packet_time.o event_wrapper.o event_queue.o
output-plugins/libspo.a de
tection-plugins/libspd.a preprocessors/libspp.a
preprocessors/flow/portscan/libp
ortscan.a preprocessors/flow/libflow.a parser/libparser.a
preprocessors/HttpInsp
ect/libhttp_inspect.a sfutil/libsfutil.a -lnet -lz -lpcre -lpcap -lm
-lnsl -lmy
sqlclient
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_compress_a
lloc':
my_compress.o(.text+0xb4): undefined reference to `compress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress
':
my_compress.o(.text+0x12a): undefined reference to `uncompress'
collect2: ld returned 1 exit status
make[3]: *** [snort] Error 1
make[3]: Leaving directory `/root/curinsts/snort-2.2.0/src'


As you can see, I do have the 'lz' in the gcc line.

Is there something else that I'm missing?

Any help appreciated.



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjourna...uidepromo.tmpl
_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/...fo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.p...st=snort-users


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjourna...uidepromo.tmpl
_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/...fo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.p...st=snort-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0