VDK Discussion Forum

You must be logged in to post

compile tutorial 1 failed

UserPost

3:38
22 April 2010


Shun

New Member

posts 2

i come across a problem compiling "testwidget" in fedroa9 ,following is the problem,


root@Shun testwidget]# make

g++ -o Server testwidget.o main.o moc_testwidget.o -L/usr/local/vdk -lvdk -lsofia-sip-ua -lspeex -lspeexdsp -ljrtp -lportaudio -lQtGui -lQtNetwork -lQtCore -lpthread

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_NAME_oneline@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `HMAC@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_shutdown@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_write@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `BIO_new_socket@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CIPHER_get_name@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_get_current_cipher@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSLv23_method@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `OBJ_nid2sn@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_load_verify_locations@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_session_id_context@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_error@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_error_depth@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_client_CA_list@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_verify_depth@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_cipher_list@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `sk_value@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_current_cert@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_get_verify_result@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_read@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_new@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_check_private_key@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_load_error_strings@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `ERR_lib_error_string@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_get_issuer_name@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_set_bio@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_get_shutdown@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `EVP_sha1@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `RAND_pseudo_bytes@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_load_client_CA_file@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_connect@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_library_init@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `sk_num@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_verify_cert_error_string@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `BIO_ctrl@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `OBJ_obj2nid@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_get_peer_certificate@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_get_ext_count@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `ERR_func_error_string@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_free@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `RAND_load_file@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_get_subject_name@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_use_certificate_file@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_set_accept_state@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `BIO_free@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_EXTENSION_get_object@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509V3_EXT_get@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `ERR_reason_error_string@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_ctrl@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509V3_EXT_d2i@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_pending@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_set_fd@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_get_ext@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `TLSv1_client_method@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_new@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_verify@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `TLSv1_method@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_NAME_get_text_by_NID@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_free@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `X509_free@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_get_error@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `ERR_get_error@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_CTX_use_PrivateKey_file@OPENSSL_0.9.8'

/usr/local/vdk/libsofia-sip-ua.so: undefined reference to `SSL_set_connect_state@OPENSSL_0.9.8'

collect2: ld 杩斿洖 1

make: *** [Server] 閿欒 1

[root@Shun testwidget]#


18:54
27 April 2010


lamonica

Admin

posts 28

Hello Shun, sorry for the late reply.

libsofia-sip, one of vdk dependencies, depends on libssl (0.9.8 as installed on ubuntu  distribution) what version of libssl have you got on fedora9?

regards

1:24
28 April 2010


Shun

New Member

posts 2

It's openssl-0.9.8g,  but i rebuild and install openssl-0.9.8,the same problem happen again export for the indication about libssl not found !


and i cp libssl.so.0.9.8 ,libcrypto.so.0.9.8 to the VDK directory ,rebuild the tutorial 1 ,problem again …


what's wrong ?

15:11
28 April 2010


lamonica

Admin

posts 28

Hello Shun,

unfortunately libssl that ships with Fedora9 is lacking a few functionalities that libsofia needs. You can however install the libsofia-sip package for Fedora 9 (1.12.8) and compile your vdk application against that one (please take care not to have both libsofia, from F9 and VDK package in you library path). It should work but I cannot assure evetything will be fine since all testing of VDK is done against libsofia 1.12.9 (that introduced more than one bug-fix).


Please note also that Fedora 9 ships with Qt 4.3.4 and VDK needs at least Qt 4.5.x so be sure that the provided ones are in your path before Fedora ones.


regards



About the VoipDevKit forum

Most Users Ever Online:

23


Currently Online:

1 Guest

Forum Stats:

Groups: 1

Forums: 2

Topics: 20

Posts: 75

Membership:

There are 235 Members

There has been 1 Guest

There are 2 Admins

There are 2 Moderators

Top Posters:

Antti – 9

zanes – 7

simon – 5

chedy – 3

Elimu – 3

grin – 3

Administrators: lamonica (28 Posts), admin (0 Posts)

Moderators: alienpenguin (8 Posts), murgia (0 Posts)