[OpenAFS-devel] AIX install

Matt Bacchi mbacchi@gmavt.net
Mon, 07 Jul 2003 16:52:36 -0400


This is a multi-part message in MIME format.
--------------020904040807020900010504
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Ok, after playing with this a bit, I think the easiest way to avoid 
strip problems on AIX is to use 'pinstall -ns' on the binaries that are 
compiled with -q64.

I know some folks suggested using the system install, but that won't 
work unless we modify configure(autoconf) to accept AIX's install. 
Also, install-sh doesn't have a '-ns' switch.  Does anyone see any 
issues with the attached patch for src/export/Makefile.in?

src/audit/Makefile.in also had to be fixed, I found that with current 
rules for dest Audit would be copied as a plain file to 
${DEST}/root.server/usr/afs/local, and subsequent rules would fail.

Otherwise the CVS head compiles and installs fine on AIX 5.1.  It is 
running on a test machine now under low stress.

-Matt

--------------020904040807020900010504
Content-Type: text/plain;
 name="diffs.7-7"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diffs.7-7"

Index: src/export/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/export/Makefile.in,v
retrieving revision 1.13
diff -u -r1.13 Makefile.in
--- src/export/Makefile.in	4 Jul 2003 15:58:04 -0000	1.13
+++ src/export/Makefile.in	7 Jul 2003 13:14:41 -0000
@@ -102,36 +102,36 @@
 	${CC} -q64 ${CFLAGS} -c cfgafs.c -o cfgafs64.o
 
 clean:
-	$(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c export.exp
+	$(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c
 ${DEST}/root.client/usr/vice/etc/dkload/export.ext: export.ext
 	${INSTALL} $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/export64.ext: export64.ext
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/export.ext.nonfs: export.ext.nonfs
 	${INSTALL} $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/export64.ext.nonfs: export64.ext.nonfs
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 ${DEST}/lib/afs/export.exp: export.exp
 	${INSTALL} $? $@
 
 ${DEST}/lib/afs/export64.exp: export64.exp
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 ${DESTDIR}${libdir}/afs/export.exp: export.exp
 	${INSTALL} $? $@ 
 
 ${DESTDIR}${libdir}/afs/export64.exp: export64.exp
-	${INSTALL} $? $@ 
+	${INSTALL} -ns $? $@ 
 
 ${TOP_LIBDIR}/export.exp: export.exp
 	${INSTALL} $? $@
 
 ${TOP_LIBDIR}/export64.exp: export64.exp
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 ${DEST}/lib/afs/extras.exp: extras.exp
 	${INSTALL} $? $@
@@ -148,13 +148,13 @@
 	${INSTALL} $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/cfgexport64: cfgexport64
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/cfgafs: cfgafs
 	${INSTALL} $? $@
 
 ${DEST}/root.client/usr/vice/etc/dkload/cfgafs64: cfgafs64
-	${INSTALL} $? $@
+	${INSTALL} -ns $? $@
 
 dest:    ${DEST}/root.client/usr/vice/etc/dkload/export.ext \
 	${DEST}/root.client/usr/vice/etc/dkload/export64.ext \
Index: src/audit/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/audit/Makefile.in,v
retrieving revision 1.8
diff -u -r1.8 Makefile.in
--- src/audit/Makefile.in	17 Apr 2003 15:05:59 -0000	1.8
+++ src/audit/Makefile.in	7 Jul 2003 13:16:53 -0000
@@ -57,6 +57,7 @@
 dest:  ${DEST}/lib/afs/libaudit.a ${DEST}/include/afs/audit.h
 	case ${SYS_NAME} in \
 	rs_aix*) \
+           mkdir ${DEST}/root.server/usr/afs/local ; \
 	   ${INSTALL} ${srcdir}/Audit              ${DEST}/root.server/usr/afs/local ;  \
 	   ${INSTALL} ${srcdir}/objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ;  \
 	   ${INSTALL} ${srcdir}/events.aix.sample  ${DEST}/root.server/usr/afs/local/audit/events.sample  ;  \

--------------020904040807020900010504--