Advertisement
Guest User

trem compile error

a guest
Jul 29th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.32 KB | None | 0 0
  1. In file included from src/sys/sys_unix.cpp:41:0:
  2. /usr/x86_64-w64-mingw32/include/pwd.h:83:2: error: ‘uid_t’ does not name a type; did you mean ‘pid_t’?
  3. uid_t pw_uid; /* user uid */
  4. ^~~~~
  5. pid_t
  6. /usr/x86_64-w64-mingw32/include/pwd.h:84:2: error: ‘gid_t’ does not name a type; did you mean ‘pid_t’?
  7. gid_t pw_gid; /* user gid */
  8. ^~~~~
  9. pid_t
  10. /usr/x86_64-w64-mingw32/include/pwd.h:93:1: error: ‘__BEGIN_DECLS’ does not name a type
  11. __BEGIN_DECLS
  12. ^~~~~~~~~~~~~
  13. /usr/x86_64-w64-mingw32/include/pwd.h:96:32: error: ‘uid_t’ was not declared in this scope
  14. struct passwd *getpwuid_shadow(uid_t);
  15. ^~~~~
  16. /usr/x86_64-w64-mingw32/include/pwd.h:96:32: note: suggested alternative: ‘pid_t’
  17. struct passwd *getpwuid_shadow(uid_t);
  18. ^~~~~
  19. pid_t
  20. /usr/x86_64-w64-mingw32/include/pwd.h:100:17: error: ‘uid_t’ was not declared in this scope
  21. int getpwuid_r(uid_t, struct passwd *, char *, size_t,
  22. ^~~~~
  23. /usr/x86_64-w64-mingw32/include/pwd.h:100:17: note: suggested alternative: ‘pid_t’
  24. int getpwuid_r(uid_t, struct passwd *, char *, size_t,
  25. ^~~~~
  26. pid_t
  27. /usr/x86_64-w64-mingw32/include/pwd.h:100:24: error: expected primary-expression before ‘struct’
  28. int getpwuid_r(uid_t, struct passwd *, char *, size_t,
  29. ^~~~~~
  30. /usr/x86_64-w64-mingw32/include/pwd.h:100:41: error: expected primary-expression before ‘char’
  31. int getpwuid_r(uid_t, struct passwd *, char *, size_t,
  32. ^~~~
  33. /usr/x86_64-w64-mingw32/include/pwd.h:100:55: error: expected primary-expression before ‘,’ token
  34. int getpwuid_r(uid_t, struct passwd *, char *, size_t,
  35. ^
  36. /usr/x86_64-w64-mingw32/include/pwd.h:101:7: error: expected primary-expression before ‘struct’
  37. struct passwd **);
  38. ^~~~~~
  39. /usr/x86_64-w64-mingw32/include/pwd.h:101:23: error: expression list treated as compound expression in initializer [-fpermissive]
  40. struct passwd **);
  41. ^
  42. /usr/x86_64-w64-mingw32/include/pwd.h:117:1: error: ‘__END_DECLS’ does not name a type
  43. __END_DECLS
  44. ^~~~~~~~~~~
  45. src/sys/sys_unix.cpp: In function ‘const char* Sys_GetCurrentUser()’:
  46. src/sys/sys_unix.cpp:152:22: error: ‘getuid’ was not declared in this scope
  47. if ( (p = getpwuid( getuid() )) == NULL ) {
  48. ^~~~~~
  49. src/sys/sys_unix.cpp:152:22: note: suggested alternative: ‘getpid’
  50. if ( (p = getpwuid( getuid() )) == NULL ) {
  51. ^~~~~~
  52. getpid
  53. src/sys/sys_unix.cpp:152:12: error: ‘getpwuid’ was not declared in this scope
  54. if ( (p = getpwuid( getuid() )) == NULL ) {
  55. ^~~~~~~~
  56. src/sys/sys_unix.cpp:152:12: note: suggested alternative: ‘getpwuid_r’
  57. if ( (p = getpwuid( getuid() )) == NULL ) {
  58. ^~~~~~~~
  59. getpwuid_r
  60. src/sys/sys_unix.cpp: In function ‘const char* Sys_Basename(char*)’:
  61. src/sys/sys_unix.cpp:190:9: error: ‘basename’ was not declared in this scope
  62. return basename( path );
  63. ^~~~~~~~
  64. src/sys/sys_unix.cpp:190:9: note: suggested alternative: ‘_wrename’
  65. return basename( path );
  66. ^~~~~~~~
  67. _wrename
  68. src/sys/sys_unix.cpp: In function ‘const char* Sys_Dirname(char*)’:
  69. src/sys/sys_unix.cpp:200:9: error: ‘dirname’ was not declared in this scope
  70. return dirname( path );
  71. ^~~~~~~
  72. src/sys/sys_unix.cpp:200:9: note: suggested alternative: ‘_wrename’
  73. return dirname( path );
  74. ^~~~~~~
  75. _wrename
  76. src/sys/sys_unix.cpp: In function ‘bool Sys_Mkdir(const char*)’:
  77. src/sys/sys_unix.cpp:225:33: error: too many arguments to function ‘int mkdir(const char*)’
  78. int result = mkdir( path, 0750 );
  79. ^
  80. In file included from /usr/share/mingw-w64/include/sys/stat.h:14:0,
  81. from src/sys/sys_unix.cpp:34:
  82. /usr/share/mingw-w64/include/io.h:280:15: note: declared here
  83. int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  84. ^~~~~
  85. src/sys/sys_unix.cpp: In function ‘FILE* Sys_Mkfifo(const char*)’:
  86. src/sys/sys_unix.cpp:249:11: error: ‘mkfifo’ was not declared in this scope
  87. result = mkfifo( ospath, 0600 );
  88. ^~~~~~
  89. src/sys/sys_unix.cpp:249:11: note: suggested alternative: ‘fifo’
  90. result = mkfifo( ospath, 0600 );
  91. ^~~~~~
  92. fifo
  93. src/sys/sys_unix.cpp:257:14: error: ‘F_SETFL’ was not declared in this scope
  94. fcntl( fn, F_SETFL, O_NONBLOCK );
  95. ^~~~~~~
  96. src/sys/sys_unix.cpp:257:23: error: ‘O_NONBLOCK’ was not declared in this scope
  97. fcntl( fn, F_SETFL, O_NONBLOCK );
  98. ^~~~~~~~~~
  99. src/sys/sys_unix.cpp:257:23: note: suggested alternative: ‘ENOTSOCK’
  100. fcntl( fn, F_SETFL, O_NONBLOCK );
  101. ^~~~~~~~~~
  102. ENOTSOCK
  103. src/sys/sys_unix.cpp:257:3: error: ‘fcntl’ was not declared in this scope
  104. fcntl( fn, F_SETFL, O_NONBLOCK );
  105. ^~~~~
  106. src/sys/sys_unix.cpp:257:3: note: suggested alternative: ‘fcvt’
  107. fcntl( fn, F_SETFL, O_NONBLOCK );
  108. ^~~~~
  109. fcvt
  110. src/sys/sys_unix.cpp: In function ‘void Sys_Sleep(int)’:
  111. src/sys/sys_unix.cpp:484:3: error: ‘fd_set’ was not declared in this scope
  112. fd_set fdset;
  113. ^~~~~~
  114. src/sys/sys_unix.cpp:484:3: note: suggested alternative: ‘_tzset’
  115. fd_set fdset;
  116. ^~~~~~
  117. _tzset
  118. src/sys/sys_unix.cpp:486:12: error: ‘fdset’ was not declared in this scope
  119. FD_ZERO(&fdset);
  120. ^~~~~
  121. src/sys/sys_unix.cpp:486:12: note: suggested alternative: ‘tzset’
  122. FD_ZERO(&fdset);
  123. ^~~~~
  124. tzset
  125. src/sys/sys_unix.cpp:486:3: error: ‘FD_ZERO’ was not declared in this scope
  126. FD_ZERO(&fdset);
  127. ^~~~~~~
  128. src/sys/sys_unix.cpp:486:3: note: suggested alternative: ‘FP_ZERO’
  129. FD_ZERO(&fdset);
  130. ^~~~~~~
  131. FP_ZERO
  132. src/sys/sys_unix.cpp:487:3: error: ‘FD_SET’ was not declared in this scope
  133. FD_SET(STDIN_FILENO, &fdset);
  134. ^~~~~~
  135. src/sys/sys_unix.cpp:490:4: error: ‘select’ was not declared in this scope
  136. select(STDIN_FILENO + 1, &fdset, NULL, NULL, NULL);
  137. ^~~~~~
  138. src/sys/sys_unix.cpp:490:4: note: suggested alternative: ‘sleep’
  139. select(STDIN_FILENO + 1, &fdset, NULL, NULL, NULL);
  140. ^~~~~~
  141. sleep
  142. src/sys/sys_unix.cpp:498:4: error: ‘select’ was not declared in this scope
  143. select(STDIN_FILENO + 1, &fdset, NULL, NULL, &timeout);
  144. ^~~~~~
  145. src/sys/sys_unix.cpp:498:4: note: suggested alternative: ‘sleep’
  146. select(STDIN_FILENO + 1, &fdset, NULL, NULL, &timeout);
  147. ^~~~~~
  148. sleep
  149. src/sys/sys_unix.cpp: In function ‘int Sys_Exec()’:
  150. src/sys/sys_unix.cpp:614:14: error: ‘fork’ was not declared in this scope
  151. pid_t pid = fork( );
  152. ^~~~
  153. src/sys/sys_unix.cpp: In function ‘void Sys_PlatformInit()’:
  154. src/sys/sys_unix.cpp:833:10: error: ‘SIGHUP’ was not declared in this scope
  155. signal( SIGHUP, Sys_SigHandler );
  156. ^~~~~~
  157. src/sys/sys_unix.cpp:833:10: note: suggested alternative: ‘SIGILL’
  158. signal( SIGHUP, Sys_SigHandler );
  159. ^~~~~~
  160. SIGILL
  161. src/sys/sys_unix.cpp:834:10: error: ‘SIGQUIT’ was not declared in this scope
  162. signal( SIGQUIT, Sys_SigHandler );
  163. ^~~~~~~
  164. src/sys/sys_unix.cpp:834:10: note: suggested alternative: ‘SIGABRT’
  165. signal( SIGQUIT, Sys_SigHandler );
  166. ^~~~~~~
  167. SIGABRT
  168. src/sys/sys_unix.cpp:835:10: error: ‘SIGTRAP’ was not declared in this scope
  169. signal( SIGTRAP, Sys_SigHandler );
  170. ^~~~~~~
  171. src/sys/sys_unix.cpp:835:10: note: suggested alternative: ‘SIGBREAK’
  172. signal( SIGTRAP, Sys_SigHandler );
  173. ^~~~~~~
  174. SIGBREAK
  175. src/sys/sys_unix.cpp:837:10: error: ‘SIGBUS’ was not declared in this scope
  176. signal( SIGBUS, Sys_SigHandler );
  177. ^~~~~~
  178. src/sys/sys_unix.cpp:837:10: note: suggested alternative: ‘SIGILL’
  179. signal( SIGBUS, Sys_SigHandler );
  180. ^~~~~~
  181. SIGILL
  182. src/sys/sys_unix.cpp: In function ‘void Sys_SetEnv(const char*, const char*)’:
  183. src/sys/sys_unix.cpp:867:3: error: ‘setenv’ was not declared in this scope
  184. setenv(name, value, 1);
  185. ^~~~~~
  186. src/sys/sys_unix.cpp:867:3: note: suggested alternative: ‘getenv’
  187. setenv(name, value, 1);
  188. ^~~~~~
  189. getenv
  190. src/sys/sys_unix.cpp:869:3: error: ‘unsetenv’ was not declared in this scope
  191. unsetenv(name);
  192. ^~~~~~~~
  193. src/sys/sys_unix.cpp:869:3: note: suggested alternative: ‘fesetenv’
  194. unsetenv(name);
  195. ^~~~~~~~
  196. fesetenv
  197. src/sys/sys_unix.cpp: In function ‘bool Sys_PIDIsRunning(int)’:
  198. src/sys/sys_unix.cpp:889:9: error: ‘kill’ was not declared in this scope
  199. return kill( pid, 0 ) == 0;
  200. ^~~~
  201. src/sys/sys_unix.cpp:889:9: note: suggested alternative: ‘tell’
  202. return kill( pid, 0 ) == 0;
  203. ^~~~
  204. tell
  205. Makefile:2757: recipe for target 'build/release-linux-x86_64/ded/sys_unix.o' failed
  206. make[2]: *** [build/release-linux-x86_64/ded/sys_unix.o] Error 1
  207. make[2]: Leaving directory '/home/vbalazs/tremulous-1.3.0-alpha.0.13'
  208. Makefile:1170: recipe for target 'targets' failed
  209. make[1]: *** [targets] Error 2
  210. make[1]: Leaving directory '/home/vbalazs/tremulous-1.3.0-alpha.0.13'
  211. Makefile:1114: recipe for target 'release' failed
  212. make: *** [release] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement