Snort mailing list archives

Re: Can't Compile 1.8.4beta2


From: Phil Wood <cpw () lanl gov>
Date: Thu, 28 Feb 2002 08:32:08 -0700

I use debian, but build my own libpcap and find the following works for me.

sed -e 's#-I/usr/include/pcap#-I../ee/libpcap# < configure > configure.cpw

sh configure.cpw \
  --prefix=/usr \
  --with-libpcap-libraries=../ee/libpcap \
  --with-mysql=/usr/lib/mysql \
  --with-openssl

This will produce the following compile line:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I../ee/libpcap  -I/usr/local/ssl/include -DENABLE_SSL  -O3 -g -Wall -c snort.c

...

and load line:

gcc  -O3 -g -Wall -L../ee/libpcap -L/usr/local/ssl/lib -o -lpcap -lm -lnsl  -lssl -lcrypto

On Thu, Feb 28, 2002 at 09:49:56AM -0500, Scott Fringer wrote:
Hello,
  I've been running an older version of Snort for a while and decided to
get current, so I downloaded the source for 1.8.4beta2.
  I am building/running on a Debian Linux system, with MySQL (3.23.47)
support.
  ./configure runs fine (./configure  --with-openssl=/usr/local/ssl
--with-mysql=/usr/local/mysql), it's during the actual make process that I
encounter the following error:

/usr/local/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/lib/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'

  Any thoughts on what the root cause is?  Snort 1.8.1 compiles fine with
the same support files.  I have also found if I edit the Makefile and
change the following lines, 1.8.4beta2 will compile fine also.

Original:

 CPPFLAGS = -I/usr/local/include -DENABLE_MYSQL
-I/usr/local/ssl/include -DENABLE_SSL

Changes:

 CPPFLAGS = -I/usr/include/pcap -I/usr/local/mysql/include -DENABLE_MYSQL
-I/usr/local/ssl/include -DENABLE_SSL

Original:

 LDFLAGS =  -L/usr/local/lib -L/usr/local/ssl/lib

Chanegs:

 LDFLAGS = -L/usr/local/mysql/lib -L/usr/local/ssl/lib


Thanks,
 Scott

Scott Fringer                              Shands Healthcare @ U.F.
Network Systems Analyst                        Gainesville, FL


_______________________________________________
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

-- 
Phil Wood, cpw () lanl gov


_______________________________________________
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: