[OpenAFS] OpenAFS on HP UX

Douglas E. Engert deengert@anl.gov
Mon, 04 Nov 2002 15:21:13 -0600


After loading the HP macro vfs_vm.h, I was able to build the
hp_ux110 using the openafs-snap-2002-11-04.tar.gz. A new kernel
was built on a 32 bit machine and after a reboot the client
appears to work. 

But I had to make three changes:

The ./src/libafs/MakefileProto.HPUX.in was trying to use /usr/include/sys
where it appears it should be using /etc/conf/h  which is a symlink to 
/usr/conf/h. This is the location of the kernel header files, and the 
location that the HP patch said to load the vfs_vm.h. This is then
consistent with the rest of the directories used in the libafs. 
Its is not clear why it was not using this location. Without
this I ran in to some other problems with dirent.  

./src/rx/rx_common.h included dir.h, but on the HP you can not
have both dir.h and dirent.h

./util/afs_lhash.c used NULL, but it is not defined. 


*** ./src/libafs/,MakefileProto.HPUX.in Tue Oct 15 22:58:43 2002
--- ./src/libafs/MakefileProto.HPUX.in  Mon Nov  4 10:50:49 2002
***************
*** 74,80 ****
  
  setup:
        -$(RM) -f  h conf net dux machine netinet nfs rpc s200 ufs sys
!       ln -fs /usr/include/sys h
        ln -fs /etc/conf conf
        ln -fs /etc/conf/net net
        ln -fs /etc/conf/dux dux
--- 74,80 ----
  
  setup:
        -$(RM) -f  h conf net dux machine netinet nfs rpc s200 ufs sys
!       ln -fs /etc/conf/h h
        ln -fs /etc/conf conf
        ln -fs /etc/conf/net net
        ln -fs /etc/conf/dux dux
*** ./src/rx/,rx_kcommon.h      Mon Nov  4 15:02:18 2002
--- ./src/rx/rx_kcommon.h       Mon Nov  4 15:03:31 2002
***************
*** 41,47 ****
--- 41,49 ----
  #include "h/socketvar.h"
  #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
  #include "h/domain.h"
+ #if !defined(AFS_HPUX110_ENV)
  #include "h/dir.h"
+ #endif
  #include "h/buf.h"
  #include "h/mbuf.h"
  #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
*** ./src/util/,afs_lhash.c     Sun Oct 27 20:38:58 2002
--- ./src/util/afs_lhash.c      Mon Nov  4 09:44:18 2002
***************
*** 20,25 ****
--- 20,29 ----
  #define CHECK_INVARIANTS
  #endif /* !KERNEL */
  
+ #ifndef NULL
+ #define NULL 0
+ #endif
+ 
  /* max hash table load factor */
  enum { LOAD_FACTOR = 5 };
  



-- 

 Douglas E. Engert  <DEEngert@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439 
 (630) 252-5444
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info