Advertisement
Guest User

LIBSSH-0.1

a guest
Apr 24th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.57 KB | None | 0 0
  1. telekom@telekom-49net:~/Project/libssh-0.1$ ./configure
  2. checking build system type... x86_64-unknown-linux-gnu
  3. checking host system type... x86_64-unknown-linux-gnu
  4. checking for gcc... gcc
  5. checking for C compiler default output... a.out
  6. checking whether the C compiler works... yes
  7. checking whether we are cross compiling... no
  8. checking for suffix of executables...
  9. checking for suffix of object files... o
  10. checking whether we are using the GNU C compiler... yes
  11. checking whether gcc accepts -g... yes
  12. checking for gcc option to accept ANSI C... none needed
  13. checking for a BSD-compatible install... /usr/bin/install -c
  14. checking whether ln -s works... yes
  15. checking whether make sets $(MAKE)... yes
  16. checking for ranlib... ranlib
  17. checking whether byte ordering is bigendian... no
  18. checking for BN_init in -lcrypto... yes
  19. checking for deflateInit_ in -lz... yes
  20. checking for gethostbyname in -lresolv... yes
  21. checking for gethostbyname in -lnsl... yes
  22. checking how to run the C preprocessor... gcc -E
  23. checking for egrep... grep -E
  24. checking for ANSI C header files... yes
  25. checking for sys/types.h... yes
  26. checking for sys/stat.h... yes
  27. checking for stdlib.h... yes
  28. checking for string.h... yes
  29. checking for memory.h... yes
  30. checking for strings.h... yes
  31. checking for inttypes.h... yes
  32. checking for stdint.h... yes
  33. checking for unistd.h... yes
  34. checking fcntl.h usability... yes
  35. checking fcntl.h presence... yes
  36. checking for fcntl.h... yes
  37. checking netdb.h usability... yes
  38. checking netdb.h presence... yes
  39. checking for netdb.h... yes
  40. checking netinet/in.h usability... yes
  41. checking netinet/in.h presence... yes
  42. checking for netinet/in.h... yes
  43. checking for stdlib.h... (cached) yes
  44. checking for string.h... (cached) yes
  45. checking sys/socket.h usability... yes
  46. checking sys/socket.h presence... yes
  47. checking for sys/socket.h... yes
  48. checking sys/time.h usability... yes
  49. checking sys/time.h presence... yes
  50. checking for sys/time.h... yes
  51. checking termios.h usability... yes
  52. checking termios.h presence... yes
  53. checking for termios.h... yes
  54. checking for unistd.h... (cached) yes
  55. checking openssl/aes.h usability... yes
  56. checking openssl/aes.h presence... yes
  57. checking for openssl/aes.h... yes
  58. checking openssl/blowfish.h usability... yes
  59. checking openssl/blowfish.h presence... yes
  60. checking for openssl/blowfish.h... yes
  61. checking zlib.h usability... yes
  62. checking zlib.h presence... yes
  63. checking for zlib.h... yes
  64. checking sys/poll.h usability... yes
  65. checking sys/poll.h presence... yes
  66. checking for sys/poll.h... yes
  67. checking for an ANSI C-conforming const... yes
  68. checking whether time.h and sys/time.h may both be included... yes
  69. checking for stdlib.h... (cached) yes
  70. checking for GNU libc compatible malloc... yes
  71. checking for working memcmp... yes
  72. checking for stdlib.h... (cached) yes
  73. checking for GNU libc compatible realloc... yes
  74. checking sys/select.h usability... yes
  75. checking sys/select.h presence... yes
  76. checking for sys/select.h... yes
  77. checking for sys/socket.h... (cached) yes
  78. checking types of arguments for select... int,fd_set *,struct timeval *
  79. checking return type of signal handlers... void
  80. checking for vprintf... yes
  81. checking for _doprnt... no
  82. checking for endpwent... yes
  83. checking for gethostbyaddr... yes
  84. checking for gethostbyname... yes
  85. checking for getpass... yes
  86. checking for memmove... yes
  87. checking for memset... yes
  88. checking for select... yes
  89. checking for socket... yes
  90. checking for strchr... yes
  91. checking for strdup... yes
  92. checking for strerror... yes
  93. checking for strstr... yes
  94. checking for poll... yes
  95. configure: creating ./config.status
  96. config.status: creating Makefile
  97. config.status: creating libssh/Makefile
  98. config.status: creating config.h
  99. telekom@telekom-49net:~/Project/libssh-0.1$ make
  100. ln -s -f ../../config.h include/libssh/config.h
  101. gcc -g -O2 -Iinclude/ -Wall -g -c -o client.o client.c
  102. client.c: In function ‘main’:
  103. client.c:247:38: warning: pointer targets in passing argument 2 of ‘ssh_print_hexa’ differ in signedness [-Wpointer-sign]
  104. ssh_print_hexa("Public key hash",hash,MD5_DIGEST_LEN);
  105. ^~~~
  106. In file included from client.c:21:0:
  107. include/libssh/libssh.h:303:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  108. void ssh_print_hexa(char *descr,unsigned char *what, int len);
  109. ^~~~~~~~~~~~~~
  110. client.c: In function ‘select_loop’:
  111. client.c:124:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  112. write(1,buffer_get(readbuf),lus);
  113. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. client.c:135:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  115. write(2,buffer_get(readbuf),lus);
  116. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117. make[1]: Entering directory '/home/telekom/Project/libssh-0.1/libssh'
  118. gcc -g -O2 -Wall -g -I../include/ -c -o client.o client.c
  119. client.c: In function ‘send_banner’:
  120. client.c:64:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  121. write(session->fd,buffer,strlen(buffer));
  122. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  123. gcc -g -O2 -Wall -g -I../include/ -c -o packet.o packet.c
  124. packet.c: In function ‘packet_read’:
  125. packet.c:136:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  126. if(!buffer_get_char(session->in_buffer,&padding)){
  127. ^
  128. In file included from packet.c:27:0:
  129. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  130. int buffer_get_char(BUFFER *buffer,char *data);
  131. ^~~~~~~~~~~~~~~
  132. packet.c: In function ‘packet_translate’:
  133. packet.c:161:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  134. if(!buffer_get_char(session->in_buffer,&session->in_packet.type)){
  135. ^
  136. In file included from packet.c:27:0:
  137. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  138. int buffer_get_char(BUFFER *buffer,char *data);
  139. ^~~~~~~~~~~~~~~
  140. gcc -g -O2 -Wall -g -I../include/ -c -o dh.o dh.c
  141. In file included from dh.c:43:0:
  142. dh.c: In function ‘make_bignum_string’:
  143. dh.c:152:32: warning: pointer targets in passing argument 2 of ‘BN_bn2bin’ differ in signedness [-Wpointer-sign]
  144. finallen=bignum_bn2bin(num,ptr->string+pad);
  145. ^
  146. ../include/libssh/libssh.h:69:46: note: in definition of macro ‘bignum_bn2bin’
  147. #define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
  148. ^~~
  149. In file included from /usr/include/openssl/dsa.h:81:0,
  150. from ../include/libssh/libssh.h:40,
  151. from dh.c:43:
  152. /usr/include/openssl/bn.h:443:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  153. int BN_bn2bin(const BIGNUM *a, unsigned char *to);
  154. ^~~~~~~~~
  155. dh.c:143:9: warning: variable ‘finallen’ set but not used [-Wunused-but-set-variable]
  156. int finallen;
  157. ^~~~~~~~
  158. In file included from dh.c:43:0:
  159. dh.c: In function ‘make_string_bn’:
  160. dh.c:159:23: warning: pointer targets in passing argument 1 of ‘BN_bin2bn’ differ in signedness [-Wpointer-sign]
  161. return bignum_bin2bn(string->string,len,NULL);
  162. ^
  163. ../include/libssh/libssh.h:60:50: note: in definition of macro ‘bignum_bin2bn’
  164. #define bignum_bin2bn(bn,datalen,data) BN_bin2bn(bn,datalen,data)
  165. ^~
  166. In file included from /usr/include/openssl/dsa.h:81:0,
  167. from ../include/libssh/libssh.h:40,
  168. from dh.c:43:
  169. /usr/include/openssl/bn.h:442:9: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  170. BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
  171. ^~~~~~~~~
  172. dh.c: In function ‘make_sessionid’:
  173. dh.c:233:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  174. sha1_final(session->next_crypto->session_id,ctx);
  175. ^~~~~~~
  176. In file included from dh.c:43:0:
  177. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  178. void sha1_final(unsigned char *md,SHACTX *c);
  179. ^~~~~~~~~~
  180. dh.c: In function ‘generate_one_key’:
  181. dh.c:260:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  182. sha1_final(output,ctx);
  183. ^~~~~~
  184. In file included from dh.c:43:0:
  185. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  186. void sha1_final(unsigned char *md,SHACTX *c);
  187. ^~~~~~~~~~
  188. dh.c: In function ‘generate_session_keys’:
  189. dh.c:280:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  190. sha1_final(session->next_crypto->encryptkey+SHA_DIGEST_LEN,ctx);
  191. ^~~~~~~
  192. In file included from dh.c:43:0:
  193. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  194. void sha1_final(unsigned char *md,SHACTX *c);
  195. ^~~~~~~~~~
  196. dh.c:290:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  197. sha1_final(session->next_crypto->decryptkey+SHA_DIGEST_LEN,ctx);
  198. ^~~~~~~
  199. In file included from dh.c:43:0:
  200. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  201. void sha1_final(unsigned char *md,SHACTX *c);
  202. ^~~~~~~~~~
  203. dh.c: In function ‘pubkey_get_hash’:
  204. dh.c:314:15: warning: pointer targets in passing argument 1 of ‘md5_final’ differ in signedness [-Wpointer-sign]
  205. md5_final(hash,ctx);
  206. ^~~~
  207. In file included from dh.c:43:0:
  208. ../include/libssh/libssh.h:79:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  209. void md5_final(unsigned char *md,MD5CTX *c);
  210. ^~~~~~~~~
  211. dh.c: In function ‘sig_verify’:
  212. dh.c:347:10: warning: pointer targets in passing argument 1 of ‘sha1’ differ in signedness [-Wpointer-sign]
  213. sha1(digest,SHA_DIGEST_LENGTH,hash);
  214. ^~~~~~
  215. In file included from dh.c:43:0:
  216. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  217. void sha1(unsigned char *digest,int len,unsigned char *hash);
  218. ^~~~
  219. dh.c:347:35: warning: pointer targets in passing argument 3 of ‘sha1’ differ in signedness [-Wpointer-sign]
  220. sha1(digest,SHA_DIGEST_LENGTH,hash);
  221. ^~~~
  222. In file included from dh.c:43:0:
  223. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  224. void sha1(unsigned char *digest,int len,unsigned char *hash);
  225. ^~~~
  226. dh.c:350:33: warning: pointer targets in passing argument 1 of ‘DSA_do_verify’ differ in signedness [-Wpointer-sign]
  227. valid=DSA_do_verify(hash,SHA_DIGEST_LENGTH,signature->dsa_sign,
  228. ^~~~
  229. In file included from ../include/libssh/libssh.h:40:0,
  230. from dh.c:43:
  231. /usr/include/openssl/dsa.h:194:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  232. int DSA_do_verify(const unsigned char *dgst, int dgst_len,
  233. ^~~~~~~~~~~~~
  234. dh.c:362:35: warning: pointer targets in passing argument 2 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  235. valid=RSA_verify(NID_sha1,hash,SHA_DIGEST_LENGTH,
  236. ^~~~
  237. In file included from ../include/libssh/libssh.h:41:0,
  238. from dh.c:43:
  239. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  240. int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  241. ^~~~~~~~~~
  242. dh.c:363:13: warning: pointer targets in passing argument 4 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  243. signature->rsa_sign->string,string_len(signature->rsa_sign),pubkey->rsa_pub);
  244. ^~~~~~~~~
  245. In file included from ../include/libssh/libssh.h:41:0,
  246. from dh.c:43:
  247. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  248. int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  249. ^~~~~~~~~~
  250. dh.c: In function ‘ssh_get_random’:
  251. dh.c:79:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
  252. read(rndfd,where,len);
  253. ^~~~~~~~~~~~~~~~~~~~~
  254. gcc -g -O2 -Wall -g -I../include/ -c -o crypt.o crypt.c
  255. crypt.c: In function ‘packet_encrypt’:
  256. crypt.c:71:20: warning: pointer targets in passing argument 2 of ‘hmac_final’ differ in signedness [-Wpointer-sign]
  257. hmac_final(ctx,session->current_crypto->hmacbuf,&finallen);
  258. ^~~~~~~
  259. In file included from crypt.c:32:0:
  260. ../include/libssh/libssh.h:88:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  261. void hmac_final(HMACCTX *ctx,unsigned char *hashmacbuf,int *len);
  262. ^~~~~~~~~~
  263. gcc -g -O2 -Wall -g -I../include/ -c -o connect.o connect.c
  264. gcc -g -O2 -Wall -g -I../include/ -c -o error.o error.c
  265. gcc -g -O2 -Wall -g -I../include/ -c -o buffer.o buffer.c
  266. buffer.c: In function ‘buffer_get_ssh_string’:
  267. buffer.c:144:31: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  268. if(buffer_get_long(buffer,&stringlen)==0)
  269. ^
  270. buffer.c:132:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  271. int buffer_get_long(BUFFER *buffer, long *data){
  272. ^~~~~~~~~~~~~~~
  273. gcc -g -O2 -Wall -g -I../include/ -c -o string.o string.c
  274. gcc -g -O2 -Wall -g -I../include/ -c -o kex.o kex.c
  275. kex.c: In function ‘ssh_get_kex’:
  276. kex.c:126:34: warning: pointer targets in passing argument 2 of ‘hashbufin_add_cookie’ differ in signedness [-Wpointer-sign]
  277. hashbufin_add_cookie(session,session->server_kex.cookie);
  278. ^~~~~~~
  279. In file included from kex.c:24:0:
  280. ../include/libssh/libssh.h:300:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  281. void hashbufin_add_cookie(SSH_SESSION *session,unsigned char *cookie);
  282. ^~~~~~~~~~~~~~~~~~~~
  283. gcc -g -O2 -Wall -g -I../include/ -c -o channels.o channels.c
  284. channels.c: In function ‘open_session_channel’:
  285. channels.c:116:52: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  286. buffer_get_long(session->in_buffer,&code);
  287. ^
  288. In file included from channels.c:29:0:
  289. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  290. int buffer_get_long(BUFFER *buffer,long *data);
  291. ^~~~~~~~~~~~~~~
  292. channels.c: In function ‘channel_eof’:
  293. channels.c:261:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  294. buffer_get_long(session->in_buffer,&channelnum);
  295. ^
  296. In file included from channels.c:29:0:
  297. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  298. int buffer_get_long(BUFFER *buffer,long *data);
  299. ^~~~~~~~~~~~~~~
  300. channels.c: In function ‘channel_close’:
  301. channels.c:275:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  302. buffer_get_long(session->in_buffer,&channelnum);
  303. ^
  304. In file included from channels.c:29:0:
  305. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  306. int buffer_get_long(BUFFER *buffer,long *data);
  307. ^~~~~~~~~~~~~~~
  308. channels.c: In function ‘channel_input_request’:
  309. channels.c:291:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  310. buffer_get_long(session->in_buffer,&channelnum);
  311. ^
  312. In file included from channels.c:29:0:
  313. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  314. int buffer_get_long(BUFFER *buffer,long *data);
  315. ^~~~~~~~~~~~~~~
  316. channels.c:302:40: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  317. buffer_get_char(session->in_buffer,(unsigned char *)&status);
  318. ^
  319. In file included from channels.c:29:0:
  320. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  321. int buffer_get_char(BUFFER *buffer,char *data);
  322. ^~~~~~~~~~~~~~~
  323. gcc -g -O2 -Wall -g -I../include/ -c -o options.o options.c
  324. gcc -g -O2 -Wall -g -I../include/ -c -o keys.o keys.c
  325. keys.c: In function ‘ssh_do_sign’:
  326. keys.c:331:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  327. sha1_final(hash,ctx);
  328. ^~~~
  329. In file included from keys.c:26:0:
  330. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  331. void sha1_final(unsigned char *md,SHACTX *c);
  332. ^~~~~~~~~~
  333. keys.c:336:40: warning: pointer targets in passing argument 1 of ‘DSA_do_sign’ differ in signedness [-Wpointer-sign]
  334. sign->dsa_sign=DSA_do_sign(hash,SHA_DIGEST_LENGTH,privatekey->dsa_priv);
  335. ^~~~
  336. In file included from keys.c:24:0:
  337. /usr/include/openssl/dsa.h:193:10: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  338. DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
  339. ^~~~~~~~~~~
  340. gcc -g -O2 -Wall -g -I../include/ -c -o auth.o auth.c
  341. gcc -g -O2 -Wall -g -I../include/ -c -o base64.o base64.c
  342. gcc -g -O2 -Wall -g -I../include/ -c -o keyfiles.o keyfiles.c
  343. gcc -g -O2 -Wall -g -I../include/ -c -o misc.o misc.c
  344. gcc -g -O2 -Wall -g -I../include/ -c -o gzip.o gzip.c
  345. gcc -g -O2 -Wall -g -I../include/ -c -o wrapper.o wrapper.c
  346. wrapper.c: In function ‘hmac_final’:
  347. wrapper.c:102:30: warning: pointer targets in passing argument 3 of ‘HMAC_Final’ differ in signedness [-Wpointer-sign]
  348. HMAC_Final(ctx,hashmacbuf,len);
  349. ^~~
  350. In file included from ../include/libssh/libssh.h:44:0,
  351. from wrapper.c:28:
  352. /usr/include/openssl/hmac.h:97:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’
  353. int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
  354. ^~~~~~~~~~
  355. gcc -g -O2 -Wall -g -I../include/ -c -o sftp.o sftp.c
  356. sftp.c: In function ‘sftp_packet_read’:
  357. sftp.c:96:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  358. buffer_get_long(packet->payload,&size);
  359. ^
  360. In file included from sftp.c:28:0:
  361. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  362. int buffer_get_long(BUFFER *buffer,long *data);
  363. ^~~~~~~~~~~~~~~
  364. sftp.c:103:37: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  365. buffer_get_char(packet->payload,&packet->type);
  366. ^
  367. In file included from sftp.c:28:0:
  368. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  369. int buffer_get_char(BUFFER *buffer,char *data);
  370. ^~~~~~~~~~~~~~~
  371. sftp.c: In function ‘sftp_get_message’:
  372. sftp.c:137:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  373. if(buffer_get_long(packet->payload,&msg->id)!=sizeof(long)){
  374. ^
  375. In file included from sftp.c:28:0:
  376. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  377. int buffer_get_long(BUFFER *buffer,long *data);
  378. ^~~~~~~~~~~~~~~
  379. sftp.c: In function ‘sftp_init’:
  380. sftp.c:184:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  381. buffer_get_long(packet->payload,&version);
  382. ^
  383. In file included from sftp.c:28:0:
  384. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  385. int buffer_get_long(BUFFER *buffer,long *data);
  386. ^~~~~~~~~~~~~~~
  387. sftp.c: In function ‘parse_status_msg’:
  388. sftp.c:271:39: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  389. if( (buffer_get_long(msg->payload,&status->status)!= 4)
  390. ^
  391. In file included from sftp.c:28:0:
  392. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  393. int buffer_get_long(BUFFER *buffer,long *data);
  394. ^~~~~~~~~~~~~~~
  395. sftp.c: In function ‘sftp_parse_attr_4’:
  396. sftp.c:381:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  397. if(buffer_get_long(buf,&flags)!=4)
  398. ^
  399. In file included from sftp.c:28:0:
  400. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  401. int buffer_get_long(BUFFER *buffer,long *data);
  402. ^~~~~~~~~~~~~~~
  403. sftp.c:386:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  404. if(buffer_get_longlong(buf,&attr->size)!=8)
  405. ^
  406. In file included from sftp.c:28:0:
  407. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  408. int buffer_get_longlong(BUFFER *buffer, long long *data);
  409. ^~~~~~~~~~~~~~~~~~~
  410. sftp.c:397:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  411. if(buffer_get_long(buf,&attr->permissions)!=4)
  412. ^
  413. In file included from sftp.c:28:0:
  414. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  415. int buffer_get_long(BUFFER *buffer,long *data);
  416. ^~~~~~~~~~~~~~~
  417. sftp.c:402:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  418. if(buffer_get_longlong(buf,&attr->atime64)!=8)
  419. ^
  420. In file included from sftp.c:28:0:
  421. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  422. int buffer_get_longlong(BUFFER *buffer, long long *data);
  423. ^~~~~~~~~~~~~~~~~~~
  424. sftp.c:407:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  425. if(buffer_get_long(buf,&attr->atime_nseconds)!=4)
  426. ^
  427. In file included from sftp.c:28:0:
  428. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  429. int buffer_get_long(BUFFER *buffer,long *data);
  430. ^~~~~~~~~~~~~~~
  431. sftp.c:412:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  432. if(buffer_get_longlong(buf,&attr->createtime)!=8)
  433. ^
  434. In file included from sftp.c:28:0:
  435. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  436. int buffer_get_longlong(BUFFER *buffer, long long *data);
  437. ^~~~~~~~~~~~~~~~~~~
  438. sftp.c:417:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  439. if(buffer_get_long(buf,&attr->createtime_nseconds)!=4)
  440. ^
  441. In file included from sftp.c:28:0:
  442. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  443. int buffer_get_long(BUFFER *buffer,long *data);
  444. ^~~~~~~~~~~~~~~
  445. sftp.c:422:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  446. if(buffer_get_longlong(buf,&attr->mtime64)!=8)
  447. ^
  448. In file included from sftp.c:28:0:
  449. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  450. int buffer_get_longlong(BUFFER *buffer, long long *data);
  451. ^~~~~~~~~~~~~~~~~~~
  452. sftp.c:427:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  453. if(buffer_get_long(buf,&attr->mtime_nseconds)!=4)
  454. ^
  455. In file included from sftp.c:28:0:
  456. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  457. int buffer_get_long(BUFFER *buffer,long *data);
  458. ^~~~~~~~~~~~~~~
  459. sftp.c:436:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  460. if(buffer_get_long(buf,&attr->extended_count)!=4)
  461. ^
  462. In file included from sftp.c:28:0:
  463. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  464. int buffer_get_long(BUFFER *buffer,long *data);
  465. ^~~~~~~~~~~~~~~
  466. sftp.c: In function ‘sftp_parse_attr_3’:
  467. sftp.c:510:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  468. if(buffer_get_long(buf,&flags)!=4)
  469. ^
  470. In file included from sftp.c:28:0:
  471. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  472. int buffer_get_long(BUFFER *buffer,long *data);
  473. ^~~~~~~~~~~~~~~
  474. sftp.c:516:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  475. if(buffer_get_longlong(buf,&attr->size)!=8)
  476. ^
  477. In file included from sftp.c:28:0:
  478. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  479. int buffer_get_longlong(BUFFER *buffer, long long *data);
  480. ^~~~~~~~~~~~~~~~~~~
  481. sftp.c:522:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  482. if(buffer_get_long(buf,&attr->uid)!=4)
  483. ^
  484. In file included from sftp.c:28:0:
  485. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  486. int buffer_get_long(BUFFER *buffer,long *data);
  487. ^~~~~~~~~~~~~~~
  488. sftp.c:524:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  489. if(buffer_get_long(buf,&attr->gid)!=4)
  490. ^
  491. In file included from sftp.c:28:0:
  492. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  493. int buffer_get_long(BUFFER *buffer,long *data);
  494. ^~~~~~~~~~~~~~~
  495. sftp.c:530:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  496. if(buffer_get_long(buf,&attr->permissions)!=4)
  497. ^
  498. In file included from sftp.c:28:0:
  499. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  500. int buffer_get_long(BUFFER *buffer,long *data);
  501. ^~~~~~~~~~~~~~~
  502. sftp.c:535:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  503. if(buffer_get_long(buf,&attr->atime)!=4)
  504. ^
  505. In file included from sftp.c:28:0:
  506. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  507. int buffer_get_long(BUFFER *buffer,long *data);
  508. ^~~~~~~~~~~~~~~
  509. sftp.c:538:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  510. if(buffer_get_long(buf,&attr->mtime)!=4)
  511. ^
  512. In file included from sftp.c:28:0:
  513. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  514. int buffer_get_long(BUFFER *buffer,long *data);
  515. ^~~~~~~~~~~~~~~
  516. sftp.c:543:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  517. if(buffer_get_long(buf,&attr->extended_count)!=4)
  518. ^
  519. In file included from sftp.c:28:0:
  520. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  521. int buffer_get_long(BUFFER *buffer,long *data);
  522. ^~~~~~~~~~~~~~~
  523. sftp.c: In function ‘sftp_readdir’:
  524. sftp.c:648:46: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  525. buffer_get_long(msg->payload,&dir->count);
  526. ^
  527. In file included from sftp.c:28:0:
  528. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  529. int buffer_get_long(BUFFER *buffer,long *data);
  530. ^~~~~~~~~~~~~~~
  531. gcc -o libssh.so -shared client.o packet.o dh.o crypt.o connect.o error.o buffer.o string.o kex.o channels.o options.o keys.o auth.o base64.o keyfiles.o misc.o gzip.o wrapper.o sftp.o -lnsl -lresolv -lz -lcrypto
  532. /usr/bin/ld: client.o: relocation R_X86_64_PC32 against symbol `dh_handshake' can not be used when making a shared object; recompile with -fPIC
  533. /usr/bin/ld: final link failed: Bad value
  534. collect2: error: ld returned 1 exit status
  535. Makefile:30: recipe for target 'libssh.so' failed
  536. make[1]: *** [libssh.so] Error 1
  537. make[1]: Leaving directory '/home/telekom/Project/libssh-0.1/libssh'
  538. Makefile:26: recipe for target 'all' failed
  539. make: *** [all] Error 1
  540. telekom@telekom-49net:~/Project/libssh-0.1$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement