Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2018 08:57:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        pf@FreeBSD.org
Subject:   [Bug 229404] [pflog] [patch] pflogs kernel modules build fails with VIMAGE
Message-ID:  <bug-229404-16861@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229404

            Bug ID: 229404
           Summary: [pflog] [patch] pflogs kernel modules build fails with
                    VIMAGE
           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: pf@FreeBSD.org
          Reporter: eugen@freebsd.org

Created attachment 194720
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D194720&action=
=3Dedit
add opt_global.h

pflog's module Makefile fails to include opt_global.h to SRCS leading to bu=
ild
error for VIMAGE case. Trivial patch fixing this is attached.

cc -O2 -pipe -include opt_global.h -march=3Dcore2  -fno-strict-aliasing -We=
rror
-D_KERNEL -DKLD_MODULE -nostdinc   -I. -I/data2/src/sys -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -MD=20
-MF.depend.if_pflog.o -MTif_pflog.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx
-mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwra=
pv
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototy=
pes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-comp=
are
-Wno-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wno-error-pointer-sign
-Wno-error-shift-negative-value -Wno-error-address-of-packed-member  -mno-a=
es
-mno-avx  -std=3Diso9899:1999 -c /data2/src/sys/netpfil/pf/if_pflog.c -o
if_pflog.o
<built-in>:1:10: fatal error: 'opt_global.h' file not found
#include "opt_global.h"
         ^~~~~~~~~~~~~~
1 error generated.
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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