From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48A5FF96.3060706@domain.hid> Date: Fri, 15 Aug 2008 18:13:42 -0400 From: Steve Shumway MIME-Version: 1.0 References: <48A4ECEB.4060206@domain.hid> <48A57135.4020905@domain.hid> In-Reply-To: <48A57135.4020905@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Xenomai install problem? List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org The problem was my lack of understanding about how to build a module. The installation of linux+xenomai was ok. Thanks Steve Gilles Chanteperdrix wrote: > Steve Shumway wrote: >> gcc -O2 -Wall -DMODULE -D__KERNEL__ -DLINUX -I/usr/src/linux/include >> -I/usr/src/linux/include/xenomai/compat -I/usr/xenomai/include -c -o >> irqcontrol_driver.o irqcontrol_driver.c > > So, the compiler looks for headers in /usr/src/linux. > >> tar -xvzpf linux-2.6.25 tar -C /usr/src > > And you installed the kernel sources in /usr/src/linux-2.6.25 > > And by the way, are you trying to compile a module with gcc by hand ? > If, yes, then it is normal that you get problems. The official way to > compile modules with the 2.6 kernel is to use the way described in > /usr/src/linux-2.6.25/Documentation/kbuild/modules.txt >