Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2012 12:30
Show Gist options
  • Save anonymous/2693694 to your computer and use it in GitHub Desktop.
Save anonymous/2693694 to your computer and use it in GitHub Desktop.
libnet4r
Building native extensions. This could take a while...
ERROR: Error installing libnet4r:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for socket() in -lsocket... no
checking for netinet/in.h... yes
checking for IPPROTO_IP in netinet/in.h... yes
checking for IPPROTO_HOPOPTS in netinet/in.h... yes
checking for IPPROTO_IP in netinet/in.h... yes
checking for IPPROTO_HOPOPTS in netinet/in.h... yes
checking for IPPROTO_ICMP in netinet/in.h... yes
checking for IPPROTO_IGMP in netinet/in.h... yes
checking for IPPROTO_GGP in netinet/in.h... no
checking for IPPROTO_ENCAP in netinet/in.h... yes
checking for IPPROTO_TCP in netinet/in.h... yes
checking for IPPROTO_EGP in netinet/in.h... yes
checking for IPPROTO_PUP in netinet/in.h... yes
checking for IPPROTO_UDP in netinet/in.h... yes
checking for IPPROTO_IDP in netinet/in.h... yes
checking for IPPROTO_IPV6 in netinet/in.h... yes
checking for IPPROTO_ROUTING in netinet/in.h... yes
checking for IPPROTO_FRAGMENT in netinet/in.h... yes
checking for IPPROTO_RSVP in netinet/in.h... yes
checking for IPPROTO_ESP in netinet/in.h... yes
checking for IPPROTO_AH in netinet/in.h... yes
checking for IPPROTO_ICMPV6 in netinet/in.h... yes
checking for IPPROTO_NONE in netinet/in.h... yes
checking for IPPROTO_DSTOPTS in netinet/in.h... yes
checking for IPPROTO_HELLO in netinet/in.h... no
checking for IPPROTO_ND in netinet/in.h... no
checking for IPPROTO_EON in netinet/in.h... no
checking for IPPROTO_PIM in netinet/in.h... yes
checking for IPPROTO_SCTP in netinet/in.h... yes
checking for IPPROTO_RAW in netinet/in.h... yes
checking for IPPROTO_MAX in netinet/in.h... no
beginning autoconfiguration process for libnet-1.1.2.1...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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... /usr/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 ospf rip rpc sebek 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
Making all in include
make[1]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
make all-recursive
make[2]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
Making all in libnet
make[3]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include/libnet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include/libnet'
make[3]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
make[2]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
make[1]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/include'
Making all in src
make[1]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_asn1.c' || echo './'`libnet_asn1.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_802.1q.c' || echo './'`libnet_build_802.1q.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_802.1x.c' || echo './'`libnet_build_802.1x.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_802.2.c' || echo './'`libnet_build_802.2.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_802.3.c' || echo './'`libnet_build_802.3.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_arp.c' || echo './'`libnet_build_arp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_bgp.c' || echo './'`libnet_build_bgp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_cdp.c' || echo './'`libnet_build_cdp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_data.c' || echo './'`libnet_build_data.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_dhcp.c' || echo './'`libnet_build_dhcp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_dns.c' || echo './'`libnet_build_dns.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_ethernet.c' || echo './'`libnet_build_ethernet.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_fddi.c' || echo './'`libnet_build_fddi.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_gre.c' || echo './'`libnet_build_gre.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_icmp.c' || echo './'`libnet_build_icmp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_igmp.c' || echo './'`libnet_build_igmp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_ip.c' || echo './'`libnet_build_ip.c
libnet_build_ip.c: In function ‘libnet_build_ipv4_options’:
libnet_build_ip.c:410:5: warning: pointer targets in passing argument 3 of ‘libnet_pblock_append’ differ in signedness [-Wpointer-sign]
../include/./libnet/libnet-functions.h:2100:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_ipsec.c' || echo './'`libnet_build_ipsec.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_isl.c' || echo './'`libnet_build_isl.c
libnet_build_isl.c: In function ‘libnet_build_isl’:
libnet_build_isl.c:48:18: warning: variable ‘h’ set but not used [-Wunused-but-set-variable]
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_mpls.c' || echo './'`libnet_build_mpls.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_ntp.c' || echo './'`libnet_build_ntp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_ospf.c' || echo './'`libnet_build_ospf.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_rip.c' || echo './'`libnet_build_rip.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_rpc.c' || echo './'`libnet_build_rpc.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_sebek.c' || echo './'`libnet_build_sebek.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_snmp.c' || echo './'`libnet_build_snmp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_stp.c' || echo './'`libnet_build_stp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_tcp.c' || echo './'`libnet_build_tcp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_token_ring.c' || echo './'`libnet_build_token_ring.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_udp.c' || echo './'`libnet_build_udp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_build_vrrp.c' || echo './'`libnet_build_vrrp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_advanced.c' || echo './'`libnet_advanced.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_checksum.c' || echo './'`libnet_checksum.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_cq.c' || echo './'`libnet_cq.c
libnet_cq.c: In function ‘libnet_cq_getlabel’:
libnet_cq.c:331:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]
libnet_cq.c: In function ‘libnet_cq_add’:
libnet_cq.c:117:17: warning: array subscript is above array bounds [-Warray-bounds]
libnet_cq.c:148:13: warning: array subscript is above array bounds [-Warray-bounds]
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_crc.c' || echo './'`libnet_crc.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_error.c' || echo './'`libnet_error.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_if_addr.c' || echo './'`libnet_if_addr.c
libnet_if_addr.c: In function ‘libnet_ifaddrlist’:
libnet_if_addr.c:134:17: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:143:17: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:156:17: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:197:9: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:197:9: note: expected ‘char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:217:9: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:217:9: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:225:25: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:239:9: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:239:9: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/bits/string2.h:1303:14: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:239:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
libnet_if_addr.c:242:21: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:259:17: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_if_addr.c:116:32: warning: variable ‘pifr’ set but not used [-Wunused-but-set-variable]
libnet_if_addr.c:116:25: warning: variable ‘lifr’ set but not used [-Wunused-but-set-variable]
libnet_if_addr.c: In function ‘libnet_select_device’:
libnet_if_addr.c:354:5: warning: pointer targets in passing argument 2 of ‘libnet_ifaddrlist’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:112:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
libnet_if_addr.c:377:13: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:377:13: warning: pointer targets in passing argument 2 of ‘strncmp’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:146:12: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:383:17: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:383:17: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/bits/string2.h:1303:14: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:397:9: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_if_addr.c:397:9: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/bits/string2.h:1303:14: note: expected ‘const char *’ but argument is of type ‘int8_t *’
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_init.c' || echo './'`libnet_init.c
libnet_init.c: In function ‘libnet_getdevice’:
libnet_init.c:164:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]
libnet_init.c: In function ‘libnet_init’:
libnet_init.c:74:13: warning: array subscript is above array bounds [-Warray-bounds]
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_internal.c' || echo './'`libnet_internal.c
libnet_internal.c: In function ‘libnet_diag_dump_context’:
libnet_internal.c:118:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
libnet_internal.c:119:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
libnet_internal.c:120:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
libnet_internal.c: In function ‘libnet_diag_dump_pblock_type’:
libnet_internal.c:305:21: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:383:12: note: expected ‘char * __restrict__’ but argument is of type ‘int8_t *’
libnet_internal.c:306:13: warning: pointer targets in return differ in signedness [-Wpointer-sign]
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_pblock.c' || echo './'`libnet_pblock.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_port_list.c' || echo './'`libnet_port_list.c
libnet_port_list.c: In function ‘libnet_plist_chain_new’:
libnet_port_list.c:121:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
libnet_port_list.c:145:9: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_port_list.c:165:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int8_t *’
libnet_port_list.c:165:13: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘int8_t *’
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_prand.c' || echo './'`libnet_prand.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_raw.c' || echo './'`libnet_raw.c
libnet_raw.c: In function ‘libnet_open_raw4’:
libnet_raw.c:132:5: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:190:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_resolve.c' || echo './'`libnet_resolve.c
libnet_resolve.c: In function ‘libnet_hex_aton’:
libnet_resolve.c:393:9: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:184:17: note: expected ‘const char * __restrict__’ but argument is of type ‘int8_t *’
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_version.c' || echo './'`libnet_version.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_write.c' || echo './'`libnet_write.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'libnet_link_linux.c' || echo './'`libnet_link_linux.c
libnet_link_linux.c: In function ‘get_iface_index’:
libnet_link_linux.c:183:5: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
libnet_link_linux.c:183:5: note: expected ‘const char *’ but argument is of type ‘const int8_t *’
libnet_link_linux.c: In function ‘libnet_write_link’:
libnet_link_linux.c:229:5: warning: pointer targets in passing argument 2 of ‘get_iface_index’ differ in signedness [-Wpointer-sign]
libnet_link_linux.c:178:1: note: expected ‘const int8_t *’ but argument is of type ‘char *’
rm -f libnet.a
ar cru libnet.a libnet_asn1.o libnet_build_802.1q.o libnet_build_802.1x.o libnet_build_802.2.o libnet_build_802.3.o libnet_build_arp.o libnet_build_bgp.o libnet_build_cdp.o libnet_build_data.o libnet_build_dhcp.o libnet_build_dns.o libnet_build_ethernet.o libnet_build_fddi.o libnet_build_gre.o libnet_build_icmp.o libnet_build_igmp.o libnet_build_ip.o libnet_build_ipsec.o libnet_build_isl.o libnet_build_mpls.o libnet_build_ntp.o libnet_build_ospf.o libnet_build_rip.o libnet_build_rpc.o libnet_build_sebek.o libnet_build_snmp.o libnet_build_stp.o libnet_build_tcp.o libnet_build_token_ring.o libnet_build_udp.o libnet_build_vrrp.o libnet_advanced.o libnet_checksum.o libnet_cq.o libnet_crc.o libnet_error.o libnet_if_addr.o libnet_init.o libnet_internal.o libnet_pblock.o libnet_port_list.o libnet_prand.o libnet_raw.o libnet_resolve.o libnet_version.o libnet_write.o libnet_link_linux.o
ranlib libnet.a
make[1]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/src'
Making all in sample
make[1]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/sample'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'arp.c' || echo './'`arp.c
gcc -g -O2 -Wall -o arp arp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'cdp.c' || echo './'`cdp.c
cdp.c: In function ‘main’:
cdp.c:66:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
cdp.c:67:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o cdp cdp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'dhcp_discover.c' || echo './'`dhcp_discover.c
dhcp_discover.c: In function ‘main’:
dhcp_discover.c:248:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
dhcp_discover.c:248:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ [-Wformat]
dhcp_discover.c:248:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘u_int64_t’ [-Wformat]
dhcp_discover.c:61:19: warning: variable ‘dhcp’ set but not used [-Wunused-but-set-variable]
dhcp_discover.c:60:19: warning: variable ‘udp’ set but not used [-Wunused-but-set-variable]
dhcp_discover.c:59:19: warning: variable ‘ip’ set but not used [-Wunused-but-set-variable]
dhcp_discover.c:58:19: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -Wall -o dhcp_discover dhcp_discover.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'get_addr.c' || echo './'`get_addr.c
gcc -g -O2 -Wall -o get_addr get_addr.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp_timestamp.c' || echo './'`icmp_timestamp.c
gcc -g -O2 -Wall -o icmp_timestamp icmp_timestamp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp_unreach.c' || echo './'`icmp_unreach.c
gcc -g -O2 -Wall -o icmp_unreach icmp_unreach.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ieee.c' || echo './'`ieee.c
ieee.c: In function ‘main’:
ieee.c:62:17: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
ieee.c:68:17: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o ieee ieee.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'isl.c' || echo './'`isl.c
isl.c: In function ‘main’:
isl.c:60:17: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o isl isl.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ntp.c' || echo './'`ntp.c
gcc -g -O2 -Wall -o ntp ntp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ospf_hello.c' || echo './'`ospf_hello.c
ospf_hello.c: In function ‘main’:
ospf_hello.c:60:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
ospf_hello.c:61:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
ospf_hello.c:62:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
ospf_hello.c:79:5: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_char *’
ospf_hello.c:80:5: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_char *’
ospf_hello.c:81:5: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o ospf_hello ospf_hello.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ospf_lsa.c' || echo './'`ospf_lsa.c
gcc -g -O2 -Wall -o ospf_lsa ospf_lsa.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ping_of_death.c' || echo './'`ping_of_death.c
ping_of_death.c: In function ‘main’:
ping_of_death.c:161:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
ping_of_death.c:161:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ [-Wformat]
ping_of_death.c:161:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘u_int64_t’ [-Wformat]
gcc -g -O2 -Wall -o ping_of_death ping_of_death.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'stp.c' || echo './'`stp.c
stp.c: In function ‘main’:
stp.c:65:17: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
stp.c:71:17: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o stp stp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'synflood.c' || echo './'`synflood.c
synflood.c: In function ‘main’:
synflood.c:88:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
synflood.c:94:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o synflood synflood.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'tcp1.c' || echo './'`tcp1.c
tcp1.c: In function ‘main’:
tcp1.c:87:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tcp1.c:92:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tcp1.c:100:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tcp1.c:105:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tcp1.c:131:9: warning: pointer targets in passing argument 1 of ‘libnet_build_tcp_options’ differ in signedness [-Wpointer-sign]
../include/./libnet/libnet-functions.h:621:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
tcp1.c:151:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o tcp1 tcp1.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'tcp2.c' || echo './'`tcp2.c
tcp2.c: In function ‘main’:
tcp2.c:83:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tcp2.c:88:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tcp2.c:101:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tcp2.c:106:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tcp2.c:134:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o tcp2 tcp2.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'udp1.c' || echo './'`udp1.c
udp1.c: In function ‘main’:
udp1.c:91:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
udp1.c:96:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
udp1.c:103:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
udp1.c:108:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
udp1.c:140:13: warning: pointer targets in passing argument 5 of ‘libnet_build_udp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:637:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
udp1.c:207:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
udp1.c:207:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ [-Wformat]
udp1.c:207:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘u_int64_t’ [-Wformat]
udp1.c:44:18: warning: variable ‘build_ip’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -Wall -o udp1 udp1.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'udp2.c' || echo './'`udp2.c
udp2.c: In function ‘main’:
udp2.c:143:17: warning: pointer targets in passing argument 5 of ‘libnet_build_udp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:637:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
udp2.c:211:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__time_t’ [-Wformat]
udp2.c:211:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘__suseconds_t’ [-Wformat]
udp2.c:217:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘u_int64_t’ [-Wformat]
udp2.c:217:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ [-Wformat]
udp2.c:217:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘u_int64_t’ [-Wformat]
gcc -g -O2 -Wall -o udp2 udp2.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'synflood6.c' || echo './'`synflood6.c
synflood6.c: In function ‘main’:
synflood6.c:85:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
synflood6.c:91:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o synflood6 synflood6.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp6_echoreq.c' || echo './'`icmp6_echoreq.c
icmp6_echoreq.c: In function ‘main’:
icmp6_echoreq.c:81:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
icmp6_echoreq.c:87:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
icmp6_echoreq.c:129:4: warning: pointer targets in passing argument 6 of ‘libnet_build_icmpv4_echo’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:679:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o icmp6_echoreq icmp6_echoreq.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp_echo_cq.c' || echo './'`icmp_echo_cq.c
icmp_echo_cq.c: In function ‘main’:
icmp_echo_cq.c:155:13: warning: pointer targets in passing argument 10 of ‘libnet_build_ipv4’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:812:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o icmp_echo_cq icmp_echo_cq.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'smurf.c' || echo './'`smurf.c
gcc -g -O2 -Wall -o smurf smurf.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'dot1x.c' || echo './'`dot1x.c
dot1x.c: In function ‘main’:
dot1x.c:74:13: warning: pointer targets in passing argument 4 of ‘libnet_build_802_1x’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:419:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o dot1x dot1x.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'dns.c' || echo './'`dns.c
dns.c: In function ‘main’:
dns.c:147:2: warning: pointer targets in passing argument 8 of ‘libnet_build_dnsv4’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1046:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o dns dns.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'rpc_tcp.c' || echo './'`rpc_tcp.c
rpc_tcp.c: In function ‘main’:
rpc_tcp.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
rpc_tcp.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
rpc_tcp.c:102:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
rpc_tcp.c:107:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
rpc_tcp.c:137:9: warning: pointer targets in passing argument 12 of ‘libnet_build_rpc_call’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1097:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o rpc_tcp rpc_tcp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'rpc_udp.c' || echo './'`rpc_udp.c
rpc_udp.c: In function ‘main’:
rpc_udp.c:88:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
rpc_udp.c:93:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
rpc_udp.c:100:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
rpc_udp.c:105:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
rpc_udp.c:142:9: warning: pointer targets in passing argument 12 of ‘libnet_build_rpc_call’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1097:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o rpc_udp rpc_udp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'mpls.c' || echo './'`mpls.c
mpls.c: In function ‘main’:
mpls.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
mpls.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
mpls.c:97:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
mpls.c:102:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
mpls.c:110:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
mpls.c:111:17: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o mpls mpls.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp_timeexceed.c' || echo './'`icmp_timeexceed.c
gcc -g -O2 -Wall -o icmp_timeexceed icmp_timeexceed.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'fddi_tcp1.c' || echo './'`fddi_tcp1.c
fddi_tcp1.c: In function ‘main’:
fddi_tcp1.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
fddi_tcp1.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
fddi_tcp1.c:97:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
fddi_tcp1.c:102:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
fddi_tcp1.c:138:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o fddi_tcp1 fddi_tcp1.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'fddi_tcp2.c' || echo './'`fddi_tcp2.c
fddi_tcp2.c: In function ‘main’:
fddi_tcp2.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
fddi_tcp2.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
fddi_tcp2.c:97:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
fddi_tcp2.c:102:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
fddi_tcp2.c:138:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o fddi_tcp2 fddi_tcp2.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'tring_tcp1.c' || echo './'`tring_tcp1.c
tring_tcp1.c: In function ‘main’:
tring_tcp1.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tring_tcp1.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tring_tcp1.c:97:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tring_tcp1.c:102:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tring_tcp1.c:138:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o tring_tcp1 tring_tcp1.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'tring_tcp2.c' || echo './'`tring_tcp2.c
tring_tcp2.c: In function ‘main’:
tring_tcp2.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tring_tcp2.c:89:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tring_tcp2.c:97:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
tring_tcp2.c:102:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
tring_tcp2.c:138:9: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:601:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o tring_tcp2 tring_tcp2.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'icmp_redirect.c' || echo './'`icmp_redirect.c
gcc -g -O2 -Wall -o icmp_redirect icmp_redirect.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'bgp4_hdr.c' || echo './'`bgp4_hdr.c
bgp4_hdr.c: In function ‘main’:
bgp4_hdr.c:122:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
gcc -g -O2 -Wall -o bgp4_hdr bgp4_hdr.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'bgp4_open.c' || echo './'`bgp4_open.c
bgp4_open.c: In function ‘main’:
bgp4_open.c:127:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_open.c:159:2: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o bgp4_open bgp4_open.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'bgp4_update.c' || echo './'`bgp4_update.c
bgp4_update.c: In function ‘main’:
bgp4_update.c:172:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_update.c:173:3: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
bgp4_update.c:177:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_update.c:185:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_update.c:193:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_update.c:211:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
bgp4_update.c:212:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
bgp4_update.c:213:5: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o bgp4_update bgp4_update.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'bgp4_notification.c' || echo './'`bgp4_notification.c
bgp4_notification.c: In function ‘main’:
bgp4_notification.c:126:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
bgp4_notification.c:61:13: warning: variable ‘payload’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -Wall -o bgp4_notification bgp4_notification.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'gre.c' || echo './'`gre.c
gre.c: In function ‘main’:
gre.c:180:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
gre.c:319:2: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gre.c:323:6: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gre.c:384:13: warning: pointer targets in passing argument 1 of ‘libnet_autobuild_ethernet’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:505:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o gre gre.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'synflood6_frag.c' || echo './'`synflood6_frag.c
synflood6_frag.c: In function ‘main’:
synflood6_frag.c:84:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
synflood6_frag.c:90:17: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
/usr/include/stdlib.h:284:1: note: expected ‘const char *’ but argument is of type ‘u_char *’
synflood6_frag.c:59:14: warning: variable ‘payload’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -Wall -o synflood6_frag synflood6_frag.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'tftp.c' || echo './'`tftp.c
gcc -g -O2 -Wall -o tftp tftp.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ip_link.c' || echo './'`ip_link.c
ip_link.c: In function ‘main’:
ip_link.c:91:3: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
ip_link.c:91:3: note: expected ‘char *’ but argument is of type ‘u_char *’
ip_link.c:92:3: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
ip_link.c:163:9: warning: pointer targets in passing argument 1 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:490:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
ip_link.c:163:9: warning: pointer targets in passing argument 2 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:490:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o ip_link ip_link.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'ip_raw.c' || echo './'`ip_raw.c
ip_raw.c: In function ‘main’:
ip_raw.c:84:3: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
ip_raw.c:84:3: note: expected ‘char *’ but argument is of type ‘u_char *’
ip_raw.c:85:3: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
gcc -g -O2 -Wall -o ip_raw ip_raw.o ../src/libnet.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c `test -f 'sebek.c' || echo './'`sebek.c
sebek.c: In function ‘main’:
sebek.c:145:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sebek.c:146:3: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘u_char *’
sebek.c:197:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sebek.c:218:2: warning: pointer targets in passing argument 10 of ‘libnet_build_sebek’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1615:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
sebek.c:264:5: warning: pointer targets in passing argument 1 of ‘libnet_hex_aton’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:1708:1: note: expected ‘int8_t *’ but argument is of type ‘char *’
sebek.c:264:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
sebek.c:268:2: warning: pointer targets in passing argument 1 of ‘libnet_autobuild_ethernet’ differ in signedness [-Wpointer-sign]
./../include/./libnet/libnet-functions.h:505:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -g -O2 -Wall -o sebek sebek.o ../src/libnet.a
make[1]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet/sample'
make[1]: Entering directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/var/lib/gems/1.8/gems/libnet4r-0.2/libnet'
creating Makefile
make
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_arp.c
In file included from libnet_arp.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
libnet_arp.c: In function ‘net_build_arp’:
libnet_arp.c:133:13: warning: pointer targets in passing argument 6 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:564:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet_arp.c:133:13: warning: pointer targets in passing argument 7 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:564:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet_arp.c:133:13: warning: pointer targets in passing argument 8 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:564:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet_arp.c:133:13: warning: pointer targets in passing argument 9 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:564:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet_arp.c:133:13: warning: pointer targets in passing argument 10 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:564:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet.c
In file included from libnet.c:5:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
libnet.c: In function ‘net_s_new’:
libnet.c:55:29: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
libnet.c: In function ‘net_s_addr2name4’:
libnet.c:123:60: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_addr2name6’:
libnet.c:156:60: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_hex_aton’:
libnet.c:188:35: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_ipv4_aton’:
libnet.c:214:36: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_ipv6_aton’:
libnet.c:259:5: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness [-Wpointer-sign]
/usr/lib/ruby/1.8/x86_64-linux/intern.h:428:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
libnet.c:246:36: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_ipv4_ntoa’:
libnet.c:277:36: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_s_ipv6_ntoa’:
libnet.c:303:36: warning: unused parameter ‘self’ [-Wunused-parameter]
libnet.c: In function ‘net_write_bytes’:
libnet.c:403:65: warning: pointer targets in passing argument 2 of ‘libnet_write_raw_ipv4’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:1937:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet.c:406:65: warning: pointer targets in passing argument 2 of ‘libnet_write_raw_ipv6’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:1943:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
libnet.c:409:61: warning: pointer targets in passing argument 2 of ‘libnet_write_link’ differ in signedness [-Wpointer-sign]
../libnet/include/./libnet/libnet-functions.h:1949:1: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_ipv6.c
In file included from libnet_ipv6.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
libnet_ipv6.c: In function ‘net_s_decode_ipv6’:
libnet_ipv6.c:46:17: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness [-Wpointer-sign]
/usr/lib/ruby/1.8/x86_64-linux/intern.h:428:7: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
libnet_ipv6.c:48:17: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness [-Wpointer-sign]
/usr/lib/ruby/1.8/x86_64-linux/intern.h:428:7: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
libnet_ipv6.c: In function ‘net_build_ipv6’:
libnet_ipv6.c:108:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_ipv4.c
In file included from libnet_ipv4.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_tcp.c
In file included from libnet_tcp.c:2:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_vlan.c
In file included from libnet_vlan.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
libnet_vlan.c: In function ‘net_s_decode_vlan’:
libnet_vlan.c:31:5: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness [-Wpointer-sign]
/usr/lib/ruby/1.8/x86_64-linux/intern.h:428:7: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
libnet_vlan.c:32:5: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness [-Wpointer-sign]
/usr/lib/ruby/1.8/x86_64-linux/intern.h:428:7: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_ethernet.c
In file included from libnet_ethernet.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
gcc -I. -I../libnet/include -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NETINET_IN_H -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_IP -DHAVE_IPPROTO_HOPOPTS -DHAVE_IPPROTO_ICMP -DHAVE_IPPROTO_IGMP -DHAVE_IPPROTO_ENCAP -DHAVE_IPPROTO_TCP -DHAVE_IPPROTO_EGP -DHAVE_IPPROTO_PUP -DHAVE_IPPROTO_UDP -DHAVE_IPPROTO_IDP -DHAVE_IPPROTO_IPV6 -DHAVE_IPPROTO_ROUTING -DHAVE_IPPROTO_FRAGMENT -DHAVE_IPPROTO_RSVP -DHAVE_IPPROTO_ESP -DHAVE_IPPROTO_AH -DHAVE_IPPROTO_ICMPV6 -DHAVE_IPPROTO_NONE -DHAVE_IPPROTO_DSTOPTS -DHAVE_IPPROTO_PIM -DHAVE_IPPROTO_SCTP -DHAVE_IPPROTO_RAW -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -W -Wall -c libnet_udp.c
In file included from libnet_udp.c:3:0:
../libnet/include/libnet.h:62:0: warning: "_GNU_SOURCE" redefined [enabled by default]
/usr/lib/ruby/1.8/x86_64-linux/config.h:20:0: note: this is the location of the previous definition
gcc -shared -o libnet4r.so libnet_arp.o libnet.o libnet_ipv6.o libnet_ipv4.o libnet_tcp.o libnet_vlan.o libnet_ethernet.o libnet_udp.o -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic -lruby1.8 -lpthread -lrt -ldl -lcrypt -lm -lc ../libnet/src/libnet.a
/usr/bin/ld: ../libnet/src/libnet.a(libnet_build_802.1q.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../libnet/src/libnet.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libnet4r.so] Error 1
Gem files will remain installed in /var/lib/gems/1.8/gems/libnet4r-0.2 for inspection.
Results logged to /var/lib/gems/1.8/gems/libnet4r-0.2/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment