[OpenAFS-devel] Problems compiling openafs-1.2(3,4) on Solaris 9 release from Sun

Quanah Gibson-Mount quanah@stanford.edu
Sat, 08 Jun 2002 07:13:26 -0700


Hello,

I've built a Solaris 9 machine and downloaded the source for openafs-1.2.3 
and openafs-1.2.4, as the precompiled binaries do not work with the release 
shipped by Sun.  I installed forte 6u2 and have attempted compiling both 
sources.  However, they both fail at the same spot, trying to compile 
afs_callback.c in MODLOAD32 (or MODLOAD64, if I tweak the makefile to skip 
the 32 bit one).  I ran configure --with-afs-sysname=sun4x_59 
--enable-transarc-paths.

Below is the output.

--Quanah

Wrote new makefile 'src/libafs/Makefile'.
cd src; cd libafs ; make all
rm -f  h net netinet rpc ufs nfs  machine sys inet
ln -s /usr/include/sys h
ln -s /usr/include/net net
ln -s /usr/include/netinet netinet
ln -s /usr/include/rpc rpc
ln-s /usr/include/sys sys
ln -s /usr/include/nfs nfs
ln -s /usr/include/inet inet
ln -s /usr/include/ufs ufs
for t in MODLOAD32 MODLOAD64 ; do \
        echo Making directory: $t; \
        mkdir -p $t; \
        rm -f $t/Makefile.common $t/Makefile $t/config ; \
        ln -s ../Makefile.common $t/Makefile.common ; \
        ln -s ../Makefile $t/Makefile ;\
        ln -s ../config $t/config ;\
done
Making directory: MODLOAD32
Making directory: MODLOAD64
for t in MODLOAD32 MODLOAD64 ; do \
        echo Building directory: $t ; \
        case $t in \
                MODLOAD32) \
                 ARCH_DEFS="" ; \
                 BITS="" ;; \
                MODLOAD64) \
                 ARCH_DEFS="-xarch=v9" ; \
                 BITS="64" ;; \
        esac ; \
        export ARCH_DEFS ; \
        export BITS ; \
        cd $t  ; \
        make solaris_compdirs_libafs ; \
        cd ./ ;\
done
Building directory: MODLOAD32
/opt/SUNWspro/bin/cc -I. -I.. -I/root/openafs-1.2.3/src/config  -DAFSDEBUG 
-DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -Dsun4c 
-DSUN4C_60 -DNFSCLIENT -DSYSACCT -DOLDSCSI -DVDDRV -D_KERNEL  -DSYSV -dn 
-c ../afs/afs_callback.c;
"../afs/afs_callback.c", line 116: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 171: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 222: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 248: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to stuct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/..//systm.h", line 239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 436: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 449: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 493: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 494: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec,long tv_usec} : 
"../afs/../afs/../h/systm.h", line 239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 543: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 586: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 630: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 634: warning: argument #1 is incompatible 
with prototype:
        prototype: poier to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line 239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 690: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 696: undefined symbol: hrestime
"../afs/afs_callback.c", line 696: warning: left operand of "." must be 
struct/union object
"../afs/afs_callback.c", line 780: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 1022: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../fs/../h/systm.h", line 239
        argument : pointer to struct  {int tv_sec, int tv_usec}
"../afs/afs_callback.c", line 1025: warning: argument #1 is incompatible 
with prototype:
        prototype: pointer to struct timeval {long tv_sec, long tv_usec} : 
"../afs/../afs/../h/systm.h", line
239
        argument : pointer to struct  {int tv_sec, int tv_usec}
cc: acomp failed for ../afs/afs_callback.c
*** Error code 2
make: Fatal error: Command failed for target `afs_callback.o'
Current working directory /root/openafs-1.2.3/src/libafs/MODLOAD32
*** Error code 1
make: Fatal error: Command failed for target `solaris_compdirs'
Current working directory /root/openafs-1.2.3/src/libafs
*** Error code 1
make: Fatal error: Command failed for target `libafs'
Current working directory /root/openafs-1.2.3
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /root/openafs-1.2.3
*** Error code 1
make: Fatal error: Command failed for target `all'