Hi xokaido!

I had the same problem that you had, and I did just the way that you sad.
But I having this follow error when I try run "make kmod":

  CC [M]  /home/steinmetz/pvfs2/src/kernel/linux-2.6/pvfs2-cache.o
/home/steinmetz/pvfs2/src/kernel/linux-2.6/pvfs2-cache.c:11: error:
âSPIN_LOCK_UNLOCKEDâ undeclared here (not in a function)
make[3]: ** [/home/steinmetz/pvfs2/src/kernel/linux-2.6/pvfs2-cache.o] Erro
1
make[2]: ** [_module_/home/steinmetz/pvfs2/src/kernel/linux-2.6] Erro 2
make[1]: ** [default] Erro 2
make: ** [just_kmod] Erro 2

Did you have the same error?
Regards
Tiago


On Thu, Jul 14, 2011 at 10:05 AM, xokaido T. GNUcious <[email protected]> wrote:

>        > Hi,
>
> Hello
>         > You'll need to use the 2.8.4 (OrangeFS) release at
>        > http://www.orangefs.org/download/. For kernel versions newer than
> 2.6.33
>        > you'll need to use the latest Orange-Branch code from CVS,
> directions at
>        > http://www.orangefs.org/support/.
>
> Yes, I tried both, OrangeFS 2.8.4 and latest trunk from CVS too but nothing
> helped.
> Seems Debian is placing kernel headers in wrong place, I had to copy whole
> /usr/src/linux-headers-2.6.32-5-common to
> /usr/src/linux-headers-2.6.32-5-amd4 and use configuration like this:
> ./configure --with-kernel=/usr/src/linux-headers-2.6.32-5-amd4
> After this I was able to issue "make kmod" and got pvfs.ko in
> src/kernel/linux-2.6/ directory...
> I am writing this mail because someone willing to compile either pvfs or
> OrangeFS on Debian squeeze will definitely face this problem so one can
> solve it like I did.
>
>        > Let me know if you still receive compilation errors with the
> latest code and
>        > we can look further.
>        >
>        > Michael
>
> Seems it's not PVFS/OrangeFS fault, it's kernel headers which should be
> used appropriately. I looked in the log file and found that linux/slab.h
> wasn't found on the system, I went to the kernel dir to find out where it
> was and surprisingly found it in /usr/src/linux-headers-2.6.32-5/common/
> instead of /usr/src/linux-headers-2.6.32-5-amd4/ so I just copied whole dir
> (because when I tried to use that *common/ directory PVFS alerted and said I
> need to have built source of the kernel tree). After this - compilation of
> the kernel module went smoothly and I have got the module working very well.
> Thank you very much for trying to help me.
>
> --
> xokaido T. GNUcious <[email protected]>
> _______________________________________________
> Pvfs2-users mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>



-- 
Tiago Steinmetz Soares
Computer Science - UFSC
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to