[OpenAFS] Openafs-1.4.0; Kernel 2.6.9-22.0.1.EL; kernel module compile error
Soon Wong
wongste@hotmail.com
Fri, 16 Dec 2005 10:16:45 -0500
Derek,
I'd be more than happy to use the openafs rpms if someone can point me to
where I can get them for ppc. I'd be happy to run any 2.6 kernel.
This is how I run configure:
./configure --enable-transarc-paths
--with-linux-kernel-headers=/usr/src/kernels/2.6.9-22.0.1.EL-ppc64
Russ told me that I have problems with my kernel headers after taking a look
at my config.log. So after googling for a while, I found out about gcc
fixincludes and so I pointed configure at my old kernel headers (which
should have the "fixed" kernel headers).
Ok, so then I ran configure with my old kernel headers:
./configure --enable-transarc-paths
--with-linux-kernel-headers=/usr/src/kernels/2.6.9-22.EL-ppc64
configure ran clean, except for this:
/usr/src/kernels/2.6.9-22.EL-ppc64/include/asm/mmu.h:48: error: width of
`avpn' exceeds its type
/usr/src/kernels/2.6.9-22.EL-ppc64/include/asm/mmu.h:60: error: width of
`rpn' exceeds its type
configure seemed to have found rlim:
configure:4016: checking for rlim in struct task_struct
configure:4048: checking for signal->rlim in struct task_struct
configure:4080: checking for exit_state in struct task_struct
Then I ran make, but it exited with the same error as with the
2.6.9-22.0.1.EL headers:
make[5]: Entering directory `/usr/src/kernels/2.6.9-22.EL-ppc64'
CC [M]
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_atomlist.o
CC [M] /root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_lhash.o
CC [M]
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.o
In file included from /root/openafs-1.4.0/src/afs/afs_osi.h:393,
from /root/openafs-1.4.0/src/rx/rx_clock.h:88,
from /root/openafs-1.4.0/src/rx/rx.h:35,
from /root/openafs-1.4.0/src/afs/afsincludes.h:26,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/src/afs/LINUX/osi_machdep.h:55:2: #error Not sure what
to do about rlim (should be in the Linux task struct somewhere....)
In file included from /root/openafs-1.4.0/src/rx/rx.h:36,
from /root/openafs-1.4.0/src/afs/afsincludes.h:26,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/src/rx/rx_event.h:28: warning: function declaration
isn't a prototype
In file included from /root/openafs-1.4.0/src/rx/rx.h:1040,
from /root/openafs-1.4.0/src/afs/afsincludes.h:26,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/src/rx/rx_prototypes.h:245: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/rx/rx_prototypes.h:288: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/rx/rx_prototypes.h:290: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/rx/rx_prototypes.h:323: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/rx/rx_prototypes.h:550: warning: function
declaration isn't a prototype
In file included from /root/openafs-1.4.0/src/afs/afsincludes.h:42,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/src/afs/exporter.h:53: warning: function declaration
isn't a prototype
/root/openafs-1.4.0/src/afs/exporter.h:54: warning: function declaration
isn't a prototype
/root/openafs-1.4.0/src/afs/exporter.h:55: warning: function declaration
isn't a prototype
/root/openafs-1.4.0/src/afs/exporter.h:56: warning: function declaration
isn't a prototype
/root/openafs-1.4.0/src/afs/exporter.h:57: warning: function declaration
isn't a prototype
/root/openafs-1.4.0/src/afs/exporter.h:58: warning: function declaration
isn't a prototype
In file included from /root/openafs-1.4.0/src/afs/afsincludes.h:49,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/include/afs/dir.h:104: warning: function declaration
isn't a prototype
In file included from /root/openafs-1.4.0/src/afs/afsincludes.h:53,
from
/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.c:36:
/root/openafs-1.4.0/src/afs/afs_prototypes.h:502: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:575: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:576: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:577: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:665: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:801: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:802: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:955: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1020: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1021: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1022: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1023: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1024: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1025: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1026: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1027: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1028: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1029: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1030: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1031: warning: function
declaration isn't a prototype
/root/openafs-1.4.0/src/afs/afs_prototypes.h:1032: warning: function
declaration isn't a prototype
make[6]: ***
[/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP/afs_analyze.o] Error
1
make[5]: *** [_module_/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP]
Error 2
make[5]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-ppc64'
make[4]: *** [libafs.ko] Error 2
make[4]: Leaving directory
`/root/openafs-1.4.0/src/libafs/MODLOAD-2.6.9-22.EL-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/root/openafs-1.4.0/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/root/openafs-1.4.0'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/openafs-1.4.0'
make: *** [all] Error 2
----Original Message Follows----
From: Derek Atkins <warlord@MIT.EDU>
To: "Soon Wong" <wongste@hotmail.com>
CC: openafs-info@openafs.org
Subject: Re: [OpenAFS] Openafs-1.4.0; Kernel 2.6.9-22.0.1.EL; kernel module
compile error
Date: Fri, 16 Dec 2005 09:50:43 -0500
"Soon Wong" <wongste@hotmail.com> writes:
> My environment:
>
> openafs 1.4.0
> kernel : Linux version 2.6.9-22.0.1.EL
(bhcompile@sizzler.build.redhat.com)
> (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Tue Oct 18 18:35:10
> EDT 2005
[snip]
> Any ideas on what I can do to get around/past this?
>
> Appreciate any help you can offer. Thanks.
Any reason you don't use the RPMs?
What option(s) are you giving to configure?
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/