Hi,

Thanks for reading my question. I wish to get your suggestion and help.

We developed an application which using OpenSSL libraries. We installed
OpenSSL and our application on Solaris,AIX and Linux, and everything is
OK. But when we turned to HPUX10.20,it seems not so lucky. We installed
OpenSSL0.9.5a successfully, then we began to compile our source code,
and get error message like below:
.....
cpp: "rsa.h", line 70: warning 2013: Unknown preprocessing directive.
cpp: "dsa.h", line 73: warning 2013: Unknown preprocessing directive.
cpp: "dh.h", line 67: warning 2013: Unknown preprocessing directive.
cc: "/usr/local/ssl/include/openssl/stack.h", line 82: error 1000: Unexpected sy
mbol: "*".
cc: "/usr/local/ssl/include/openssl/stack.h", line 83: error 1000: Unexpected sy
mbol: "*".
cc: "/usr/local/ssl/include/openssl/stack.h", line 85: error 1000: Unexpected sy
mbol: "*".
cc: "/usr/local/ssl/include/openssl/stack.h", line 87: error 1000: Unexpected sy
mbol: "*".
cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1  
.....

Below is from stack.h:

 82  int sk_num(STACK *);
 83  char *sk_value(STACK *, int);
 84
 85  char *sk_set(STACK *, int, char *);

I modified the function declaration to:

 82  int sk_num();
 83  char *sk_value();
 84
 85  char *sk_set();

So it didn't show error message in these lines,but there are so many
function declarations that it will be a huge task to delete their 
parameter list.

After I modified stack.h and compile,it shows:
.....
cpp: "rsa.h", line 70: warning 2013: Unknown preprocessing directive.
cpp: "dsa.h", line 73: warning 2013: Unknown preprocessing directive.
cpp: "dh.h", line 67: warning 2013: Unknown preprocessing directive.
cc: "/usr/local/ssl/include/openssl/crypto.h", line 181: error 1000: Unexpected
symbol: "CRYPTO_EX_DATA".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 184: error 1000: Unexpected
symbol: "CRYPTO_EX_DATA".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 187: error 1000: Unexpected
symbol: "*".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 187: error 1000: Unexpected
symbol: "void".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 184: error 1000: Unexpected
symbol: "CRYPTO_EX_DATA".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 187: error 1000: Unexpected
symbol: "*".       
.....

crypto.h:
.....
   172  typedef struct bio_st BIO_dummy;
   173
   174  typedef struct crypto_ex_data_st
   175          {
   176          STACK *sk;
   177          int dummy; /* gcc is screwing up this data structure :-( */
   178          } CRYPTO_EX_DATA;
   179
   180  /* Called when a new object is created */
   181  typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
   182                                          int idx, long argl, void *argp);
   183  /* Called when an object is free()ed */
   184  typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
   185                                          int idx, long argl, void *argp);
   186  /* Called when we need to dup an object */
   187  typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void
                 *fd,int idx, long argl, void *argp);
 ......

I empty argument list too , but I don't know whether it is correct.
Now make it again,it shows:
_______________________________________________________________________________
.....
cpp: "rsa.h", line 70: warning 2013: Unknown preprocessing directive.
cpp: "dsa.h", line 73: warning 2013: Unknown preprocessing directive.
cpp: "dh.h", line 67: warning 2013: Unknown preprocessing directive.
cc: "/usr/local/ssl/include/openssl/crypto.h", line 199: error 1000: Unexpected
symbol: "#".
cc: "/usr/local/ssl/include/openssl/crypto.h", line 199: error 1004: Unexpected
end of line.  
.....
________________________________________________________________________________
crypto.h:
.....
199 DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS)
.....
             
How I modify this sentence? 
And is there any method to solve these compilation questions on HPUX?

Thank you in advance.    

----------------------------------------------------------
考眼光添趣味,看21CN今日之地位!总奖金超过100万元!
请即参与http://www.21cn.com/21cntoday

21CN(www.21cn.com)支持CNNIC调查,请到http://fsurvey.cnnic.net.cn/survey/index.html
投www.21cn.com一票!
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to