LINUX.ORG.RU

не собирается libssh-0.1


0

0

./configure прошел успешно
make
gcc -g -O2 -Iinclude/ -Wall -g -c -o client.o client.c
In file included from client.c:21:
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:21:
<...> (это я типа сократил)
client.c:227: warning: unused variable `hash'
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] Error 1

вот.
Openssl установлен и hydra при сборке его находит.
ПРобовал поставить libssh-dev тоже ./configure успешно а в make ошибки. Если нужно я его сюда напишу.


include/libssh/libssh.h:40:25: openssl/dsa.h: No such file or directory

написано же не может найти.

что не понятного?

находишь этот файл вернее всю директорию openssl с dsa.h и т.д.

и делаешь
CFLAGS="-Ipath/to/openssl/include/dir" CXXFLAGS="тоже самое" ./configure

fghj ★★★★★
()
Ответ на: комментарий от fghj

Я был обманут GUI-ем
дусал что тэто *.h файлы - а они были линками на соседние лежашие именно в этой папке подпапки. Вот. А GUI так шустро заменил значек линка на изображение текстового файла с его содержимым, что ч и не просек.
Спасибо все равно.

kuz
() автор топика
Ответ на: комментарий от kuz

блин. а!

make[1]: Entering directory `/home/kuz/installs/libssh-0.11-dev/libssh'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kuz/installs/libssh-0.11-dev/libssh'
gcc -o samplessh sample.o -lssh -Llibssh/
libssh//libssh.so: undefined reference to `BN_rand'
libssh//libssh.so: undefined reference to `AES_set_decrypt_key'
libssh//libssh.so: undefined reference to `BN_bin2bn'
libssh//libssh.so: undefined reference to `BN_CTX_new'
libssh//libssh.so: undefined reference to `BN_bn2bin'
libssh//libssh.so: undefined reference to `DSA_do_sign'
libssh//libssh.so: undefined reference to `SHA1_Init'
libssh//libssh.so: undefined reference to `AES_set_encrypt_key'
libssh//libssh.so: undefined reference to `HMAC_Final'
libssh//libssh.so: undefined reference to `EVP_md5'
libssh//libssh.so: undefined reference to `RSA_sign'
libssh//libssh.so: undefined reference to `BN_mod_exp'
libssh//libssh.so: undefined reference to `SHA1_Update'
libssh//libssh.so: undefined reference to `SHA1_Final'
libssh//libssh.so: undefined reference to `BN_set_word'
libssh//libssh.so: undefined reference to `BN_num_bits'
libssh//libssh.so: undefined reference to `DSA_new'
libssh//libssh.so: undefined reference to `AES_cbc_encrypt'
libssh//libssh.so: undefined reference to `EVP_sha1'
libssh//libssh.so: undefined reference to `DSA_free'
libssh//libssh.so: undefined reference to `RSA_new'
libssh//libssh.so: undefined reference to `BF_set_key'
libssh//libssh.so: undefined reference to `DSA_do_verify'
libssh//libssh.so: undefined reference to `MD5_Init'
libssh//libssh.so: undefined reference to `ERR_error_string'
libssh//libssh.so: undefined reference to `HMAC_CTX_cleanup'
libssh//libssh.so: undefined reference to `MD5_Final'
libssh//libssh.so: undefined reference to `BN_is_bit_set'
libssh//libssh.so: undefined reference to `BN_CTX_free'
libssh//libssh.so: undefined reference to `PEM_read_DSAPrivateKey'
libssh//libssh.so: undefined reference to `DSA_SIG_new'
libssh//libssh.so: undefined reference to `RSA_free'
libssh//libssh.so: undefined reference to `DSA_SIG_free'
libssh//libssh.so: undefined reference to `ERR_get_error'
libssh//libssh.so: undefined reference to `PEM_read_RSAPrivateKey'
libssh//libssh.so: undefined reference to `RSA_verify'
libssh//libssh.so: undefined reference to `BF_cbc_encrypt'
libssh//libssh.so: undefined reference to `BN_bn2hex'
libssh//libssh.so: undefined reference to `BN_clear_free'
libssh//libssh.so: undefined reference to `HMAC_Init'
libssh//libssh.so: undefined reference to `RSA_size'
libssh//libssh.so: undefined reference to `SHA1'
libssh//libssh.so: undefined reference to `BN_new'
libssh//libssh.so: undefined reference to `MD5_Update'
libssh//libssh.so: undefined reference to `HMAC_Update'
collect2: ld returned 1 exit status
make: *** [all] Error 1

теперь вот такое говорит (и dev и обычный)...

kuz
() автор топика
Ответ на: комментарий от kuz

чего же ему теперь не хватает?
В configure ни одного no! :((

ln -s -f ../../config.h include/libssh/config.h
gcc -g -O2 -Iinclude/ -Wall -g -c -o client.o client.c
make[1]: Entering directory `/home/kuz/installs/libssh-0.1/libssh'
gcc -g -O2 -Wall -g -I../include/ -c -o client.o client.c
gcc -g -O2 -Wall -g -I../include/ -c -o packet.o packet.c
gcc -g -O2 -Wall -g -I../include/ -c -o dh.o dh.c
gcc -g -O2 -Wall -g -I../include/ -c -o crypt.o crypt.c
gcc -g -O2 -Wall -g -I../include/ -c -o connect.o connect.c
gcc -g -O2 -Wall -g -I../include/ -c -o error.o error.c
gcc -g -O2 -Wall -g -I../include/ -c -o buffer.o buffer.c
gcc -g -O2 -Wall -g -I../include/ -c -o string.o string.c
gcc -g -O2 -Wall -g -I../include/ -c -o kex.o kex.c
gcc -g -O2 -Wall -g -I../include/ -c -o channels.o channels.c
gcc -g -O2 -Wall -g -I../include/ -c -o options.o options.c
gcc -g -O2 -Wall -g -I../include/ -c -o keys.o keys.c
gcc -g -O2 -Wall -g -I../include/ -c -o auth.o auth.c
gcc -g -O2 -Wall -g -I../include/ -c -o base64.o base64.c
gcc -g -O2 -Wall -g -I../include/ -c -o keyfiles.o keyfiles.c
gcc -g -O2 -Wall -g -I../include/ -c -o misc.o misc.c
gcc -g -O2 -Wall -g -I../include/ -c -o gzip.o gzip.c
gcc -g -O2 -Wall -g -I../include/ -c -o wrapper.o wrapper.c
gcc -g -O2 -Wall -g -I../include/ -c -o sftp.o sftp.c
gcc -o libssh.so -shared client.o packet.o dh.o crypt.o connect.o error.o buffer.o string.o kex.o channels.o options.o keys.o auth.o base64.o keyfiles.o misc.o gzip.o wrapper.o sftp.o -lnsl -lresolv -lz
make[1]: Leaving directory `/home/kuz/installs/libssh-0.1/libssh'
gcc -o ssh client.o -lssh -Llibssh/
libssh//libssh.so: undefined reference to `BN_rand'
libssh//libssh.so: undefined reference to `AES_set_decrypt_key'
libssh//libssh.so: undefined reference to `BN_bin2bn'
libssh//libssh.so: undefined reference to `BN_CTX_new'
libssh//libssh.so: undefined reference to `BN_bn2bin'
libssh//libssh.so: undefined reference to `DSA_do_sign'
libssh//libssh.so: undefined reference to `SHA1_Init'
libssh//libssh.so: undefined reference to `RAND_seed'
libssh//libssh.so: undefined reference to `AES_set_encrypt_key'
libssh//libssh.so: undefined reference to `HMAC_Final'
libssh//libssh.so: undefined reference to `EVP_md5'
libssh//libssh.so: undefined reference to `RSA_sign'
libssh//libssh.so: undefined reference to `BN_mod_exp'
libssh//libssh.so: undefined reference to `SHA1_Update'
libssh//libssh.so: undefined reference to `SHA1_Final'
libssh//libssh.so: undefined reference to `BN_set_word'
libssh//libssh.so: undefined reference to `BN_num_bits'
libssh//libssh.so: undefined reference to `DSA_new'
libssh//libssh.so: undefined reference to `AES_cbc_encrypt'
libssh//libssh.so: undefined reference to `EVP_sha1'
libssh//libssh.so: undefined reference to `DSA_free'
libssh//libssh.so: undefined reference to `RSA_new'
libssh//libssh.so: undefined reference to `BF_set_key'
libssh//libssh.so: undefined reference to `DSA_do_verify'
libssh//libssh.so: undefined reference to `MD5_Init'
libssh//libssh.so: undefined reference to `ERR_error_string'
libssh//libssh.so: undefined reference to `HMAC_CTX_cleanup'
libssh//libssh.so: undefined reference to `MD5_Final'
libssh//libssh.so: undefined reference to `BN_is_bit_set'
libssh//libssh.so: undefined reference to `BN_CTX_free'
libssh//libssh.so: undefined reference to `PEM_read_DSAPrivateKey'
libssh//libssh.so: undefined reference to `DSA_SIG_new'
libssh//libssh.so: undefined reference to `RSA_free'
libssh//libssh.so: undefined reference to `DSA_SIG_free'
libssh//libssh.so: undefined reference to `ERR_get_error'
libssh//libssh.so: undefined reference to `PEM_read_RSAPrivateKey'
libssh//libssh.so: undefined reference to `RSA_verify'
libssh//libssh.so: undefined reference to `BF_cbc_encrypt'
libssh//libssh.so: undefined reference to `BN_bn2hex'
libssh//libssh.so: undefined reference to `BN_clear_free'
libssh//libssh.so: undefined reference to `HMAC_Init'
libssh//libssh.so: undefined reference to `RSA_size'
libssh//libssh.so: undefined reference to `SHA1'
libssh//libssh.so: undefined reference to `BN_new'
libssh//libssh.so: undefined reference to `MD5_Update'
libssh//libssh.so: undefined reference to `HMAC_Update'
collect2: ld returned 1 exit status
make: *** [all] Error 1

kuz
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.