Muszę napisać program używający biblioteki gnuTLS, jednak mam problem z jej instalacją.
Postępuję zgodnie z tym co jest napisane na tej stronie:
http://www.linuxfromscratch.org/blfs/vi ... nutls.html
Jednak po wykonaniu make check coś tam wyrzuca na ekran, aż się w końcu zapętla w takim miejscu:
Kod: Zaznacz cały
client -28: Resource temporarily unavailable, try again.
loop invoking client:
client_pull len 5 has 0
client -28: Resource temporarily unavailable, try again.
loop invoking client:
client_pull len 5 has 0
client -28: Resource temporarily unavailable, try again.
loop invoking client:
client_pull len 5 has 0
http://www.gnu.org/software/gnutls/manu ... _002b_002b
widzę masę błędów typu:
Kod: Zaznacz cały
g++ -Wall -o "tls" "tls.cpp" (w katalogu /home/kuba/Programy C++)
Kompilacja nie powiodła się
/tmp/ccJiE4uC.o: In function `main':
tls.cpp:(.text+0x88): undefined reference to `gnutls_global_init'
tls.cpp:(.text+0x96): undefined reference to `gnutls::client_session::client_session()'
tls.cpp:(.text+0xa4): undefined reference to `gnutls::certificate_credentials::certificate_credentials()'
tls.cpp:(.text+0xc2): undefined reference to `gnutls::certificate_credentials::set_x509_trust_file(char const*, gnutls_x509_crt_fmt_t)'
tls.cpp:(.text+0xda): undefined reference to `gnutls::session::set_credentials(gnutls::credentials&)'
tls.cpp:(.text+0xf8): undefined reference to `gnutls::session::set_priority(char const*, char const**)'
tls.cpp:(.text+0xfd): undefined reference to `tcp_connect'
tls.cpp:(.text+0x11b): undefined reference to `gnutls::session::set_transport_ptr(void*)'
tls.cpp:(.text+0x129): undefined reference to `gnutls::session::handshake()'
tls.cpp:(.text+0x30a): undefined reference to `gnutls::session::send(void const*, unsigned int)'
tls.cpp:(.text+0x32a): undefined reference to `gnutls::session::recv(void*, unsigned int)'
tls.cpp:(.text+0x4f2): undefined reference to `gnutls_strerror'
tls.cpp:(.text+0x6fe): undefined reference to `gnutls::session::bye(gnutls_close_request_t)'
tls.cpp:(.text+0x70c): undefined reference to `gnutls::certificate_credentials::~certificate_credentials()'
tls.cpp:(.text+0x734): undefined reference to `gnutls::certificate_credentials::~certificate_credentials()'
tls.cpp:(.text+0x750): undefined reference to `gnutls::client_session::~client_session()'
tls.cpp:(.text+0x77b): undefined reference to `gnutls::client_session::~client_session()'
tls.cpp:(.text+0x869): undefined reference to `tcp_close'
tls.cpp:(.text+0x86e): undefined reference to `gnutls_global_deinit'
collect2: ld returned 1 exit status