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

phoebus phoebus frphoebus at yahoo.fr
Thu Feb 25 11:17:07 EST 2010


Libraries exists :

ca06:/home/frphoebus/openssh/kbr5/krb5-1.7.1/src# find . -name *.so
./lib/crypto/libk5crypto.so
./lib/rpc/libgssrpc.so
./lib/gssapi/libgssapi_krb5.so
./lib/krb5/libkrb5.so
./lib/libkrb5support.so
./lib/libcom_err.so
./lib/libk5crypto.so
./lib/libkrb5.so
./lib/libgssapi_krb5.so
./lib/libgssrpc.so
./util/profile/libprofile.so
./util/et/libcom_err.so
./util/support/libkrb5support.so
ca06


I tried configure with blibpath:
export CC=cc
blibpath=/lib:/usr/lib ./configure --prefix=/usr/local/kerberos --sysconfdir=/usr/local/etc/kerberos \
                --with-cflags="-O -D__STR31__ -qmaxmem=-1"

Unfortunately, the amke faidl with same output.

ca06:/home/frphoebus/openssh/kbr5/krb5-1.7.1/src/lib# ldd libcom_err.so
libcom_err.so needs:
Cannot find      /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libc.a(shr.o)
         /usr/lib/librtl.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
ca06:/home/frtber1/openssh/kbr5/krb5-1.7.1/src/lib# ls -l /usr/lib/libpthreads.a
lrwxrwxrwx    1 bin      bin              26 14 Feb 19:27 /usr/lib/libpthreads.a -> /usr/ccs/lib/libpthreads.a
ca06:/home/frphoebus/openssh/kbr5/krb5-1.7.1/src/lib#

Why libcom_err.so can't load /usr/lib/libpthreads.a ??

Tahnsk for any advicesor hep ?

Reagrds,
Frphoebus






________________________________
De : phoebus phoebus <frphoebus at yahoo.fr>
À : krbdev at mit.edu
Envoyé le : Jeu 25 Février 2010, 15 h 56 min 04 s
Objet : Re : "ccbase.c", line 458.5: 1506-046 (S) Syntax error.

I'm tired,

I updated the file ccbase.c (repalce comment in c++ style // by c style /*   */. Following the diff between the updated and the source file.
<quote>
        ca06:/home/frtber1/openssh/kbr5/krb5-1.7.1/src# diff ./lib/krb5/ccache/ccbase.c ./lib/krb5/ccache/ccbase.c.source
        458c458
        <     /* not locked or already locked by another context */
        ---
        >     // not locked or already locked by another context
        460c460
        <       /* acquire lock, blocking until available */
        ---
        >       // acquire lock, blocking until available
        465c465
        <     /* already locked by this context, just increase refcount */
        ---
        >     // already locked by this context, just increase refcount
        566c566
        <     /* unlock each type in the opposite order */
        ---
        >     // unlock each type in the opposite order
        605c605
        <     /* unlock each type in the opposite order */
        ---
        >     // unlock each type in the opposite order
        ca06:/home/frtber1/openssh/kbr5/krb5-1.7.1/src#
</quote>

Unfortunatly, i have the following massages and the make failed again.
<quote>
        Target "all" is up to date.
                cc   -I../../../include -I./../../../include -I.  -DKRB5_DEPRECATED=1   -g -qhalt=e -O -D_THREAD_SAFE    -c client.c
                cc   -I../../../include -I./../../../include -I.  -DKRB5_DEPRECATED=1   -g -qhalt=e -O -D_THREAD_SAFE    -c rpc_test_clnt.c
                cc -L../../../lib -blibpath:/usr/local/kerberos/lib::/usr/lib:/lib -g -qhalt=e -O -D_THREAD_SAFE   -o client client.o rpc_test_clnt.o  -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support  -lpthreads
        ld: 0706-006 Cannot find or open library file: -l k5crypto
                ld:open(): A file or directory in the path name does not exist.
        ld: 0706-006 Cannot find or open library file: -l com_err
                ld:open(): A file or directory in the path name does not exist.
        ld: 0706-006 Cannot find or open library file: -l krb5support
                ld:open(): A file or directory in the path name does not exist.
        make: 1254-004 The error code from the last command is 255.

        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 don't understand why it can find the libraries k5crypto, com_err and krb5support. Tese libraires will be creatd by themake himself !!!

Regards,
Frphoebus




________________________________
De : phoebus phoebus <frphoebus at yahoo.fr>
À : krbdev at MIT.EDU
Envoyé le : Jeu 25 Février 2010, 15 h 22 min 14 s
Objet : "ccbase.c", line 458.5: 1506-046 (S) Syntax error.

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


      
_______________________________________________
krbdev mailing list            krbdev at mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev



      
_______________________________________________
krbdev mailing list            krbdev at mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev



      


More information about the krbdev mailing list