Advertisement
Guest User

libuv lua module compiled error

a guest
Jul 30th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.77 KB | None | 0 0
  1. batuhangoksu:luv batuhangoksu$ make
  2. cc -c src/luv.c -o temp/luv.o -Ilibuv/include -g -I/usr/local/include/luajit-2.0 -DLUV_STACK_CHECK -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror -fPIC
  3. In file included from src/luv.c:4:
  4. src/luv_functions.c:8:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  5.     uv_err_t err = uv_last_error(uv_default_loop());
  6.     ^~~~~~~~
  7.     uv_errno_t
  8. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  9. } uv_errno_t;
  10.   ^
  11. In file included from src/luv.c:4:
  12. src/luv_functions.c:8:20: error: implicit declaration of function 'uv_last_error' is invalid in C99
  13.       [-Werror,-Wimplicit-function-declaration]
  14.     uv_err_t err = uv_last_error(uv_default_loop());
  15.                    ^
  16. src/luv_functions.c:8:20: note: did you mean 'uv_strerror'?
  17. libuv/include/uv.h:494:23: note: 'uv_strerror' declared here
  18. UV_EXTERN const char* uv_strerror(int err);
  19.                       ^
  20. In file included from src/luv.c:4:
  21. src/luv_functions.c:18:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  22.     uv_err_t err = uv_last_error(uv_default_loop());
  23.     ^~~~~~~~
  24.     uv_errno_t
  25. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  26. } uv_errno_t;
  27.   ^
  28. In file included from src/luv.c:4:
  29. src/luv_functions.c:30:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  30.     uv_err_t err = uv_last_error(uv_default_loop());
  31.     ^~~~~~~~
  32.     uv_errno_t
  33. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  34. } uv_errno_t;
  35.   ^
  36. In file included from src/luv.c:4:
  37. src/luv_functions.c:41:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  38.     uv_err_t err = uv_last_error(uv_default_loop());
  39.     ^~~~~~~~
  40.     uv_errno_t
  41. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  42. } uv_errno_t;
  43.   ^
  44. In file included from src/luv.c:4:
  45. src/luv_functions.c:94:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  46.     uv_err_t err = uv_last_error(uv_default_loop());
  47.     ^~~~~~~~
  48.     uv_errno_t
  49. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  50. } uv_errno_t;
  51.   ^
  52. In file included from src/luv.c:4:
  53. src/luv_functions.c:104:3: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  54.   uv_err_t err = uv_cwd(path, size);
  55.   ^~~~~~~~
  56.   uv_errno_t
  57. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  58. } uv_errno_t;
  59.   ^
  60. In file included from src/luv.c:4:
  61. src/luv_functions.c:104:31: error: incompatible integer to pointer conversion passing 'size_t'
  62.       (aka 'unsigned long') to parameter of type 'size_t *' (aka 'unsigned long *'); take the
  63.       address with & [-Werror,-Wint-conversion]
  64.   uv_err_t err = uv_cwd(path, size);
  65.                               ^~~~
  66.                               &
  67. libuv/include/uv.h:2159:44: note: passing argument to parameter 'size' here
  68. UV_EXTERN int uv_cwd(char* buffer, size_t* size);
  69.                                            ^
  70. In file included from src/luv.c:4:
  71. src/luv_functions.c:105:10: error: member reference base type 'uv_errno_t' is not a structure or
  72.       union
  73.   if (err.code) {
  74.       ~~~^~~~~
  75. src/luv_functions.c:113:3: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  76.   uv_err_t err = uv_chdir(luaL_checkstring(L, 1));
  77.   ^~~~~~~~
  78.   uv_errno_t
  79. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  80. } uv_errno_t;
  81.   ^
  82. In file included from src/luv.c:4:
  83. src/luv_functions.c:114:10: error: member reference base type 'uv_errno_t' is not a structure or
  84.       union
  85.   if (err.code) {
  86.       ~~~^~~~~
  87. src/luv_functions.c:122:3: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  88.   uv_err_t err = uv_get_process_title(title, MAX_TITLE_LENGTH);
  89.   ^~~~~~~~
  90.   uv_errno_t
  91. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  92. } uv_errno_t;
  93.   ^
  94. In file included from src/luv.c:4:
  95. src/luv_functions.c:123:10: error: member reference base type 'uv_errno_t' is not a structure or
  96.       union
  97.   if (err.code) {
  98.       ~~~^~~~~
  99. src/luv_functions.c:132:3: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  100.   uv_err_t err = uv_set_process_title(title);
  101.   ^~~~~~~~
  102.   uv_errno_t
  103. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  104. } uv_errno_t;
  105.   ^
  106. In file included from src/luv.c:4:
  107. src/luv_functions.c:133:10: error: member reference base type 'uv_errno_t' is not a structure or
  108.       union
  109.   if (err.code) {
  110.       ~~~^~~~~
  111. src/luv_functions.c:521:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  112.     uv_err_t err = uv_last_error(uv_default_loop());
  113.     ^~~~~~~~
  114.     uv_errno_t
  115. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  116. } uv_errno_t;
  117.   ^
  118. In file included from src/luv.c:4:
  119. src/luv_functions.c:653:30: error: incompatible pointer types passing 'void (uv_timer_t *, int)' to
  120.       parameter of type 'uv_timer_cb' (aka 'void (*)(uv_timer_t *)')
  121.       [-Werror,-Wincompatible-pointer-types]
  122.   if (uv_timer_start(handle, on_timeout, timeout, repeat)) {
  123.                              ^~~~~~~~~~
  124. libuv/include/uv.h:1441:42: note: passing argument to parameter 'cb' here
  125.                              uv_timer_cb cb,
  126.                                          ^
  127. In file included from src/luv.c:4:
  128. src/luv_functions.c:654:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  129.     uv_err_t err = uv_last_error(uv_default_loop());
  130.     ^~~~~~~~
  131.     uv_errno_t
  132. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  133. } uv_errno_t;
  134.   ^
  135. In file included from src/luv.c:4:
  136. src/luv_functions.c:671:5: error: unknown type name 'uv_err_t'; did you mean 'uv_errno_t'?
  137.     uv_err_t err = uv_last_error(uv_default_loop());
  138.     ^~~~~~~~
  139.     uv_errno_t
  140. libuv/include/uv.h:176:3: note: 'uv_errno_t' declared here
  141. } uv_errno_t;
  142.   ^
  143. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  144. 20 errors generated.
  145. make: *** [temp/luv.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement