Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@l-arena:~# cd libssh-0.1/
- root@l-arena:~/libssh-0.1# ls
- API.txt client.c config.sub COPYING libssh README
- AUTHORS config.guess configure include Makefile.in
- CHANGELOG config.h.in configure.in install-sh mkinstalldirs
- root@l-arena:~/libssh-0.1# clear
- root@l-arena:~/libssh-0.1# ./configure
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking for gcc... gcc
- checking for C compiler default output... a.out
- checking whether the C compiler works... yes
- checking whether we are cross compiling... no
- checking for suffix of executables...
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether gcc accepts -g... yes
- checking for gcc option to accept ANSI C... none needed
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether ln -s works... yes
- checking whether make sets $(MAKE)... yes
- checking for ranlib... ranlib
- checking whether byte ordering is bigendian... no
- checking for BN_init in -lcrypto... yes
- checking for deflateInit_ in -lz... yes
- checking for gethostbyname in -lresolv... yes
- checking for gethostbyname in -lnsl... yes
- checking how to run the C preprocessor... gcc -E
- checking for egrep... grep -E
- checking for ANSI C header files... yes
- checking for sys/types.h... yes
- checking for sys/stat.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for memory.h... yes
- checking for strings.h... yes
- checking for inttypes.h... yes
- checking for stdint.h... yes
- checking for unistd.h... yes
- checking fcntl.h usability... yes
- checking fcntl.h presence... yes
- checking for fcntl.h... yes
- checking netdb.h usability... yes
- checking netdb.h presence... yes
- checking for netdb.h... yes
- checking netinet/in.h usability... yes
- checking netinet/in.h presence... yes
- checking for netinet/in.h... yes
- checking for stdlib.h... (cached) yes
- checking for string.h... (cached) yes
- checking sys/socket.h usability... yes
- checking sys/socket.h presence... yes
- checking for sys/socket.h... yes
- checking sys/time.h usability... yes
- checking sys/time.h presence... yes
- checking for sys/time.h... yes
- checking termios.h usability... yes
- checking termios.h presence... yes
- checking for termios.h... yes
- checking for unistd.h... (cached) yes
- checking openssl/aes.h usability... yes
- checking openssl/aes.h presence... yes
- checking for openssl/aes.h... yes
- checking openssl/blowfish.h usability... yes
- checking openssl/blowfish.h presence... yes
- checking for openssl/blowfish.h... yes
- checking zlib.h usability... yes
- checking zlib.h presence... yes
- checking for zlib.h... yes
- checking sys/poll.h usability... yes
- checking sys/poll.h presence... yes
- checking for sys/poll.h... yes
- checking for an ANSI C-conforming const... yes
- checking whether time.h and sys/time.h may both be included... yes
- checking for stdlib.h... (cached) yes
- checking for GNU libc compatible malloc... yes
- checking for working memcmp... yes
- checking for stdlib.h... (cached) yes
- checking for GNU libc compatible realloc... yes
- checking sys/select.h usability... yes
- checking sys/select.h presence... yes
- checking for sys/select.h... yes
- checking for sys/socket.h... (cached) yes
- checking types of arguments for select... int,fd_set *,struct timeval *
- checking return type of signal handlers... void
- checking for vprintf... yes
- checking for _doprnt... no
- checking for endpwent... yes
- checking for gethostbyaddr... yes
- checking for gethostbyname... yes
- checking for getpass... yes
- checking for memmove... yes
- checking for memset... yes
- checking for select... yes
- checking for socket... yes
- checking for strchr... yes
- checking for strdup... yes
- checking for strerror... yes
- checking for strstr... yes
- checking for poll... yes
- configure: creating ./config.status
- config.status: creating Makefile
- config.status: creating libssh/Makefile
- config.status: creating config.h
- root@l-arena:~/libssh-0.1# make
- ln -s -f ../../config.h include/libssh/config.h
- gcc -g -O2 -Iinclude/ -Wall -g -c -o client.o client.c
- client.c: In function ‘main’:
- client.c:247:38: warning: pointer targets in passing argument 2 of ‘ssh_print_hexa’ differ in signedness [-Wpointer-sign]
- ssh_print_hexa("Public key hash",hash,MD5_DIGEST_LEN);
- ^~~~
- In file included from client.c:21:0:
- include/libssh/libssh.h:303:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void ssh_print_hexa(char *descr,unsigned char *what, int len);
- ^~~~~~~~~~~~~~
- client.c: In function ‘select_loop’:
- client.c:124:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
- write(1,buffer_get(readbuf),lus);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- client.c:135:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
- write(2,buffer_get(readbuf),lus);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- make[1]: Entering directory '/root/libssh-0.1/libssh'
- gcc -g -O2 -Wall -g -I../include/ -c -o client.o client.c
- client.c: In function ‘send_banner’:
- client.c:64:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
- write(session->fd,buffer,strlen(buffer));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o packet.o packet.c
- packet.c: In function ‘packet_read’:
- packet.c:136:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
- if(!buffer_get_char(session->in_buffer,&padding)){
- ^
- In file included from packet.c:27:0:
- ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
- int buffer_get_char(BUFFER *buffer,char *data);
- ^~~~~~~~~~~~~~~
- packet.c: In function ‘packet_translate’:
- packet.c:161:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
- if(!buffer_get_char(session->in_buffer,&session->in_packet.type)){
- ^
- In file included from packet.c:27:0:
- ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
- int buffer_get_char(BUFFER *buffer,char *data);
- ^~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o dh.o dh.c
- In file included from dh.c:43:0:
- dh.c: In function ‘make_bignum_string’:
- dh.c:152:32: warning: pointer targets in passing argument 2 of ‘BN_bn2bin’ differ in signedness [-Wpointer-sign]
- finallen=bignum_bn2bin(num,ptr->string+pad);
- ^
- ../include/libssh/libssh.h:69:46: note: in definition of macro ‘bignum_bn2bin’
- #define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
- ^~~
- In file included from /usr/include/openssl/dsa.h:81:0,
- from ../include/libssh/libssh.h:40,
- from dh.c:43:
- /usr/include/openssl/bn.h:443:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- int BN_bn2bin(const BIGNUM *a, unsigned char *to);
- ^~~~~~~~~
- dh.c:143:9: warning: variable ‘finallen’ set but not used [-Wunused-but-set-variable]
- int finallen;
- ^~~~~~~~
- In file included from dh.c:43:0:
- dh.c: In function ‘make_string_bn’:
- dh.c:159:23: warning: pointer targets in passing argument 1 of ‘BN_bin2bn’ differ in signedness [-Wpointer-sign]
- return bignum_bin2bn(string->string,len,NULL);
- ^
- ../include/libssh/libssh.h:60:50: note: in definition of macro ‘bignum_bin2bn’
- #define bignum_bin2bn(bn,datalen,data) BN_bin2bn(bn,datalen,data)
- ^~
- In file included from /usr/include/openssl/dsa.h:81:0,
- from ../include/libssh/libssh.h:40,
- from dh.c:43:
- /usr/include/openssl/bn.h:442:9: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
- BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
- ^~~~~~~~~
- dh.c: In function ‘make_sessionid’:
- dh.c:233:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
- sha1_final(session->next_crypto->session_id,ctx);
- ^~~~~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1_final(unsigned char *md,SHACTX *c);
- ^~~~~~~~~~
- dh.c: In function ‘generate_one_key’:
- dh.c:260:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
- sha1_final(output,ctx);
- ^~~~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1_final(unsigned char *md,SHACTX *c);
- ^~~~~~~~~~
- dh.c: In function ‘generate_session_keys’:
- dh.c:280:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
- sha1_final(session->next_crypto->encryptkey+SHA_DIGEST_LEN,ctx);
- ^~~~~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1_final(unsigned char *md,SHACTX *c);
- ^~~~~~~~~~
- dh.c:290:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
- sha1_final(session->next_crypto->decryptkey+SHA_DIGEST_LEN,ctx);
- ^~~~~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1_final(unsigned char *md,SHACTX *c);
- ^~~~~~~~~~
- dh.c: In function ‘pubkey_get_hash’:
- dh.c:314:15: warning: pointer targets in passing argument 1 of ‘md5_final’ differ in signedness [-Wpointer-sign]
- md5_final(hash,ctx);
- ^~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:79:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void md5_final(unsigned char *md,MD5CTX *c);
- ^~~~~~~~~
- dh.c: In function ‘sig_verify’:
- dh.c:347:10: warning: pointer targets in passing argument 1 of ‘sha1’ differ in signedness [-Wpointer-sign]
- sha1(digest,SHA_DIGEST_LENGTH,hash);
- ^~~~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1(unsigned char *digest,int len,unsigned char *hash);
- ^~~~
- dh.c:347:35: warning: pointer targets in passing argument 3 of ‘sha1’ differ in signedness [-Wpointer-sign]
- sha1(digest,SHA_DIGEST_LENGTH,hash);
- ^~~~
- In file included from dh.c:43:0:
- ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1(unsigned char *digest,int len,unsigned char *hash);
- ^~~~
- dh.c:350:33: warning: pointer targets in passing argument 1 of ‘DSA_do_verify’ differ in signedness [-Wpointer-sign]
- valid=DSA_do_verify(hash,SHA_DIGEST_LENGTH,signature->dsa_sign,
- ^~~~
- In file included from ../include/libssh/libssh.h:40:0,
- from dh.c:43:
- /usr/include/openssl/dsa.h:194:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
- int DSA_do_verify(const unsigned char *dgst, int dgst_len,
- ^~~~~~~~~~~~~
- dh.c:362:35: warning: pointer targets in passing argument 2 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
- valid=RSA_verify(NID_sha1,hash,SHA_DIGEST_LENGTH,
- ^~~~
- In file included from ../include/libssh/libssh.h:41:0,
- from dh.c:43:
- /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
- int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
- ^~~~~~~~~~
- dh.c:363:13: warning: pointer targets in passing argument 4 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
- signature->rsa_sign->string,string_len(signature->rsa_sign),pubkey->rsa_pub);
- ^~~~~~~~~
- In file included from ../include/libssh/libssh.h:41:0,
- from dh.c:43:
- /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
- int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
- ^~~~~~~~~~
- dh.c: In function ‘ssh_get_random’:
- dh.c:79:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
- read(rndfd,where,len);
- ^~~~~~~~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o crypt.o crypt.c
- crypt.c: In function ‘packet_encrypt’:
- crypt.c:71:20: warning: pointer targets in passing argument 2 of ‘hmac_final’ differ in signedness [-Wpointer-sign]
- hmac_final(ctx,session->current_crypto->hmacbuf,&finallen);
- ^~~~~~~
- In file included from crypt.c:32:0:
- ../include/libssh/libssh.h:88:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void hmac_final(HMACCTX *ctx,unsigned char *hashmacbuf,int *len);
- ^~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o connect.o connect.c
- gcc -g -O2 -Wall -g -I../include/ -c -o error.o error.c
- gcc -g -O2 -Wall -g -I../include/ -c -o buffer.o buffer.c
- buffer.c: In function ‘buffer_get_ssh_string’:
- buffer.c:144:31: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buffer,&stringlen)==0)
- ^
- buffer.c:132:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer, long *data){
- ^~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o string.o string.c
- gcc -g -O2 -Wall -g -I../include/ -c -o kex.o kex.c
- kex.c: In function ‘ssh_get_kex’:
- kex.c:126:34: warning: pointer targets in passing argument 2 of ‘hashbufin_add_cookie’ differ in signedness [-Wpointer-sign]
- hashbufin_add_cookie(session,session->server_kex.cookie);
- ^~~~~~~
- In file included from kex.c:24:0:
- ../include/libssh/libssh.h:300:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void hashbufin_add_cookie(SSH_SESSION *session,unsigned char *cookie);
- ^~~~~~~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o channels.o channels.c
- channels.c: In function ‘open_session_channel’:
- channels.c:116:52: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(session->in_buffer,&code);
- ^
- In file included from channels.c:29:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- channels.c: In function ‘channel_eof’:
- channels.c:261:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(session->in_buffer,&channelnum);
- ^
- In file included from channels.c:29:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- channels.c: In function ‘channel_close’:
- channels.c:275:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(session->in_buffer,&channelnum);
- ^
- In file included from channels.c:29:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- channels.c: In function ‘channel_input_request’:
- channels.c:291:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(session->in_buffer,&channelnum);
- ^
- In file included from channels.c:29:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- channels.c:302:40: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
- buffer_get_char(session->in_buffer,(unsigned char *)&status);
- ^
- In file included from channels.c:29:0:
- ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
- int buffer_get_char(BUFFER *buffer,char *data);
- ^~~~~~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o options.o options.c
- gcc -g -O2 -Wall -g -I../include/ -c -o keys.o keys.c
- keys.c: In function ‘ssh_do_sign’:
- keys.c:331:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
- sha1_final(hash,ctx);
- ^~~~
- In file included from keys.c:26:0:
- ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
- void sha1_final(unsigned char *md,SHACTX *c);
- ^~~~~~~~~~
- keys.c:336:40: warning: pointer targets in passing argument 1 of ‘DSA_do_sign’ differ in signedness [-Wpointer-sign]
- sign->dsa_sign=DSA_do_sign(hash,SHA_DIGEST_LENGTH,privatekey->dsa_priv);
- ^~~~
- In file included from keys.c:24:0:
- /usr/include/openssl/dsa.h:193:10: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
- DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
- ^~~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o auth.o auth.c
- gcc -g -O2 -Wall -g -I../include/ -c -o base64.o base64.c
- gcc -g -O2 -Wall -g -I../include/ -c -o keyfiles.o keyfiles.c
- gcc -g -O2 -Wall -g -I../include/ -c -o misc.o misc.c
- gcc -g -O2 -Wall -g -I../include/ -c -o gzip.o gzip.c
- gcc -g -O2 -Wall -g -I../include/ -c -o wrapper.o wrapper.c
- wrapper.c: In function ‘hmac_final’:
- wrapper.c:102:30: warning: pointer targets in passing argument 3 of ‘HMAC_Final’ differ in signedness [-Wpointer-sign]
- HMAC_Final(ctx,hashmacbuf,len);
- ^~~
- In file included from ../include/libssh/libssh.h:44:0,
- from wrapper.c:28:
- /usr/include/openssl/hmac.h:97:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’
- int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
- ^~~~~~~~~~
- gcc -g -O2 -Wall -g -I../include/ -c -o sftp.o sftp.c
- sftp.c: In function ‘sftp_packet_read’:
- sftp.c:96:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(packet->payload,&size);
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:103:37: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
- buffer_get_char(packet->payload,&packet->type);
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
- int buffer_get_char(BUFFER *buffer,char *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘sftp_get_message’:
- sftp.c:137:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(packet->payload,&msg->id)!=sizeof(long)){
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘sftp_init’:
- sftp.c:184:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(packet->payload,&version);
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘parse_status_msg’:
- sftp.c:271:39: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if( (buffer_get_long(msg->payload,&status->status)!= 4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘sftp_parse_attr_4’:
- sftp.c:381:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&flags)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:386:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
- if(buffer_get_longlong(buf,&attr->size)!=8)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
- int buffer_get_longlong(BUFFER *buffer, long long *data);
- ^~~~~~~~~~~~~~~~~~~
- sftp.c:397:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->permissions)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:402:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
- if(buffer_get_longlong(buf,&attr->atime64)!=8)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
- int buffer_get_longlong(BUFFER *buffer, long long *data);
- ^~~~~~~~~~~~~~~~~~~
- sftp.c:407:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->atime_nseconds)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:412:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
- if(buffer_get_longlong(buf,&attr->createtime)!=8)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
- int buffer_get_longlong(BUFFER *buffer, long long *data);
- ^~~~~~~~~~~~~~~~~~~
- sftp.c:417:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->createtime_nseconds)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:422:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
- if(buffer_get_longlong(buf,&attr->mtime64)!=8)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
- int buffer_get_longlong(BUFFER *buffer, long long *data);
- ^~~~~~~~~~~~~~~~~~~
- sftp.c:427:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->mtime_nseconds)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:436:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->extended_count)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘sftp_parse_attr_3’:
- sftp.c:510:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&flags)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:516:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
- if(buffer_get_longlong(buf,&attr->size)!=8)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
- int buffer_get_longlong(BUFFER *buffer, long long *data);
- ^~~~~~~~~~~~~~~~~~~
- sftp.c:522:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->uid)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:524:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->gid)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:530:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->permissions)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:535:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->atime)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:538:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->mtime)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c:543:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- if(buffer_get_long(buf,&attr->extended_count)!=4)
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- sftp.c: In function ‘sftp_readdir’:
- sftp.c:648:46: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
- buffer_get_long(msg->payload,&dir->count);
- ^
- In file included from sftp.c:28:0:
- ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
- int buffer_get_long(BUFFER *buffer,long *data);
- ^~~~~~~~~~~~~~~
- 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
- /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
- /usr/bin/ld: final link failed: Bad value
- collect2: error: ld returned 1 exit status
- Makefile:30: recipe for target 'libssh.so' failed
- make[1]: *** [libssh.so] Error 1
- make[1]: Leaving directory '/root/libssh-0.1/libssh'
- Makefile:26: recipe for target 'all' failed
- make: *** [all] Error 1
- root@l-arena:~/libssh-0.1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement