daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Sep 10th, 2016 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bgp4_update.c:212:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
  2.      set_ptr_and_size(attr, attr_l, 0x42, flag_a);
  3.                       ^
  4. bgp4_update.c:98:16: note: in definition of macro ‘set_ptr_and_size’
  5.   size = strlen(ptr);                                                    \
  6.                 ^
  7. In file included from ./../include/libnet.h:64:0,
  8.                  from ./libnet_test.h:13,
  9.                  from bgp4_update.c:80:
  10. /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}
  11.  extern size_t strlen (const char *__s)
  12.                ^
  13. bgp4_update.c:213:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
  14.      set_ptr_and_size(info, info_l, 0x43, flag_i);
  15.                       ^
  16. bgp4_update.c:98:16: note: in definition of macro ‘set_ptr_and_size’
  17.   size = strlen(ptr);                                                    \
  18.                 ^
  19. In file included from ./../include/libnet.h:64:0,
  20.                  from ./libnet_test.h:13,
  21.                  from bgp4_update.c:80:
  22. /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}
  23.  extern size_t strlen (const char *__s)
  24.                ^
  25. In file included from ./../include/libnet.h:124:0,
  26.                  from ./libnet_test.h:13,
  27.                  from bgp4_update.c:80:
  28. bgp4_update.c: At top level:
  29. ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
  30.  libnet_getgre_length(u_int16_t fv);
  31.  ^
  32. gcc  -g -O2 -Wall   -o bgp4_update  bgp4_update.o ../src/libnet.a
  33. gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -Wall -c `test -f 'bgp4_notification.c' || echo './'`bgp4_notification.c
  34. bgp4_notification.c: In function ‘main’:
  35. bgp4_notification.c:126:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
  36.    payload = optarg;
  37.            ^
  38. bgp4_notification.c:61:13: warning: variable ‘payload’ set but not used [-Wunused-but-set-variable]
  39.      u_char *payload = NULL;
  40.              ^
  41. In file included from ./../include/libnet.h:124:0,
  42.                  from ./libnet_test.h:13,
  43.                  from bgp4_notification.c:51:
  44. bgp4_notification.c: At top level:
  45. ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
  46.  libnet_getgre_length(u_int16_t fv);
  47.  ^
  48. gcc  -g -O2 -Wall   -o bgp4_notification  bgp4_notification.o ../src/libnet.a
  49. gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -Wall -c `test -f 'gre.c' || echo './'`gre.c
  50. gre.c: In function ‘main’:
  51. gre.c:180:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
  52.    routing = optarg;
  53.            ^
  54. gre.c:319:36: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
  55.   size += LIBNET_GRE_SRE_H + strlen(routing);
  56.                                     ^
  57. In file included from ./../include/libnet.h:64:0,
  58.                  from ./libnet_test.h:13,
  59.                  from gre.c:81:
  60. /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}
  61.  extern size_t strlen (const char *__s)
  62.                ^
  63. gre.c:323:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
  64.       strlen(routing),                        /* routing length */
  65.              ^
  66. In file included from ./../include/libnet.h:64:0,
  67.                  from ./libnet_test.h:13,
  68.                  from gre.c:81:
  69. /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_char * {aka unsigned char *}
  70.  extern size_t strlen (const char *__s)
  71.                ^
  72. gre.c:382:13: warning: pointer targets in passing argument 1 of ‘libnet_autobuild_ethernet’ differ in signedness [-Wpointer-sign]
  73.              "11:11:11:11:11:11",                                    /* ethernet
  74.              ^
  75. In file included from ./../include/libnet.h:124:0,
  76.                  from ./libnet_test.h:13,
  77.                  from gre.c:81:
  78. ./../include/./libnet/libnet-functions.h:505:1: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *
  79.  libnet_autobuild_ethernet(u_int8_t *dst, u_int16_t type, libnet_t *l);
  80.  ^
  81. gre.c: At top level:
  82. ./../include/./libnet/libnet-functions.h:1433:1: warning: inline function ‘libnet_getgre_length’ declared but never defined
  83.  libnet_getgre_length(u_int16_t fv);
  84.  ^
  85. gcc  -g -O2 -Wall   -o gre  gre.o ../src/libnet.a
  86. gre.o: In function `main':
  87. /home/ubuntu2/Downloads/libnet/sample/gre.c:336: undefined reference to `libnet_getgre_length'
  88. collect2: error: ld returned 1 exit status
  89. Makefile:482: recipe for target 'gre' failed
  90. make[1]: *** [gre] Error 1
  91. make[1]: Leaving directory '/home/ubuntu2/Downloads/libnet/sample'
  92. Makefile:166: recipe for target 'all-recursive' failed
  93. make: *** [all-recursive] Error 1
RAW Paste Data
Top