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

Andrew Deason adeason@sinenomine.net
Fri, 27 May 2011 14:11:08 -0500


This is a multi-part message in MIME format.

--Multipart=_Fri__27_May_2011_14_11_08_-0500_4fdioVPXmjx4B7MB
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Fri, 27 May 2011 14:41:20 -0400
Jeff Blaine <jblaine@kickflop.net> wrote:

> May 27 14:23:25 rcf-afs-test.our.org unix: [ID 819705 kern.notice] 
> /kernel/fs/sparcv9/afs: undefined symbol
> May 27 14:23:25 rcf-afs-test.our.org unix: [ID 826211 kern.notice] '_memset'
> May 27 14:23:25 rcf-afs-test.our.org unix: [ID 472681 kern.notice] 
> WARNING: mod_load: cannot load module 'afs'

I'll submit a "real" patch when I have time to look at what changed, but
try the attached patch to a fresh tree and tell me if it changes
anything?

> And my previous report of this problem, the solution to which is not
> even an option anymore as we don't even have the ancient Solaris
> Studio anymore:
> 
> https://lists.openafs.org/pipermail/openafs-info/2011-February/035520.html

Well, this previous report went completely overlooked by me and possibly
others because I thought that was a sig or something, and was mixed up
with talking about warnings.

-- 
Andrew Deason
adeason@sinenomine.net

--Multipart=_Fri__27_May_2011_14_11_08_-0500_4fdioVPXmjx4B7MB
Content-Type: text/x-diff;
 name="xmodel-kernel.diff"
Content-Disposition: attachment;
 filename="xmodel-kernel.diff"
Content-Transfer-Encoding: 7bit

diff --git a/src/libafs/MakefileProto.SOLARIS.in b/src/libafs/MakefileProto.SOLARIS.in
index f22a21e..4e0f523 100644
--- a/src/libafs/MakefileProto.SOLARIS.in
+++ b/src/libafs/MakefileProto.SOLARIS.in
@@ -34,7 +34,7 @@ KDEFS= -D_KERNEL -DSYSV -dn ${ARCH_DEFS}
 
 <sun4x_57 sun4x_58 sun4x_59 sun4x_510 sun4x_511>
 KDEFS_32 = -xarch=v8
-KDEFS_64 = -xarch=v9 
+KDEFS_64 = -xarch=v9 -xmodel=kernel
 
 <sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
 KDEFS_32 = 

--Multipart=_Fri__27_May_2011_14_11_08_-0500_4fdioVPXmjx4B7MB--