[OpenAFS] Building on AIX
Ben Huntsman
ben@huntsmans.net
Fri, 12 Aug 2022 16:41:04 +0000
--_000_MWHPR0701MB367453B12D887A131C55A6DBA7679MWHPR0701MB3674_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi guys!
Has anyone built this on AIX recently? I see in the code that there is sup=
port for AIX 6.1, and 7.2. I was hoping to get it working on 7.1 so I figu=
red I'd start with a build on AIX 6.1 to make sure it was in working order =
before attempting to port it to 7.1. I'm using XLC 13.1.3 and my AIX level=
is 6100-09-12-1846.
I checked out the code from git and am using the master branch. I am using=
the following config options:
CC=3Dxlc_r ./configure --prefix=3D/opt/openafs --enable-tivoli-tsm --enable=
-kauth --disable-fuse-client --with-gssapi=3D/opt/freeware --with-krb5=3D/o=
pt/freeware
Are those appropriate/reasonable under AIX? Currently, I'm getting the fol=
lowing error:
cc -I. -I.. -I../nfs -I/project/openafs/src/crypto/hcrypto/kerne=
l -I/project/openafs/src -I/project/openafs/src/afs -I/project/openafs/s=
rc/afs/AIX -I/project/openafs/src/config -I/project/openafs/src/rx/AIX -=
I/project/openafs/src/external/heimdal -I/project/openafs/src -I/project/=
openafs/src/afs -I/project/openafs/src/afs/AIX -I/project/openafs/src/con=
fig -I/project/openafs/src/fsint -I/project/openafs/src/vlserver -I/proj=
ect/openafs/src/auth -I/project/openafs/include -I/project/openafs/includ=
e/afs -I. -I.. -I/project/openafs/src/config -U_IBMR2 -D_POWER -D_AIX -D=
NLS -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 -DQ=
UOTA -DGETMOUNT -H8 -DAFS -DAFS_COMMON -D_VOPS -D_SUN -DKERNEL -q64 -DAFS_=
64BIT_KERNEL -D__64BIT_KERNEL -g -I/project/openafs/src/rxkad -I/project/op=
enafs/src/rxkad -o rxkad_common.o -c /project/openafs/src/rxkad/rxkad_commo=
n.c
"/project/openafs/src/afs/AIX/osi_machdep.h", line 90.12: 1506-007 (S) "str=
uct timestruc_t" is undefined.
"../sys/time.h", line 587.17: 1506-343 (S) Redeclaration of curtime differs=
from previous declaration on line 91 of "/project/openafs/src/afs/AIX/osi_=
machdep.h".
"../sys/time.h", line 587.17: 1506-050 (I) Return type "void" in redeclarat=
ion is not compatible with the previous return type "int".
make: 1254-004 The error code from the last command is 1.
Has anyone seen this? Certainly that struct is defined in /usr/include/sys=
/time.h, but this seems like it's probably something obvious and I'm willin=
g to bet it's on my end and not a problem with the code.
Thank you so much for any suggestions!
-Ben
--_000_MWHPR0701MB367453B12D887A131C55A6DBA7679MWHPR0701MB3674_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi guys!<br>
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Has anyone built this on AIX recently? I see in the code that there i=
s support for AIX 6.1, and 7.2. I was hoping to get it working on 7.1=
so I figured I'd start with a build on AIX 6.1 to make sure it was in work=
ing order before attempting to port it to
7.1. I'm using XLC 13.1.3 and my AIX level is 6100-09-12-1846.<=
/div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
I checked out the code from git and am using the master branch. I am =
using the following config options:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
CC=3Dxlc_r ./configure --prefix=3D/opt/openafs --enable-tivoli-tsm --enable=
-kauth --disable-fuse-client --with-gssapi=3D/opt/freeware --with-krb5=3D/o=
pt/freeware<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Are those appropriate/reasonable under AIX? Currently, I'm getting th=
e following error:</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
cc -I. -I.. -I../nfs -I/project/op=
enafs/src/crypto/hcrypto/kernel -I/project/openafs/src -I/proje=
ct/openafs/src/afs -I/project/openafs/src/afs/AIX -I/project/op=
enafs/src/config -I/project/openafs/src/rx/AIX -I/project/opena=
fs/src/external/heimdal
-I/project/openafs/src -I/project/openafs/src/afs -I/pro=
ject/openafs/src/afs/AIX -I/project/openafs/src/config -I/proje=
ct/openafs/src/fsint -I/project/openafs/src/vlserver -I/project=
/openafs/src/auth -I/project/openafs/include -I/project/openafs=
/include/afs
-I. -I.. -I/project/openafs/src/config -U_IBMR2 -D_POWER -D_A=
IX -DNLS -D_NLS -DMSG -D__STR31__ -Daiws -D_POWER_RS -D_POWER_PC -D_P=
OWER_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 -q64 -DAFS_64BIT_KERNEL -D__64BIT_KERNEL -g -I/proj=
ect/openafs/src/rxkad -I/project/openafs/src/rxkad -o rxkad_common.o -c /pr=
oject/openafs/src/rxkad/rxkad_common.c
<div>"/project/openafs/src/afs/AIX/osi_machdep.h", line 90.12: 15=
06-007 (S) "struct timestruc_t" is undefined.</div>
<div>"../sys/time.h", line 587.17: 1506-343 (S) Redeclaration of =
curtime differs from previous declaration on line 91 of "/project/open=
afs/src/afs/AIX/osi_machdep.h".</div>
<div>"../sys/time.h", line 587.17: 1506-050 (I) Return type "=
;void" in redeclaration is not compatible with the previous return typ=
e "int".</div>
<div>make: 1254-004 The error code from the last command is 1.</div>
<div><br>
</div>
<div><br>
</div>
<div>Has anyone seen this? Certainly that struct is defined in /usr/i=
nclude/sys/time.h, but this seems like it's probably something obvious and =
I'm willing to bet it's on my end and not a problem with the code.</div>
<div><br>
</div>
<div>Thank you so much for any suggestions!</div>
<div><br>
</div>
<div>-Ben</div>
<br>
</div>
</body>
</html>
--_000_MWHPR0701MB367453B12D887A131C55A6DBA7679MWHPR0701MB3674_--