[Bug 241047] iflib: fail to compile kernel on FreeBSD 12.1-BETA2: Fatal error: ifdi_if.h file not found.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 3 19:39:15 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241047

clay at milos.co.za changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clay at milos.co.za

--- Comment #3 from clay at milos.co.za ---
I have the same kernel compile issue for 12.2-RELEASE:
In file included from /usr/src/sys/dev/e1000/if_em.c:30:
/usr/src/sys/dev/e1000/if_em.h:96:10: fatal error: 'ifdi_if.h' file not found
#include "ifdi_if.h"
         ^~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/ROUTER
*** Error code 1
*** Error code 1

It's caused by:
device          em              # Intel PRO/1000 Gigabit Ethernet Family

Fixed by adding the iflib device:
device          iflib
device          em              # Intel PRO/1000 Gigabit Ethernet Family

Kernel compiled now without errors.
Something else that changed and affected me was that:
device          tun
has been deprecated and replaced with:
device          tuntap

This is not a bug, just a change in the kernel requiring a new device because
em now has dependency iflib. It's a little annoying that these changes happen
but they make sense in order to be able to lighten the kernel if you are not
using one of the NIC's. It's documented fine in GENERIC:
# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


More information about the freebsd-net mailing list