SHARE
TWEET
Untitled
a guest
Sep 10th, 2016
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- bgp4_update.c:212:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
- set_ptr_and_size(attr, attr_l, 0x42, flag_a);
- ^
- bgp4_update.c:98:16: note: in definition of macro ‘set_ptr_and_size’
- size = strlen(ptr); \
- ^
- In file included from ./../include/libnet.h:64:0,
- from ./libnet_test.h:13,
- from bgp4_update.c:80:
- /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
- extern size_t strlen (const char *__s)
- ^
- bgp4_update.c:213:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
- set_ptr_and_size(info, info_l, 0x43, flag_i);
- ^
- bgp4_update.c:98:16: note: in definition of macro ‘set_ptr_and_size’
- size = strlen(ptr); \
- ^
- In file included from ./../include/libnet.h:64:0,
- from ./libnet_test.h:13,
- from bgp4_update.c:80:
- /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
- extern size_t strlen (const char *__s)
- ^
- In file included from ./../include/libnet.h:124:0,
- from ./libnet_test.h:13,
- from bgp4_update.c:80:
- bgp4_update.c: At top level:
- ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
- libnet_getgre_length(u_int16_t fv);
- ^
- 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]
- payload = optarg;
- ^
- bgp4_notification.c:61:13: warning: variable ‘payload’ set but not used [-Wunused-but-set-variable]
- u_char *payload = NULL;
- ^
- In file included from ./../include/libnet.h:124:0,
- from ./libnet_test.h:13,
- from bgp4_notification.c:51:
- bgp4_notification.c: At top level:
- ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
- libnet_getgre_length(u_int16_t fv);
- ^
- 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]
- routing = optarg;
- ^
- gre.c:319:36: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
- size += LIBNET_GRE_SRE_H + strlen(routing);
- ^
- In file included from ./../include/libnet.h:64:0,
- from ./libnet_test.h:13,
- from gre.c:81:
- /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
- extern size_t strlen (const char *__s)
- ^
- gre.c:323:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
- strlen(routing), /* routing length */
- ^
- In file included from ./../include/libnet.h:64:0,
- from ./libnet_test.h:13,
- from gre.c:81:
- /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}’
- extern size_t strlen (const char *__s)
- ^
- gre.c:382:13: warning: pointer targets in passing argument 1 of ‘libnet_autobuild_ethernet’ differ in signedness [-Wpointer-sign]
- "11:11:11:11:11:11", /* ethernet
- ^
- In file included from ./../include/libnet.h:124:0,
- from ./libnet_test.h:13,
- from gre.c:81:
- ./../include/./libnet/libnet-functions.h:505:1: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’
- libnet_autobuild_ethernet(u_int8_t *dst, u_int16_t type, libnet_t *l);
- ^
- gre.c: At top level:
- ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
- libnet_getgre_length(u_int16_t fv);
- ^
- gcc -g -O2 -Wall -o gre gre.o ../src/libnet.a
- gre.o: In function `main':
- /home/ubuntu2/Downloads/libnet/sample/gre.c:336: undefined reference to `libnet_getgre_length'
- collect2: error: ld returned 1 exit status
- Makefile:482: recipe for target 'gre' failed
- make[1]: *** [gre] Error 1
- make[1]: Leaving directory '/home/ubuntu2/Downloads/libnet/sample'
- Makefile:166: recipe for target 'all-recursive' failed
- make: *** [all-recursive] Error 1
RAW Paste Data
