Snort mailing list archives
Re: Libnet make fatal error
From: Jeff Nathan <jeff () snort org>
Date: Thu, 20 Nov 2003 17:36:39 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Snort with flexresp uses libnet-1.0.2a, not libnet-1.x.(The quickest way to determine which version of libnet to use with Snort is to read the mailing list archives which discuss this every few days).
Second, the problem you mentioned with gethostbyname2 was posted to the Libnet mailing list by Russ fink back in August. Libnet-1.0.2a (for Unix-like systems) isn't really maintained by anyone.
There have been a number of patches applied to libnet-1.0.2a over the past couple years. I'll propose an updated version of libnet-1.0.2 that rolls in all the win32 changes as well as fixes the other bugs (including this one) still lingering.
What this means to you as a Snort user is that you're not going to be able to compile libnet without modifying the source code yourself. If you're comfortable with that, send me a message directly and we can discuss how to fix this.
- -Jeff On Nov 13, 2003, at 3:45 PM, Shekar Reddy wrote:
Hi,I'm trying to run make on libnet 1.1 and I'm getting the following fatalerror. Does anybody have answer for this?BTW: I read a mail with similar problem. Somebody has suggested to go withlibnet 1.0.2 instead. I tried both, no luck. Please let me know if anybody has suggestions... Note: This is on Solaris sparc 2.9 host Here's the error: bash-2.05# make Making all in include make all-recursive Making all in libnet Making all in src Making all in man Making all in sample gcc -g -O2 -Wall -o arp arp.o ../src/libnet.a -lnsl -lsocket Undefined first referenced symbol in file gethostbyname2 ../src/libnet.a(libnet_resolve.o) ld: fatal: Symbol referencing errors. No output written to arp collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `arp' Current working directory /opt/snort/Libnet-latest/sample *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Here's the output of configure:bash-2.05# sh ./configure --enable-flexresp --with-mysql=/opt/csw/mysql4--with-lib net-libraries=/usr/local/libnet loading cache ./config.cache beginning autoconfiguration process for libnet-1.1.0... checking host system type... sparc-sun-solaris2.9 checking target system type... sparc-sun-solaris2.9 checking build system type... sparc-sun-solaris2.9checking for a BSD compatible install... (cached) /usr/local/bin/install -cchecking whether build environment is sane... yes checking for mawk... (cached) nawk checking whether make sets ${MAKE}... (cached) yes checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for style of include used by make... GNU checking dependency style of gcc... (cached) none checking for a BSD compatible install... /usr/local/bin/install -c checking for ranlib... (cached) ranlib checking how to run the C preprocessor... (cached) gcc -E checking for sys/sockio.h... (cached) yes checking machine endianess... big checking if unaligned accesses fail... (cached) yes checking whether gcc needs -traditional... (cached) no checking for strerror... (cached) yes checking link-layer packet interface type... found dlpi -n scanning available packet construction modules:802.1q 802.2 802.3 arp cdp data dhcp dns ethernet icmp igmp ip ipsec isl ntpospf rip snmp stp tcp udp vrrp checking for sys/bufmod.h... (cached) yes checking for sys/dlpi_ext.h... (cached) no checking for /dev/dlpi device... no checking for /dev/dlpi directory... no checking for socket in -lsocket... (cached) yes checking for gethostbyname in -lnsl... (cached) yes creating ./config.status creating Makefile creating man/Makefile creating src/Makefile creating include/Makefile creating include/libnet/Makefile creating sample/Makefile creating version.h creating include/libnet.h creating libnet-config creating include/config.h include/config.h is unchangedPlease note this is libnet 1.1.x. Any code written for 1.0.x will NOT workwithout porting. Read the MIGRATION document for more info. ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
- -- Craft custom packets from the comfort of your home. http://nemesis.sourceforge.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQE/vUH7Eqr8+Gkj0/0RAtD8AJ4o+bUcZMUhkNRVWo+m3D4gu8cg5gCgi13v PGklj/80HGBoDSvMXK9X6gc= =Jp5C -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Libnet make fatal error Shekar Reddy (Nov 13)
- Re: Libnet make fatal error Dirk Geschke (Nov 14)
- Re: Libnet make fatal error Jeff Nathan (Nov 20)