Hi,

On Saturday 17 October 2009 16:00:15 Alexis Berlemont wrote:
> Hi,
> 
> On Saturday 17 October 2009 01:48:47 Peter Pastor wrote:
> > Hey Alexis,
> >
> > >> That's because you did not retrieve the "comedi" branch, you are
> > >> working
> >
> > the
> >
> > >> master branch which is left unused.
> > >> You should create a branch on your local repository with the remote
> >
> > comedi
> >
> > >> branch as reference.
> >
> > Sorry... I managed to do it :) (I am new to git) However, I could not
> > compile the kernel :(
> >
> > drivers/xenomai/comedi/intel/8255.c:50:47: error: macro
> > "subdev_8255_interrupt" requires 2 arguments, but only 1 given
> > drivers/xenomai/comedi/intel/8255.c:51: error: expected ‘=’, ‘,’, ‘;’,
> >  ‘asm’ or ‘__attribute__’ before ‘{’ token
> > drivers/xenomai/comedi/intel/8255.c: In function ‘do_config’:
> > drivers/xenomai/comedi/intel/8255.c:85: error: ‘CR_CW’ undeclared (first
> >  use in this function)
> > drivers/xenomai/comedi/intel/8255.c:85: error: (Each undeclared
> > identifier is reported only once
> > drivers/xenomai/comedi/intel/8255.c:85: error: for each function it
> > appears in.)
> > drivers/xenomai/comedi/intel/8255.c:88: error: ‘CR_A_IO’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:90: error: ‘CR_B_IO’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:92: error: ‘CR_C_LO_IO’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:94: error: ‘CR_C_HI_IO’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:95: error: ‘_8255_CR’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c: In function ‘subd_8255_insn_bits’:
> > drivers/xenomai/comedi/intel/8255.c:146: error: ‘_8255_DATA’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:204:42: error: macro
> > "subdev_8255_init" requires 2 arguments, but only 1 given
> > drivers/xenomai/comedi/intel/8255.c: At top level:
> > drivers/xenomai/comedi/intel/8255.c:205: error: expected ‘=’, ‘,’, ‘;’,
> > ‘asm’ or ‘__attribute__’ before ‘{’ token
> > drivers/xenomai/comedi/intel/8255.c: In function ‘dev_8255_attach’:
> > drivers/xenomai/comedi/intel/8255.c:274: error: ‘_8255_SIZE’ undeclared
> > (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c:282:25: error: macro
> > "subdev_8255_init" requires 2 arguments, but only 1 given
> > drivers/xenomai/comedi/intel/8255.c:282: error: ‘subdev_8255_init’
> > undeclared (first use in this function)
> > drivers/xenomai/comedi/intel/8255.c: In function ‘dev_8255_detach’:
> > drivers/xenomai/comedi/intel/8255.c:306: error: ‘_8255_SIZE’ undeclared
> > (first use in this function)
> > make[4]: *** [drivers/xenomai/comedi/intel/8255.o] Error 1
> > make[3]: *** [drivers/xenomai/comedi/intel] Error 2
> > make[2]: *** [drivers/xenomai/comedi] Error 2
> > make[1]: *** [drivers/xenomai] Error 2
> > make: *** [drivers] Error 2
> 
> My fault. I forgot to handle some pre-compilation constants when the
>  drivers are compiled as modules.
> 
> I will update my git repository; meanwhile, you can statically link all the
> comedi drivers into the kernel. That is a temporary solution until the fix
>  is available.

I updated the git repository a few hours after my answer to your last mail. 
Did you have any opportunity to test it ? Or did you test a statical 
configuration ?

Many thanks.

> > When I reconfigure the kernel to not compile 8255 and friends it does not
> > compile either...
> >
> > ... snip ...
> >   AS      arch/x86/boot/header.o
> >   LD      arch/x86/boot/setup.elf
> >   OBJCOPY arch/x86/boot/setup.bin
> >   BUILD   arch/x86/boot/bzImage
> > Root device is (8, 1)
> > Setup is 11692 bytes (padded to 11776 bytes).
> > System is 2347 kB
> > CRC 84c0200
> > Kernel: arch/x86/boot/bzImage is ready  (#1)
> > ERROR: "comedi_alloc_subd"
> > [drivers/xenomai/comedi/testing/comedi_loop.ko] undefined!
> > ERROR: "comedi_alloc_subd"
> > [drivers/xenomai/comedi/testing/comedi_fake.ko] undefined!
> > make[1]: *** [__modpost] Error 1
> > make: *** [modules] Error 2
> >
> > I tried 2.6.31 and 2.6.30.5.
> 
> Another bug of mine. The EXPORT_SYMBOL was missing.
> 
> Once more, with a kernel in which the drivers are statically included, you
> won't face this issue anymore.
> 
> > I really appreciate your help !
> >
> > Thanks,
> >  peter
> 
Alexis.
 

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to