[OpenAFS-devel] openafs-1.4.1-rc5 & sparc64_linux26

Stephan Wienczny Wienczny@Uni-Paderborn.de
Sun, 29 Jan 2006 21:14:20 +0100


--nextPart3725607.xkuVp7LYSX
Content-Type: multipart/mixed;
  boundary="Boundary-01=_cIS3DgGJNr/pGcu"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_cIS3DgGJNr/pGcu
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hi,

I had some problems compiling the linux kernel module for openafs on=20
linux-2.8.0. I wrote two pachtes I attached.

the 1.4.0 patch are parts from a patch I wrote for this version. It changes=
=20
osi_modules.c

the 1.4.1-rc5 patch changes configure.in to include linux26 support for=20
sparc64

Both patches have to be applied to make openafs compile on sparc/linux

Please apply these patches to openafs sources...

Have fun
Stephan

--Boundary-01=_cIS3DgGJNr/pGcu
Content-Type: text/x-diff;
  charset="us-ascii";
  name="openafs-1.4.0-debian4sparc.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="openafs-1.4.0-debian4sparc.patch"

diff -Naur openafs-1.4.0/src/afs/LINUX/osi_module.c openafs-1.4.0-new/src/a=
fs/LINUX/osi_module.c
=2D-- openafs-1.4.0/src/afs/LINUX/osi_module.c	2005-07-11 21:29:56.00000000=
0 +0200
+++ openafs-1.4.0-new/src/afs/LINUX/osi_module.c	2005-12-20 23:40:46.086077=
193 +0100
@@ -283,22 +283,24 @@
     if (cmd !=3D VIOC_SYSCALL && cmd !=3D VIOC_SYSCALL32) return -EINVAL;
=20
 #ifdef NEED_IOCTL32
=2D#ifdef AFS_SPARC64_LINUX24_ENV
+#ifdef AFS_SPARC64_LINUX20_ENV 		//Do we have SPARC-Architecture=20
+#ifdef AFS_SPARC64_LINUX26_ENV 		//We have linux 2.6
+    if (test_thread_flag(TIF_32BIT))
+#elif defined (AFS_SPARC64_LINUX24_ENV) //We have linux-2.4
     if (current->thread.flags & SPARC_FLAG_32BIT)
=2D#elif defined(AFS_SPARC64_LINUX20_ENV)
=2D    if (current->tss.flags & SPARC_FLAG_32BIT)
=2D#elif defined(AFS_AMD64_LINUX20_ENV)
=2D#ifdef AFS_LINUX26_ENV
+#endif //AFS_SPARC64_LINUX_ENV
+#elif defined(AFS_AMD64_LINUX20_ENV) 	//We have AMD64-Architecture
+#ifdef AFS_LINUX26_ENV 			//We have linux 2.6
     if (test_thread_flag(TIF_IA32))
=2D#else
+#else					//We do not have linux2.6
     if (current->thread.flags & THREAD_IA32)
=2D#endif
=2D#elif defined(AFS_PPC64_LINUX20_ENV)
=2D#ifdef AFS_PPC64_LINUX26_ENV
+#endif //AFS_LINUX26_ENV
+#elif defined(AFS_PPC64_LINUX20_ENV)	//Do we have a PPC64
+#ifdef AFS_PPC64_LINUX26_ENV		//We have linux 2.6
     if (current->thread_info->flags & _TIF_32BIT)
=2D#else /*Linux 2.6 */
+#else 					//We do not have linux 2.6
     if (current->thread.flags & PPC_FLAG_32BIT)
=2D#endif
+#endif //AFS_PPC64_LINUX26_ENV
 #elif defined(AFS_S390X_LINUX26_ENV)
     if (test_thread_flag(TIF_31BIT))
 #elif defined(AFS_S390X_LINUX20_ENV)

--Boundary-01=_cIS3DgGJNr/pGcu
Content-Type: text/x-diff;
  charset="us-ascii";
  name="openafs-1.4.1-rc5-sparc64_linux26.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="openafs-1.4.1-rc5-sparc64_linux26.diff"

=2D-- openafs-1.4.1-rc5/aclocal.m4	2006-01-25 06:20:19.000000000 +0000
+++ openafs-1.4.1-rc5.patched/aclocal.m4	2006-01-29 18:48:25.000000000 +0000
@@ -2894,6 +2894,19 @@
 		SHLIB_LINKER=3D"${MT_CC} -shared"
 		;;
=20
+	sparc64_linux26)
+		KERN_OPTMZ=3D-O2
+		LEX=3D"flex -l"
+		MT_CFLAGS=3D'-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
+		MT_LIBS=3D"-lpthread"
+		PAM_CFLAGS=3D"-O2 -Dlinux -DLINUX_PAM -fPIC"
+		SHLIB_LDFLAGS=3D"-shared -Xlinker -x"
+		TXLIBS=3D"-lncurses"
+		XCFLAGS=3D"-O2 -D_LARGEFILE64_SOURCE"
+		YACC=3D"bison -y"
+		SHLIB_LINKER=3D"${MT_CC} -shared"
+		;;
+
 	sparc_linux22)
 		KERN_OPTMZ=3D-O2
 		LEX=3D"flex -l"

--Boundary-01=_cIS3DgGJNr/pGcu--

--nextPart3725607.xkuVp7LYSX
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBD3SIcFU16rFxbWwkRAioYAJ0cn+hSFaY1TzN9r1LfnLSvMBXohgCgktlj
AFvl8cttvyg63OiaxPbIDj0=
=7S0r
-----END PGP SIGNATURE-----

--nextPart3725607.xkuVp7LYSX--