Hi Ben,

On Fri, Aug 12, 2022 at 04:41:04PM +0000, Ben Huntsman wrote:
> Hi guys!
> 
> Has anyone built this on AIX recently?  I see in the code that there is 
> 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 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.

It looks like we lost our regular AIX buildbot worker in early 2017, so any
builds since then have been ad hoc/infrequent.
That said, I think we're happy to help work through any issues that have
arisen since then and get things back into a usable state on AIX.

> I checked out the code from git and am using the master branch.  I am using 
> the following config options:
> 
> CC=xlc_r ./configure --prefix=/opt/openafs --enable-tivoli-tsm --enable-kauth 
> --disable-fuse-client --with-gssapi=/opt/freeware --with-krb5=/opt/freeware

[obligatory note that kauth is woefully insecure and should only be used if
you have compatibility requirements with legacy systems that cannot be
upgraded]

> Are those appropriate/reasonable under AIX?  Currently, I'm getting the 
> following error:
> 
>           cc -I. -I.. -I../nfs  -I/project/openafs/src/crypto/hcrypto/kernel  
> -I/project/openafs/src  -I/project/openafs/src/afs  
> -I/project/openafs/src/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/config  
> -I/project/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_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 -q64 -DAFS_64BIT_KERNEL -D__64BIT_KERNEL -g 
> -I/project/openafs/src/rxkad -I/project/openafs/src/rxkad -o rxkad_common.o 
> -c /project/openafs/src/rxkad/rxkad_common.c
> "/project/openafs/src/afs/AIX/osi_machdep.h", line 90.12: 1506-007 (S) 
> "struct 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 
> redeclaration 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 willing to bet it's on my end and not a problem with the code.

That looks like some fallout from https://gerrit.openafs.org/#/c/14238/ and
given the lack of any remark about testing on AIX in the review notes, I'm
more inclined to think it's an issue with the OpenAFS code than your setup.

What does curtime() look like on your system?
We just need a way to get the current time in seconds+microseconds
precision (converting from, e.g., nanoseconds if needed).  We may have just
typo'd something in the src/afs/AIX/osi_machdep.h chunk, for all I know.

Thanks,

Ben

P.S. If you think you might be able to contribute some resources to have a
regular AIX buildbot worker again, we'd be delighted to talk about that!
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to