[GE users] sge_security.c errors

Paul Mitchell pmitchel at email.unc.edu
Mon Nov 29 20:08:23 GMT 2004


Hello All,
  After working with our local AFS guru, we decided to go the route of
kerberos token renewal; so, following the instructions in
gridengine/source/security/security.html, we've created the principals for
the qmaster, schedd and execution hosts.  I've created a new keytab
(/etc/grid.keytab) since we're running the grid executables as user
"grid" and not root.

Following the instructions in the implementation html:

	gridengine/source/security/krb/doc/Implementation.html

I performed a gridengine/source/aimk clean

then a  gridengine/source/aimk -kerberos

However, it blows out with:

gcc -O3 -no-cpp-precomp -flat_namespace -Wall -Werror -Wstrict-prototypes
-DDARWIN -DDARWIN7 -DGETHOSTBYNAME -DGETHOSTBYADDRENSSL -DKERBEROS
-I../security/krb -I/vol2/tools/SW/krb5/darwin/include
-I/vol2/tools/SW/krb5/darwin/include/gssapi -I/vol2/darwin/include
-DTARGET_32BIT -DQCONF_FLATFILE  -DSPOOLING_dynamic -DENABLE_NGC -DSECURE
-I/vol2/tools/SW/openssl-0.9.7d/darDCOMPILE_DC -D__SGE_NO_USERMAPPING__
-I../security/sec -I../common -I../libs -I../libs/uti -I../libs/gdi
-I../libs/japi -I..-I../libs/cull -I../libs/rmon -I../libs/comm
-I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm
-I../libs/mir  -I../daemons/common -I../daemons/qmaster -I../daemons/execd
-I../daemons/schedd -I../clients/common -I.  -dynamic -c ../liburity.c
cc1: warnings being treated as errors
../libs/gdi/sge_security.c: In function `store_sec_cred':
../libs/gdi/sge_security.c:966: warning: implicit declaration of function
`error_message'
../libs/gdi/sge_security.c:966: warning: format argument is not a pointer
(arg 6)
../libs/gdi/sge_security.c:974: parse error before "FAR"
../libs/gdi/sge_security.c: In function `kerb_job':
../libs/gdi/sge_security.c:1099: warning: format argument is not a pointer
(arg 5)
../libs/gdi/sge_security.c:1106: parse error before "FAR"
../libs/gdi/sge_security.c: In function `tgt2cc':
../libs/gdi/sge_security.c:1157: warning: assignment discards qualifiers
from pointer target type
../libs/gdi/sge_security.c:1162: warning: format argument is not a pointer
(arg 4)
../libs/gdi/sge_security.c:1173: parse error before "FAR"
make: *** [sge_security.o] Error 1
not done

which is strange. Looking at sge_scutiy.c, the offending lines are:

if ((rc = krb_encrypt_tgt_creds(tgt_creds, &outbuf))) {
            ERROR((SGE_EVENT, MSG_SEC_KRBENCRYPTTGT_SSIS,
            request->host, request->commproc, request->id,
error_message(rc)));
         }

it seems to be complaining about the error_messages(rc) if I'm reading
this right?

however, what's truely confusing is that there is no string "FAR" in the
file - line 973-974 is:

 if (outbuf.length)
    krb5_xfree(outbuf.data);

Has anyone run into this before?

Paul (heading back to reread the README.BUILD doument...)

==============================================================================
	Paul Mitchell
	email: pmitchel at email.unc.edu
	phone: (919) 962-9778
	office: I have an office, room 14, Phillips Hall
==============================================================================




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list