Problem trying to compile krb5-1.6.2 on HP-UX 11.23 (ia64)

scott rankin waspswarm at gmail.com
Tue Sep 4 17:44:22 EDT 2007


Hello,

I am trying to compile the latest source tarball with aCC (HP's
compiler) and receiving a number of errors with spnego_mech.c. Here is
a tail of my build log:

make[3]: Entering directory `/home/scottra/src/krb5-1.6.2/src/lib/gssapi/spnego'
cc -Ae +z -DSHARED -DHAVE_CONFIG_H  -I../../../include
-I./../../../include -I. -I. -I./.. -I../generic -I./../generic
-I../mechglue -I./../mechglue -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -c spnego_mech.c
-o spnego_mech.so.o && mv -f spnego_mech.so.o spnego_mech.so
"../../../include/k5-thread.h", line 737: warning #2174-D: expression has no
          effect
      k5_mutex_lock_update_stats(&m->stats, stats);
      ^

"spnego_mech.c", line 56: error #2147: declaration is incompatible with
          "unsigned int gssint_der_length_size(unsigned int)" (declared at
          line 483 of "../mechglue/mglueP.h")
  extern unsigned int gssint_der_length_size(OM_uint32);
                      ^

"spnego_mech.c", line 57: error #2147: declaration is incompatible with "int
          gssint_get_der_length(unsigned char **, unsigned int, unsigned int
          *)" (declared at line 476 of "../mechglue/mglueP.h")
  extern int gssint_get_der_length(unsigned char **, OM_uint32, OM_uint32*);
             ^

"spnego_mech.c", line 58: error #2147: declaration is incompatible with "int
          gssint_put_der_length(unsigned int, unsigned char **, unsigned int)"
          (declared at line 486 of "../mechglue/mglueP.h")
  extern int gssint_put_der_length(OM_uint32, unsigned char **, OM_uint32);
             ^
...
"spnego_mech.c", line 2641: error #2147: declaration is incompatible with
          "int g_token_size(gss_OID_const, OM_uint32)" (declared at line 64)
  g_token_size(gss_OID_const mech, unsigned int body_size)
  ^


The following diff corrects this:
--- spnego_mech.c       2007-09-04 14:37:52.000000000 -0700
+++ spnego_mech.c.fixed 2007-09-04 14:37:45.000000000 -0700
@@ -53,9 +53,9 @@
 typedef const gss_OID_desc *gss_OID_const;

 /* der routines defined in libgss */
-extern unsigned int gssint_der_length_size(OM_uint32);
-extern int gssint_get_der_length(unsigned char **, OM_uint32, OM_uint32*);
-extern int gssint_put_der_length(OM_uint32, unsigned char **, OM_uint32);
+extern unsigned int gssint_der_length_size(unsigned int);
+extern int gssint_get_der_length(unsigned char **, unsigned int,
unsigned int*);
+extern int gssint_put_der_length(unsigned int, unsigned char **, unsigned int);


 /* private routines for spnego_mechanism */
@@ -2638,7 +2638,7 @@

 /* determine size of token */
 static int
-g_token_size(gss_OID_const mech, unsigned int body_size)
+g_token_size(gss_OID_const mech, OM_uint32 body_size)
 {
        int hdrsize;


cheers,
scott

Platform details:
aCC version: cc: HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006]

% uname -r
B.11.23

% uname -m
ia64



More information about the krbdev mailing list