[OpenAFS] modload failing, Sol10 SPARC, 1.4.14
Douglas E. Engert
deengert@anl.gov
Tue, 31 May 2011 11:50:43 -0500
I can use Sun Studio 12 on Solaris 10, without
the problem. The compiler was installed originally
on Solaoris 9 in
On 5/31/2011 10:06 AM, Derrick Brashear wrote:2007
> Worked with Jeff offline on this. So,
> 1) *only* afs_dynroot.o has the reference to _memset. no other object
> does. other objects reference memset, and rx_knet references
> bzero also.
> 2) the preprocessed output of afs_dynroot.o, using the cc command
> libafs uses, includes only:
I get the same thing you get without having to add the -xbuiltin=
using Sun Studio 12 on Solaris 10. The compiler was installed originally
on Solaris 9, so:
% ./cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-02 2007/11/27
>
> grep memset /tmp/memset
> extern void *memset(void *, int, size_t);
> extern void *memset(void *, int, size_t);
> memset(cellHosts, 0, sizeof(cellHosts));
> memset(status, 0, sizeof(struct AFSFetchStatus));
> memset(status, 0, sizeof(struct AFSFetchStatus));
>
> That's from:
> /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 -O -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 -o afs_dynroot.o -c
> /var/tmp/openafs-1.4.14/src/afs/afs_dynroot.c
> transmuted to:
> /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 -O -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 -E /var/tmp/openafs-1.4.14/src/afs/afs_dynroot.c
>
> So I'm not sure what I'm missing.
Could _memset be defined in one of the Sun header files on Jeff's computer?
cd /usr/include
find . -type f -exec grep _memset {} \; -print
Does not show it on mine.
>
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444