Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Thu Feb 23, 2012 7:10 am


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Bookmark this article:

Author Message
debuser
Post  Post subject: "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"  |  Posted: Fri Sep 24, 2010 11:08 am

Joined: Thu Aug 06, 2009 9:48 am
Posts: 90

Offline
Save on Delicious
It can happen that nemesis installation to fail because the configure script cannot find libnet. THis is not nemesis's fault, it's the admin's fault (mine and yours :D ).
Nemesis configure script error:
Quote:
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... no

ERROR! Libnet library 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



The nemesis project website instructs that nemesis requires libnet-1.0.2a, not first libnet source that falls in our hands (the official website was down).

The correct libnet contains a folder named "Libnet-1.0.2a" and not "libnet".

Go and download the correct libnet source file from http://code.google.com/p/ips-builder/downloads/detail?name=libnet-1.0.2a.tar.gz&can=2&q= and follow my post on how to install libnet library and nemesis packet crafting tool:
http://forum.ivorde.ro/centos-install-nemesis-packet-crafting-tool-libnet-t134.html

This solved the "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found" for me and allowed me to continue installing nemesis tool.


Top
admin
Post  Post subject: Re: "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"  |  Posted: Tue Dec 06, 2011 5:32 pm
Site Admin

Joined: Mon Aug 03, 2009 3:43 pm
Posts: 25

Offline
Since Nemesis development stopped a long time ago, it doesn't compile by default on x86_64 architectures. Following error will appear.
Code:
nemesis-1.4]# make
make  all-recursive
make[1]: Entering directory `/root/nemesis/nemesis-1.4'
Making all in src
make[2]: Entering directory `/root/nemesis/nemesis-1.4/src'
gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-arp.c' || echo './'`nemesis-arp.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-dns.c' || echo './'`nemesis-dns.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-ethernet.c' || echo './'`nemesis-ethernet.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-fileio.c' || echo './'`nemesis-fileio.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-functions.c' || echo './'`nemesis-functions.c
nemesis-functions.c: In function 'nemesis_check_link':
nemesis-functions.c:342: error: dereferencing pointer to incomplete type
make[2]: *** [nemesis-functions.o] Error 1
make[2]: Leaving directory `/root/nemesis/nemesis-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nemesis/nemesis-1.4'
make: *** [all] Error 2


Edit "/usr/include/libnet/libnet-headers.h" file (use your specific location) and change:
Code:
#if (!__GLIBC__)
struct ether_addr
{
    u_char  ether_addr_octet[6];
};
#endif

to
Code:
//#if (!__GLIBC__)
struct ether_addr
{
    u_char  ether_addr_octet[6];
};
//#endif


Top
Display posts from previous:  Sort by  
Print view

Topics related to - ""checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found""
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"

mandrei99

0

169

Mon Oct 17, 2011 3:39 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD list files installed by a specific software package - "pkg_info -L"

mandrei99

0

175

Mon Oct 17, 2011 3:26 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Courier compile fails with "/usr/bin/ld: cannot find -lperl"

debuser

2

1192

Thu Aug 13, 2009 5:36 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
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 post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO