LibBSD | DAPP module is broken on FreeBSD 14 (#68)

Chris Johns (@chris) gitlab at rtems.org
Tue Nov 11 04:40:53 UTC 2025



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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251111/69147542/attachment-0001.htm>


More information about the bugs mailing list