Snort mailing list archives

Snort compilation


From: Daniel Walther <daniel.walther () telscom ch>
Date: Wed, 23 Jun 2004 17:48:27 +0200

Hi list

I've tried to compile snort with LDFLAGS=-static. I wanted to compile snort
with database support.
But unfortunately I won't work.
I've tired it with --with-postgresql.
If I try it without LDFLAGS=-static, then it works.

I receive the following errors when I call make:

- with postgresql
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< BEGIN >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> gcc -g -O2 -Wall -static -L/usr/lib -lpcre -L/usr/local/pgsql/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 wifi_statetable.o
output-plugins/libspo.a detection-plugins/libspd.a preprocessors/libspp.a
preprocessors/flow/portscan/libportscan.a preprocessors/flow/libflow.a
parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a
sfutil/libsfutil.a -lpcre -lpcap -lm -lnsl  -lpq
/usr/local/pgsql/lib/libpq.a(fe-auth.o)(.text+0x1e1): In function
`pg_password_sendauth':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[3]: *** [snort] Error 1
make[3]: Leaving directory `/home/daenu/wims/snort-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daenu/wims/snort-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/daenu/wims/snort-2.1.1'
make: *** [all] Error 2
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< END >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Is there any chance to compile it with this LDFLAGS and database support? I
need to compile it this way, because it will run on a mini Linux.

I tried it with snort-2.1.1 with the wireless patch.

I hope anyone can help me.

Thanks in advance for your help.

Regards
Daniel



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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: