Поиск  Пользователи  Правила 
Закрыть
Логин:
Пароль:
Забыли свой пароль?
Войти
 
Страницы: 1
RSS
Скомпилить библиотеку в Mandrake 10.2, Чего мне не хватает?
 
Пытаюсь собрать библиотеку libssh 1.0
Команда ./configure выполнилась успешно. А вот make ругает:
Код
[root@localhost libssh]# make
gcc -g -O2 -Wall -g -I../include/   -c -o client.o client.c
In file included from client.c:27:
../include/libssh/libssh.h:40:25: openssl/dsa.h: No such file or directory
../include/libssh/libssh.h:41:25: openssl/rsa.h: No such file or directory
../include/libssh/libssh.h:42:25: openssl/sha.h: No such file or directory
../include/libssh/libssh.h:43:25: openssl/md5.h: No such file or directory
../include/libssh/libssh.h:44:26: openssl/hmac.h: No such file or directory
In file included from client.c:27:
../include/libssh/libssh.h:45: error: syntax error before "SHACTX"
../include/libssh/libssh.h:45: warning: type defaults to `int' in declaration of `SHACTX'
../include/libssh/libssh.h:45: warning: data definition has no type or storage class
../include/libssh/libssh.h:46: error: syntax error before "MD5CTX"
../include/libssh/libssh.h:46: warning: type defaults to `int' in declaration of `MD5CTX'
../include/libssh/libssh.h:46: warning: data definition has no type or storage class
../include/libssh/libssh.h:47: error: syntax error before "HMACCTX"
../include/libssh/libssh.h:47: warning: type defaults to `int' in declaration of `HMACCTX'
../include/libssh/libssh.h:47: warning: data definition has no type or storage class
../include/libssh/libssh.h:53:24: openssl/bn.h: No such file or directory
../include/libssh/libssh.h:54: error: syntax error before '*' token
../include/libssh/libssh.h:54: warning: type defaults to `int' in declaration of `bignum'
../include/libssh/libssh.h:54: warning: data definition has no type or storage class
../include/libssh/libssh.h:55: error: syntax error before '*' token
../include/libssh/libssh.h:55: warning: type defaults to `int' in declaration of `bignum_CTX'
../include/libssh/libssh.h:55: warning: data definition has no type or storage class
In file included from client.c:27:
../include/libssh/libssh.h:77: error: syntax error before '*' token
../include/libssh/libssh.h:77: warning: type defaults to `int' in declaration of `md5_init'
../include/libssh/libssh.h:77: warning: data definition has no type or storage class
../include/libssh/libssh.h:78: error: syntax error before '*' token
../include/libssh/libssh.h:79: error: syntax error before "MD5CTX"
../include/libssh/libssh.h:80: error: syntax error before '*' token
../include/libssh/libssh.h:80: warning: type defaults to `int' in declaration of `sha1_init'
../include/libssh/libssh.h:80: warning: data definition has no type or storage class
../include/libssh/libssh.h:81: error: syntax error before '*' token
../include/libssh/libssh.h:82: error: syntax error before "SHACTX"
../include/libssh/libssh.h:86: error: syntax error before '*' token
../include/libssh/libssh.h:86: warning: type defaults to `int' in declaration of `hmac_init'
../include/libssh/libssh.h:86: warning: data definition has no type or storage class
../include/libssh/libssh.h:87: error: syntax error before '*' token
../include/libssh/libssh.h:88: error: syntax error before '*' token
../include/libssh/libssh.h:121: error: syntax error before "DSA"
../include/libssh/libssh.h:121: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:122: warning: type defaults to `int' in declaration of `rsa_pub'
../include/libssh/libssh.h:122: warning: data definition has no type or storage class
../include/libssh/libssh.h:123: error: syntax error before '}' token
../include/libssh/libssh.h:123: warning: type defaults to `int' in declaration of `PUBLIC_KEY'
../include/libssh/libssh.h:123: warning: data definition has no type or storage class
../include/libssh/libssh.h:127: error: syntax error before "DSA"
../include/libssh/libssh.h:127: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:128: warning: type defaults to `int' in declaration of `rsa_priv'
../include/libssh/libssh.h:128: warning: data definition has no type or storage class
../include/libssh/libssh.h:129: error: syntax error before '}' token
../include/libssh/libssh.h:129: warning: type defaults to `int' in declaration of `PRIVATE_KEY'
../include/libssh/libssh.h:129: warning: data definition has no type or storage class
../include/libssh/libssh.h:133: error: syntax error before "DSA_SIG"
../include/libssh/libssh.h:133: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:135: error: syntax error before '}' token
../include/libssh/libssh.h:135: warning: type defaults to `int' in declaration of `SIGNATURE'
../include/libssh/libssh.h:135: warning: data definition has no type or storage class
../include/libssh/libssh.h:178: error: syntax error before "bignum"
../include/libssh/libssh.h:178: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:179: error: `SHA_DIGEST_LENGTH' undeclared here (not in a function)
../include/libssh/libssh.h:189: error: `EVP_MAX_MD_SIZE' undeclared here (not in a function)
../include/libssh/libssh.h:196: error: syntax error before '}' token
../include/libssh/libssh.h:196: warning: type defaults to `int' in declaration of `CRYPTO'
../include/libssh/libssh.h:196: warning: data definition has no type or storage class
../include/libssh/libssh.h:241: error: syntax error before "CRYPTO"
../include/libssh/libssh.h:241: warning: no semicolon at end of struct or union
../include/libssh/libssh.h:242: warning: type defaults to `int' in declaration of `next_crypto'
../include/libssh/libssh.h:242: warning: data definition has no type or storage class
../include/libssh/libssh.h:247: error: syntax error before '}' token
../include/libssh/libssh.h:247: warning: type defaults to `int' in declaration of `SSH_SESSION'
../include/libssh/libssh.h:247: warning: data definition has no type or storage class
../include/libssh/libssh.h:254: error: syntax error before '*' token
../include/libssh/libssh.h:255: error: syntax error before '*' token
../include/libssh/libssh.h:256: error: syntax error before '*' token
../include/libssh/libssh.h:269: error: syntax error before '*' token
../include/libssh/libssh.h:269: warning: type defaults to `int' in declaration of `ssh_connect'
../include/libssh/libssh.h:269: warning: data definition has no type or storage class
../include/libssh/libssh.h:270: error: syntax error before '*' token
../include/libssh/libssh.h:271: error: syntax error before '*' token
../include/libssh/libssh.h:272: error: syntax error before '*' token
../include/libssh/libssh.h:292: error: syntax error before '*' token
../include/libssh/libssh.h:293: error: syntax error before '*' token
../include/libssh/libssh.h:294: error: syntax error before '*' token
../include/libssh/libssh.h:295: error: syntax error before '*' token
../include/libssh/libssh.h:296: error: syntax error before '*' token
../include/libssh/libssh.h:297: error: syntax error before '*' token
../include/libssh/libssh.h:298: error: syntax error before '*' token
../include/libssh/libssh.h:300: error: syntax error before '*' token
../include/libssh/libssh.h:301: error: syntax error before '*' token
../include/libssh/libssh.h:304: error: syntax error before '*' token
../include/libssh/libssh.h:307: error: syntax error before '*' token
../include/libssh/libssh.h:309: error: syntax error before '*' token
../include/libssh/libssh.h:311: error: syntax error before "make_string_bn"
../include/libssh/libssh.h:311: warning: type defaults to `int' in declaration of `make_string_bn'
../include/libssh/libssh.h:311: warning: data definition has no type or storage class
../include/libssh/libssh.h:312: error: syntax error before '*' token
../include/libssh/libssh.h:315: error: syntax error before '*' token
../include/libssh/libssh.h:316: error: syntax error before '*' token
../include/libssh/libssh.h:317: error: syntax error before '*' token
../include/libssh/libssh.h:319: error: syntax error before '*' token
../include/libssh/libssh.h:322: error: syntax error before '*' token
../include/libssh/libssh.h:323: error: syntax error before '*' token
../include/libssh/libssh.h:324: error: syntax error before '*' token
../include/libssh/libssh.h:325: error: syntax error before '*' token
../include/libssh/libssh.h:326: error: syntax error before '*' token
../include/libssh/libssh.h:327: error: syntax error before '*' token
../include/libssh/libssh.h:331: error: syntax error before '*' token
../include/libssh/libssh.h:331: warning: type defaults to `int' in declaration of `ssh_session_new'
../include/libssh/libssh.h:331: warning: data definition has no type or storage class
../include/libssh/libssh.h:332: error: syntax error before '*' token
../include/libssh/libssh.h:337: error: syntax error before '*' token
../include/libssh/libssh.h:339: error: syntax error before '*' token
../include/libssh/libssh.h:340: error: syntax error before '*' token
../include/libssh/libssh.h:345: error: syntax error before '*' token
../include/libssh/libssh.h:346: error: syntax error before '*' token
../include/libssh/libssh.h:346: warning: type defaults to `int' in declaration of `publickey_make_dss'
../include/libssh/libssh.h:346: warning: data definition has no type or storage class
../include/libssh/libssh.h:347: error: syntax error before '*' token
../include/libssh/libssh.h:347: warning: type defaults to `int' in declaration of `publickey_make_rsa'
../include/libssh/libssh.h:347: warning: data definition has no type or storage class
../include/libssh/libssh.h:348: error: syntax error before '*' token
../include/libssh/libssh.h:348: warning: type defaults to `int' in declaration of `publickey_from_string'
../include/libssh/libssh.h:348: warning: data definition has no type or storage class
../include/libssh/libssh.h:349: error: syntax error before '*' token
../include/libssh/libssh.h:349: error: syntax error before "PUBLIC_KEY"
../include/libssh/libssh.h:349: warning: type defaults to `int' in declaration of `signature_from_string'
../include/libssh/libssh.h:349: warning: data definition has no type or storage class
../include/libssh/libssh.h:350: error: syntax error before '*' token
../include/libssh/libssh.h:351: error: syntax error before '*' token
../include/libssh/libssh.h:355: error: syntax error before '*' token
../include/libssh/libssh.h:355: error: syntax error before '*' token
../include/libssh/libssh.h:355: warning: type defaults to `int' in declaration of `privatekey_from_file'
../include/libssh/libssh.h:355: warning: data definition has no type or storage class
../include/libssh/libssh.h:356: error: syntax error before '*' token
../include/libssh/libssh.h:358: error: syntax error before '*' token
../include/libssh/libssh.h:362: error: syntax error before '*' token
../include/libssh/libssh.h:363: error: syntax error before '*' token
../include/libssh/libssh.h:370: error: syntax error before '*' token
../include/libssh/libssh.h:444: error: syntax error before '*' token
../include/libssh/libssh.h:445: error: syntax error before '*' token
../include/libssh/libssh.h:446: error: syntax error before '*' token
../include/libssh/libssh.h:447: error: syntax error before '*' token
../include/libssh/libssh.h:448: error: syntax error before '*' token
../include/libssh/libssh.h:451: error: syntax error before '*' token
../include/libssh/libssh.h:452: error: syntax error before '*' token
../include/libssh/libssh.h:455: error: syntax error before '*' token
../include/libssh/libssh.h:456: error: syntax error before '*' token
../include/libssh/libssh.h:456: warning: type defaults to `int' in declaration of `crypto_new'
../include/libssh/libssh.h:456: warning: data definition has no type or storage class
../include/libssh/libssh.h:457: error: syntax error before '*' token
../include/libssh/libssh.h:458: error: syntax error before "BN_new"
../include/libssh/libssh.h:458: warning: type defaults to `int' in declaration of `BN_new'
../include/libssh/libssh.h:458: warning: data definition has no type or storage class
client.c:29: error: syntax error before '*' token
client.c:32: error: syntax error before '*' token
client.c: In function `get_banner':
client.c:36: error: `session' undeclared (first use in this function)
client.c:36: error: (Each undeclared identifier is reported only once
client.c:36: error: for each function it appears in.)
client.c: At top level:
client.c:57: error: syntax error before '*' token
client.c: In function `send_banner':
client.c:60: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:68: error: syntax error before '*' token
client.c: In function `dh_handshake':
client.c:70: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:125: error: syntax error before '*' token
client.c: In function `ssh_service_request':
client.c:127: error: `session' undeclared (first use in this function)
client.c:129: error: `service' undeclared (first use in this function)
client.c: At top level:
client.c:142: error: syntax error before '*' token
client.c:142: warning: return type defaults to `int'
client.c: In function `ssh_connect':
client.c:143: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:188: error: syntax error before '*' token
client.c: In function `ssh_cleanup':
client.c:190: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:222: error: syntax error before '*' token
client.c: In function `ssh_get_issue_banner':
client.c:223: error: `session' undeclared (first use in this function)
client.c: At top level:
client.c:228: error: syntax error before '*' token
client.c: In function `ssh_disconnect':
client.c:230: error: `session' undeclared (first use in this function)
client.c: At top level:
../include/libssh/libssh.h:179: error: storage size of `session_id' isn't known
../include/libssh/libssh.h:181: error: storage size of `encryptIV' isn't known
../include/libssh/libssh.h:182: error: storage size of `decryptIV' isn't known
../include/libssh/libssh.h:184: error: storage size of `decryptkey' isn't known
../include/libssh/libssh.h:185: error: storage size of `encryptkey' isn't known
../include/libssh/libssh.h:187: error: storage size of `encryptMAC' isn't known
../include/libssh/libssh.h:188: error: storage size of `decryptMAC' isn't known
../include/libssh/libssh.h:189: error: storage size of `hmacbuf' isn't known
make: *** [client.o] Ошибка 1


С исходниками точно всё нормально: на удалённом шелле собралось (там стоит Slackware 9.1)

Я так понимаю, каких-то компонентов не хватает... Чего именно?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
 
может gmake?
 
Откуда такая мысль?
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
 
Нанисано же, что не может найти файлы заголовков:
openssl/dsa.h: No such file or directory
../include/libssh/libssh.h:41:25: openssl/rsa.h: No such file or directory
../include/libssh/libssh.h:42:25: openssl/sha.h: No such file or directory
../include/libssh/libssh.h:43:25: openssl/md5.h: No such file or directory
../include/libssh/libssh.h:44:26: openssl/hmac.h:
ищи их...
 
Да у Вас батенька OpenSSL не стоит либо он есть, но без библиотек. Ну а если не стоит то и не стоит, в смысле компилить :(
 
точнее даже openssl-devel
 
Хы: слона-то я и не заметил ;)
Я что-то подумал об отсутствии файла /include/libssh/libssh.h и не удосужился посмотреть на то, что он инклудит :) OpenSSL был, но пришлось копировать файлы туда же где и libssh.h - всё скомпилилось :)
Всем спасибо!
"Красота - как специи, которые хорошую еду делают ещё вкуснее, а без еды есть невозможно."
Страницы: 1
Читают тему