Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't emerge snort
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
costa1977
n00b
n00b


Joined: 16 Sep 2003
Posts: 25
Location: PA, US

PostPosted: Sat Nov 29, 2003 6:32 pm    Post subject: can't emerge snort Reply with quote

when I do
Code:
emerge snort
, the results were
Code:
checking for pcap_datalink in -lpcap... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no

   ERROR!  Libnet header not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: net-analyzer/snort-2.0.0 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! compile problem


Any thoughts? Thanks.
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sat Nov 29, 2003 7:00 pm    Post subject: Reply with quote

try installing this :
net-libs/libnet
Back to top
View user's profile Send private message
costa1977
n00b
n00b


Joined: 16 Sep 2003
Posts: 25
Location: PA, US

PostPosted: Sat Nov 29, 2003 7:31 pm    Post subject: Reply with quote

I believe gentoo changed the libnet 1.0.2 file name, and snort is not compatible with libnet 1.1 yet. How to get around this?
Back to top
View user's profile Send private message
Dr_Stein
Guru
Guru


Joined: 21 Mar 2003
Posts: 303
Location: Mountain View, CA

PostPosted: Mon Dec 01, 2003 12:02 am    Post subject: Same problem here.. Reply with quote

I installed libnet from portage..

checking for mysql... yes
checking for compress in -lz... yes
checking libnet.h usability... yes
checking libnet.h presence... yes
checking for libnet.h... yes
checking for libnet version 1.0.2a... no

ERROR! Snort with --enable-flexresp will *only* work with
libnet version 1.0.2a, go get it from
http://www.packetfactory.net/projects/libnet/


**********************************************
ERROR: unable to find libnet 1.0.2a (libnet.h)
checked in the following places
/usr/include
**********************************************

make: *** No targets specified and no makefile found. Stop.

!!! ERROR: net-analyzer/snort-2.0.0 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! compile problem

jezebel root # emerge -p libnet

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] net-libs/libnet-1.1.0-r3

jezebel root #

---
The URL spat out says this:
Deprecated Tree (unsupported)

Latest Version: 1.0.2a

The SecurityFocus article on libnet 1.0.x written by Mike Schiffman.

All of the libnet code may be found here.
--
So, the version in portage is the latest & greatest, and the version that Snort is looking for (1.0.2a) is deprecated & unsupported. Whoops.
Back to top
View user's profile Send private message
Dr_Stein
Guru
Guru


Joined: 21 Mar 2003
Posts: 303
Location: Mountain View, CA

PostPosted: Mon Dec 01, 2003 12:58 am    Post subject: Found a fix (I think) Reply with quote

https://forums.gentoo.org/viewtopic.php?t=105682&highlight=libnet details a fix that works - so far. At least snort compiled ok. :)
Back to top
View user's profile Send private message
jesterspet
Apprentice
Apprentice


Joined: 05 Feb 2003
Posts: 215
Location: Atlanta

PostPosted: Wed Dec 03, 2003 1:40 am    Post subject: Reply with quote

I got around my libnet problem by installing snort-2.0.2 with
Code:
ACCEPT_KEYWORDS='~x86' emerge -v snort

_________________
(X) Yes! I am a brain damaged lemur on crack, and would like to buy your software package for $499.95
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum