[OpenAFS-devel] pinstall on AIX 5.1
Hartmut Reuter
reuter@rzg.mpg.de
Fri, 04 Jul 2003 09:23:31 +0200
This is a multi-part message in MIME format.
--------------080904080406020809050500
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Using only "configure --enable-transarc-paths" and "make dest" I never
ran into this problem. But recomiling the current CVS source I found
some small things which must be fixed.
src/export/export.exp must be removed because it is created by make
the same for
src/sys/afs.exp and src/sys/afsl.exp
The other diffs are in the attachement.
Thanks, Hartmut
Derrick J Brashear schrieb:
> On Thu, 3 Jul 2003, Matt Bacchi wrote:
>
>
>>With Hartmut's patches newly committed to the cvs head, I figured I
>>would try to compile on AIX 5.1. It's working, I have a couple patches
>>that I'll send along soon, but pinstall is one area where I need some
>>advice.
>>
>>/bin/strip on AIX 5, well, on any 64 bit AIX, requires an argument -X to
>>identify the type of XCOFF object file to examine. Otherwise it
>>defaults to 32 bit. So, in particular in the src/export directory,
>>cfgexport64 is obviously compiled using 64 bit compiler mode(-q64).
>>
>>My question is basically, how should I handle this? Should I put
>>something in src/pinstall/install.c to test for AFS_64BIT_ENV or
>>AFS_64BIT_CLIENT, or even AFS_AIX51_ENV?
>>
>>Or, should I avoid pinstall, and rather make the change to the Makefile
>>in src/export to only do -X 64 on those files that were explicitly
>>compiled with -q64?
>
>
> we should probably think about killing pinstall and using the system
> install.
>
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
--
-----------------------------------------------------------------
Hartmut Reuter e-mail reuter@rzg.mpg.de
phone +49-89-3299-1328
RZG (Rechenzentrum Garching) fax +49-89-3299-1301
Computing Center of the Max-Planck-Gesellschaft (MPG) and the
Institut fuer Plasmaphysik (IPP)
-----------------------------------------------------------------
--------------080904080406020809050500
Content-Type: text/plain;
name="diffs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diffs"
? rs_aix51
? diffs
Index: src/afs/UKERNEL/afs_usrops.c
===================================================================
RCS file: /cvs/openafs/src/afs/UKERNEL/afs_usrops.c,v
retrieving revision 1.20
diff -u -u -r1.20 afs_usrops.c
--- src/afs/UKERNEL/afs_usrops.c 19 Jun 2003 16:53:11 -0000 1.20
+++ src/afs/UKERNEL/afs_usrops.c 4 Jul 2003 07:11:27 -0000
@@ -1587,7 +1587,7 @@
/*
* Set the primary cell name.
*/
- call_syscall(AFSOP_SET_THISCELL, afs_LclCellName, 0, 0, 0, 0);
+ call_syscall(AFSOP_SET_THISCELL, (long) afs_LclCellName, 0, 0, 0, 0);
if ((logfd = fopen(fullpn_AFSLogFile,"r+")) == 0) {
if (afsd_verbose) printf("%s: Creating '%s'\n", rn, fullpn_AFSLogFile);
Index: src/export/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/export/Makefile.in,v
retrieving revision 1.12
diff -u -u -r1.12 Makefile.in
--- src/export/Makefile.in 1 Jul 2003 18:37:27 -0000 1.12
+++ src/export/Makefile.in 4 Jul 2003 07:11:29 -0000
@@ -102,7 +102,7 @@
${CC} -q64 ${CFLAGS} -c cfgafs.c -o cfgafs64.o
clean:
- $(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c
+ $(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c export.exp
${DEST}/root.client/usr/vice/etc/dkload/export.ext: export.ext
${INSTALL} $? $@
Index: src/sys/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/sys/Makefile.in,v
retrieving revision 1.20
diff -u -u -r1.20 Makefile.in
--- src/sys/Makefile.in 1 Jul 2003 18:37:33 -0000 1.20
+++ src/sys/Makefile.in 4 Jul 2003 07:11:30 -0000
@@ -242,4 +242,5 @@
clean:
$(RM) -f *.o libsys.a xfsinode iinc idec icreate iopen istat core \
rmtsysc rmtsyss *.o rmtsys.ss.c rmtsys.cs.c rmtsys.xdr.c rmtsys.h \
- rmtsysd AFS_component_version_number.c pagsh pagsh.krb
+ rmtsysd AFS_component_version_number.c pagsh pagsh.krb \
+ afs.exp afsl.exp
Index: src/vol/vnode.h
===================================================================
RCS file: /cvs/openafs/src/vol/vnode.h,v
retrieving revision 1.9
diff -u -u -r1.9 vnode.h
--- src/vol/vnode.h 2 Jun 2003 14:36:16 -0000 1.9
+++ src/vol/vnode.h 4 Jul 2003 07:11:32 -0000
@@ -205,8 +205,8 @@
extern VInitVnodes_r();
extern Vnode *VGetVnode();
extern Vnode *VGetVnode_r();
-extern VputVnode();
-extern VputVnode_r();
+extern void VPutVnode();
+extern void VPutVnode_r();
extern VVnodeWriteToRead();
extern VVnodeWriteToRead_r();
extern Vnode *VAllocVnode();
Index: src/volser/dumpstuff.c
===================================================================
RCS file: /cvs/openafs/src/volser/dumpstuff.c,v
retrieving revision 1.18
diff -u -u -r1.18 dumpstuff.c
--- src/volser/dumpstuff.c 19 Jun 2003 17:35:53 -0000 1.18
+++ src/volser/dumpstuff.c 4 Jul 2003 07:11:32 -0000
@@ -1250,7 +1250,7 @@
struct iod iod;
int code = 0;
register struct iod *iodp = (struct iod *)0;
-// iod_Init(iodp, call);
+/* iod_Init(iodp, call); */
if (!code) code = SizeDumpDumpHeader(iodp, vp, fromtime, v_size);
if (!code) code = SizeDumpPartial(iodp, vp, fromtime, dumpAllDirs, v_size);
@@ -1265,9 +1265,9 @@
int code = 0;
int UseLatestReadOnlyClone = 1;
afs_int32 dumpTimes[2];
-// iodp->device = vp->device;
-// iodp->parentId = V_parentId(vp);
-// iodp->dumpPartition = vp->partition;
+/* iodp->device = vp->device; */
+/* iodp->parentId = V_parentId(vp); */
+/* iodp->dumpPartition = vp->partition; */
v_size->dump_size = 0; /* initialize the size */
/* if (!code) code = DumpDouble(iodp, D_DUMPHEADER, DUMPBEGINMAGIC, DUMPVERSION); */
--------------080904080406020809050500--