Subject: Visual Studio 6 compilation issues (libssh2 1.2.4)

Visual Studio 6 compilation issues (libssh2 1.2.4)

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Tue, 9 Mar 2010 13:31:34 +0100

Please find hereby errors (and warnings) I receive by compiling the php
extension php_ssh2 with v1.2.4 of libssh2.

Grtz,
Steven

ext\ssh2\libssh2\src\misc.c(524) : error C2632: 'long' followed by 'long' is
illegal
ext\ssh2\libssh2\src\misc.c(531) : error C2059: syntax error : 'bad suffix
on number'
ext\ssh2\libssh2\src\misc.c(531) : error C2146: syntax error : missing ')'
before identifier 'L'
ext\ssh2\libssh2\src\misc.c(531) : error C2059: syntax error : 'bad suffix
on number'
ext\ssh2\libssh2\src\misc.c(532) : error C2059: syntax error : 'bad suffix
on number'
ext\ssh2\libssh2\src\misc.c(532) : error C2146: syntax error : missing ')'
before identifier 'L'
ext\ssh2\libssh2\src\misc.c(532) : error C2059: syntax error : 'bad suffix
on number'
openssl.c
packet.c
ext\ssh2\libssh2\src\packet.c(1131) : warning C4761: integral size mismatch
in argument; conversion supplied
pem.c
publickey.c
scp.c
ext\ssh2\libssh2\src\scp.c(753) : warning C4244: '=' : conversion from 'long
' to 'unsigned short ', possible loss of data
session.c
ext\ssh2\libssh2\src\session.c(352) : error C2065: 'socklen_t' : undeclared
identifier
ext\ssh2\libssh2\src\session.c(352) : error C2146: syntax error : missing
';' before identifier 'option_len'
ext\ssh2\libssh2\src\session.c(352) : error C2065: 'option_len' : undeclared
identifier
ext\ssh2\libssh2\src\session.c(1359) : warning C4018: '==' : signed/unsigned
mismatch
ext\ssh2\libssh2\src\session.c(1360) : warning C4018: '>' : signed/unsigned
mismatch
ext\ssh2\libssh2\src\session.c(1364) : warning C4018: '==' : signed/unsigned
mismatch
ext\ssh2\libssh2\src\session.c(1365) : warning C4018: '>' : signed/unsigned
mismatch
sftp.c
transport.c
userauth.c
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-09