[OpenAFS-devel] trying to compile for sunx86_58

John Tang Boyland boyland@solomons.cs.uwm.edu
Tue, 11 Sep 2001 15:00:05 -0500


I've been able to make some progress updating Makefiles
for sunx86_58 (thanks to Fatima Streit <fatima@ifh.de>)
but I've run into some other problems.

First (and simplest), running "make clean" fails in
	/users/csfac/boyland/src/openafs-1.1.1a/src/libuafs'
	make[2]: *** No rule to make target `clean'.  Stop.
I should think that would be easy to fix.

Next, the code assumes that IPv6 is available even though IPv6 is
optional in Solaris 8 (and not installed on the machine I am compiling
on):
	/opt/SUNWspro/bin/cc  -I. -I.. -I/users/csfac/boyland/src/openafs-1.1.1a/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_analyze.c;
	"../afs/afs_analyze.c", line 44: cannot find include file: <netinet/ip6.h>
	cc: acomp failed for ../afs/afs_analyze.c
afs_{cell,conn,server,user,util,volume}.c in the same directory have
the same problem, as does src/rx/SOLARIS/rx_knet.c

I suggest that a config flag called:
    AFS_IPV6_ENV
be used to control whether to look for this.
Even better would be for configure to handle this automatically.

(by the way, why are -DSUN4C_60 and -Dsun4c in the flags?  This seems
very strange indeed.)

Finally, it all comes crashing down in osi_vfops.c:

/opt/SUNWspro/bin/cc -I. -I.. -I/users/csfac/boyland/src/openafs-1.1.1a/src/config  -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -Dsun4c -DSUN4C_60 -DNFSCLIENT -DSYSACCT -DOLDSCSI -DVDDRV -D_KERNEL -DSYSV -dn    -c ../afs/osi_vfsops.c -DAFS_NONFSTRANS;
"../afs/osi_vfsops.c", line 223: warning: initialization type mismatch
"../afs/osi_vfsops.c", line 231: undefined symbol: fs_freevfs
"../afs/osi_vfsops.c", line 231: too many struct/union initializers
"../afs/osi_vfsops.c", line 231: warning: improper pointer/integer combination: op "="
"../afs/osi_vfsops.c", line 231: non-constant initializer: op "NAME"
"../afs/osi_vfsops.c", line 267: warning: assignment type mismatch:
        pointer to function() returning long long "=" pointer to function() returning int
"../afs/osi_vfsops.c", line 311: warning: assignment type mismatch:
        pointer to function() returning void "=" pointer to function() returning int
"../afs/osi_vfsops.c", line 452: warning: operands have incompatible pointer types: op "=="
cc: acomp failed for ../afs/osi_vfsops.c

Any help?

John Boyland