[OpenAFS-devel] Install openafs on Tru64 5.1

Thomas Sesselmann sesselm@emt.iis.fhg.de
21 Mar 2002 19:16:51 +0100


Hi,

i want to install openafs on Tru64 5.1

first i try to install the alpha_dux50.tar.gz, but it don't works ...
when i want to install a new kernel, he can't boot corectly and
when i overwrite vfsck the whole system is unstable :(

so i try the source (openafs-1.2.3-src.tar.gz)
 - I add AFS_SYSNAME="alpha_dux51" in configure file
 - so i need to create a src/config/Makefile.alpha_dux51.in
	- I copy the Makefile.alpha_dux50.in to Makefile.alpah_dux51.in
	(because diff *dux40.in and *dux50.in are zero, i think there 	are also
no change to 51)
 - I copy also src/config/param.alpha_dux50.h and
	param.alpha_dux50_usr.h to *dux51* (and change in the files also 	dux50
to dux51, and add "#define AFS_DUX51_ENV 1" in *dux51.h)
 - add "#define SYS_NAME_ID_alpha_dux51 1207" in
	include/afs/afs_sysnames.h and src/config/afs_sysnames.h

and now make says this:
------------------------------------------
cc: Error: ../afs/osi_vfsops.c, line 486: In this statement, "sysent[232].sy_call" has const-qualified type, but occurs in a context that requires a modifiable lvalue. (neednonconst)
sysent[AFS_SYSCALL].sy_call = afs3_syscall;
----^
cc: Error: ../afs/osi_vfsops.c, line 488: In this statement, "sysent[232].sy_info" has const-qualified type, but occurs in a context that requires a modifiable lvalue. (neednonconst)
sysent[AFS_SYSCALL].sy_info = 6;
----^
cc: Error: ../afs/osi_vfsops.c, line 493: In this statement, "sysent[80].sy_call" has const-qualified type, but occurs in a context that requires a modifiable lvalue. (neednonconst)
sysent[SYS_setgroups].sy_call = Afs_xsetgroups;
------------------------------------------

sysent declared in
/sys/include/sys/system.h

and it's a bigger different between 5.1 and 4.0

--------------/sys/include/sys/system.h on 5.1----------------------
/*
 * Structure of the system-entry table
 *
 * NOTE: sizeof(struct sysent) is known to be 16 bytes in locore.s
 */
#define NUMSYSCALLARGS 6
struct sysent {
    int     (*sy_call) __((struct proc *, ...)); /* syscall handler */
    unsigned char sy_info;          /* holds number of args and flags */
    unsigned char aud_param[NUMSYSCALLARGS+1];
                                            /* audit encodings (see audit.h) */
};
#ifdef _KERNEL
#define SY_NARG(sysentp) ((sysentp)->sy_info & 0x0f)
#endif /* _KERNEL */
--------------/sys/include/sys/system.h on 4.0----------------------
/*
 * Structure of the system-entry table
 *
 * NOTE: sizeof(struct sysent) is known to be 24 bytes in locore.s
 */
#define NUMSYSCALLARGS 6
struct sysent
{
    int     sy_narg;                /* total number of arguments */
    int     sy_parallel;            /* can execute in parallel */
    int     (*sy_call) __((struct proc *, ...));            /* handler */
    unsigned char aud_param[NUMSYSCALLARGS+1];
                                        /* audit encodings (see audit.h) */
};
----------------------------------------------------------------------


can someone help me,

it's possible i'm only to stupid ...

thx Thomas