[etherlab-users] ecrt_slave_config_state and ecrt_slave_config_pdos undefined

Matthieu Bec mbec at gmto.org
Fri Feb 8 18:05:42 CET 2013


Hello Diego,

3.4-rt is fairly recent so no big surprise, and many people are using 
xenomai or rtai that's still 2.6

here's what I have on a fresh 3.7.5

% hg diff
diff -r 9cdd7669dc0b include/ecrt.h
--- a/include/ecrt.h	Thu Jan 10 17:36:41 2013 +0100
+++ b/include/ecrt.h	Fri Feb 08 08:48:56 2013 -0800
@@ -118,6 +118,7 @@
  #define __ECRT_H__

  #ifdef __KERNEL__
+#include <linux/module.h>
  #include <asm/byteorder.h>
  #include <linux/types.h>
  #include <linux/time.h>

probably backward compatible with older versions but I haven't checked. 
the tty driver needs a bit more rework.

Regards,
Matthieu



On 02/08/2013 01:42 AM, BOESEL Diego Fernandes wrote:
>
> I found the solution.
>
> In the include section of the master/slave_config.c, it was:
> #include <linux/slab.h>
>
> And then I changed it to:
> #include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/string.h>
> #include <linux/slab.h>
> #include <linux/delay.h>
> #include <linux/device.h>
> #include <linux/version.h>
> #include <linux/hrtimer.h>
> #include "globals.h"
> #include "slave.h"
> #include "slave_config.h"
> #include "device.h"
> #include "datagram.h"
>
> These includes I took from master/master.c I think, not sure about that.
>
> I am surprised I am the first to have this problem...
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>


-- 
Matthieu Bec                GMTO Corp.
cell : +1 626 354 9367      P.O. Box 90933
phone: +1 626 204 0527      Pasadena, CA 91109-0933



More information about the Etherlab-users mailing list