[OpenAFS] Anyone built 1.4.1-RC-2 on AIX 4.3 ....

Joshua Johnson joshua.johnson@ftlsys.com
Tue, 3 Jan 2006 15:43:04 -0600


All,

	Building is not "out of the box" anymore for AIX 4.3.

	I've got an AIX 4.3.3.0 box with xlc version 3.6.6.

	I last built 2.1.13 on this machine successfully.

	CC=cc ./configure --enable-transarc-paths --enable-namei-fileserver 
--enable-supergroups --with-krb5-conf 

	
	The errors are about typecasting of passed arguments:

xlc_r  -O -I/usr/local/src/openafs-1.4.1-rc2/src/config -I. -I. 
-I/usr/local/src/openafs-1.4.1-rc2/include 
-I/usr/local/src/openafs-1.4.1-rc2/include/afs 
-I/usr/local/src/openafs-1.4.1-rc2/include/rx 
-I/usr/local/src/openafs-1.4.1-rc2 -I/usr/local/src/openafs-1.4.1-rc2/src 
-I/usr/local/src/openafs-1.4.1-rc2/src -I./../des -I../des -I../rxkad 
-I./../rxkad -I../fsint -DRXDEBUG -DAFS_PTHREAD_ENV -K -D_NO_PROTO 
-D_NONSTD_TYPES -D_MBI=void -c  ./../rx/xdr.c
"./../rx/xdr.c", line 123.36: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 126.33: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 178.36: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 181.33: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 233.36: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 236.33: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 288.36: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.
"./../rx/xdr.c", line 291.33: 1506-280 (E) Function argument assignment 
between types "int*" and "unsigned int*" is not allowed.

cc will accept these as warnings (there are lots that scroll by)... xlc_r will 
NOT accept these (promoted to error).



When I edit the Makefile.config.in so that we use "cc_r" for EVERYTHING (CC, 
CCOBJ, and MT_CC) to loosen the restrictions of xlc_r then we fail on 
osi_vnodeops.c 

cc_r -I. -I.. -I../nfs -I/usr/local/src/openafs-1.4.1-rc2/src 
-I/usr/local/src/openafs-1.4.1-rc2/src/afs 
-I/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX 
-I/usr/local/src/openafs-1.4.1-rc2/src/config 
-I/usr/local/src/openafs-1.4.1-rc2/src/rx/AIX 
-I/usr/local/src/openafs-1.4.1-rc2/src/rxkad 
-I/usr/local/src/openafs-1.4.1-rc2/src/rxkad/domestic 
-I/usr/local/src/openafs-1.4.1-rc2/src/util 
-I/usr/local/src/openafs-1.4.1-rc2/src 
-I/usr/local/src/openafs-1.4.1-rc2/src/afs 
-I/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX 
-I/usr/local/src/openafs-1.4.1-rc2/src/util 
-I/usr/local/src/openafs-1.4.1-rc2/src/rxkad 
-I/usr/local/src/openafs-1.4.1-rc2/src/config 
-I/usr/local/src/openafs-1.4.1-rc2/src/fsint 
-I/usr/local/src/openafs-1.4.1-rc2/src/vlserver 
-I/usr/local/src/openafs-1.4.1-rc2/include 
-I/usr/local/src/openafs-1.4.1-rc2/include/afs   -I. -I.. 
-I/usr/local/src/openafs-1.4.1-rc2/src/config  -U_IBMR2 -D_POWER -D_AIX -DNLS 
-D_NLS -DMSG -D__STR31__ -Daiws -D_POWER_RS -D_POWER_PC -D_POWER_RS1 
-D_POWER_RS2 -D_POWER_RSC -D_POWER_601 -D_POWER_603 -D_POWER_604 -D_THREADS 
-M  -D_KERNEL -D_POWER_MP -UKOFF -DAFSDEBUG -DVICE -DNFS -DUFS -DINET -DQUOTA 
-DGETMOUNT -H8 -DAFS -DAFS_COMMON -D_VOPS -D_SUN -DKERNEL -q32 -g 
-c /usr/local/src/openafs-1.4.1-rc2/src/afs/AIX/osi_vnodeops.c
"/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX/osi_vnodeops.c", line 1741.39: 
1506-046 (S) Syntax error.
"/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX/osi_vnodeops.c", line 1743.39: 
1506-046 (S) Syntax error.
"/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX/osi_vnodeops.c", line 2500.39: 
1506-046 (S) Syntax error.
"/usr/local/src/openafs-1.4.1-rc2/src/afs/AIX/osi_vnodeops.c", line 2502.39: 
1506-046 (S) Syntax error.

All of these error positions are right after a uint64_t in the code.  

Seeing as I have -q32 defined, and I think I should (AIX 4.3 is 32 bit only?), 
there may not be a uint64_t defined, true?

Any/All help appreciated.


Kind Regards,



Joshua Johnson