Thank you so much Lee.
But that was only a little piece of whole of error messages I got from gcc!
I just sent that to help illustrate the situation. However I will try to remove that rpm and bulid again OpenSSL.
Thanks again
Best wishes,
Ramtin
Lee Merrill <[EMAIL PROTECTED]> wrote:
Lee Merrill <[EMAIL PROTECTED]> wrote:
Well, X509 is defined in openssl/ossl_typ.h, did it complain about this file not being found? But this file should be included for you as long as "OPENSSL_NO_X509" is not defined. SSL is defined in ssl.h (line 354 in my version), so then maybe some include file is redefining SSL? You might check for "redefined" errors on this symbol.
I would tend to remove the rpm before installing a built version, but either way should work.
Regards,
Lee
On Sat, 2006-11-04 at 18:56 -0800, Ramtin wrote:
Hi everybody,
I had installed openssl as a rpm package (openssl-0.9.7g-2mdk) into my
linux box(mandriva 2006 official), but i was unable to compile
applications that include headers like openssl/bio.h or openssl/ssl.h. So I
downloaded the latest openssl from the site. And install it without any
error messages. Due to dependency problems I did not erase the old rpm
package!
But now, I encounter TOO MANY errors when trying to compile even a
hello world program that just include openssl/ssl.h!!!
Errors like:
/usr/local/ssl/include/openssl/ssl.h:1365: error: initializer
_expression list treated as compound _expression
/usr/local/ssl/include/openssl/ssl.h:1366: error: 'X509' has not been
declared
/usr/local/ssl/include/openssl/ssl.h:1368: error: variable or field
'SSL_set_connect_state' declared void
/usr/local/ssl/include/openssl/ssl.h:1368: error: 'SSL' was not
declared in this scope
...
I use a 2.6.12-12mdksmp kernel on 3.4Ghz pentium D and gcc 4.0.1.
What's the solution?
Thank you so much(it is too critical for me to compile such programs
since my final project is completely based on openssl and ssl
connections)
regards,
Want to start your own business? Learn how on Yahoo! Small Business.
---
"There is nothing remarkable about it. All one has to do is press the right keys at the right time and the computer programs itself." (ala J.S. Bach)
Unless otherwise stated, any views presented in this e-mail are solely those of the author and do not necessarily represent those of the company.
Sponsored Link
Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.