[OpenAFS-devel] Building on AIX in a separate directory

Kevin Coffman kwc@citi.umich.edu
Fri, 11 Apr 2003 12:42:01 -0400


This is a multipart MIME message.

--==_Exmh_15686270660
Content-Type: text/plain; charset=us-ascii

I had to do the following to do a 'make dest' on AIX in a directory 
separate from the source:

 

--==_Exmh_15686270660
Content-Type: text/plain ; name="aix-diffs"; charset=us-ascii
Content-Description: aix-diffs
Content-Disposition: attachment; filename="aix-diffs"

Index: src/audit/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/audit/Makefile.in,v
retrieving revision 1.7
diff -u -r1.7 Makefile.in
--- src/audit/Makefile.in	16 Oct 2002 03:58:29 -0000	1.7
+++ src/audit/Makefile.in	11 Apr 2003 16:35:47 -0000
@@ -57,10 +57,10 @@
 dest:  ${DEST}/lib/afs/libaudit.a ${DEST}/include/afs/audit.h
 	case ${SYS_NAME} in \
 	rs_aix*) \
-	   ${INSTALL} Audit              ${DEST}/root.server/usr/afs/local ;  \
-	   ${INSTALL} objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ;  \
-	   ${INSTALL} events.aix.sample  ${DEST}/root.server/usr/afs/local/audit/events.sample  ;  \
-	   ${INSTALL} config.aix.sample  ${DEST}/root.server/usr/afs/local/audit/config.sample  ;; \
+	   ${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  ;  \
+	   ${INSTALL} ${srcdir}/config.aix.sample  ${DEST}/root.server/usr/afs/local/audit/config.sample  ;; \
         *) ;; \
         esac ;
 
Index: src/export/Makefile.in
===================================================================
RCS file: /cvs/openafs/src/export/Makefile.in,v
retrieving revision 1.9
diff -u -r1.9 Makefile.in
--- src/export/Makefile.in	16 Oct 2002 03:58:38 -0000	1.9
+++ src/export/Makefile.in	11 Apr 2003 16:35:58 -0000
@@ -11,9 +11,9 @@
      DEFS =
      INCS = -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}
    CFLAGS = ${OPTMZ} ${DEFS} ${INCS}
-  EXPORTS = -bexport:export.exp
+  EXPORTS = -bexport:${srcdir}/export.exp
   EXPORTS5 = -bexport:export5.exp
-  IMPORTS = /lib/kernex.exp /lib/syscalls.exp extras.exp
+  IMPORTS = /lib/kernex.exp /lib/syscalls.exp ${srcdir}/extras.exp
      KOBJ = export.o symtab.o
 
 include ../config/Makefile.version
@@ -41,7 +41,7 @@
 		symtab.o ${EXPORTS} -lcsys
 
 export.nonfs.o:
-	${CC} ${INCS} -DAFS_NONFSTRANS -c export.c
+	${CC} ${INCS} -DAFS_NONFSTRANS -c ${srcdir}/export.c
 	-mv export.o export.nonfs.o
 
 cfgexport: cfgexport.o
Index: src/export/cfgexport.c
===================================================================
RCS file: /cvs/openafs/src/export/cfgexport.c,v
retrieving revision 1.8
diff -u -r1.8 cfgexport.c
--- src/export/cfgexport.c	11 Jan 2003 07:22:17 -0000	1.8
+++ src/export/cfgexport.c	11 Apr 2003 16:35:58 -0000
@@ -214,7 +214,9 @@
 	    case U800WRMAGIC:
 	    case U800ROMAGIC:
 	    case U800TOCMAGIC:
+#ifdef __XCOFF64__
 	    case U64_TOCMAGIC:
+#endif
 		break;
 
 	    default:

--==_Exmh_15686270660--