Re: Building kernel modules

2008-08-21 Thread Christopher Faylor
On Thu, Aug 21, 2008 at 11:20:29PM +0200, Bosko Radivojevic wrote: >From my perspective it looks like a cygwin "problem". Sorry if I'm not righ. > >Probably sys/types.h in cygwin and Linux are not the same, something >that is defined in linux/types.h in linux is also defined in >cygwin/types.h, etc

Re: Building kernel modules

2008-08-21 Thread Brian Dessent
Bosko Radivojevic wrote: > /usr/include/linux/types.h:21: error: conflicting types for '_types_fd_set' > /usr/include/sys/types.h:235: error: previous declaration of > '_types_fd_set' was here Okay, that's truly and hideously broken. You should have no /usr/include/linux at all. This is not Lin

Re: Building kernel modules

2008-08-21 Thread Bosko Radivojevic
Hi all, again. I've installed proper toolchain (arm-linux, from CodeSourcery). Along with this, I also (re)moved /usr/include/asm, and created following sym links: /usr/include/asm -> kernel_dir/include/asm-arm /usr/include/linux -> kernel_dir/include/linux As soon as I start kernel build (make A

Re: Building kernel modules

2008-08-21 Thread Bosko Radivojevic
On Thu, Aug 21, 2008 at 5:13 PM, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote: > To me, it sounds like there's a problem with the installation > of the tool-chain, a step was missed in the process, or there's a problem > in the environment that's misdirecting the tool-chain. Well, except a few Ne

Re: Building kernel modules

2008-08-21 Thread Larry Hall (Cygwin)
Bosko Radivojevic wrote: Larry, thank you for your answer. I'll ask there too. Besides this good advice, do you have any other related to problem I'm trying to solve? Sorry no. I'm no cross-compile expert and I don't use the GNU ARM tool-chain. To me, it sounds like there's a problem with th

Re: Building kernel modules

2008-08-21 Thread Bosko Radivojevic
Larry, thank you for your answer. I'll ask there too. Besides this good advice, do you have any other related to problem I'm trying to solve? On Thu, Aug 21, 2008 at 4:40 PM, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote: > While this is certainly a valid location to make such an inquiry, perhap

Re: Building kernel modules

2008-08-21 Thread Larry Hall (Cygwin)
Bosko Radivojevic wrote: Hi all! I'm trying to build some kernel modules for ARM platform on Cygwin. I have working cross-compiler (gcc 4.1.1, from GNUARM project), but I'm unable to build kernel scripts that are needed for building modules (scripts/mod/...). It looks that all problems are .h re

Building kernel modules

2008-08-21 Thread Bosko Radivojevic
Hi all! I'm trying to build some kernel modules for ARM platform on Cygwin. I have working cross-compiler (gcc 4.1.1, from GNUARM project), but I'm unable to build kernel scripts that are needed for building modules (scripts/mod/...). It looks that all problems are .h related. I have resolved prob