Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Dec 10, 2023 5:20 am


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

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

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

"checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

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 10:32 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

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

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com


Top
Display posts from previous:  Sort by  
E-mail friendPrint 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

3619

Mon Oct 17, 2011 8:39 am

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

6694

Mon Oct 17, 2011 8:26 am

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

4106

Thu Aug 13, 2009 10:36 am

debuser View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

2264

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

There are no new unread posts for this topic. Debian: -bash: dig: command not found - Installing dig tool

mandrei99

0

7235

Tue Jan 13, 2015 12:13 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can 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:  
News 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 - 5 hours [ DST ]



phpBB SEO