[OpenAFS-devel] IA64 status

chas williams chas@cmf.nrl.navy.mil
Mon, 22 Apr 2002 12:04:09 -0400


>I am trying to use 2.4.9-31.
>We are trying to keep in sync with our ia32 image and redhat 7.1

i used the following diffs to build a recent snapshot for the ia64
on redhat's 2.4.9-31.  i am not running smp though:

Index: Makefile.in
===================================================================
RCS file: /cvs/openafs/Makefile.in,v
retrieving revision 1.38
diff -u -d -b -w -r1.38 Makefile.in
--- Makefile.in	2002/02/16 18:23:44	1.38
+++ Makefile.in	2002/04/22 15:56:59
@@ -275,7 +275,7 @@
 		${COMPILE_PART1} sia ${COMPILE_PART2} ;; \
 	sun4x_55 ) \
 		${COMPILE_PART1} login ${COMPILE_PART2} ;; \
-	parisc_linux24) \
+	parisc_linux24|ia64_linux24) \
 		echo Skipping pam/login for parisc_linux24 ;; \
 	sun4x_* | sunx86_* | hp_ux11* | *linux* | *fbsd* ) \
 		${COMPILE_PART1} pam ${COMPILE_PART2} ;; \
Index: src/afs/LINUX/osi_module.c
===================================================================
RCS file: /cvs/openafs/src/afs/LINUX/osi_module.c,v
retrieving revision 1.18
diff -u -d -b -w -r1.18 osi_module.c
--- src/afs/LINUX/osi_module.c	2002/02/07 00:06:35	1.18
+++ src/afs/LINUX/osi_module.c	2002/04/22 15:56:59
@@ -200,11 +200,11 @@
     sys_killp = (void *) &sys_kill;
 
     ((struct fptr *)sys_settimeofdayp)->ip =
-		SYSCALL2POINTER sys_call_table[__NR_settimeofday - 1024];
+		(long) sys_call_table[__NR_settimeofday - 1024];
     ((struct fptr *)sys_settimeofdayp)->gp = kernel_gp;
     
     ((struct fptr *)sys_killp)->ip =
-		SYSCALL2POINTER sys_call_table[__NR_kill - 1024];
+		(long) sys_call_table[__NR_kill - 1024];
     ((struct fptr *)sys_killp)->gp = kernel_gp;
 #else /* !AFS_IA64_LINUX20_ENV */
     sys_settimeofdayp = SYSCALL2POINTER sys_call_table[__NR_settimeofday];
@@ -255,7 +255,7 @@
     ia64_imm64_fixup((unsigned long)afs_xsetgroups, afs_xsetgroups_stub+0x30);
 
     ((struct fptr *)sys_setgroupsp)->ip =
-		SYSCALL2POINTER sys_call_table[__NR_setgroups - 1024];
+		(long) sys_call_table[__NR_setgroups - 1024];
     ((struct fptr *)sys_setgroupsp)->gp = kernel_gp;
 
     sys_call_table[__NR_setgroups - 1024] = POINTER2SYSCALL afs_xsetgroups_stub;
Index: src/cf/osconf.m4
===================================================================
RCS file: /cvs/openafs/src/cf/osconf.m4,v
retrieving revision 1.12
diff -u -d -b -w -r1.12 osconf.m4
--- src/cf/osconf.m4	2002/03/08 05:59:44	1.12
+++ src/cf/osconf.m4	2002/04/22 15:56:59
@@ -184,6 +184,16 @@
 		YACC="bison -y"
 		;;
 
+	ia64_linux24)
+		LEX="flex -l"
+		MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
+		MT_LIBS="-lpthread"
+		PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
+		SHLIB_LDFLAGS="-shared -Xlinker -x"
+		TXLIBS="/usr/lib/libncurses.so"
+		XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE"
+		;;
+
 	i386_linux22)
 		LEX="flex -l"
 		MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
Index: src/kauth/client.c
===================================================================
RCS file: /cvs/openafs/src/kauth/client.c,v
retrieving revision 1.9
diff -u -d -b -w -r1.9 client.c
--- src/kauth/client.c	2001/10/05 21:17:18	1.9
+++ src/kauth/client.c	2002/04/22 15:56:59
@@ -44,6 +44,10 @@
 #include <strings.h>
 #endif
 #endif
+#ifdef HAVE_UNISTD_H
+#define __USE_XOPEN
+#include <unistd.h>
+#endif
 #include <afs/cellconfig.h>
 #include <afs/auth.h>
 #include <afs/afsutil.h>
Index: src/libafs/MakefileProto.LINUX.in
===================================================================
RCS file: /cvs/openafs/src/libafs/MakefileProto.LINUX.in,v
retrieving revision 1.19
diff -u -d -b -w -r1.19 MakefileProto.LINUX.in
--- src/libafs/MakefileProto.LINUX.in	2002/03/14 19:57:12	1.19
+++ src/libafs/MakefileProto.LINUX.in	2002/04/22 15:56:59
@@ -73,7 +73,7 @@
         -mdisable-fpregs -ffunction-sections -march=1.1 -mschedule=7100
 DEFINES = -D__KERNEL__  -D__linux__ -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF}
 <ia64_linux24>
-CCFLAGS =   $(KDEBUG) -O2 $(FOMIT) -fno-strict-aliasing -pipe \
+CCFLAGS =   $(KDEBUG) -O2 $(FOMIT) -fno-strict-aliasing -fno-common -pipe \
 	-ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32 -mb-step
 DEFINES = -D__KERNEL__ -DKERNEL -D_KERNEL ${SMP_DEF} -DMODULE
 <all>