[7932] in Kerberos
problem with krb.h
daemon@ATHENA.MIT.EDU (Tak Fai Shek)
Wed Sep 11 06:21:17 1996
To: kerberos@MIT.EDU
Date: 11 Sep 1996 09:33:25 GMT
From: tak@memex.co.uk (Tak Fai Shek)
Hi,
I wonder if someone would give me the solution. Our system (SunOS
4.1.3) has the kerberos v4 header, krb.h. We tried to include this header
in a C++ program and encountered the problem, as line #428 of krb.h looks
like:
int krb_get_in_tkt __P();
where __P is defined in the same header file as:
#ifndef __P
#define __P(x) x
#endif
We've compared other krb.h in different platforms (SunOS 5 and alpha) they
all reads (the same line) as:
int krb_get_in_tkt __P((char*, char*, char*, char*, char*, int, key_proc_t,
decrypt_proc_t, void*));
i.e. the SunOS4 version is missing the param prototypes for krb_get_in_tkt.
I highly suspect that it is a bug, but I would like to know whether I could
"turn the bug off" by using any kind of compile flags, or any patch we could
download and apply with. I used gcc 2.7.2 with compile flag
-fno-strict-prototype but it still does not help.
Any direction would be greatly appreciated.
----------------------------------------------------------------------------
Tak F. Shek Support --
tak@memex.co.uk Tel: (+44) 1355 840030
MR-Memex Ltd. Fax: (+44) 1355 239676
Tel: (+44) 1355 233804 Email: support@memex.co.uk
Internet: http://www.memex.co.uk/