mxtommy/Cisco-SSH-Client — Issue #1: trying to compile and use with cygwin
Author: hellionsoldier
Created: 2012-03-06 20:49:43+00:00
State: open

i'll admit i know nothing of compiling code, but I got this to work with ubuntu and its absolutely awesome. any way you could help getting this to work with cygwin?

I get a configure error when trying to ./configure whether i use --without-openssl-header-check or not
and this is the make output:

[14:53:41][ejg0428@worktop:~/dev/openssh-5.9p1]$ make ssh
cc ssh.c -o ssh
In file included from ssh.c:43:
includes.h:19:20: config.h: No such file or directory
includes.h:165:63: openssl/opensslv.h: No such file or directory
In file included from includes.h:167,
from ssh.c:43:
defines.h:200:4: #error "8 bit int type not found."
defines.h:212:5: #error "16 bit int type not found."
defines.h:221:5: #error "32 bit int type not found."
defines.h:237:5: #error "8 bit int type not found."
defines.h:249:6: #error "16 bit int type not found."
defines.h:258:6: #error "32 bit int type not found."
defines.h:262:1: warning: "__BIT_TYPES_DEFINED__" redefined
In file included from /usr/include/sys/types.h:452,
from includes.h:23,
from ssh.c:43:
/usr/include/cygwin/types.h:129:1: warning: this is the location of the previous definition
In file included from includes.h:167,
from ssh.c:43:
defines.h:297:1: warning: "SIZE_T_MAX" redefined
defines.h:291:1: warning: this is the location of the previous definition
In file included from includes.h:167,
from ssh.c:43:
defines.h:310: error: conflicting types for 'clock_t'
/usr/include/sys/types.h:105: error: previous declaration of 'clock_t' was here
defines.h:315: error: conflicting types for 'sa_family_t'
/usr/include/cygwin/socket.h:27: error: previous declaration of 'sa_family_t' was here
defines.h:330: error: conflicting types for 'mode_t'
/usr/include/cygwin/types.h:175: error: previous declaration of 'mode_t' was here
In file included from includes.h:170,
from ssh.c:43:
openbsd-compat/openbsd-compat.h:32:22: includes.h: No such file or directory
In file included from openbsd-compat/openbsd-compat.h:151,
from includes.h:170,
from ssh.c:43:
openbsd-compat/bsd-misc.h:57: error: redefinition of `struct timeval'
openbsd-compat/bsd-misc.h:63: error: two or more data types in declaration of `utimes'
openbsd-compat/bsd-misc.h:63: error: conflicting types for 'utimes'
/usr/include/sys/time.h:76: error: previous declaration of 'utimes' was here
openbsd-compat/bsd-misc.h:63: error: conflicting types for 'utimes'
/usr/include/sys/time.h:76: error: previous declaration of 'utimes' was here
openbsd-compat/bsd-misc.h:72: error: redefinition of `struct timespec'
In file included from includes.h:170,
from ssh.c:43:
openbsd-compat/openbsd-compat.h:185: error: parse error before "SNPRINTF_CONST"
openbsd-compat/openbsd-compat.h:185: error: conflicting types for 'snprintf'
openbsd-compat/openbsd-compat.h:185: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
openbsd-compat/openbsd-compat.h:185: error: conflicting types for 'snprintf'
openbsd-compat/openbsd-compat.h:185: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
In file included from openbsd-compat/openbsd-compat.h:225,
from includes.h:170,
from ssh.c:43:
openbsd-compat/fake-rfc2553.h:55: error: redefinition of `struct sockaddr_storage'
openbsd-compat/fake-rfc2553.h:69: error: redefinition of `struct in6_addr'
openbsd-compat/fake-rfc2553.h:70: warning: no semicolon at end of struct or union
openbsd-compat/fake-rfc2553.h:70: error: parse error before '.' token
openbsd-compat/fake-rfc2553.h:75: error: redefinition of `struct sockaddr_in6'
openbsd-compat/fake-rfc2553.h:137: error: redefinition of `struct addrinfo'
In file included from entropy.h:30,
from includes.h:173,
from ssh.c:43:
buffer.h:49:24: openssl/bn.h: No such file or directory
In file included from entropy.h:30,
from includes.h:173,
from ssh.c:43:
buffer.h:51: error: parse error before '*' token
buffer.h:52: error: parse error before '*' token
buffer.h:53: error: parse error before "BIGNUM"
buffer.h:54: error: parse error before "BIGNUM"
buffer.h:77: error: parse error before '*' token
buffer.h:78: error: parse error before "BIGNUM"
buffer.h:79: error: parse error before '*' token
buffer.h:80: error: parse error before "BIGNUM"
In file included from /usr/include/stdlib.h:24,
from ssh.c:67:
/usr/include/cygwin/stdlib.h:27: error: conflicting types for 'unsetenv'
openbsd-compat/bsd-misc.h:89: error: previous declaration of 'unsetenv' was here
/usr/include/cygwin/stdlib.h:27: error: conflicting types for 'unsetenv'
openbsd-compat/bsd-misc.h:89: error: previous declaration of 'unsetenv' was here
In file included from ssh.c:72:
/usr/include/arpa/inet.h:30: error: conflicting types for 'inet_ntop'
openbsd-compat/openbsd-compat.h:119: error: previous declaration of 'inet_ntop' was here
/usr/include/arpa/inet.h:30: error: conflicting types for 'inet_ntop'
openbsd-compat/openbsd-compat.h:119: error: previous declaration of 'inet_ntop' was here
ssh.c:74:25: openssl/evp.h: No such file or directory
ssh.c:75:25: openssl/err.h: No such file or directory
In file included from ssh.c:76:
openbsd-compat/openssl-compat.h:22:25: openssl/rsa.h: No such file or directory
openbsd-compat/openssl-compat.h:23:25: openssl/dsa.h: No such file or directory
openbsd-compat/openssl-compat.h:54:23: rijndael.h: No such file or directory
In file included from ssh.c:76:
openbsd-compat/openssl-compat.h:62: error: parse error before '*' token
openbsd-compat/openssl-compat.h:62: warning: data definition has no type or storage class
openbsd-compat/openssl-compat.h:63: error: parse error before '*' token
openbsd-compat/openssl-compat.h:82: error: parse error before '*' token
openbsd-compat/openssl-compat.h:82: warning: data definition has no type or storage class
openbsd-compat/openssl-compat.h:116: error: parse error before '*' token
openbsd-compat/openssl-compat.h:120: error: parse error before '*' token
openbsd-compat/openssl-compat.h:125: error: parse error before '*' token
openbsd-compat/openssl-compat.h:128: error: parse error before '*' token
openbsd-compat/openssl-compat.h:130: error: parse error before '*' token
openbsd-compat/openssl-compat.h:131: error: parse error before '*' token
In file included from ssh.c:85:
cipher.h:67: error: parse error before "EVP_CIPHER_CTX"
cipher.h:67: warning: no semicolon at end of struct or union
cipher.h:69: error: parse error before '}' token
In file included from ssh.c:86:
packet.h:46: error: parse error before '*' token
packet.h:47: error: parse error before '*' token
packet.h:66: error: parse error before '*' token
packet.h:67: error: parse error before '*' token
In file included from ssh.c:89:
key.h:79: error: parse error before "RSA"
key.h:79: warning: no semicolon at end of struct or union
key.h:80: warning: data definition has no type or storage class
key.h:88: error: parse error before '}' token
In file included from ssh.c:90:
authfd.h:87: error: parse error before "BIGNUM"
In file included from ssh.c:99:
kex.h:31:26: openssl/hmac.h: No such file or directory
In file included from ssh.c:99:
kex.h:103: warning: no semicolon at end of struct or union
kex.h:103: error: parse error before '*' token
kex.h:104: warning: data definition has no type or storage class
kex.h:106: error: parse error before '}' token
kex.h:114: error: field `mac' has incomplete type
kex.h:131: warning: no semicolon at end of struct or union
kex.h:131: error: parse error before '*' token
kex.h:134: error: 'verify_host_key' redeclared as different kind of symbol
sshconnect.h:44: error: previous declaration of 'verify_host_key' was here
kex.h:134: error: 'verify_host_key' redeclared as different kind of symbol
sshconnect.h:44: error: previous declaration of 'verify_host_key' was here
kex.h:139: error: parse error before '}' token
kex.h:148: error: parse error before "BIGNUM"
kex.h:161: error: parse error before "BIGNUM"
kex.h:163: error: parse error before '*' token
kex.h:179: error: parse error before '*' token
ssh.c: In function `main':
ssh.c:442: error: `SSLEAY_VERSION' undeclared (first use in this function)
ssh.c:442: error: (Each undeclared identifier is reported only once
ssh.c:442: error: for each function it appears in.)
ssh.c:826: error: invalid application of `sizeof' to incomplete type `key.h'
ssh.c: In function `load_public_identity_files':
ssh.c:1539: error: dereferencing pointer to incomplete type
ssh.c:1551: error: dereferencing pointer to incomplete type
: recipe for target `ssh' failed
make: *** [ssh] Error 1