- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Mon, 21 Aug 2006 12:49:49 +0100
On 21/08/06 09:24, Rebsamen Brice wrote: > Following your indications I updated the comedi drivers through cvs > using the -D '2006-07-11 19:00' option. autogen then correctly detected > PCMCIA support (as module). However it doesn't compile. Below is the > make error message. What's going on? (I used --enable-pcmcia option with > configure). Sorry, I got the month wrong (07 instead of 06) in the -D option, and also forgot to take into account the fact that it interprets the time as a local time unless a timezone is included. Try -D '2006-06-11 19:00Z' instead (the Z on the end specifies "zero medidian" or "Zulu time", i.e. GMT or UTC). I've just tried that and it seems to compile OK for a 2.6.15 kernel. > Note that I haven't applied the patch you sent: I understood that I > must not since I am using kernel 2.6.15, although I am not sure I > understood correctly your instructions about that. can you confirm please? You only need the patch if you want the same source to compile for 2.6.16, or for a vendor 2.6.15 kernel that "plays the same tricks as Fedora". > I don't know if "Ubuntu played the same tricks as Fedora", I am using > a vanilla kernel anyway. How can I check that? You won't need the patch for a vanilla 2.6.15 kernel. The patch defines the COMEDI_PCMCIA_2_6_16 macro in Comedi's include/pcmcia/ds.h file if Comedi is being built for 2.6.16 or Fedora's 2.6.15 (or a 2.6.15 kernel pulling the same trick as Fedora). Otherwise the macro is left undefined. The macro is tested for conditional compilation in Comedi's PCMCIA drivers. (If it wasn't for Fedora's 2.6.15, those conditional compilation tests would just test the kernel version directly instead of a special macro.) The patch checks for the Fedora 2.6.15 trick by checking whether the dev_to_instance macro was defined in the kernel's include/pcmcia/ds.h file. This was defined in vanilla 2.6.16, but is also included in Fedora's back-port to 2.6.15. > Anyway I tried to apply the patch, just in case. 'patch -p0 < > comedi.patch' fails reporting "Hunk #1 FAILED at 37". It applies OK once the correct -D option has been used. -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2006-08-21Z10:49:49