attempting to compile linux-coda-6.8linux2.6 on redhat Enterprise 5.1

View: New views
2 Messages — Rating Filter:   Alert me  

attempting to compile linux-coda-6.8linux2.6 on redhat Enterprise 5.1

by Shane T. Drinkwater :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello,
My name is Shane Drinkwater. I am new to the coda file system and have been working on a test box. When I tried to compile the Linux module portion of the coda system I get the following error.
[root@virtualtest linux-coda-6.8linux2.6]# make
make CONFIG_CODA_FS=m CPPFLAGS="-D__KERNEL__ -I/usr/src/linux-coda-6.8linux2.6 -Iinclude -include linux/autoconf.h" INSTALL_MOD_DIR=kernel/fs/coda -C /lib/modules/2.6.18-92.1.6.el5xen/build M=/usr/src/l
inux-coda-6.8linux2.6
make[1]: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5-xen-i686'
  LD      /usr/src/linux-coda-6.8linux2.6/built-in.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/psdev.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/cache.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/cnode.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/inode.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/dir.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/file.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/upcall.o
  CC [M]  /usr/src/linux-coda-6.8linux2.6/coda_linux.o
/usr/src/linux-coda-6.8linux2.6/coda_linux.c: In function âcoda_vattr_to_iattrâ:
/usr/src/linux-coda-6.8linux2.6/coda_linux.c:114: error: âstruct inodeâ has no member named âi_blksizeâ
make[2]: *** [/usr/src/linux-coda-6.8linux2.6/coda_linux.o] Error 1
make[1]: *** [_module_/usr/src/linux-coda-6.8linux2.6] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5-xen-i686'
make: *** [all] Error 2
 
Is there a way around this issue?? I would like to stick with the “red hat” kernel instead of rolling my own.
                        Thank you
                                Shane

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.5.6/1572 - Release Date: 7/25/2008 6:51 AM
 

NOTICE: This email may contain legally privileged information. The inform ation is for the use of only the intended recipient(s) even if addressed inc orrectly. If you are not the intended recipient, please notify the sender th at you have received it in error and then delete it along with any attachmen ts. Thank you.

Re: attempting to compile linux-coda-6.8linux2.6 on redhat Enterprise 5.1

by Jan Harkes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 25, 2008 at 01:52:09PM -0500, Shane T. Drinkwater wrote:
> Is there a way around this issue?? I would like to stick with the "red
> hat" kernel instead of rolling my own.

It it quite likely that there already is a coda kernel module that came
with your default RHEL kernel image. You can check with, /sbin/modinfo coda


The build is probably failing because they backported a change that
breaks the kernel API from the official 2.6.19 kernel. A lot of these
things can't really be tested for there is no define to test for or
anything so we basically end up relying on the version number of the
first kernel.org released Linux kernel that contained the change.

This particular change was first introduced in 2.6.19-rc1 and I guess
your RHEL kernel is based on 2.6.18, so based on the kernel version the
inode data structure should still have i_blksize.

Jan