[3806] in Kerberos
Re: AIX3.2.5 KRB5b4pl2 build probs
daemon@ATHENA.MIT.EDU (Stephan Olbrich)
Wed Sep 7 12:14:36 1994
To: kerberos@MIT.EDU
Date: Wed, 7 Sep 1994 11:07:44 GMT
From: olbrich@rrzn.uni-hannover.d400.de (Stephan Olbrich)
Egan F. Ford (egan@cbs.cis.com) wrote:
: Works great until:
: cc -O -I./../../../include -I../../../include -c krb5_encode.c
: "krb5_encode.c", line 342.8: 1506-025 (S) Operand must be a modifiable lvalue.
: "krb5_encode.c", line 363.8: 1506-025 (S) Operand must be a modifiable lvalue.
: "krb5_encode.c", line 464.8: 1506-025 (S) Operand must be a modifiable lvalue.
: "krb5_encode.c", line 484.8: 1506-025 (S) Operand must be a modifiable lvalue.
: The error code from the last failed command is 1.
On an SGI under IRIX 5.2 similar errors occured:
cc -I./../../../include -I../../../include -c krb5_encode.c
cfe: Error: krb5_encode.c, line 342: Change value for constant variable.
rep->msg_type = ((krb5_msgtype)11) ;
----------------^
cfe: Error: krb5_encode.c, line 363: Change value for constant variable.
rep->msg_type = ((krb5_msgtype)13) ;
----------------^
cfe: Error: krb5_encode.c, line 464: Change value for constant variable.
rep->msg_type = ((krb5_msgtype)10) ;
----------------^
cfe: Error: krb5_encode.c, line 484: Change value for constant variable.
rep->msg_type = ((krb5_msgtype)12) ;
----------------^
*** Error code 1 (bu21)
The cause is the "const" prefix of the declaration of "rep" in this 4 functions.
Now I've commented it out (/*const*/), and it compiles.
--
==========================================================================
// Stephan Olbrich email: olbrich@rrzn.uni-hannover.de \\
//----------------------------------------------------------------------\\
// Regionales Rechenzentrum fuer __ __ ___ \\
// Niedersachsen (RRZN) | ) | ) / |\ | / | | |\ | | \\
// Universitaet Hannover |< |< / | \ | / | | | \ | | \\
// Schlosswender Str. 5 | \ | \ /__ | \| / \_/ | \| | \\
// D-30159 Hannover voice: 0511 762-3078 (fax: -3003) \\
==========================================================================