Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27384 - snort fails to build with libnet-1.1
Summary: snort fails to build with libnet-1.1
Status: RESOLVED DUPLICATE of bug 27218
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-26 16:43 UTC by Gunnlaugur Thor Briem
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnlaugur Thor Briem 2003-08-26 16:43:47 UTC
Emerging snort, with ACCEPT_KEYWORDS either x86 or ~x86, results in a build
failure in the configure step, apparently because snort's configure expects
a particular version of libnet in each case, and the most-recent version of
libnet in portage (either x86 or ~x86) is too new for them.


Reproducible: Always
Steps to Reproduce:
1. emerge libnet (with or without ACCEPT_KEYWORDS=~x86)
2. ACCEPT_KEYWORDS=x86  emerge snort
3. ACCEPT_KEYWORDS=~x86 emerge snort

Actual Results:  
In the x86 case:

   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 70, Exitcode 2
   !!! compile problem

In the ~x86 case:

   ./configure: line 1: libnet-1.0-config: command not found
   ./configure: line 1: libnet-1.0-config: command not found
   ./configure: line 1: libnet-1.0-config: command not found
   ./configure: line 1: libnet-1.0-config: command not found
   checking libnet-1.0.h usability... no
   checking libnet-1.0.h presence... no
   checking for libnet-1.0.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.1-r1 failed.
   !!! Function src_compile, Line 67, Exitcode 2
   !!! compile problem


Expected Results:  
Should have just built and installed.

emerge info output:

Portage 2.0.49-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r4)
=================================================================
System uname: 2.4.20-gentoo-r4 i686 AMD Athlon(tm) XP 2000+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.linux.is/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib directfb gdbm berkdb slang readline arts tetex aalib nas svga ggi tcltk
java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis
gnome gtk qt kde motif opengl mozilla apache2"
Comment 1 SpanKY gentoo-dev 2003-08-26 18:47:18 UTC
what version of libnet ?  (`qpkg -I -v libnet`)
Comment 2 Gunnlaugur Thor Briem 2003-08-26 19:00:13 UTC
vivace root # qpkg -I -v libnet
net-libs/libnet-1.1.0-r3 *
net-libs/libnet-1.0.2a-r2 *   [hmm, interesting]
dev-perl/libnet-1.16 *

[Changed summary; tcptraceroute bug is unrelated and is already listed: Bug 25351]
Comment 3 SpanKY gentoo-dev 2003-08-26 19:38:51 UTC
the solution to your problem is `emerge =libnet-1.0* -u`

then try to emerge snort again

*** This bug has been marked as a duplicate of 27218 ***