[OpenAFS-devel] Solaris 10 - 1.4.3rc3 kernel modules build issues

Douglas E. Engert deengert@anl.gov
Fri, 09 Mar 2007 13:40:40 -0600


On Solaris, 7, 8, 9, 10 /usr/include/sys/file.h has:

#define OFFSET_MAX(fd)  ((fd->f_flag & FOFFMAX) ? MAXOFFSET_T : MAXOFF32 > _T)

The use of OFFSET_MAX by AFS has some problems in afs_vnop_flock.c
that include sys/files.h and has

#ifndef OFFSET_MAX
#define OFFSET_MAX 07xfffffffffffffff
#endif



Sean O'Malley wrote:
> Sun studio 11 Solaris 10x86
> configured with '--enable-transarc-paths' '--with-afs-sysname=sunx86_510'
> 
> It isn't building the kernel modules, and I didnt have time to decypher
> all the errors it was popping up along the way.
> 
> Does anyone have a patch for this already?
> 
> -----
> Building directory: MODLOAD32
> /opt/SUNWspro/bin/cc -I. -I.. -I../nfs  -I/root/openafs-1.4.3rc3/src  -I/root/openafs-1.4.3rc3/src/afs  -I/root/openafs-1.4.3rc3/src/afs/SOLARIS  -I/root/openafs-1.4.3rc3/src/config  -I/root/openafs-1.4.3rc3/src/rx/SOLARIS  -I/root/openafs-1.4.3rc3/src/rxkad  -I/root/openafs-1.4.3rc3/src/rxkad/domestic  -I/root/openafs-1.4.3rc3/src/util  -I/root/openafs-1.4.3rc3/src  -I/root/openafs-1.4.3rc3/src/afs  -I/root/openafs-1.4.3rc3/src/afs/SOLARIS  -I/root/openafs-1.4.3rc3/src/util  -I/root/openafs-1.4.3rc3/src/rxkad  -I/root/openafs-1.4.3rc3/src/config  -I/root/openafs-1.4.3rc3/src/fsint  -I/root/openafs-1.4.3rc3/src/vlserver  -I/root/openafs-1.4.3rc3/include  -I/root/openafs-1.4.3rc3/include/afs  -I. -I.. -I/root/openafs-1.4.3rc3/src/config  -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -D_KERNEL -DSYSV -dn     -o afs_vnop_flock.o -c /root/openafs-1.4.3rc3/src/afs/VNOPS/afs_vnop_flock.c
> "/root/openafs-1.4.3rc3/src/afs/VNOPS/afs_vnop_flock.c", line 556: undefined symbol: OFFSET_MAX
> cc: acomp failed for /root/openafs-1.4.3rc3/src/afs/VNOPS/afs_vnop_flock.c
> *** Error code 2
> make: Fatal error: Command failed for target `afs_vnop_flock.o'
> 
> 
> 
> 
> --------------------------------------
>   Sean O'Malley, Information Technologist
>   Michigan State University
> -------------------------------------
> 
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
> 
> 

-- 

  Douglas E. Engert  <DEEngert@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444