daily pastebin goal
19%
SHARE
TWEET

LIBSSH-0.1

a guest Apr 20th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lupus@l-arena:~/libssh-0.1$ make
  2. gcc -g -O2 -Iinclude/ -Wall -g   -c -o client.o client.c
  3. client.c: In function ‘main’:
  4. client.c:247:38: warning: pointer targets in passing argument 2 of ‘ssh_print_hexa’ differ in signedness [-Wpointer-sign]
  5.      ssh_print_hexa("Public key hash",hash,MD5_DIGEST_LEN);
  6.                                       ^~~~
  7. In file included from client.c:21:0:
  8. include/libssh/libssh.h:303:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  9.  void ssh_print_hexa(char *descr,unsigned char *what, int len);
  10.       ^~~~~~~~~~~~~~
  11. client.c: In function ‘select_loop’:
  12. client.c:124:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  13.                      write(1,buffer_get(readbuf),lus);
  14.                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. client.c:135:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  16.                      write(2,buffer_get(readbuf),lus);
  17.                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. make[1]: Entering directory '/home/lupus/libssh-0.1/libssh'
  19. gcc -g -O2 -Wall -g -I../include/   -c -o client.o client.c
  20. client.c: In function ‘send_banner’:
  21. client.c:64:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  22.      write(session->fd,buffer,strlen(buffer));
  23.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. gcc -g -O2 -Wall -g -I../include/   -c -o packet.o packet.c
  25. packet.c: In function ‘packet_read’:
  26. packet.c:136:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  27.      if(!buffer_get_char(session->in_buffer,&padding)){
  28.                                             ^
  29. In file included from packet.c:27:0:
  30. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  31.  int buffer_get_char(BUFFER *buffer,char *data);
  32.      ^~~~~~~~~~~~~~~
  33. packet.c: In function ‘packet_translate’:
  34. packet.c:161:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  35.      if(!buffer_get_char(session->in_buffer,&session->in_packet.type)){
  36.                                             ^
  37. In file included from packet.c:27:0:
  38. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  39.  int buffer_get_char(BUFFER *buffer,char *data);
  40.      ^~~~~~~~~~~~~~~
  41. gcc -g -O2 -Wall -g -I../include/   -c -o dh.o dh.c
  42. In file included from dh.c:43:0:
  43. dh.c: In function ‘make_bignum_string’:
  44. dh.c:152:32: warning: pointer targets in passing argument 2 of ‘BN_bn2bin’ differ in signedness [-Wpointer-sign]
  45.      finallen=bignum_bn2bin(num,ptr->string+pad);
  46.                                 ^
  47. ../include/libssh/libssh.h:69:46: note: in definition of macro ‘bignum_bn2bin’
  48.  #define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
  49.                                               ^~~
  50. In file included from /usr/include/openssl/dsa.h:81:0,
  51.                  from ../include/libssh/libssh.h:40,
  52.                  from dh.c:43:
  53. /usr/include/openssl/bn.h:443:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  54.  int BN_bn2bin(const BIGNUM *a, unsigned char *to);
  55.      ^~~~~~~~~
  56. dh.c:143:9: warning: variable ‘finallen’ set but not used [-Wunused-but-set-variable]
  57.      int finallen;
  58.          ^~~~~~~~
  59. In file included from dh.c:43:0:
  60. dh.c: In function ‘make_string_bn’:
  61. dh.c:159:23: warning: pointer targets in passing argument 1 of ‘BN_bin2bn’ differ in signedness [-Wpointer-sign]
  62.   return bignum_bin2bn(string->string,len,NULL);
  63.                        ^
  64. ../include/libssh/libssh.h:60:50: note: in definition of macro ‘bignum_bin2bn’
  65.  #define bignum_bin2bn(bn,datalen,data) BN_bin2bn(bn,datalen,data)
  66.                                                   ^~
  67. In file included from /usr/include/openssl/dsa.h:81:0,
  68.                  from ../include/libssh/libssh.h:40,
  69.                  from dh.c:43:
  70. /usr/include/openssl/bn.h:442:9: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  71.  BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
  72.          ^~~~~~~~~
  73. dh.c: In function ‘make_sessionid’:
  74. dh.c:233:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  75.      sha1_final(session->next_crypto->session_id,ctx);
  76.                 ^~~~~~~
  77. In file included from dh.c:43:0:
  78. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  79.  void sha1_final(unsigned char *md,SHACTX *c);
  80.       ^~~~~~~~~~
  81. dh.c: In function ‘generate_one_key’:
  82. dh.c:260:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  83.      sha1_final(output,ctx);
  84.                 ^~~~~~
  85. In file included from dh.c:43:0:
  86. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  87.  void sha1_final(unsigned char *md,SHACTX *c);
  88.       ^~~~~~~~~~
  89. dh.c: In function ‘generate_session_keys’:
  90. dh.c:280:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  91.          sha1_final(session->next_crypto->encryptkey+SHA_DIGEST_LEN,ctx);
  92.                     ^~~~~~~
  93. In file included from dh.c:43:0:
  94. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  95.  void sha1_final(unsigned char *md,SHACTX *c);
  96.       ^~~~~~~~~~
  97. dh.c:290:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  98.          sha1_final(session->next_crypto->decryptkey+SHA_DIGEST_LEN,ctx);
  99.                     ^~~~~~~
  100. In file included from dh.c:43:0:
  101. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  102.  void sha1_final(unsigned char *md,SHACTX *c);
  103.       ^~~~~~~~~~
  104. dh.c: In function ‘pubkey_get_hash’:
  105. dh.c:314:15: warning: pointer targets in passing argument 1 of ‘md5_final’ differ in signedness [-Wpointer-sign]
  106.      md5_final(hash,ctx);
  107.                ^~~~
  108. In file included from dh.c:43:0:
  109. ../include/libssh/libssh.h:79:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  110.  void md5_final(unsigned char *md,MD5CTX *c);
  111.       ^~~~~~~~~
  112. dh.c: In function ‘sig_verify’:
  113. dh.c:347:10: warning: pointer targets in passing argument 1 of ‘sha1’ differ in signedness [-Wpointer-sign]
  114.      sha1(digest,SHA_DIGEST_LENGTH,hash);
  115.           ^~~~~~
  116. In file included from dh.c:43:0:
  117. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  118.  void sha1(unsigned char *digest,int len,unsigned char *hash);
  119.       ^~~~
  120. dh.c:347:35: warning: pointer targets in passing argument 3 of ‘sha1’ differ in signedness [-Wpointer-sign]
  121.      sha1(digest,SHA_DIGEST_LENGTH,hash);
  122.                                    ^~~~
  123. In file included from dh.c:43:0:
  124. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  125.  void sha1(unsigned char *digest,int len,unsigned char *hash);
  126.       ^~~~
  127. dh.c:350:33: warning: pointer targets in passing argument 1 of ‘DSA_do_verify’ differ in signedness [-Wpointer-sign]
  128.              valid=DSA_do_verify(hash,SHA_DIGEST_LENGTH,signature->dsa_sign,
  129.                                  ^~~~
  130. In file included from ../include/libssh/libssh.h:40:0,
  131.                  from dh.c:43:
  132. /usr/include/openssl/dsa.h:194:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  133.  int DSA_do_verify(const unsigned char *dgst, int dgst_len,
  134.      ^~~~~~~~~~~~~
  135. dh.c:362:35: warning: pointer targets in passing argument 2 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  136.          valid=RSA_verify(NID_sha1,hash,SHA_DIGEST_LENGTH,
  137.                                    ^~~~
  138. In file included from ../include/libssh/libssh.h:41:0,
  139.                  from dh.c:43:
  140. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  141.  int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  142.      ^~~~~~~~~~
  143. dh.c:363:13: warning: pointer targets in passing argument 4 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  144.              signature->rsa_sign->string,string_len(signature->rsa_sign),pubkey->rsa_pub);
  145.              ^~~~~~~~~
  146. In file included from ../include/libssh/libssh.h:41:0,
  147.                  from dh.c:43:
  148. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  149.  int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  150.      ^~~~~~~~~~
  151. dh.c: In function ‘ssh_get_random’:
  152. dh.c:79:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
  153.          read(rndfd,where,len);
  154.          ^~~~~~~~~~~~~~~~~~~~~
  155. gcc -g -O2 -Wall -g -I../include/   -c -o crypt.o crypt.c
  156. crypt.c: In function ‘packet_encrypt’:
  157. crypt.c:71:20: warning: pointer targets in passing argument 2 of ‘hmac_final’ differ in signedness [-Wpointer-sign]
  158.      hmac_final(ctx,session->current_crypto->hmacbuf,&finallen);
  159.                     ^~~~~~~
  160. In file included from crypt.c:32:0:
  161. ../include/libssh/libssh.h:88:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  162.  void hmac_final(HMACCTX *ctx,unsigned char *hashmacbuf,int *len);
  163.       ^~~~~~~~~~
  164. gcc -g -O2 -Wall -g -I../include/   -c -o connect.o connect.c
  165. gcc -g -O2 -Wall -g -I../include/   -c -o error.o error.c
  166. gcc -g -O2 -Wall -g -I../include/   -c -o buffer.o buffer.c
  167. buffer.c: In function ‘buffer_get_ssh_string’:
  168. buffer.c:144:31: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  169.      if(buffer_get_long(buffer,&stringlen)==0)
  170.                                ^
  171. buffer.c:132:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  172.  int buffer_get_long(BUFFER *buffer, long *data){
  173.      ^~~~~~~~~~~~~~~
  174. gcc -g -O2 -Wall -g -I../include/   -c -o string.o string.c
  175. gcc -g -O2 -Wall -g -I../include/   -c -o kex.o kex.c
  176. kex.c: In function ‘ssh_get_kex’:
  177. kex.c:126:34: warning: pointer targets in passing argument 2 of ‘hashbufin_add_cookie’ differ in signedness [-Wpointer-sign]
  178.      hashbufin_add_cookie(session,session->server_kex.cookie);
  179.                                   ^~~~~~~
  180. In file included from kex.c:24:0:
  181. ../include/libssh/libssh.h:300:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  182.  void hashbufin_add_cookie(SSH_SESSION *session,unsigned char *cookie);
  183.       ^~~~~~~~~~~~~~~~~~~~
  184. gcc -g -O2 -Wall -g -I../include/   -c -o channels.o channels.c
  185. channels.c: In function ‘open_session_channel’:
  186. channels.c:116:52: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  187.                  buffer_get_long(session->in_buffer,&code);
  188.                                                     ^
  189. In file included from channels.c:29:0:
  190. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  191.  int buffer_get_long(BUFFER *buffer,long *data);
  192.      ^~~~~~~~~~~~~~~
  193. channels.c: In function ‘channel_eof’:
  194. channels.c:261:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  195.      buffer_get_long(session->in_buffer,&channelnum);
  196.                                         ^
  197. In file included from channels.c:29:0:
  198. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  199.  int buffer_get_long(BUFFER *buffer,long *data);
  200.      ^~~~~~~~~~~~~~~
  201. channels.c: In function ‘channel_close’:
  202. channels.c:275:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  203.      buffer_get_long(session->in_buffer,&channelnum);
  204.                                         ^
  205. In file included from channels.c:29:0:
  206. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  207.  int buffer_get_long(BUFFER *buffer,long *data);
  208.      ^~~~~~~~~~~~~~~
  209. channels.c: In function ‘channel_input_request’:
  210. channels.c:291:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  211.      buffer_get_long(session->in_buffer,&channelnum);
  212.                                         ^
  213. In file included from channels.c:29:0:
  214. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  215.  int buffer_get_long(BUFFER *buffer,long *data);
  216.      ^~~~~~~~~~~~~~~
  217. channels.c:302:40: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  218.      buffer_get_char(session->in_buffer,(unsigned char *)&status);
  219.                                         ^
  220. In file included from channels.c:29:0:
  221. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  222.  int buffer_get_char(BUFFER *buffer,char *data);
  223.      ^~~~~~~~~~~~~~~
  224. gcc -g -O2 -Wall -g -I../include/   -c -o options.o options.c
  225. gcc -g -O2 -Wall -g -I../include/   -c -o keys.o keys.c
  226. keys.c: In function ‘ssh_do_sign’:
  227. keys.c:331:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  228.      sha1_final(hash,ctx);
  229.                 ^~~~
  230. In file included from keys.c:26:0:
  231. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  232.  void sha1_final(unsigned char *md,SHACTX *c);
  233.       ^~~~~~~~~~
  234. keys.c:336:40: warning: pointer targets in passing argument 1 of ‘DSA_do_sign’ differ in signedness [-Wpointer-sign]
  235.              sign->dsa_sign=DSA_do_sign(hash,SHA_DIGEST_LENGTH,privatekey->dsa_priv);
  236.                                         ^~~~
  237. In file included from keys.c:24:0:
  238. /usr/include/openssl/dsa.h:193:10: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  239.  DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
  240.           ^~~~~~~~~~~
  241. gcc -g -O2 -Wall -g -I../include/   -c -o auth.o auth.c
  242. gcc -g -O2 -Wall -g -I../include/   -c -o base64.o base64.c
  243. gcc -g -O2 -Wall -g -I../include/   -c -o keyfiles.o keyfiles.c
  244. gcc -g -O2 -Wall -g -I../include/   -c -o misc.o misc.c
  245. gcc -g -O2 -Wall -g -I../include/   -c -o gzip.o gzip.c
  246. gcc -g -O2 -Wall -g -I../include/   -c -o wrapper.o wrapper.c
  247. wrapper.c: In function ‘hmac_final’:
  248. wrapper.c:102:30: warning: pointer targets in passing argument 3 of ‘HMAC_Final’ differ in signedness [-Wpointer-sign]
  249.     HMAC_Final(ctx,hashmacbuf,len);
  250.                               ^~~
  251. In file included from ../include/libssh/libssh.h:44:0,
  252.                  from wrapper.c:28:
  253. /usr/include/openssl/hmac.h:97:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’
  254.  int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
  255.      ^~~~~~~~~~
  256. At top level:
  257. wrapper.c:111:13: warning: ‘alloc_key’ defined but not used [-Wunused-function]
  258.  static void alloc_key(struct crypto_struct *cipher){
  259.              ^~~~~~~~~
  260. gcc -g -O2 -Wall -g -I../include/   -c -o sftp.o sftp.c
  261. sftp.c: In function ‘sftp_packet_read’:
  262. sftp.c:96:37: warning: pointer targets in passing argument 2 of ‘buffer_get_lon ’ differ in signedness [-Wpointer-sign]
  263.      buffer_get_long(packet->payload,&size);
  264.                                      ^
  265. In file included from sftp.c:28:0:
  266. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  267.  int buffer_get_long(BUFFER *buffer,long *data);
  268.      ^~~~~~~~~~~~~~~
  269. sftp.c:103:37: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  270.      buffer_get_char(packet->payload,&packet->type);
  271.                                      ^
  272. In file included from sftp.c:28:0:
  273. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  274.  int buffer_get_char(BUFFER *buffer,char *data);
  275.      ^~~~~~~~~~~~~~~
  276. sftp.c: In function ‘sftp_get_message’:
  277. sftp.c:137:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  278.      if(buffer_get_long(packet->payload,&msg->id)!=sizeof(long)){
  279.                                         ^
  280. In file included from sftp.c:28:0:
  281. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  282.  int buffer_get_long(BUFFER *buffer,long *data);
  283.      ^~~~~~~~~~~~~~~
  284. sftp.c: In function ‘sftp_init’:
  285. sftp.c:184:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  286.      buffer_get_long(packet->payload,&version);
  287.                                      ^
  288. In file included from sftp.c:28: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. sftp.c: In function ‘parse_status_msg’:
  293. sftp.c:271:39: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  294.      if( (buffer_get_long(msg->payload,&status->status)!= 4)
  295.                                        ^
  296. In file included from sftp.c:28: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. sftp.c: In function ‘sftp_parse_attr_4’:
  301. sftp.c:381:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  302.          if(buffer_get_long(buf,&flags)!=4)
  303.                                 ^
  304. In file included from sftp.c:28: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. sftp.c:386:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  309.              if(buffer_get_longlong(buf,&attr->size)!=8)
  310.                                         ^
  311. In file included from sftp.c:28:0:
  312. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  313.  int buffer_get_longlong(BUFFER *buffer, long long *data);
  314.      ^~~~~~~~~~~~~~~~~~~
  315. sftp.c:397:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  316.              if(buffer_get_long(buf,&attr->permissions)!=4)
  317.                                     ^
  318. In file included from sftp.c:28:0:
  319. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  320.  int buffer_get_long(BUFFER *buffer,long *data);
  321.      ^~~~~~~~~~~~~~~
  322. sftp.c:402:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  323.              if(buffer_get_longlong(buf,&attr->atime64)!=8)
  324.                                         ^
  325. In file included from sftp.c:28:0:
  326. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  327.  int buffer_get_longlong(BUFFER *buffer, long long *data);
  328.      ^~~~~~~~~~~~~~~~~~~
  329. sftp.c:407:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  330.              if(buffer_get_long(buf,&attr->atime_nseconds)!=4)
  331.                                     ^
  332. In file included from sftp.c:28:0:
  333. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  334.  int buffer_get_long(BUFFER *buffer,long *data);
  335.      ^~~~~~~~~~~~~~~
  336. sftp.c:412:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  337.              if(buffer_get_longlong(buf,&attr->createtime)!=8)
  338.                                         ^
  339. In file included from sftp.c:28:0:
  340. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  341.  int buffer_get_longlong(BUFFER *buffer, long long *data);
  342.      ^~~~~~~~~~~~~~~~~~~
  343. sftp.c:417:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  344.              if(buffer_get_long(buf,&attr->createtime_nseconds)!=4)
  345.                                     ^
  346. In file included from sftp.c:28:0:
  347. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  348.  int buffer_get_long(BUFFER *buffer,long *data);
  349.      ^~~~~~~~~~~~~~~
  350. sftp.c:422:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  351.              if(buffer_get_longlong(buf,&attr->mtime64)!=8)
  352.                                         ^
  353. In file included from sftp.c:28:0:
  354. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  355.  int buffer_get_longlong(BUFFER *buffer, long long *data);
  356.      ^~~~~~~~~~~~~~~~~~~
  357. sftp.c:427:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  358.              if(buffer_get_long(buf,&attr->mtime_nseconds)!=4)
  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:436:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  365.              if(buffer_get_long(buf,&attr->extended_count)!=4)
  366.                                     ^
  367. In file included from sftp.c:28:0:
  368. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  369.  int buffer_get_long(BUFFER *buffer,long *data);
  370.      ^~~~~~~~~~~~~~~
  371. sftp.c: In function ‘sftp_parse_attr_3’:
  372. sftp.c:510:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  373.          if(buffer_get_long(buf,&flags)!=4)
  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:516:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  380.              if(buffer_get_longlong(buf,&attr->size)!=8)
  381.                                         ^
  382. In file included from sftp.c:28:0:
  383. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  384.  int buffer_get_longlong(BUFFER *buffer, long long *data);
  385.      ^~~~~~~~~~~~~~~~~~~
  386. sftp.c:522:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  387.              if(buffer_get_long(buf,&attr->uid)!=4)
  388.                                     ^
  389. In file included from sftp.c:28:0:
  390. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  391.  int buffer_get_long(BUFFER *buffer,long *data);
  392.      ^~~~~~~~~~~~~~~
  393. sftp.c:524:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  394.              if(buffer_get_long(buf,&attr->gid)!=4)
  395.                                     ^
  396. In file included from sftp.c:28:0:
  397. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  398.  int buffer_get_long(BUFFER *buffer,long *data);
  399.      ^~~~~~~~~~~~~~~
  400. sftp.c:530:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  401.              if(buffer_get_long(buf,&attr->permissions)!=4)
  402.                                     ^
  403. In file included from sftp.c:28:0:
  404. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  405.  int buffer_get_long(BUFFER *buffer,long *data);
  406.      ^~~~~~~~~~~~~~~
  407. sftp.c:535:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  408.              if(buffer_get_long(buf,&attr->atime)!=4)
  409.                                     ^
  410. In file included from sftp.c:28:0:
  411. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  412.  int buffer_get_long(BUFFER *buffer,long *data);
  413.      ^~~~~~~~~~~~~~~
  414. sftp.c:538:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  415.              if(buffer_get_long(buf,&attr->mtime)!=4)
  416.                                     ^
  417. In file included from sftp.c:28:0:
  418. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  419.  int buffer_get_long(BUFFER *buffer,long *data);
  420.      ^~~~~~~~~~~~~~~
  421. sftp.c:543:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  422.              if(buffer_get_long(buf,&attr->extended_count)!=4)
  423.                                     ^
  424. In file included from sftp.c:28:0:
  425. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  426.  int buffer_get_long(BUFFER *buffer,long *data);
  427.      ^~~~~~~~~~~~~~~
  428. sftp.c: In function ‘sftp_readdir’:
  429. sftp.c:648:46: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  430.                  buffer_get_long(msg->payload,&dir->count);
  431.                                               ^
  432. In file included from sftp.c:28:0:
  433. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  434.  int buffer_get_long(BUFFER *buffer,long *data);
  435.      ^~~~~~~~~~~~~~~
  436. 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
  437. /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
  438. /usr/bin/ld: final link failed: Bad value
  439. collect2: error: ld returned 1 exit status
  440. Makefile:30: recipe for target 'libssh.so' failed
  441. make[1]: *** [libssh.so] Error 1
  442. make[1]: Leaving directory '/home/lupus/libssh-0.1/libssh'
  443. Makefile:26: recipe for target 'all' failed
  444. make: *** [all] Error 1
RAW Paste Data
Top