[Snort-devel] Snort compilation

Daniel Walther daniel.walther at ...2567...
Fri Jun 18 08:26:05 EDT 2004


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 and --with-mysql.
If I try it without LDFLAGS=-static, then it works.

I receive the following errors when I call make:
- with mysql

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< BEGIN >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
gcc  -g -O2 -Wall  -static -L/usr/lib -lpcre
-L/home/daenu/wims/mysql-standard-4.0.20-pc-linux-i686/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 -lz -lpcre -lpcap -lm -lnsl  -lmysqlclient
/home/daenu/wims/mysql-standard-4.0.20-pc-linux-i686/lib/libmysqlclient.a(my
_compress.o)(.text+0xb4): In function `my_compress_alloc':
: undefined reference to `compress'
/home/daenu/wims/mysql-standard-4.0.20-pc-linux-i686/lib/libmysqlclient.a(my
_compress.o)(.text+0x12a): In function `my_uncompress':
: undefined reference to `uncompress'
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 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

- 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







More information about the Snort-devel mailing list