[Bug 229404] [pflog] [patch] pflogs kernel modules build fails with VIMAGE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 29 08:58:02 UTC 2018


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

            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 at FreeBSD.org
          Reporter: eugen at freebsd.org

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

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

cc -O2 -pipe -include opt_global.h -march=core2  -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -nostdinc   -I. -I/data2/src/sys -fno-common 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -MD 
-MF.depend.if_pflog.o -MTif_pflog.o -mcmodel=kernel -mno-red-zone -mno-mmx
-mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-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-aes
-mno-avx  -std=iso9899: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

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


More information about the freebsd-pf mailing list