[1905] in Kerberos
No subject found in mail header
daemon@ATHENA.MIT.EDU (hussien@masi.ibp.fr)
Wed May 13 09:05:28 1992
Date: Wed, 13 May 92 14:22:40 +0200
From: hussien@masi.ibp.fr
To: kerberos@Athena.MIT.EDU
Hello to all;
I brought a patch file (eBones.patch.Z) that reinserts the calls to the DES library in the kerberos source. The patching is successful but the compiler signals me the following errors :
"../.././include/des.h", line 2: illegal type combination
"../.././include/des.h", line 2: syntax error at or near symbol [
"../.././include/des.h", line 3: redeclaration of des_ks_struct
"../.././include/des.h", line 3: syntax error at or near type word "de
s_key_schedule"
*** Error code 1
make: Fatal error: Command failed for target `create_ciph.o'
.... (stuff deleted)
I "traced" back the problem to the fact that some files 'included' both des.h and krb.h, while some others 'included' des.h and kadm.h. The problem is the files krb.h and kadm.h too 'included' des.h, which is equivalent to say that the file des.h is inserted two times in some source files. Since there are type definitions and variable declarations in des.h (among others) 'my' compiler signals the above errors.
For more clarity ...
-----/\/------
Here are two type (and variable) definitions in des.h :
typedef unsigned char des_cblock[8];
typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16];
File krb.h and kadm.h contains the following statement :
#include <des.h>
File "create_ciph.c" (one example) contains the following "include" statements:
#include <krb.h>
#include <des.h>
-----/\/------
The obvious solution for this is then to delete '#include <des.h>' from the those files who 'included' both des.h and krb.h (des.h and kadm.h). But I am "worried" to do that as I suppose that such an obvious error can not be made by the authers unless there are explanations. Moreover, no one has yet (as far as I know) indicated this error.
By the way, my non DES library kerberos(V4) works fine and the only change I made since is to apply the above patch (eBones.patch.Z) to reinsert the calls to DES library. (now I have Eric's latest version of DES library - by the way I thank Eric for having sent me the code)
I need your opinions on the above problem.
Thank you.