[Snort-users] Compile snort with inline option (libnet 1.0.x is obsolete)

Juergen Leising juergen.leising at ...348...
Sun Sep 16 08:54:13 EDT 2007

On Sat, Sep 15, 2007 at 09:47:30PM -0700, carlopmart wrote:
>  I am trying to compile snort 2.7 with inline option without luck 
>  on a CentOS 5 server. Problem is libnet 1.0.x library which is an 
> obsolete library and out of support like orginal website says: 
> http://www.packetfactory.net/libnet/.
>  Is not possible to compile inline option using libnet 1.1.x???
> Thanks to all.


1.0 and 1.1 are indeed incompatible. But you can install both
library versions parallel without interferring with other
programs that depend on version 1.1:

tar -xvzf libnet-1.0.2a.tar.gz
cd Libnet-1.0.2a/
mkdir /usr/local/Libnet-1.0.2a

./configure --prefix=/usr/local/Libnet-1.0.2a
make -s
make test
make -w install

Do NOT add /usr/local/Libnet-1.0.2a to any ld.so.conf file.
Compile snort_inline as follows:

./configure --with-libnet-includes=/usr/local/Libnet-1.0.2a/include --with-libnet-libraries=/usr/local/Libnet-1.0.2a/lib --enable-flexresp --enable-inline

or maybe your system requires the following:

CPPFLAGS="-DLIBNET_LIL_ENDIAN" ./configure --with-libnet-includes=/usr/local/Libnet-1.0.2a/include --with-libnet-libraries=/usr/local/Libnet-1.0.2a/lib--enable-flexresp --enable-inline

and so on.

Bye, bye,


More information about the Snort-users mailing list