Created attachment 195415 [details] proposed fix Let's "make VIMAGE=yes" in sys/modules/ipfw_pmod/ build VIMAGE-enabled kernel module. Now it builds without errors but does not kldload with an error: link_elf_obj: symbol layer3_chain undefined Attached patch fixes this.
I think this problem should be solved in general, because not only ipfw modules are affected with this.
(In reply to Andrey V. Elsukov from comment #1) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228854
Created attachment 196154 [details] Enable VIMAGE by default What about something like this? Untested yet.
(In reply to Andrey V. Elsukov from comment #3) Looks good.
(In reply to Eugene Grosbein from comment #4) Sorry for unintentionally adding comment 2, this issue/fix is probably irrelevant to bug 228854, which doesn't appear to be much serious. BTW 11-STABLE patched with this ae@ fix builds fine both with and without options VIMAGE.
Hi! Just notifying of awaiting PR. FreeBSD12 is affected too.
VIMAGE support is enabled by default in supported branches.