[bpi-r4] libpfring - build error

Hello fellow OpenWRT builders - since Aug. 1st all BPI-R4 build attempts are failing due to an error that is created by the libpfring package.

I’ve also, tried to workaround it by completely git clone OpenWRT and downloading a recent config.buildinfo (dated Aug. 09 2025) and only changing/focusing the build image to “Bananapi BPi-R4”.

Also updated my Debian build server from 12 to 13.

… nothing helped to solve the build errors.

Seems there are others with similar problems. (-> libpfring: error: 'static' is not at beginning of declaration · Issue #26569 · openwrt/packages · GitHub)

Does anyone have an idea how to solve the build issue? Ideas & help is very welcome :slight_smile: THX!

If you look into openwrt buildbot, you will see that this package is failing to compile. It is in the pkgbuild step. Link to one of the latest builds. Link to the pkgbuild step of that build.

I believe they use the ‘IGNORE_ERRORS=n m’ parameter to ignore such error.

The official openwrt build page also suggests using IGNORE_ERRORS=1.

Otherwise, you can mark that package to not be built, within the menuconfig. Or you can add it manually to your .config file:

# CONFIG_PACKAGE_kmod-pf-ring is not set

I’ve built the latest snapshot a few days ago, and I had to disable the following packages:

# CONFIG_PACKAGE_kmod-ipt-rtpengine is not set
# CONFIG_PACKAGE_kmod-openvswitch is not set
# CONFIG_PACKAGE_kmod-openvswitch-geneve is not set
# CONFIG_PACKAGE_kmod-openvswitch-geneve-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-gre is not set
# CONFIG_PACKAGE_kmod-openvswitch-gre-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-lisp-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-stt-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-vxlan is not set
# CONFIG_PACKAGE_kmod-openvswitch-vxlan-intree is not set
# CONFIG_PACKAGE_kmod-pf-ring is not set