compile fails with kernel 2.6.3

Heiko Zuerker <[email protected]>
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>

Hey,

the compile of libnet fails with the latest kernel (2.6.3) headers.
See the log below for details

cu
  Heiko
  http://www.devil-linux.org

linux:/lfssystem/data/build # less tmp/LOGS/build/Libnet
beginning autoconfiguration process for libnet-1.1.2-rc-05...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking machine endianess... lil
checking if unaligned accesses fail... no
checking whether gcc needs -traditional... no
checking for strerror... yes
checking link-layer packet interface type... found linux primitives
checking for packet socket (PF_SOCKET)... yes
checking for Linux proc filesystem... yes
scanning available packet construction modules: 802.1q 802.1x 802.2 802.3 arp bgp cdp data dhcp dns ethernet fddi gre icmp igmp ip ipsec isl link mpls ntp os
pf rip rpc snmp stp tcp token_ring udp vrrp
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/libnet/Makefile
config.status: creating sample/Makefile
config.status: creating version.h
config.status: creating include/libnet.h
config.status: creating libnet-config
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing default commands
make[1]: Entering directory `/data/build/tmp/libnet'
Making all in include
make[2]: Entering directory `/data/build/tmp/libnet/include'
make  all-recursive
make[3]: Entering directory `/data/build/tmp/libnet/include'
Making all in libnet
make[4]: Entering directory `/data/build/tmp/libnet/include/libnet'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/data/build/tmp/libnet/include/libnet'
make[4]: Entering directory `/data/build/tmp/libnet/include'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/data/build/tmp/libnet/include'
make[3]: Leaving directory `/data/build/tmp/libnet/include'
make[2]: Leaving directory `/data/build/tmp/libnet/include'
Making all in src
make[2]: Entering directory `/data/build/tmp/libnet/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -Wall -c `test -f 'libnet_asn1.c' || echo './'`libnet_asn1.c
In file included from /usr/include/linux/igmp.h:19,
                 from /usr/include/netinet/igmp.h:26,
                 from ../include/libnet.h:107,
                 from libnet_asn1.c:60:
/usr/include/asm/byteorder.h:14: error: syntax error before "__u32"
/usr/include/asm/byteorder.h:28: error: syntax error before "__u64"
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:57,
                 from /usr/include/linux/igmp.h:19,
                 from /usr/include/netinet/igmp.h:26,
                 from ../include/libnet.h:107,
                 from libnet_asn1.c:60:
/usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
/usr/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
make[2]: *** [libnet_asn1.o] Error 1
make[2]: Leaving directory `/data/build/tmp/libnet/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/build/tmp/libnet'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.