Advertisement
Guest User

Untitled

a guest
Jun 10th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.77 KB | None | 0 0
  1. Making all in dht
  2. CC dht.o
  3. dht.c:360:35: warning: cast from 'const struct sockaddr *' to
  4. 'struct sockaddr_in *' increases required alignment from 1 to 4
  5. [-Wcast-align]
  6. struct sockaddr_in *sin = (struct sockaddr_in*)sa;
  7. ^~~~~~~~~~~~~~~~~~~~~~~
  8. dht.c:368:37: warning: cast from 'const struct sockaddr *' to
  9. 'struct sockaddr_in6 *' increases required alignment from 1 to 4
  10. [-Wcast-align]
  11. struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
  12. ^~~~~~~~~~~~~~~~~~~~~~~~
  13. dht.c:1319:35: warning: cast from 'const struct sockaddr *' to
  14. 'struct sockaddr_in *' increases required alignment from 1 to 4
  15. [-Wcast-align]
  16. struct sockaddr_in *sin = (struct sockaddr_in*)sa;
  17. ^~~~~~~~~~~~~~~~~~~~~~~
  18. dht.c:1323:37: warning: cast from 'const struct sockaddr *' to
  19. 'struct sockaddr_in6 *' increases required alignment from 1 to 4
  20. [-Wcast-align]
  21. struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
  22. ^~~~~~~~~~~~~~~~~~~~~~~~
  23. dht.c:1446:35: warning: cast from 'const struct sockaddr *' to
  24. 'struct sockaddr_in *' increases required alignment from 1 to 4
  25. [-Wcast-align]
  26. struct sockaddr_in *sin = (struct sockaddr_in*)sa;
  27. ^~~~~~~~~~~~~~~~~~~~~~~
  28. dht.c:1451:37: warning: cast from 'const struct sockaddr *' to
  29. 'struct sockaddr_in6 *' increases required alignment from 1 to 4
  30. [-Wcast-align]
  31. struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
  32. ^~~~~~~~~~~~~~~~~~~~~~~~
  33. dht.c:273:28: warning: unused variable 'ones' [-Wunused-const-variable]
  34. static const unsigned char ones[20] = {
  35. ^
  36. 7 warnings generated.
  37. AR libdht.a
  38. Making all in libb64
  39. Making all in libnatpmp
  40. CC getgateway.o
  41. CC natpmp.o
  42. natpmp.c:179:4: warning: cast from 'unsigned char *' to 'uint16_t *'
  43. (aka 'unsigned short *') increases required alignment from 1 to 2
  44. [-Wcast-align]
  45. *((uint16_t *)(p->pending_request + 4)) = htons(privateport);
  46. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. natpmp.c:180:4: warning: cast from 'unsigned char *' to 'uint16_t *'
  48. (aka 'unsigned short *') increases required alignment from 1 to 2
  49. [-Wcast-align]
  50. *((uint16_t *)(p->pending_request + 6)) = htons(publicport);
  51. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. natpmp.c:181:4: warning: cast from 'unsigned char *' to 'uint32_t *'
  53. (aka 'unsigned int *') increases required alignment from 1 to 4
  54. [-Wcast-align]
  55. *((uint32_t *)(p->pending_request + 8)) = htonl(lifetime);
  56. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
  58. (aka 'unsigned short *') increases required alignment from 1 to 2
  59. [-Wcast-align]
  60. response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
  61. ^~~~~~~~~~~~~~~~~~~~~
  62. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  63. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  64. ^
  65. /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
  66. '__DARWIN_OSSwapInt16'
  67. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
  68. ^
  69. natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
  70. (aka 'unsigned short *') increases required alignment from 1 to 2
  71. [-Wcast-align]
  72. response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
  73. ^~~~~~~~~~~~~~~~~~~~~
  74. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  75. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  76. ^
  77. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  78. '__DARWIN_OSSwapInt16'
  79. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  80. ^
  81. /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
  82. '__DARWIN_OSSwapConstInt16'
  83. ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
  84. ^
  85. natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
  86. (aka 'unsigned short *') increases required alignment from 1 to 2
  87. [-Wcast-align]
  88. response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
  89. ^~~~~~~~~~~~~~~~~~~~~
  90. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  91. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  92. ^
  93. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  94. '__DARWIN_OSSwapInt16'
  95. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  96. ^
  97. /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
  98. '__DARWIN_OSSwapConstInt16'
  99. (((__uint16_t)(x) & 0x00ff) << 8)))
  100. ^
  101. natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
  102. (aka 'unsigned short *') increases required alignment from 1 to 2
  103. [-Wcast-align]
  104. response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
  105. ^~~~~~~~~~~~~~~~~~~~~
  106. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  107. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  108. ^
  109. /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
  110. '__DARWIN_OSSwapInt16'
  111. ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
  112. ^
  113. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  114. (aka 'unsigned int *') increases required alignment from 1 to 4
  115. [-Wcast-align]
  116. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  117. ^~~~~~~~~~~~~~~~~~~~~
  118. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  119. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  120. ^
  121. /usr/include/libkern/_OSByteOrder.h:75:27: note: expanded from macro
  122. '__DARWIN_OSSwapInt32'
  123. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  124. ^
  125. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  126. (aka 'unsigned int *') increases required alignment from 1 to 4
  127. [-Wcast-align]
  128. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  129. ^~~~~~~~~~~~~~~~~~~~~
  130. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  131. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  132. ^
  133. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  134. '__DARWIN_OSSwapInt32'
  135. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  136. ^
  137. /usr/include/libkern/_OSByteOrder.h:48:34: note: expanded from macro
  138. '__DARWIN_OSSwapConstInt32'
  139. ((__uint32_t)((((__uint32_t)(x) & 0xff000000) >> 24) | \
  140. ^
  141. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  142. (aka 'unsigned int *') increases required alignment from 1 to 4
  143. [-Wcast-align]
  144. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  145. ^~~~~~~~~~~~~~~~~~~~~
  146. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  147. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  148. ^
  149. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  150. '__DARWIN_OSSwapInt32'
  151. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  152. ^
  153. /usr/include/libkern/_OSByteOrder.h:49:32: note: expanded from macro
  154. '__DARWIN_OSSwapConstInt32'
  155. (((__uint32_t)(x) & 0x00ff0000) >> 8) | \
  156. ^
  157. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  158. (aka 'unsigned int *') increases required alignment from 1 to 4
  159. [-Wcast-align]
  160. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  161. ^~~~~~~~~~~~~~~~~~~~~
  162. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  163. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  164. ^
  165. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  166. '__DARWIN_OSSwapInt32'
  167. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  168. ^
  169. /usr/include/libkern/_OSByteOrder.h:50:32: note: expanded from macro
  170. '__DARWIN_OSSwapConstInt32'
  171. (((__uint32_t)(x) & 0x0000ff00) << 8) | \
  172. ^
  173. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  174. (aka 'unsigned int *') increases required alignment from 1 to 4
  175. [-Wcast-align]
  176. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  177. ^~~~~~~~~~~~~~~~~~~~~
  178. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  179. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  180. ^
  181. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  182. '__DARWIN_OSSwapInt32'
  183. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  184. ^
  185. /usr/include/libkern/_OSByteOrder.h:51:32: note: expanded from macro
  186. '__DARWIN_OSSwapConstInt32'
  187. (((__uint32_t)(x) & 0x000000ff) << 24)))
  188. ^
  189. natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
  190. (aka 'unsigned int *') increases required alignment from 1 to 4
  191. [-Wcast-align]
  192. response->epoch = ntohl(*((uint32_t *)(buf + 4)));
  193. ^~~~~~~~~~~~~~~~~~~~~
  194. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  195. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  196. ^
  197. /usr/include/libkern/_OSByteOrder.h:75:76: note: expanded from macro
  198. '__DARWIN_OSSwapInt32'
  199. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  200. ^
  201. natpmp.c:242:49: warning: cast from 'unsigned char *' to 'uint32_t *'
  202. (aka 'unsigned int *') increases required alignment from 1 to 4
  203. [-Wcast-align]
  204. ...response->pnu.publicaddress.addr.s_addr = *((uint32_t *)(buf + 8));
  205. ^~~~~~~~~~~~~~~~~~~~~
  206. natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
  207. (aka 'unsigned short *') increases required alignment from 1 to 2
  208. [-Wcast-align]
  209. ...= ntohs(*((uint16_t *)(buf + 8)));
  210. ^~~~~~~~~~~~~~~~~~~~~
  211. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  212. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  213. ^
  214. /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
  215. '__DARWIN_OSSwapInt16'
  216. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
  217. ^
  218. natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
  219. (aka 'unsigned short *') increases required alignment from 1 to 2
  220. [-Wcast-align]
  221. ...= ntohs(*((uint16_t *)(buf + 8)));
  222. ^~~~~~~~~~~~~~~~~~~~~
  223. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  224. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  225. ^
  226. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  227. '__DARWIN_OSSwapInt16'
  228. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  229. ^
  230. /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
  231. '__DARWIN_OSSwapConstInt16'
  232. ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
  233. ^
  234. natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
  235. (aka 'unsigned short *') increases required alignment from 1 to 2
  236. [-Wcast-align]
  237. ...= ntohs(*((uint16_t *)(buf + 8)));
  238. ^~~~~~~~~~~~~~~~~~~~~
  239. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  240. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  241. ^
  242. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  243. '__DARWIN_OSSwapInt16'
  244. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  245. ^
  246. /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
  247. '__DARWIN_OSSwapConstInt16'
  248. (((__uint16_t)(x) & 0x00ff) << 8)))
  249. ^
  250. natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
  251. (aka 'unsigned short *') increases required alignment from 1 to 2
  252. [-Wcast-align]
  253. ...= ntohs(*((uint16_t *)(buf + 8)));
  254. ^~~~~~~~~~~~~~~~~~~~~
  255. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  256. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  257. ^
  258. /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
  259. '__DARWIN_OSSwapInt16'
  260. ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
  261. ^
  262. natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
  263. (aka 'unsigned short *') increases required alignment from 1 to 2
  264. [-Wcast-align]
  265. ...= ntohs(*((uint16_t *)(buf + 10)));
  266. ^~~~~~~~~~~~~~~~~~~~~~
  267. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  268. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  269. ^
  270. /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
  271. '__DARWIN_OSSwapInt16'
  272. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
  273. ^
  274. natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
  275. (aka 'unsigned short *') increases required alignment from 1 to 2
  276. [-Wcast-align]
  277. ...= ntohs(*((uint16_t *)(buf + 10)));
  278. ^~~~~~~~~~~~~~~~~~~~~~
  279. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  280. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  281. ^
  282. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  283. '__DARWIN_OSSwapInt16'
  284. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  285. ^
  286. /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
  287. '__DARWIN_OSSwapConstInt16'
  288. ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
  289. ^
  290. natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
  291. (aka 'unsigned short *') increases required alignment from 1 to 2
  292. [-Wcast-align]
  293. ...= ntohs(*((uint16_t *)(buf + 10)));
  294. ^~~~~~~~~~~~~~~~~~~~~~
  295. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  296. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  297. ^
  298. /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
  299. '__DARWIN_OSSwapInt16'
  300. ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
  301. ^
  302. /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
  303. '__DARWIN_OSSwapConstInt16'
  304. (((__uint16_t)(x) & 0x00ff) << 8)))
  305. ^
  306. natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
  307. (aka 'unsigned short *') increases required alignment from 1 to 2
  308. [-Wcast-align]
  309. ...= ntohs(*((uint16_t *)(buf + 10)));
  310. ^~~~~~~~~~~~~~~~~~~~~~
  311. /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
  312. #define ntohs(x) __DARWIN_OSSwapInt16(x)
  313. ^
  314. /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
  315. '__DARWIN_OSSwapInt16'
  316. ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
  317. ^
  318. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  319. (aka 'unsigned int *') increases required alignment from 1 to 4
  320. [-Wcast-align]
  321. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  322. ^~~~~~~~~~~~~~~~~~~~~~
  323. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  324. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  325. ^
  326. /usr/include/libkern/_OSByteOrder.h:75:27: note: expanded from macro
  327. '__DARWIN_OSSwapInt32'
  328. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  329. ^
  330. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  331. (aka 'unsigned int *') increases required alignment from 1 to 4
  332. [-Wcast-align]
  333. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  334. ^~~~~~~~~~~~~~~~~~~~~~
  335. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  336. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  337. ^
  338. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  339. '__DARWIN_OSSwapInt32'
  340. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  341. ^
  342. /usr/include/libkern/_OSByteOrder.h:48:34: note: expanded from macro
  343. '__DARWIN_OSSwapConstInt32'
  344. ((__uint32_t)((((__uint32_t)(x) & 0xff000000) >> 24) | \
  345. ^
  346. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  347. (aka 'unsigned int *') increases required alignment from 1 to 4
  348. [-Wcast-align]
  349. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  350. ^~~~~~~~~~~~~~~~~~~~~~
  351. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  352. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  353. ^
  354. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  355. '__DARWIN_OSSwapInt32'
  356. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  357. ^
  358. /usr/include/libkern/_OSByteOrder.h:49:32: note: expanded from macro
  359. '__DARWIN_OSSwapConstInt32'
  360. (((__uint32_t)(x) & 0x00ff0000) >> 8) | \
  361. ^
  362. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  363. (aka 'unsigned int *') increases required alignment from 1 to 4
  364. [-Wcast-align]
  365. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  366. ^~~~~~~~~~~~~~~~~~~~~~
  367. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  368. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  369. ^
  370. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  371. '__DARWIN_OSSwapInt32'
  372. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  373. ^
  374. /usr/include/libkern/_OSByteOrder.h:50:32: note: expanded from macro
  375. '__DARWIN_OSSwapConstInt32'
  376. (((__uint32_t)(x) & 0x0000ff00) << 8) | \
  377. ^
  378. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  379. (aka 'unsigned int *') increases required alignment from 1 to 4
  380. [-Wcast-align]
  381. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  382. ^~~~~~~~~~~~~~~~~~~~~~
  383. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  384. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  385. ^
  386. /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
  387. '__DARWIN_OSSwapInt32'
  388. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  389. ^
  390. /usr/include/libkern/_OSByteOrder.h:51:32: note: expanded from macro
  391. '__DARWIN_OSSwapConstInt32'
  392. (((__uint32_t)(x) & 0x000000ff) << 24)))
  393. ^
  394. natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
  395. (aka 'unsigned int *') increases required alignment from 1 to 4
  396. [-Wcast-align]
  397. ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
  398. ^~~~~~~~~~~~~~~~~~~~~~
  399. /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
  400. #define ntohl(x) __DARWIN_OSSwapInt32(x)
  401. ^
  402. /usr/include/libkern/_OSByteOrder.h:75:76: note: expanded from macro
  403. '__DARWIN_OSSwapInt32'
  404. (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
  405. ^
  406. getgateway.c:210:9: warning: cast from 'char *' to 'struct rt_msghdr *'
  407. increases required alignment from 1 to 4 [-Wcast-align]
  408. rt = (struct rt_msghdr *)p;
  409. ^~~~~~~~~~~~~~~~~~~~~
  410. getgateway.c:223:9: warning: cast from 'struct sockaddr *' to
  411. 'struct sockaddr_in *' increases required alignment from 1 to 4
  412. [-Wcast-align]
  413. ...if(((struct sockaddr_in *)sa_tab[RTAX_DST])->sin_addr.s_addr == 0) {
  414. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  415. getgateway.c:224:15: warning: cast from 'struct sockaddr *' to
  416. 'struct sockaddr_in *' increases required alignment from 1 to 4
  417. [-Wcast-align]
  418. ...*addr = ((struct sockaddr_in *)(sa_tab[RTAX_GATEWAY]))->sin_addr.s_addr;
  419. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  420. 28 warnings generated.
  421. 3 warnings generated.
  422. AR libnatpmp.a
  423. /opt/local/bin/ranlib: file: libnatpmp.a(wingettimeofday.o) has no symbols
  424. ranlib: file: libnatpmp.a(wingettimeofday.o) has no symbols
  425. Making all in miniupnp
  426. Detected OS [Darwin] version [14.3.0]
  427. MiniUPnPc version [1.7]
  428. setting OS_STRING macro value to Darwin/14.3.0 in miniupnpcstrings.h.
  429. setting MINIUPNPC_VERSION_STRING macro value to 1.7 in miniupnpcstrings.h.
  430. CC connecthostport.o
  431. CC minisoap.o
  432. CC minissdpc.o
  433. error: unable to open output file 'minisoap.o': ''
  434. 1 error generated.
  435. make[3]: *** [minisoap.o] Error 1
  436. make[3]: *** Waiting for unfinished jobs....
  437. connecthostport.c:190:34: warning: cast from 'struct sockaddr *' to
  438. 'struct sockaddr_in6 *' increases required alignment from 1 to 4
  439. [-Wcast-align]
  440. ...struct sockaddr_in6 * addr6 = (struct sockaddr_in6 *)p->ai_addr;
  441. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  442. 1 warning generated.
  443. make[2]: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement