[Snort-users] Snort with postgresql support

Segree, Gareth Gareth.Segree at ...6763...
Fri Aug 30 09:39:04 EDT 2002

I did the following in configuring snort for postgresql support.

[postgresql 7.2.2] # ./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var/lib/pgsql --mandir=/usr/share/man --disable-shared
# gmake
# gmake install

I am able to query the postgresql db.

Compiling snort
# tar xvzf snort-1.8.7.tar.gz
# cd snort-1.8.7
# CFLAGS="-O3 -static -march=i586 -mcpu=i586 -funroll-loops
-fomit-frame-pointer" ./configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --with-postgresql=/usr/bin
# make

I am getting the following error during the make
/usr/lib/libpq.a(fe-auth.o): In function `pg_password_sendauth':
fe-auth.o(.text+0xef): undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [snort] Error 1
make[2]: Leaving directory `/var/tmp/snort-1.8.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/snort-1.8.7'
make: *** [all-recursive-am] Error 2

What could be the problem?

More information about the Snort-users mailing list