This is easy...all you have to do is link in the library.
eg. gcc -L/usr/local/lib -lssl -lcrypto filename.c. Look at the makefile for
one of the examples for guidance.
Arun.
-----Original Message-----
From: Raaj Krissna <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, May 16, 2000 7:31 AM
Subject: Unable To Install The OPENSSL Properly On Linux Systems And Getting
The Errors While Running The Programs(Client/Server Programs)
>I have tried to install the openssl(version
>Feb28,2000: openssl-0.9.5.tar.gz) on my Linux systems.
>But it is not properly installed.It means the temp
>foiles are not installed properly.
>I have followed the rules that are given in the
>INSTALL file of openssl-0.9.5a tar file( after
>gunzip).
>The rules that i have followed while the installation
>of "openssl-0.9.5.tar.gz" on Linux system are:
>-------------------------------------------------------
>1) I loaded the "openssl-0.9.5.tar.gz" in the
> "/usr/local" Linux system
>
>2)I unzipped(gunzip) the tar file ,then i get a
>directory "openssl-o.9.5a".
>
>3)I went to "openssl-o.9.5a" directory.
>
>4)I executed the following command:
> ./config --prefix=/usr/local --openssldir=usr/local
>
>
>/openssl
>5)next i performed the following command:
> make
>6) next command:
> make test
>7)next command :
> make install
>-------------------------------------------------------
>Now i tried to write some Client/server programs and
>tried to run them by using "gcc filename.c"
>When i run the programs like this iam getting the
>errors such as :
>-------------------------------------------------------
>filename.c:17: warning: return type of `main' is not
>`int'
>/tmp/ccuA0iTp.o: In function `main':
>/tmp/ccuA0iTp.o(.text+0x11): undefined reference to
>
>`SSLeay_add_err_algorithms'/tmp/ccuA0iTp.o(.text+0x16):
>undefined reference to
> `SSL_load_error_strings'
>/tmp/ccuA0iTp.o(.text+0x1b): undefined reference to
> `SSLv2_client_method'
>/tmp/ccuA0iTp.o(.text+0x2f): undefined reference to
> `SSL_CTX_new'
>/tmp/ccuA0iTp.o(.text+0xed): undefined reference to
> `SSL_new'
>/tmp/ccuA0iTp.o(.text+0x11e): undefined reference to
> `SSL_set_fd'
>/tmp/ccuA0iTp.o(.text+0x12d): undefined reference to
> `SSL_connect'
>/tmp/ccuA0iTp.o(.text+0x146): undefined reference to
> `ERR_print_errors_fp'
>/tmp/ccuA0iTp.o(.text+0x165): undefined reference to
> `SSL_write'
>/tmp/ccuA0iTp.o(.text+0x17e): undefined reference to
> `ERR_print_errors_fp'
>/tmp/ccuA0iTp.o(.text+0x1a4): undefined reference to
> `SSL_read'
>/tmp/ccuA0iTp.o(.text+0x1bd): undefined reference to
> `ERR_print_errors_fp'
>/tmp/ccuA0iTp.o(.text+0x1d8): undefined reference to
> `SSL_shutdown'
>/tmp/ccuA0iTp.o(.text+0x1f3): undefined reference to
> `SSL_free'
>/tmp/ccuA0iTp.o(.text+0x202): undefined reference to
> `SSL_CTX_free'collect2:
>ld returned 1 exit status
>-------------------------------------------------------
>Please give me the suggestions
>Thank you
>RaajKrissna
>
>__________________________________________________
>Do You Yahoo!?
>Send instant messages & get email alerts with Yahoo! Messenger.
>http://im.yahoo.com/
>______________________________________________________________________
>OpenSSL Project http://www.openssl.org
>Development Mailing List [EMAIL PROTECTED]
>Automated List Manager [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]