From: [EMAIL PROTECTED]

marco_mora> We developed an application which using OpenSSL
marco_mora> libraries. We installed OpenSSL and our application on
marco_mora> Solaris,AIX and Linux, and everything is OK. But when we
marco_mora> turned to HPUX10.20,it seems not so lucky. We installed
marco_mora> OpenSSL0.9.5a successfully, then we began to compile our
marco_mora> source code, and get error message like below:
marco_mora> .....
[...]
marco_mora> cc: "/usr/local/ssl/include/openssl/stack.h", line 82: error 1000:
marco_mora> Unexpected symbol: "*".
[...]
marco_mora> Below is from stack.h:
marco_mora> 
marco_mora>  82  int sk_num(STACK *);
marco_mora>  83  char *sk_value(STACK *, int);
marco_mora>  84
marco_mora>  85  char *sk_set(STACK *, int, char *);
marco_mora> 
marco_mora> I modified the function declaration to:
marco_mora> 
marco_mora>  82  int sk_num();
marco_mora>  83  char *sk_value();
marco_mora>  84
marco_mora>  85  char *sk_set();

>From that, it looks like the C compiler you use is not an ANSI C
compiler, which is a requirement for anything that has to do with
OpenSSL (because of the way the header files are written, if nothing
else).  This is documented in INSTALL.

However, I'm curious: if OpenSSL built nicely, it means that OpenSSL
got configured to use a different compiler than the one you use in
your project.  How about using the same compiler the OpenSSL
configuration found?

[...]
marco_mora> cc: "/usr/local/ssl/include/openssl/crypto.h", line 199: error 1000:
marco_mora> Unexpected symbol: "#".
marco_mora> cc: "/usr/local/ssl/include/openssl/crypto.h", line 199: error 1004:
marco_mora> Unexpected end of line.
marco_mora> .....
marco_mora> 
________________________________________________________________________________
marco_mora> 
marco_mora> crypto.h:
marco_mora> .....
marco_mora> 199 DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS)
marco_mora> .....

DECLARE_STACK_OF() is a macro that uses the concatenation operator ##.

marco_mora> And is there any method to solve these compilation
marco_mora> questions on HPUX?

Yup, switch to a newer/better compiler.

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to