Discussion:
[Bug 230009] [patch] [ipfw_pmod] support module build outside of kernel build environment for VIMAGE-enabled kernel
(too old to reply)
b***@freebsd.org
2018-07-24 10:57:00 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

Bug ID: 230009
Summary: [patch] [ipfw_pmod] support module build outside of
kernel build environment for VIMAGE-enabled kernel
Product: Base System
Version: 11.2-STABLE
Hardware: Any
OS: Any
Status: New
Keywords: easy, patch-ready
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: ***@FreeBSD.org
Reporter: ***@freebsd.org
CC: ***@FreeBSD.org
Flags: mfc-stable11?

Created attachment 195415
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195415&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-08-13 09:11:31 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

--- Comment #1 from Andrey V. Elsukov <***@FreeBSD.org> ---
I think this problem should be solved in general, because not only ipfw modules
are affected with this.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-08-13 11:10:46 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

Marek Zarychta <***@plan-b.pwste.edu.pl> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@plan-b.pwste.edu.
| |pl

--- Comment #2 from Marek Zarychta <***@plan-b.pwste.edu.pl> ---
(In reply to Andrey V. Elsukov from comment #1)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228854
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-08-13 11:56:11 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

--- Comment #3 from Andrey V. Elsukov <***@FreeBSD.org> ---
Created attachment 196154
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196154&action=edit
Enable VIMAGE by default

What about something like this? Untested yet.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-08-13 12:48:06 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

--- Comment #4 from Eugene Grosbein <***@freebsd.org> ---
(In reply to Andrey V. Elsukov from comment #3)

Looks good.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-08-13 13:28:17 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

--- Comment #5 from Marek Zarychta <***@plan-b.pwste.edu.pl> ---
(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.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-11-26 18:00:34 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

--- Comment #6 from Eugene Grosbein <***@freebsd.org> ---
Hi!

Just notifying of awaiting PR. FreeBSD12 is affected too.
--
You are receiving this mail because:
You are on the CC list for the bug.
b***@freebsd.org
2018-11-26 18:00:45 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230009

Eugene Grosbein <***@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Flags| |mfc-stable12?
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...