Chris Johns created an issue: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/68



This PowerPC code is using some Linux compatibility wrapper  to run the 
Freescale code on LibBSD and has broken. The error is:

```
In file included from ../../rtemsbsd/powerpc/include/linux/device.h:53,
                 from ../../rtemsbsd/powerpc/include/linux/phy.h:31,
                 from 
../../linux/drivers/net/ethernet/freescale/fman/../../../../../../rtemsbsd/sys/powerpc/drivers/net/ethernet/freescale/dpaa/if_fmanmac.h:46,
                 from ../../linux/drivers/net/ethernet/freescale/fman/mac.c:43:
../../rtemsbsd/powerpc/include/linux/ioport.h:39:1: error: redefinition of 
struct or union 'struct resource'
   39 | };
      | ^
In file included from 
../../linux/drivers/net/ethernet/freescale/fman/../../../../../../rtemsbsd/sys/powerpc/drivers/net/ethernet/freescale/dpaa/if_fmanmac.h:32:
../../freebsd/sys/sys/bus.h:320:8: note: originally defined here
  320 | struct resource;
      |        ^~~~~~~~
```

The `ioport.h` header is defining a `struct` that is defined by FreeBSD and 
then using fields not in the FreeBSD version. I cannot see an easy to hack 
around this because the fields use common names such as `start` and `end` .

Disable the module until someone needing this driver on FreeBSD 14, 15 and 
CURRENT fixes it.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/68
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to