[OpenAFS-devel] Chnages to OpenAFS 1.3.50 for hp_ux110, hp_ux11i and ia64_hpux1123
Douglas E. Engert
deengert@anl.gov
Tue, 02 Dec 2003 13:59:12 -0600
I have built openafs-1.3.50 on hp_ux110, hp_ux11i and ia64_hpux1123
and have cache managers running on these systems.
The following files needed to be changed:
src/afsd/afsd.c - The f_fsid is an array on HP, and so f_fsid[1] needs to be passed to
sysfs. The /etc/mnttab needs to have "afs" instead of "xx" so df
will show /afs.
src/libafs/MakefileProto.HPUX.in - The modlink command needs the full list
of object files passed to it. $? in a make will only pass the list
of changed dependencies. This works for ar, but not for modlink.
src/libuafs/MakefileProto.HPUX.in - Although the libuafs is not
currently built, I added changes for the ia_hpux1123 just in case.
Makefile.in - The libuafs dos not build on hp_ux110 or ia64_hpux1123, so
the Makefile was change to cover all hp_ux11* and iag6_hpux112*
With 11.23 HP has a new kernel configuration method. There is no more
master.d file, and drivers are not archive libs, but are linked using the
modlink command. The AFS driver is now called afs64. It can be "loaded" i.e.
dynamically loaded, or "static" i.e. linked into a new kernel.
Both the HP DDK and ANSIC compiler packages need to be installed to
build.
Some document files need to be changed any idea which ones?
--- ./src/afsd/,afsd.c Fri Aug 8 16:54:35 2003
+++ ./src/afsd/afsd.c Tue Dec 2 12:16:26 2003
@@ -1064,7 +1064,7 @@
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 @@
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
--- ./src/libafs/,MakefileProto.HPUX.in Wed Nov 26 19:17:41 2003
+++ ./src/libafs/MakefileProto.HPUX.in Mon Dec 1 13:18:36 2003
@@ -226,7 +226,7 @@
$(AR) cru $@ $?
$(RANLIB) $@
<ia64_hpux1123>
- -$(MODLINK) -o $@ $?
+ $(MODLINK) -o $@ $(AFSAOBJS) $(AFSNFSOBJS)
<all>
${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
@@ -234,7 +234,7 @@
$(AR) cru $@ $?
$(RANLIB) $@
<ia64_hpux1123>
- -$(MODLINK) -o $@ $?
+ $(MODLINK) -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
<all>
<ia64_hpux1123>
--- ./src/libuafs/,MakefileProto.HPUX.in Mon Mar 10 14:02:40 2003
+++ ./src/libuafs/MakefileProto.HPUX.in Sat Nov 29 09:32:12 2003
@@ -13,7 +13,7 @@
DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
<hp_ux102 hp_ux110 hp_ux11i>
KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z
-<ia64_hpux1122>
+<ia64_hpux1122 ia64_hpux1123>
KOPTS=-Wp,-H200000 -Wl,-a,archive_shared
<all>
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBUG}
@@ -22,7 +22,7 @@
<hp_ux102 hp_ux110 hp_ux11i>
TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
-<ia64_hpux1122>
+<ia64_hpux1122 ia64_hpux1123>>
TEST_CFLAGS= -Wp,-H200000 -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
<all>
TEST_LDFLAGS=
--- ./,Makefile.in Wed Nov 26 19:17:34 2003
+++ ./Makefile.in Sat Nov 29 13:56:09 2003
@@ -396,7 +396,7 @@
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_ux11* | ia64_hpux112*) \
echo Skipping libuafs for ${SYS_NAME} ;; \
* ) \
${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \