[Pvfs2-users] Problem in compiling kernel module

Sumit Narayan sumnaray at gmail.com
Sat Aug 30 22:28:21 EDT 2008



On Aug 30, 2008, at 3:24 PM, Abhinav Chawade wrote:

> Hello users
>
> I have installed pvfs version 2.7.1 on a cluster where nodes have  
> following configuration.
>
> Xeons 2.0 GHz and Linux distributions
> CentOS 5.2(2.6.9), CentOS 4.2(2.6.x), RHEL3(Kernel 2.4.21) and  
> OpenSuse 11.0 (2.6.25)
>
> I am compiling pvfs server and kernel module on all of the above.
> 1) Everything works pretty well on CentOS.
> 2) With opensuse, I get an error on step make kmod. It says
>
> /bin/sh: -c: line 0: syntax error near unexpected token `cat'
> /bin/sh: -c: line 0: `echo(cat /dev/null;   echo kernel//root/ 
> pvfs-2.7.1/src/kernel/linux-2.6/pvfs2.ko;) > /root/pvfs-2.7.1/src/ 
> kernel/linux-2.6/modules.order'
> make[3]: *** [/root/pvfs-2.7.1/src/kernel/linux-2.6/modules.order]  
> Error 2
> make[2]: *** [_module_/root/pvfs-2.7.1/src/kernel/linux-2.6] Error 2
> make[1]: *** [default] Error 2
> make: *** [just_kmod] Error 2
>
>
> So I am not able to build kernel module on OpenSuse 11.0 32 bit
>
For this, you will need to apply a small patch on kernel code

http://www.beowulf-underground.org/pipermail/pvfs2-users/2008-April/002382.html

>
> 3) With kernel 2.4.21, I enable --enable-redhat24 and --enable-nptl- 
> workaround. make and make install work just fine. But when i try  
> make kmod24, there is a compilation error in file /src/kernel/ 
> linux2.4/file.c, it displays this error
> file.c: In function `check_mapping_tree':
> file.c:802: structure has no member named `tree_lock'
> file.c:805: `pgoff_t' undeclared (first use in this function)
> file.c:805: (Each undeclared identifier is reported only once
> file.c:805: for each function it appears in.)
> file.c:805: syntax error before "page_offset"
> file.c:807: `page_offset' undeclared (first use in this function)
> file.c:810: warning: implicit declaration of function  
> `radix_tree_lookup'
> file.c:810: structure has no member named `page_tree'
> file.c:810: warning: assignment makes pointer from integer without a  
> cast
> file.c:822: structure has no member named `tree_lock'
> file.c: In function `locate_file_pages':
> file.c:894: structure has no member named `tree_lock'
> file.c:897: `pgoff_t' undeclared (first use in this function)
> file.c:897: syntax error before "page_offset"
> file.c:899: `page_offset' undeclared (first use in this function)
> file.c:902: structure has no member named `page_tree'
> file.c:902: warning: assignment makes pointer from integer without a  
> cast
> file.c:915: structure has no member named `tree_lock'
> file.c:917: warning: implicit declaration of function  
> `page_cache_alloc_cold'
> file.c:917: warning: assignment makes pointer from integer without a  
> cast
> file.c:918: structure has no member named `tree_lock'
> file.c:938: structure has no member named `tree_lock'
> file.c:959: warning: implicit declaration of function  
> `read_cache_pages'
> file.c: In function `are_contiguous':
> file.c:992: `pgoff_t' undeclared (first use in this function)
> file.c:992: syntax error before "fpoffset"
> file.c:1001: `fpoffset' undeclared (first use in this function)
> make[1]: *** [file.o] Error 1
> make: *** [just_kmod24] Error 2
> I browsed online to find structure address_space and pgoff_t but  
> couldn't find anything related.
>
> Has anyone encountered similar problems? Please let me know.
>
> Abhinav
>
> _______________________________________________
> Pvfs2-users mailing list
> Pvfs2-users at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users



More information about the Pvfs2-users mailing list