Am Dienstag, 14. November 2006 18:19 schrieb Daniel Stenberg <daniel_at_haxx.se>
[Re: [libssh2] Compiling on Solaris 10 64Bit??]:
> On Tue, 14 Nov 2006, Heiko Jansen wrote:
> > First problem is hardcoded "-Wall" in ~/src/Makefile.in ("-fPIC" seems
> > also wrong) and ~/Makefile.in.
>
> -Wall should of course only be enabled if gcc is used.
>
> Both that issue and the other shared lib issues for Solaris is solved by
> the automake+libtool patch I posted the other day.
Am I correct to assume, that this patch has not found it`s way to the CVS?
Because I just tried to compile the current version from CVS and still
get the same errors (see below).
Heiko
PS: I added the output of "make" below. Somewhat lengthy but perhaps useful.
~/src/libssh2> aclocal && autoheader && libtoolize --automake --force && autoconf && automake --include-deps --copy --foreign --add-missing
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in: installing `./missing'
automake: no `Makefile.am' found for any configure output
~/src/libssh2> ./configure --prefix=/digibib/tools --with-openssl=/digibib/tools --with-libz=/digibib/tools
#### same as in last Mail ####
webadm_at_satyros~/src/libssh2> make
make[1]: Entering directory `/digibib/src/libssh2/src'
cc -o channel.o channel.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -Wall -I../include/ -fPIC -lsocket
cc: illegal option -Wall
make[1]: *** [channel.o] Error 1
make[1]: Leaving directory `/digibib/src/libssh2/src'
make: *** [all] Error 1
###########################################################################
#### Edited Makefile and src/Makefile here to remove -Wall and -shared ####
###########################################################################
~/src/libssh2> make
make[1]: Entering directory `/digibib/src/libssh2/src'
cc -o channel.o channel.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"channel.c", line 260: warning: argument #6 is incompatible with prototype:
prototype: pointer to const char : "channel.c", line 110
argument : pointer to unsigned char
"channel.c", line 636: warning: argument #1 is incompatible with prototype:
prototype: pointer to unsigned char : "/digibib/tools/include/openssl/rand.h", line 102
argument : pointer to char
"channel.c", line 638: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "/usr/include/iso/stdio_c99.h", line 68
argument : pointer to unsigned char
cc -o comp.o comp.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"comp.c", line 151: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"comp.c", line 153: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"comp.c", line 188: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"comp.c", line 214: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"comp.c", line 229: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
cc -o crypt.o crypt.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"crypt.c", line 71: warning: initialization type mismatch
"crypt.c", line 83: warning: initialization type mismatch
"crypt.c", line 94: warning: initialization type mismatch
"crypt.c", line 105: warning: initialization type mismatch
"crypt.c", line 117: warning: initialization type mismatch
"crypt.c", line 130: warning: initialization type mismatch
"crypt.c", line 143: warning: initialization type mismatch
"crypt.c", line 156: warning: initialization type mismatch
cc -o hostkey.o hostkey.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"hostkey.c", line 71: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"hostkey.c", line 122: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/stdio_iso.h", line 195
argument : pointer to const unsigned char
"hostkey.c", line 134: warning: argument #3 is incompatible with prototype:
prototype: pointer to function(pointer to char, int, int, pointer to void) returning int : "/digibib/tools/include/openssl/pem.h", line 616
argument : pointer to void
"hostkey.c", line 160: warning: argument #4 is incompatible with prototype:
prototype: pointer to unsigned char : "/digibib/tools/include/openssl/rsa.h", line 277
argument : pointer to char
"hostkey.c", line 190: warning: argument #4 is incompatible with prototype:
prototype: pointer to unsigned char : "/digibib/tools/include/openssl/rsa.h", line 275
argument : pointer to char
"hostkey.c", line 190: warning: argument #5 is incompatible with prototype:
prototype: pointer to unsigned int : "/digibib/tools/include/openssl/rsa.h", line 275
argument : pointer to int
"hostkey.c", line 196: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"hostkey.c", line 229: warning: argument #4 is incompatible with prototype:
prototype: pointer to unsigned char : "/digibib/tools/include/openssl/rsa.h", line 275
argument : pointer to char
"hostkey.c", line 229: warning: argument #5 is incompatible with prototype:
prototype: pointer to unsigned int : "/digibib/tools/include/openssl/rsa.h", line 275
argument : pointer to int
"hostkey.c", line 236: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"hostkey.c", line 294: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"hostkey.c", line 336: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/stdio_iso.h", line 195
argument : pointer to const unsigned char
"hostkey.c", line 348: warning: argument #3 is incompatible with prototype:
prototype: pointer to function(pointer to char, int, int, pointer to void) returning int : "/digibib/tools/include/openssl/pem.h", line 625
argument : pointer to void
"hostkey.c", line 531: warning: return value type mismatch
"hostkey.c", line 536: warning: return value type mismatch
cc -o kex.o kex.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"kex.c", line 239: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 241: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 248: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 250: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 355: warning: assignment type mismatch:
pointer to function(void) returning pointer to struct evp_cipher_st {int nid, int block_size, int key_len, int iv_len, unsigned long flags, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to const unsigned char, pointer to const unsigned char, int) returning int init, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to unsigned char, pointer to const unsigned char, unsigned int) returning int do_cipher, pointer to function(pointer to struct evp_cipher_ctx_st {..}) returning int cleanup, int ctx_size, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to struct asn1_type_st {..}) returning int set_asn1_parameters, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to struct asn1_type_st {..}) returning int get_asn1_parameters, pointer to function(pointer to struct evp_cipher_ctx_st {..}, int, int, pointer to void) returning int ctrl, pointer to void app_data} "=" pointer to void
"kex.c", line 409: warning: assignment type mismatch:
pointer to function(void) returning pointer to struct evp_cipher_st {int nid, int block_size, int key_len, int iv_len, unsigned long flags, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to const unsigned char, pointer to const unsigned char, int) returning int init, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to unsigned char, pointer to const unsigned char, unsigned int) returning int do_cipher, pointer to function(pointer to struct evp_cipher_ctx_st {..}) returning int cleanup, int ctx_size, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to struct asn1_type_st {..}) returning int set_asn1_parameters, pointer to function(pointer to struct evp_cipher_ctx_st {..}, pointer to struct asn1_type_st {..}) returning int get_asn1_parameters, pointer to function(pointer to struct evp_cipher_ctx_st {..}, int, int, pointer to void) returning int ctrl, pointer to void app_data} "=" pointer to void
"kex.c", line 879: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"kex.c", line 879: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"kex.c", line 887: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 887: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 890: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"kex.c", line 890: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"kex.c", line 924: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 927: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 927: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 928: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 930: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "kex.c", line 902
argument : pointer to unsigned char
"kex.c", line 956: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned char : "kex.c", line 868
argument : pointer to char
"kex.c", line 987: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 990: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 990: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 991: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 993: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "kex.c", line 902
argument : pointer to unsigned char
"kex.c", line 1021: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned char : "kex.c", line 868
argument : pointer to char
"kex.c", line 1052: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1055: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 1055: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1056: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 1059: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "kex.c", line 902
argument : pointer to unsigned char
"kex.c", line 1076: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned char : "kex.c", line 868
argument : pointer to char
"kex.c", line 1097: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1100: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 1100: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1101: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 1104: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "kex.c", line 902
argument : pointer to unsigned char
"kex.c", line 1121: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned char : "kex.c", line 868
argument : pointer to char
"kex.c", line 1142: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1145: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"kex.c", line 1145: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"kex.c", line 1146: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"kex.c", line 1149: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "kex.c", line 902
argument : pointer to unsigned char
"kex.c", line 1166: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned char : "kex.c", line 868
argument : pointer to char
cc -o mac.o mac.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"mac.c", line 133: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "mac.c", line 93
argument : pointer to char
"mac.c", line 192: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "mac.c", line 152
argument : pointer to char
cc -o misc.o misc.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"misc.c", line 136: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"misc.c", line 141: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
cc -o packet.o packet.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"packet.c", line 1267: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"packet.c", line 1271: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
cc -o publickey.o publickey.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"publickey.c", line 150: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"publickey.c", line 162: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"publickey.c", line 197: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"publickey.c", line 266: warning: statement not reached
"publickey.c", line 325: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"publickey.c", line 430: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"publickey.c", line 485: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"publickey.c", line 533: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"publickey.c", line 567: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"publickey.c", line 636: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"publickey.c", line 664: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"publickey.c", line 666: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
cc -o scp.o scp.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"scp.c", line 85: warning: argument #4 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 345
argument : pointer to unsigned char
"scp.c", line 97: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"scp.c", line 107: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"scp.c", line 155: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"scp.c", line 155: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"scp.c", line 166: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/stdlib_iso.h", line 144
argument : pointer to unsigned char
"scp.c", line 172: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"scp.c", line 172: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"scp.c", line 182: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 130
argument : pointer to unsigned char
"scp.c", line 182: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"scp.c", line 193: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/stdlib_iso.h", line 144
argument : pointer to unsigned char
"scp.c", line 202: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"scp.c", line 218: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"scp.c", line 263: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"scp.c", line 303: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"scp.c", line 373: warning: argument #4 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 345
argument : pointer to unsigned char
"scp.c", line 382: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"scp.c", line 390: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "/usr/include/iso/stdio_c99.h", line 68
argument : pointer to unsigned char
"scp.c", line 394: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"scp.c", line 400: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"scp.c", line 408: warning: assignment type mismatch:
pointer to const unsigned char "=" pointer to char
"scp.c", line 412: warning: assignment type mismatch:
pointer to const unsigned char "=" pointer to const char
"scp.c", line 415: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "/usr/include/iso/stdio_c99.h", line 68
argument : pointer to unsigned char
"scp.c", line 419: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"scp.c", line 425: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
cc -o session.o session.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"session.c", line 167: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
"session.c", line 168: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"session.c", line 271: warning: assignment type mismatch:
pointer to void "=" pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1
, struct _libssh2_endpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to const char, int, pointer to pointer to void) returning void
"session.c", line 272: warning: assignment type mismatch:
pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1, struct _libssh2_en
dpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to const char, int, pointer to pointer to void) returning void "=" pointer to void
"session.c", line 276: warning: assignment type mismatch:
pointer to void "=" pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1
, struct _libssh2_endpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, int, pointer to const char, int, pointer to const char, int, pointer to pointer to void) returning void
"session.c", line 277: warning: assignment type mismatch:
pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1, struct _libssh2_en
dpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, int, pointer to const char, int, pointer to const char, int, pointer to pointer to void) returning void "=" pointer to void
"session.c", line 281: warning: assignment type mismatch:
pointer to void "=" pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1
, struct _libssh2_endpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, int, pointer to const char, int, pointer to const char, int, pointer to pointer to void) returning void
"session.c", line 282: warning: assignment type mismatch:
pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1, struct _libssh2_en
dpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, int, pointer to const char, int, pointer to const char, int, pointer to pointer to void) returning void "=" pointer to void
"session.c", line 286: warning: assignment type mismatch:
pointer to void "=" pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1
, struct _libssh2_endpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to const char, int, pointer to pointer to void) returning int
"session.c", line 287: warning: assignment type mismatch:
pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1, struct _libssh2_en
dpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to const char, int, pointer to pointer to void) returning int "=" pointer to void
"session.c", line 291: warning: assignment type mismatch:
pointer to void "=" pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1
, struct _libssh2_endpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to struct _LIBSSH2_CHANNEL {pointer to unsigned char channel_type, unsigned int channel_type_len, int blocking, int exit_status, struct _libssh2_channel_data {..} local, struct _libssh2_channel_data {..} remote, unsigned long adjust_queue, pointer to struct _LIBSSH2_SESSION {..} session, pointer to struct _LIBSSH2_CHANNEL {..} next, pointer to struct _LIBSSH2_CHANNEL {..} prev, pointer to void abstract, pointer to function(..) returning void close_cb}, pointer to char, int, pointer to pointer to void) returning void
"session.c", line 292: warning: assignment type mismatch:
pointer to function(pointer to struct _LIBSSH2_SESSION {pointer to void abstract, pointer to function(..) returning pointer to void alloc, pointer to function(..) returning pointer to void realloc, pointer to function(..) returning void free, pointer to function(..) returning void ssh_msg_ignore, pointer to function(..) returning void ssh_msg_debug, pointer to function(..) returning void ssh_msg_disconnect, pointer to function(..) returning int macerror, pointer to function(..) returning void x11, pointer to char kex_prefs, pointer to char hostkey_prefs, int state, int flags, pointer to struct _LIBSSH2_KEX_METHOD {..} kex, int burn_optimistic_kexinit :1, pointer to unsigned char session_id, unsigned long session_id_len, pointer to struct _LIBSSH2_HOSTKEY_METHOD {..} hostkey, pointer to void server_hostkey_abstract, pointer to unsigned char server_hostkey, unsigned long server_hostkey_len, array[16] of unsigned char server_hostkey_md5, array[20] of unsigned char server_hostkey_sha1, struct _libssh2_en
dpoint_data {..} remote, struct _libssh2_endpoint_data {..} local, struct _LIBSSH2_PACKET_BRIGADE {..} packets, struct _LIBSSH2_CHANNEL_BRIGADE {..} channels, unsigned long next_channel, pointer to struct _LIBSSH2_LISTENER {..} listeners, int socket_fd, int socket_block, int socket_state, pointer to char err_msg, unsigned long err_msglen, int err_should_free, int err_code}, pointer to struct _LIBSSH2_CHANNEL {pointer to unsigned char channel_type, unsigned int channel_type_len, int blocking, int exit_status, struct _libssh2_channel_data {..} local, struct _libssh2_channel_data {..} remote, unsigned long adjust_queue, pointer to struct _LIBSSH2_SESSION {..} session, pointer to struct _LIBSSH2_CHANNEL {..} next, pointer to struct _LIBSSH2_CHANNEL {..} prev, pointer to void abstract, pointer to function(..) returning void close_cb}, pointer to char, int, pointer to pointer to void) returning void "=" pointer to void
"session.c", line 363: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
cc -o sftp.o sftp.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"sftp.c", line 169: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"sftp.c", line 175: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"sftp.c", line 180: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"sftp.c", line 202: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../include/libssh2.h", line 350
argument : pointer to unsigned char
"sftp.c", line 249: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"sftp.c", line 249: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 71
argument : pointer to unsigned char
"sftp.c", line 490: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 526: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"sftp.c", line 529: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"sftp.c", line 592: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 683: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 735: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"sftp.c", line 757: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"sftp.c", line 783: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 843: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"sftp.c", line 881: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 940: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1020: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1091: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1125: warning: initializer does not fit or is out of range: -1
"sftp.c", line 1158: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1229: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1281: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1348: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
"sftp.c", line 1432: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "../include/libssh2.h", line 361
argument : pointer to unsigned char
cc -o userauth.o userauth.c -c -D_POSIX_PTHREAD_SEMANTICS -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -I/digibib/tools/include -I/digibib/tools/include -I../include/ -fPIC -lsocket
cc: Warning: illegal option -fPIC
"userauth.c", line 104: warning: return value type mismatch
"userauth.c", line 301: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"userauth.c", line 316: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"userauth.c", line 350: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char : "unknown", line 0
argument : pointer to const char
"userauth.c", line 350: warning: argument #3 is incompatible with prototype:
prototype: pointer to const unsigned char : "unknown", line 0
argument : pointer to const char
"userauth.c", line 410: warning: argument #4 is incompatible with prototype:
prototype: pointer to const char : "userauth.c", line 326
argument : pointer to unsigned char
"userauth.c", line 417: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"userauth.c", line 419: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"userauth.c", line 421: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"userauth.c", line 581: warning: argument #4 is incompatible with prototype:
prototype: pointer to const char : "userauth.c", line 326
argument : pointer to unsigned char
"userauth.c", line 590: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"userauth.c", line 592: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
"userauth.c", line 594: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
cc -o libssh2.so -lsocket -lm channel.o comp.o crypt.o hostkey.o kex.o mac.o misc.o packet.o publickey.o scp.o session.o sftp.o userauth.o -lsocket -lpthread -xarch=v9b -L/digibib/tools/lib -lcrypto -L/digibib/tools/lib -lz
Undefined first referenced
symbol in file
main /opt/SUNWspro/prod/lib/v9/crt1.o
libssh2_poll_channel_write session.o
libssh2_packet_x11_open packet.o
libssh2_packet_queue_listener packet.o
libssh2_poll_listener_queued session.o
ld: fatal: Symbol referencing errors. No output written to libssh2.so
make[1]: *** [libssh2.so] Error 1
make[1]: Leaving directory `/digibib/src/libssh2/src'
make: *** [all] Error 1
Received on 2006-11-14