"ccbase.c", line 458.5: 1506-046 (S) Syntax error.

phoebus phoebus frphoebus at yahoo.fr
Thu Feb 25 09:22:14 EST 2010


Hi  all,

I'm trying to build Kerberos on AIX 5L.
Environment:
OS: AIX 5.3 TL 10 SP1
Compiler: IBM XL C/C++ Enterprise Edition for AIX v9.0
Kerberos source: krb5-1.7.1
 
The configure paramters are:
    export CC=cc
    ./configure --prefix=/usr/local/kerberos --sysconfdir=/usr/local/etc/kerberos \
                    --with-cflags="-O -D__STR31__ -qmaxmem=-1"

The make failed with this output.<quote>
making all in lib/krb5/ccache...
        cc   -I../../../include -I./../../../include -I./ccapi   -DKRB5_DEPRECATED=1   -g -qhalt=e -O -D_THREAD_SAFE    -c ccbase.c
"ccbase.c", line 458.5: 1506-046 (S) Syntax error.
"ccbase.c", line 460.9: 1506-046 (S) Syntax error.
"ccbase.c", line 460.12: 1506-045 (S) Undeclared identifier acquire.
"ccbase.c", line 465.5: 1506-046 (S) Syntax error.
"ccbase.c", line 465.8: 1506-045 (S) Undeclared identifier already.
"ccbase.c", line 566.5: 1506-046 (S) Syntax error.
"ccbase.c", line 566.8: 1506-045 (S) Undeclared identifier unlock.
"ccbase.c", line 605.5: 1506-046 (S) Syntax error.
"ccbase.c", line 605.8: 1506-045 (S) Undeclared identifier unlock.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
</quote>

I do't understand why the file ./lib/krb5/ccache/ccbase.c have erros in this code section:

<quote>
+453  krb5_error_code
  +454  k5_cc_mutex_lock(krb5_context context, k5_cc_mutex *m)
  +455  {
  +456      krb5_error_code ret = 0;
  +457
  +458      // not locked or already locked by another context
  +459      if (m->owner != context) {
  +460          // acquire lock, blocking until available
  +461          ret = k5_mutex_lock(&m->lock);
  +462          m->owner = context;
  +463          m->refcount = 1;
  +464      }
  +465      // already locked by this context, just increase refcount
  +466      else {
  +467          m->refcount++;
  +468      }
  +469      return ret;
  +470  }
</quote>

Thanks for your feedback and advices.

Regards,
Frphoebus


      


More information about the krbdev mailing list