Topolinux Forum

Versione completa: [PHP] - installazione modulo ssh2.so
Sta attualmente guardando una versione leggera del Forum. Guarda la versione completa per una corretta formattazione.
Problemone enorme.
Ho provato a scaricare i pacchetti relativi al modulo ssh2.so per php e seguendo la procedura di compilazione ho fatto il tutto :

Codice:
phpize && ./configure --with-ssh2 && make


al momento della compilazione però ricevo una sfilza di errori, ti cui riporto un estratto.
Ho rispettato tutte le dipendenze, isntallando quindi openSSL-dev e libssh, però al momento della compilazione mi appare una cosa del genere :

Codice:
/home/lemoeb/ssh2-0.10/ssh2.c:938: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:939: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:941: error: redefinition of `data'
/home/lemoeb/ssh2-0.10/ssh2.c:750: error: `data' previously defined here
/home/lemoeb/ssh2-0.10/ssh2.c:941: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:941: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:942: error: syntax error before '->' token
/home/lemoeb/ssh2-0.10/ssh2.c:944: error: syntax error before '->' token
/home/lemoeb/ssh2-0.10/ssh2.c:944: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:945: error: syntax error before '->' token
/home/lemoeb/ssh2-0.10/ssh2.c:947: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:947: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:948: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:954: error: redefinition of `PHP_FUNCTION'
/home/lemoeb/ssh2-0.10/ssh2.c:918: error: `PHP_FUNCTION' previously defined here
/home/lemoeb/ssh2-0.10/ssh2.c: In function `PHP_FUNCTION':
/home/lemoeb/ssh2-0.10/ssh2.c:955: error: `zval' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:955: error: `zpkey_data' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:955: error: `zattrs' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:961: error: `zend_bool' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:961: error: syntax error before "overwrite"
/home/lemoeb/ssh2-0.10/ssh2.c:963: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:967: error: syntax error before "php_ssh2_pkey_subsys_data"
/home/lemoeb/ssh2-0.10/ssh2.c:967: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:971: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:974: error: `zattrs' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:974: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:974: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:975: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:975: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:977: error: syntax error before "for"
/home/lemoeb/ssh2-0.10/ssh2.c:978: error: syntax error before '(' token
/home/lemoeb/ssh2-0.10/ssh2.c:978: error: syntax error before "void"
/home/lemoeb/ssh2-0.10/ssh2.c:979: error: syntax error before '(' token
/home/lemoeb/ssh2-0.10/ssh2.c:983: error: syntax error before "copyval"
/home/lemoeb/ssh2-0.10/ssh2.c:983: error: `copyval' used prior to declaration
/home/lemoeb/ssh2-0.10/ssh2.c:983: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:983: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:985: error: `zattrs' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:985: error: `key' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:985: error: `pos' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:985: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:985: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:986: error: syntax error before "if"
/home/lemoeb/ssh2-0.10/ssh2.c:1004: error: syntax error before '&' token
/home/lemoeb/ssh2-0.10/ssh2.c:1004: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1005: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1007: error: syntax error before '&' token
/home/lemoeb/ssh2-0.10/ssh2.c:1007: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1011: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1012: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1015: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1016: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1018: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1019: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1028: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1029: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1040: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1040: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1041: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1048: error: redefinition of `PHP_FUNCTION'
/home/lemoeb/ssh2-0.10/ssh2.c:954: error: `PHP_FUNCTION' previously defined here
/home/lemoeb/ssh2-0.10/ssh2.c: In function `PHP_FUNCTION':
/home/lemoeb/ssh2-0.10/ssh2.c:1049: error: `zval' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1049: error: `zpkey_data' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1054: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:1058: error: syntax error before "php_ssh2_pkey_subsys_data"
/home/lemoeb/ssh2-0.10/ssh2.c:1058: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1062: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1063: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1065: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1066: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1072: error: redefinition of `PHP_FUNCTION'
/home/lemoeb/ssh2-0.10/ssh2.c:1048: error: `PHP_FUNCTION' previously defined here
/home/lemoeb/ssh2-0.10/ssh2.c: In function `PHP_FUNCTION':
/home/lemoeb/ssh2-0.10/ssh2.c:1073: error: `zval' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1073: error: `zpkey_data' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1078: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:1082: error: syntax error before "php_ssh2_pkey_subsys_data"
/home/lemoeb/ssh2-0.10/ssh2.c:1082: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1086: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1087: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1089: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1089: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1090: error: syntax error before "for"
/home/lemoeb/ssh2-0.10/ssh2.c:1094: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1094: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1095: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1095: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1097: error: syntax error before string constant
/home/lemoeb/ssh2-0.10/ssh2.c:1097: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1098: error: syntax error before string constant
/home/lemoeb/ssh2-0.10/ssh2.c:1098: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1100: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1100: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1101: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1101: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1102: error: syntax error before "for"
/home/lemoeb/ssh2-0.10/ssh2.c:1105: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1105: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1106: error: syntax error before '[' token
/home/lemoeb/ssh2-0.10/ssh2.c:1106: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1107: error: syntax error before '(' token
/home/lemoeb/ssh2-0.10/ssh2.c:1107: error: `i' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1107: error: syntax error before '.' token
/home/lemoeb/ssh2-0.10/ssh2.c:1109: error: syntax error before string constant
/home/lemoeb/ssh2-0.10/ssh2.c:1109: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1111: warning: parameter names (without types) in function declaration
/home/lemoeb/ssh2-0.10/ssh2.c:1111: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1112: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1114: error: syntax error before '->' token
/home/lemoeb/ssh2-0.10/ssh2.c:1114: error: conflicting types for `libssh2_publickey_list_free'
/usr/local/include/libssh2_publickey.h:93: error: previous declaration of `libssh2_publickey_list_free'
/home/lemoeb/ssh2-0.10/ssh2.c:1114: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1123: error: syntax error before '*' token
/home/lemoeb/ssh2-0.10/ssh2.c: In function `php_ssh2_session_dtor':
/home/lemoeb/ssh2-0.10/ssh2.c:1125: error: `rsrc' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1126: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1126: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1130: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1131: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1132: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1134: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1135: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1137: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1138: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1140: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1141: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1144: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1146: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c:1147: error: invalid type argument of `unary *'
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:1154: error: syntax error before '*' token
/home/lemoeb/ssh2-0.10/ssh2.c: In function `php_ssh2_listener_dtor':
/home/lemoeb/ssh2-0.10/ssh2.c:1156: error: `rsrc' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:1166: error: syntax error before '*' token
/home/lemoeb/ssh2-0.10/ssh2.c: In function `php_ssh2_pkey_subsys_dtor':
/home/lemoeb/ssh2-0.10/ssh2.c:1168: error: `rsrc' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c: In function `PHP_MINIT_FUNCTION':
/home/lemoeb/ssh2-0.10/ssh2.c:1181: error: `module_number' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1190: error: `CONST_CS' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1190: error: `CONST_PERSISTENT' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1223: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c:1223: error: `SUCCESS' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1224: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c: In function `PHP_MSHUTDOWN_FUNCTION':
/home/lemoeb/ssh2-0.10/ssh2.c:1235: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c:1235: error: `SUCCESS' undeclared (first use in this function)
/home/lemoeb/ssh2-0.10/ssh2.c:1236: error: syntax error before "TSRMLS_CC"
/home/lemoeb/ssh2-0.10/ssh2.c: At top level:
/home/lemoeb/ssh2-0.10/ssh2.c:1268: error: syntax error before "ssh2_functions"
/home/lemoeb/ssh2-0.10/ssh2.c:1269: error: `ssh2_connect' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1270: error: initializer element is not constant
/home/lemoeb/ssh2-0.10/ssh2.c:1270: error: (near initialization for `ssh2_functions[0]')
/home/lemoeb/ssh2-0.10/ssh2.c:1270: error: syntax error before "PHP_FE"
/home/lemoeb/ssh2-0.10/ssh2.c:1270: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1270: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1271: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1271: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1273: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1273: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1274: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1274: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1275: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1275: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1277: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1277: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1281: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1281: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1282: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1282: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1286: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1286: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1287: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1287: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1288: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1288: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1289: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1289: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1290: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1290: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1291: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1291: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1293: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1297: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1297: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1300: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1300: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1301: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1301: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1302: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1302: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1303: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1303: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1304: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1304: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1305: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1305: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1306: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1306: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1307: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1307: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1308: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1308: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1312: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1312: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1313: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1313: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1314: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1314: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1315: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1315: error: syntax error before ')' token
/home/lemoeb/ssh2-0.10/ssh2.c:1318: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1318: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1319: error: syntax error before '}' token
/home/lemoeb/ssh2-0.10/ssh2.c:1324: error: syntax error before "ssh2_module_entry"
/home/lemoeb/ssh2-0.10/ssh2.c:1328: warning: initialization makes integer from pointer without a cast
/home/lemoeb/ssh2-0.10/ssh2.c:1329: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1329: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1330: error: `ssh2' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1330: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1330: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1331: error: `ssh2' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1331: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1331: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1332: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1332: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1333: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1333: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1334: error: `ssh2' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1334: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1334: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1339: error: `STANDARD_MODULE_PROPERTIES' undeclared here (not in a function)
/home/lemoeb/ssh2-0.10/ssh2.c:1339: warning: excess elements in scalar initializer
/home/lemoeb/ssh2-0.10/ssh2.c:1339: warning: (near initialization for `ssh2_module_entry')
/home/lemoeb/ssh2-0.10/ssh2.c:1339: warning: data definition has no type or storage class
/home/lemoeb/ssh2-0.10/ssh2.c:1343: error: syntax error at end of input
/home/lemoeb/ssh2-0.10/ssh2.c:891: error: storage size of `pollmap' isn't known
/home/lemoeb/ssh2-0.10/ssh2.c:1107: error: storage size of `keys' isn't known


Qualche idea?
Ho fatto ricerche ma per ora non ho trovato sulla.

La distro utilizzata è SUSE 9.3 Professional , ma scaricando i sorgenti non dovrei avere problemi per il tipo di distro.

Grazie

Si direbbe che il sorgente ssh2.c sia stato scritto male. Credo tu possa solo aspettare che aggiornino il codice, pulendolo dagli errori.
Caro Joe, mi trovo a contraddirti.
Putroppo ho dimenticato un'informazione secondo me fondamentale e cioè....... Lo stesso sorgente compilato sotto Ubuntu non genera errori e funziona benissmo Incavolato (citazione di Neon : "Beh è Debian fondamentalmente" Mr. Green)

Lemoeb ha scritto:
Caro Joe, mi trovo a contraddirti.
Putroppo ho dimenticato un'informazione secondo me fondamentale e cioè....... Lo stesso sorgente compilato sotto Ubuntu non genera errori e funziona benissmo Incavolato (citazione di Neon : "Beh è Debian fondamentalmente" Mr. Green)


Perche' tanto debian è meglio! ah ah!

Caro Lemoeb, io di programmazione so poco niente, questo è vero.
Tuttavia, "facile è la via per il lato oscuro". Mr. Green
A mio parere

Codice:
/home/lemoeb/ssh2-0.10/ssh2.c:939: error: syntax error before '}' token

parla chiaro.

La versione dei compilatori delle due distro è la stessa?
Concordo pienamente con quanto hai scritto, ma anche le mie prove parlano chiaro :

Ubuntu : Tutto OK Mr. Green
Suse : Gli errori che ho scritto Incavolato

JoErNanO ha scritto:
Caro Lemoeb, io di programmazione so poco niente, questo è vero.
Tuttavia, "facile è la via per il lato oscuro". Mr. Green
A mio parere

Codice:
/home/lemoeb/ssh2-0.10/ssh2.c:939: error: syntax error before '}' token

parla chiaro.


basta una libreria mancante per questo...

cosa molto probabile... il problema è quale libreria!

URL di riferimento