RE: Error copiling ssl: undefined reference
A lot of thanks, now roks perfectly.The problem it was that i put the commnad line with -o and the correct form was:gcc -lssl -lcrypto cli.c Thanks. Date: Sat, 27 Feb 2010 11:33:31 -0800 From: pie...@hogranch.com To: openssl-users@openssl.org Subject: Re: Error copiling ssl: undefined reference xabi esteban wrote: A lot of thanks but I'm vey confused and my english is not good. I compile with ggc -o and you said that this is not enought, i need linket too? Put you put an example linking the libreres with gcc or example for a makefile? Thanks at a minimum, try adding -lssl -lcrypto to that gcc command line. this tells it to tell the linker phase to include libssl.so and libcrypto.so __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org _ ¿Aún sin la última versión de Internet Explorer 8? ¡Actualízate gratis! http://www.vivelive.com/internetexplorer8
RE: Error copiling ssl: undefined reference
It doesn't make any difference in this case, but you'd be best to get in the habit of putting the libraries last; for example gcc cli.c -lssl -lcrypto A few compilers only search libraries for references which they know about at the time the library is listed. If you were using that sort of compiler, you would still have your problem. From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of xabi esteban Sent: Sunday, February 28, 2010 11:27 AM To: openssl-users@openssl.org Subject: RE: Error copiling ssl: undefined reference A lot of thanks, now roks perfectly. The problem it was that i put the commnad line with -o and the correct form was: gcc -lssl -lcrypto cli.c Thanks. Date: Sat, 27 Feb 2010 11:33:31 -0800 From: pie...@hogranch.com To: openssl-users@openssl.org Subject: Re: Error copiling ssl: undefined reference xabi esteban wrote: A lot of thanks but I'm vey confused and my english is not good. I compile with ggc -o and you said that this is not enought, i need linket too? Put you put an example linking the libreres with gcc or example for a makefile? Thanks at a minimum, try adding -lssl -lcrypto to that gcc command line. this tells it to tell the linker phase to include libssl.so and libcrypto.so __ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org ¡Nuevo MSN Entretenimiento! Todos los trailers, series de tv y videoclips, los mejores juegos online y lo último sobre tus estrellas favoritas. http://entretenimiento.es.msn.com/
RE: Error copiling ssl: undefined reference
A lot of thanks but I'm vey confused and my english is not good. I compile with ggc -o and you said that this is not enought, i need linket too? Put you put an example linking the libreres with gcc or example for a makefile? Thanks Date: Fri, 26 Feb 2010 13:15:19 -0800 From: pie...@hogranch.com To: openssl-users@openssl.org Subject: Re: Error copiling ssl: undefined reference xabi esteban wrote: I am using in a shell in Ubuntu Linux try adding -lssl to your link options. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org _ ¿Aún no sabes qué móvil eres? ¡Descúbrelo aquí! http://www.quemovileres.com/
Re: Error copiling ssl: undefined reference
xabi esteban wrote: A lot of thanks but I'm vey confused and my english is not good. I compile with ggc -o and you said that this is not enought, i need linket too? Put you put an example linking the libreres with gcc or example for a makefile? Thanks at a minimum, try adding -lssl -lcrypto to that gcc command line. this tells it to tell the linker phase to include libssl.so and libcrypto.so __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Error copiling ssl: undefined reference
Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks _ Ibex 35, comparadores de hipotecas, Euribor, foros de bolsa. ¡Nuevo MSN Dinero! http://dinero.es.msn.com/
Error copiling ssl: undefined reference
Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks _ ¿Aún no sabes qué móvil eres? ¡Descúbrelo aquí! http://www.quemovileres.com/
Re: Error copiling ssl: undefined reference
Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban xab...@msn.com wrote: Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks http://www.messengergamesclub.com/spain/ -- Navega con el navegador más seguro de todos. ¡Descárgatelo ya!http://www.vivelive.com/internetexplorer8
RE: Error copiling ssl: undefined reference
I don't understand you. I put the libreries in the includes #include openssl/ssl.h #include but i'din't put nothing more. How i could link with this libreries? I didn't found any example. Thanks Date: Fri, 26 Feb 2010 12:39:57 -0500 Subject: Re: Error copiling ssl: undefined reference From: anand.apa...@gmail.com To: openssl-users@openssl.org Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban xab...@msn.com wrote: Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks Navega con el navegador más seguro de todos. ¡Descárgatelo ya! _ Ibex 35, comparadores de hipotecas, Euribor, foros de bolsa. ¡Nuevo MSN Dinero! http://dinero.es.msn.com/
Re: Error copiling ssl: undefined reference
Those are the header you included. But you need to link against libs after compilation. What platform(win/linux) and What tool(studio/shell)? -Anand On Fri, Feb 26, 2010 at 1:59 PM, xabi esteban xab...@msn.com wrote: I don't understand you. I put the libreries in the includes #include openssl/ssl.h #include but i'din't put nothing more. How i could link with this libreries? I didn't found any example. Thanks -- Date: Fri, 26 Feb 2010 12:39:57 -0500 Subject: Re: Error copiling ssl: undefined reference From: anand.apa...@gmail.com To: openssl-users@openssl.org Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban xab...@msn.com wrote: Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks http://www.messengergamesclub.com/spain/ -- Navega con el navegador más seguro de todos. ¡Descárgatelo ya!http://www.vivelive.com/internetexplorer8 -- Navega con el navegador más seguro de todos. ¡Descárgatelo ya!http://www.vivelive.com/internetexplorer8
Re: Error copiling ssl: undefined reference
xabi esteban wrote: I don't understand you. I put the libreries in the includes #include openssl/ssl.h #include but i'din't put nothing more. How i could link with this libreries? I didn't found any example. you're confusing include files with libraries. you need to tell the linker the appropriate paths to find .so or .a library files. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
RE: Error copiling ssl: undefined reference
I am using in a shell in Ubuntu Linux thanks Date: Fri, 26 Feb 2010 14:47:22 -0500 Subject: Re: Error copiling ssl: undefined reference From: anand.apa...@gmail.com To: openssl-users@openssl.org Those are the header you included. But you need to link against libs after compilation. What platform(win/linux) and What tool(studio/shell)? -Anand On Fri, Feb 26, 2010 at 1:59 PM, xabi esteban xab...@msn.com wrote: I don't understand you. I put the libreries in the includes #include openssl/ssl.h #include but i'din't put nothing more. How i could link with this libreries? I didn't found any example. Thanks Date: Fri, 26 Feb 2010 12:39:57 -0500 Subject: Re: Error copiling ssl: undefined reference From: anand.apa...@gmail.com To: openssl-users@openssl.org Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban xab...@msn.com wrote: Hello: I'm trying to use the SSL libreries. When I try to comipile my code y always obtain the same error: cli.c:(.text+0x20): undefined reference to `SSL_library_init' cli.c:(.text+0x25): undefined reference to `SSLv2_client_method' cli.c:(.text+0x30): undefined reference to `SSL_load_error_strings' cli.c:(.text+0x3e): undefined reference to `SSL_CTX_new' cli.c:(.text+0x6f): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x150): undefined reference to `SSL_new' cli.c:(.text+0x183): undefined reference to `SSL_set_fd' cli.c:(.text+0x191): undefined reference to `SSL_connect' cli.c:(.text+0x1ad): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x1c7): undefined reference to `SSL_get_current_cipher' cli.c:(.text+0x1cf): undefined reference to `SSL_CIPHER_get_name' cli.c:(.text+0x1ed): undefined reference to `SSL_get_peer_certificate' cli.c:(.text+0x222): undefined reference to `X509_get_subject_name' cli.c:(.text+0x23a): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x279): undefined reference to `CRYPTO_free' cli.c:(.text+0x287): undefined reference to `X509_get_issuer_name' cli.c:(.text+0x29f): undefined reference to `X509_NAME_oneline' cli.c:(.text+0x2de): undefined reference to `CRYPTO_free' cli.c:(.text+0x2ec): undefined reference to `X509_free' cli.c:(.text+0x30a): undefined reference to `SSL_write' cli.c:(.text+0x326): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x352): undefined reference to `SSL_read' cli.c:(.text+0x36e): undefined reference to `ERR_print_errors_fp' cli.c:(.text+0x3b6): undefined reference to `SSL_shutdown' cli.c:(.text+0x3d2): undefined reference to `SSL_free' cli.c:(.text+0x3e0): undefined reference to `SSL_CTX_free' I'm trying with differets codes from the web and with the examples in demos/ssl In the includes y put the includes: #include openssl/crypto.h #include openssl/x509.h #include openssl/pem.h #include openssl/ssl.h #include openssl/err.h And the all the files are in /usr/includes/openssl Any idea? thanks Navega con el navegador más seguro de todos. ¡Descárgatelo ya! Navega con el navegador más seguro de todos. ¡Descárgatelo ya! _ ¿Aún no sabes qué móvil eres? ¡Descúbrelo aquí! http://www.quemovileres.com/
Re: Error copiling ssl: undefined reference
xabi esteban wrote: I am using in a shell in Ubuntu Linux try adding -lssl to your link options. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org