[OpenAFS] openafs-1.0.2 on SuperSPARC (Solaris 8 32Bit)

Chas Williams chas@cmf.nrl.navy.mil
Wed, 31 Jan 2001 19:05:13 -0500


i think i finally tracked this down, looking at the diff between
my version of src/afs/VNOPS/afs_vnop_readdir.c and the openafs 1.0.2
version, i see:

--- afs_vnop_readdir.c.000      Wed Jan 31 18:45:41 2001
+++ afs_vnop_readdir.c  Wed Jan 31 18:43:35 2001
@@ -641,7 +635,7 @@
                }
 #else /* AFS_HPUX_ENV */
                code = afs_readdir_move(ode, avc, auio, o_slen,
-#if defined(AFS_SUN5_ENV)
+#ifdef defined(AFS_SUN5_ENV)
                                        len, origOffset);
 #else
                                        auio->afsio_resid, origOffset);

it looks like the 'ifdef defined' was cleaned up at some point and
that this is causing the trouble with solaris8.  if i change to

#if 0 /* was #ifdef defined(AFS_SUN5_ENV) */
                                        len, origOffset);
#else
                                        auio->afsio_resid, origOffset);

1.0.2 runs fine under solaris8.  strange.  looks like this was in the original
openafs releases and i sort of preservred it.

people should try this fix and let me know if i am nuts.