From 90f461c9128efd9980a9e7d75a9359fd5d253562 Mon Sep 17 00:00:00 2001 From: Douglas Engert Date: Thu, 4 Dec 2003 16:10:43 +0000 Subject: [PATCH] hpux-1123-update-20031204 update the hpux 11.23 on ia64 support don't build libuafs. make kernel modules build. fix afsd. --- Makefile.in | 2 +- src/afsd/afsd.c | 3 ++- src/libafs/MakefileProto.HPUX.in | 4 ++-- src/libuafs/MakefileProto.HPUX.in | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index 3b0cbf7..defcb51 100644 --- a/Makefile.in +++ b/Makefile.in @@ -396,7 +396,7 @@ libuafs: libuafs_setup vlserver_depinstall rx_depinstall fsint_depinstall \ rxstat_depinstall lwp_depinstall des set -x; \ case ${SYS_NAME} in \ - hp_ux102* | *_obsd* | sun*_4* | *_nbsd*| hp_ux11i | ia64_hpux1122) \ + hp_ux102* | *_obsd* | sun*_4* | *_nbsd*| hp_ux11i | ia64_hpux112*) \ echo Skipping libuafs for ${SYS_NAME} ;; \ * ) \ ${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \ diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 96bc6c2..471aa59 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1064,7 +1064,7 @@ CheckCacheBaseDir(char *dir) return "unable to statfs cache base directory"; } - if (sysfs(GETFSTYP, statfsbuf.f_fsid, name) != 0) { + if (sysfs(GETFSTYP, statfsbuf.f_fsid[1], name) != 0) { return "unable to determine filesystem type for cache base dir"; } @@ -2233,6 +2233,7 @@ HandleMTab() tmntent.mnt_freq = 1; tmntent.mnt_passno = 3; #ifdef AFS_HPUX_ENV + tmntent.mnt_type = "afs"; tmntent.mnt_time = time(0); tmntent.mnt_cnode = 0; #endif diff --git a/src/libafs/MakefileProto.HPUX.in b/src/libafs/MakefileProto.HPUX.in index c6a1ba3..7ebfb16 100644 --- a/src/libafs/MakefileProto.HPUX.in +++ b/src/libafs/MakefileProto.HPUX.in @@ -226,7 +226,7 @@ ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS) $(AR) cru $@ $? $(RANLIB) $@ - -$(MODLINK) -o $@ $? + $(MODLINK) -o $@ $(AFSAOBJS) $(AFSNFSOBJS) ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS) @@ -234,7 +234,7 @@ ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS) $(AR) cru $@ $? $(RANLIB) $@ - -$(MODLINK) -o $@ $? + $(MODLINK) -o $@ $(AFSAOBJS) $(AFSNONFSOBJS) diff --git a/src/libuafs/MakefileProto.HPUX.in b/src/libuafs/MakefileProto.HPUX.in index 3c87487..6666c27 100644 --- a/src/libuafs/MakefileProto.HPUX.in +++ b/src/libuafs/MakefileProto.HPUX.in @@ -13,7 +13,7 @@ CC = /opt/ansic/bin/cc DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z - + KOPTS=-Wp,-H200000 -Wl,-a,archive_shared CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG} @@ -22,7 +22,7 @@ WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV - + TEST_CFLAGS= -Wp,-H200000 -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV TEST_LDFLAGS= -- 1.9.4