Menu

#2 Does not work with current libnet

open
nobody
None
5
2005-09-29
2005-09-29
Anonymous
No

gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/local/include -DLIBNET_BIG_ENDIAN -g -O2 -c scdp.c
In file included from /usr/include/libnet.h:65,
from scdp.c:23:
/usr/include/unistd.h:382: error: conflicting types for
`rename'
/usr/include/iso/stdio_iso.h:165: error: previous
declaration of `rename'
In file included from /usr/include/libnet.h:68,
from scdp.c:23:
/usr/include/stdlib.h:165: error: conflicting types for
`getsubopt'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/include/stdio.h:281:
error: previous declaration of `getsubopt'
/usr/include/stdlib.h:189: error: conflicting types for
`getopt'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/include/stdio.h:279:
error: previous declaration of `getopt'
scdp.c: In function `cdp_cap_add':
scdp.c:224: error: `LIBNET_ERR_WARNING' undeclared
(first use in this function)
scdp.c:224: error: (Each undeclared identifier is
reported only once
scdp.c:224: error: for each function it appears in.)
scdp.c: In function `main':
scdp.c:442: error: `LIBNET_ERR_WARNING' undeclared
(first use in this function)
scdp.c:483: error: invalid use of undefined type
`struct libnet_ifaddr_list'
scdp.c:483: error: dereferencing pointer to incomplete type
scdp.c:485: error: invalid use of undefined type
`struct libnet_ifaddr_list'
scdp.c:485: error: dereferencing pointer to incomplete type
scdp.c:485: error: invalid use of undefined type
`struct libnet_ifaddr_list'
scdp.c:485: error: dereferencing pointer to incomplete type
scdp.c:487: error: invalid use of undefined type
`struct libnet_ifaddr_list'
scdp.c:487: error: dereferencing pointer to incomplete type
scdp.c:519: warning: passing arg 1 of
`libnet_select_device' from incompatible pointer type
scdp.c:519: error: too many arguments to function
`libnet_select_device'
scdp.c:523: error: `LIBNET_ERR_FATAL' undeclared (first
use in this function)
scdp.c:531: warning: assignment makes pointer from
integer without a cast
scdp.c:608: warning: passing arg 1 of
`libnet_get_hwaddr' from incompatible pointer type
scdp.c:608: error: too many arguments to function
`libnet_get_hwaddr'
scdp.c:608: warning: assignment from incompatible
pointer type
scdp.c:617: error: dereferencing pointer to incomplete type
scdp.c:620: warning: passing arg 6 of
`libnet_build_ethernet' from incompatible pointer type
scdp.c:620: error: too few arguments to function
`libnet_build_ethernet'
*** Error code 1
make: Fatal error: Command failed for target `scdp.o'

Discussion


Log in to post a comment.

MongoDB Logo MongoDB