Hello there,

First of all I'd like to thank everybody who sent me my paper. I've
received about 10 copies of it. Thanks, please don't send anymore :-)
I've just started playing with OpenSSL programming under Linux,
OpenSSL installed fine and I'm having the libraries in /usr/local/lib
But when trying to compile the darkspell examples I get the following
errors:

bash-2.03# gcc paul2.c request.c ssl_sockets.c -o ssl_client
/tmp/ccpUxCpY.o: In function `my_verify_callback':
/tmp/ccpUxCpY.o(.text+0x22): undefined reference to `X509_STORE_CTX_get_current_
cert'
/tmp/ccpUxCpY.o(.text+0x36): undefined reference to `X509_STORE_CTX_get_error'
/tmp/ccpUxCpY.o(.text+0x54): undefined reference to `X509_get_subject_name'
/tmp/ccpUxCpY.o(.text+0x5f): undefined reference to `X509_NAME_oneline'
/tmp/ccpUxCpY.o(.text+0x81): undefined reference to `X509_verify_cert_error_stri
ng'
/tmp/ccpUxCpY.o: In function `main':
/tmp/ccpUxCpY.o(.text+0x12d): undefined reference to `SSL_load_error_strings'
/tmp/ccpUxCpY.o(.text+0x132): undefined reference to `SSL_library_init'
/tmp/ccpUxCpY.o(.text+0x182): undefined reference to `SSL_CTX_load_verify_locations'
/tmp/ccpUxCpY.o(.text+0x19b): undefined reference to `SSL_CTX_set_verify'
/tmp/ccpUxCpY.o(.text+0x1ad): undefined reference to `SSL_new'
/tmp/ccpUxCpY.o(.text+0x1ec): undefined reference to `SSL_get_peer_certificate'
/tmp/ccpUxCpY.o(.text+0x206): undefined reference to `SSL_get_peer_cert_chain'
/tmp/ccpUxCpY.o(.text+0x227): undefined reference to `ssl_verify_cert_chain'
/tmp/ccpUxCpY.o(.text+0x2d4): undefined reference to `X509_get_subject_name'
/tmp/ccpUxCpY.o(.text+0x2df): undefined reference to `X509_NAME_oneline'
/tmp/ccpUxCpY.o(.text+0x312): undefined reference to `X509_get_issuer_name'
/tmp/ccpUxCpY.o(.text+0x31d): undefined reference to `X509_NAME_oneline'
/tmp/ccpUxCpY.o(.text+0x384): undefined reference to `SSL_shutdown'
/tmp/ccpUxCpY.o(.text+0x3b1): undefined reference to `SSL_CTX_free'
/tmp/ccwmb2ss.o: In function `writeToSSLSocket':
/tmp/ccwmb2ss.o(.text+0x24): undefined reference to `SSL_write'
/tmp/ccwmb2ss.o: In function `readn':
/tmp/ccwmb2ss.o(.text+0x75): undefined reference to `SSL_read'
/tmp/ccwmb2ss.o: In function `SSLsocket':
/tmp/ccwmb2ss.o(.text+0x266): undefined reference to `SSL_set_fd'
/tmp/ccwmb2ss.o(.text+0x275): undefined reference to `SSL_connect'
collect2: ld returned 1 exit status 

I guess it just can't find the libraries. Why? How should I tell the
compiler where to look for them?

-- 
Best regards,
Leonid Khachaturov
mailto:[EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to