[Snort-devel] [ snort-Bugs-571606 ] Makefile of Snort 1.9 with problems

noreply at ...12... noreply at ...12...
Fri Jun 21 18:23:02 EDT 2002


Bugs item #571606, was opened at 2002-06-20 08:53
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=571606&group_id=3357

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexandre Bensi (aledon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Makefile of Snort 1.9 with problems

Initial Comment:
Hi!

I am moderating some experiences:

It was installing snort 1.9 through CVS, and I found some difficulties.  
I compiled the config below with the options:  

 ./configure --prefix=/usr/local --exec-prefix=/usr/local
 --bindir=/usr/local/bin --sbindir=/usr/local/bin
 --libexecdir=/usr/local/libexec --datadir=/usr/local/share
 --sysconfdir=/usr/local/etc/snort --sharedstatedir=/var
 --localstatedir=/var --libdir=/usr/local/lib
 --includedir=/usr/local/include --infodir=/usr/local/info
 --mandir=/usr/local/man --enable-flexresp --with-mysql=no --with-odbc=no
 --with-postgresql=no  

And during the make, the system returned me the mistake:

 gcc  -g -O2 -Wall -DENABLE_RESPONSE -DLIBNET_BSDISH_OS
 -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN  -o
 snort  checksum.o 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 substr.o trie.o  signature.o
 output-plugins/libspo.a detection-plugins/libspd.a
 preprocessors/libspp.a -lpcap -lm  -lnet
 /usr/libexec/elf/ld: cannot find -lnet
 *** Error code 1
 
 Stop in /usr/src/snort/src.
 *** Error code 1
 
 Stop in /usr/src/snort/src.
 *** Error code 1
 
 Stop in /usr/src/snort.
 *** Error code 1
 
 Stop in /usr/src/snort.
  
It was when I noticed that in Makefile lacked the entrances of LDFLAGS  

[cronus] /usr/src/snort # vi src/Makefile

before:
DEFS = -DHAVE_CONFIG_H -I. -I $(srcdir) -I..
CPPFLAGS = -I /usr/local/include
LDFLAGS =
LIBS = -lpcap -lm  -lnet

Later:
DEFS = -DHAVE_CONFIG_H -I. -I $(srcdir) -I..
CPPFLAGS = -I /usr/local/include
LDFLAGS =  -L /usr/local/lib
LIBS = -lpcap -lm  -lnet

It substitutes accordingly below and it worked.

I am with the version 1.02 of LIBNET

 [cronus] /usr/src/snort # pkg_info |grep libnet
 libnet-1.0.2a       A C library for creating IP packets

[cronus] /usr/src/snort/etc # uname -a
FreeBSD cronus.dep.ufscar.br 4.5-STABLE FreeBSD 4.5-STABLE #2: Wed May 22 12:15:19 BRT 2002     
root at ...1433...:/usr/src/sys/compile/ALEDON  i386

--
Atenciosamente,
Alexandre Bensi {'aledon'}
System/Network Administrator
--
Icq Uin at WORK | HOME: 118731900 | 129462580
E-Mail: echo alexandre dep ufscar br | sed 's/ /@/;s/ /./g'
--
This mail send through Unix FreeBSD 4.5 STABLE - Amavis VScan


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=103357&aid=571606&group_id=3357




More information about the Snort-devel mailing list