Re: [OpenAFS] Re: modload failing, Sol10 SPARC, 1.4.14

2011-05-28 Thread Jeff Blaine

On 5/27/2011 4:36 PM, Andrew Deason wrote:

On Fri, 27 May 2011 16:21:44 -0400
Jeff Blaine  wrote:


cc: Warning: Option xmodel=kernel is not available on SPARC Solaris
platform, ignored


Oh, duh. Try -xbuiltin=%none instead of -xmodel=kernel


Nope, same old.

bash-3.00# grep xbuiltin src/libafs/Make*
src/libafs/MakefileProto.SOLARIS.in:KDEFS_64 = -m64 -xbuiltin=%none
bash-3.00# ./configure --enable-namei-fileserver --disable-afsdb 
--enable-transarc-paths --with-krb5-conf=/usr/rcf-krb5/bin/krb5-config 
2>&1 | tee c.log

...
bash-3.00# grep xbuiltin src/libafs/Make*
src/libafs/MakefileProto.SOLARIS:KDEFS_64 = -m64 -xbuiltin=%none
src/libafs/MakefileProto.SOLARIS.in:KDEFS_64 = -m64 -xbuiltin=%none
bash-3.00#
bash-3.00# make dest 2>&1 | tee makedest.log
...
bash-3.00# cp sun4x_510/dest/root.client/usr/vice/etc/modload/libafs64.o 
/kernel/fs/sparcv9/afs

bash-3.00# modload /kernel/fs/sparcv9/afs
can't load module: Invalid argument
bash-3.00#

May 28 12:24:08 rcf-afs-test.our.org unix: [ID 819705 kern.notice] 
/var/tmp/openafs-1.4.14-src/sun4x_510/dest/root.client/usr/vice/etc/modload/libafs64.o: 
undefined symbol

May 28 12:24:08 rcf-afs-test.our.org unix: [ID 826211 kern.notice] '_memset'
May 28 12:24:08 rcf-afs-test.our.org unix: [ID 472681 kern.notice] 
WARNING: mod_load: cannot load module 'libafs64.o'



/opt/SUNWspro/bin/cc -I. -I.. -I../nfs  -I/var/tmp/openafs-1.4.14/src 
-I/var/tmp/openafs-1.4.14/src/afs 
-I/var/tmp/openafs-1.4.14/src/afs/SOLARIS 
-I/var/tmp/openafs-1.4.14/src/config 
-I/var/tmp/openafs-1.4.14/src/rx/SOLARIS 
-I/var/tmp/openafs-1.4.14/src/rxkad 
-I/var/tmp/openafs-1.4.14/src/rxkad/domestic 
-I/var/tmp/openafs-1.4.14/src/util  -I/var/tmp/openafs-1.4.14/src 
-I/var/tmp/openafs-1.4.14/src/afs 
-I/var/tmp/openafs-1.4.14/src/afs/SOLARIS 
-I/var/tmp/openafs-1.4.14/src/util  -I/var/tmp/openafs-1.4.14/src/rxkad 
 -I/var/tmp/openafs-1.4.14/src/config 
-I/var/tmp/openafs-1.4.14/src/fsint 
-I/var/tmp/openafs-1.4.14/src/vlserver -I/var/tmp/openafs-1.4.14/include 
 -I/var/tmp/openafs-1.4.14/include/afs  -I. -I.. 
-I/var/tmp/openafs-1.4.14/src/config  -DAFSDEBUG -DKERNEL -DAFS -DVICE 
-DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -D_KERNEL -DSYSV -dn -m64 
-xbuiltin=%none
 -DAFS_NONFSTRANS -DAFS_WRAPPER=libafs.nonfs.o_wrapper 
-DAFS_CONF_DATA=libafs.nonfs.o_conf_data -o osi_vfsops.o -c 
/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 220: 
warning: implicit function declaration: afs_osi_vget
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 235: 
warning: old-style declaration or incorrect type for: afs_mountroot
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 248: 
warning: old-style declaration or incorrect type for: afs_swapvp
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 279: 
warning: initialization type mismatch
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 282: 
warning: initialization type mismatch
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 331: 
warning: no explicit type given
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 338: 
warning: improper pointer/integer combination: op "="
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 348: 
warning: old-style declaration or incorrect type for: afsinit
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 358: 
warning: assignment type mismatch:
pointer to function() returning int "=" pointer to function() 
returning

long
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 360: 
warning: assignment type mismatch:
pointer to function() returning long "=" pointer to function() 
returning int
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 364: 
warning: assignment type mismatch:
pointer to function() returning int "=" pointer to function() 
returning

long
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 366: 
warning: assignment type mismatch:
pointer to function() returning long "=" pointer to function() 
returning int
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 509: 
warning: old-style declaration or incorrect type for: _init
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 597: 
warning: old-style declaration or incorrect type for: _info
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 606: 
warning: old-style declaration or incorrect type for: _fini
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 614: 
warning: assignment type mismatch:
pointer to function() returning long "=" pointer to function() 
returning int
"/var/tmp/openafs-1.4.14/src/afs/SOLARIS/osi_vfsops.c", line 617: 
warning: assignment type mismatch:
pointer to function() returning long "=" pointer to function() 
returning int




/opt/SUNWspro/bin/cc -I. -I.. -I../nfs  -I/var/tmp/openafs-1.4.14/src 
-I/var/tmp/openafs-1.4.14/src/afs 
-I/var/tmp/openafs-1.4.14/src/afs/SOLARIS 
-I/va

Re: [OpenAFS] Re: modload failing, Sol10 SPARC, 1.4.14

2011-05-28 Thread Harald Barth

> Until we have a way of detecting which one we want to use...

You have. I wrote src/cf/solaris-cc.m4 a long time ago to detect
solaris compiler versions. It just has never been used. There is a
aix-cc.m4 as well.

Harald.
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info