Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Nov 2020 19:39:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 241047] iflib: fail to compile kernel on FreeBSD 12.1-BETA2: Fatal error: ifdi_if.h file not found.
Message-ID:  <bug-241047-7501-bdb8hz7efK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241047-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241047-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

clay@milos.co.za changed:

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

--- Comment #3 from clay@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241047-7501-bdb8hz7efK>