Prior to today I was running a custom kernel with:
11.1-RELEASE-p6
Then I updated the source to:
11.1-RELEASE-p10
I built the kernel and probably should have filtered the output so I'd notice that there were a number of errors, but suffice to say the final version of the kernel resulted in a lot of issues like pf firewall not working.
I recompiled the kernel and had a pile of errors like this:
I purged my source folder, downloaded 11.1-RELEASE, updated patches, and then made a clean kernel and I get the same errors.
Basically I can't seem to get my kernel to compile and the cause goes beyond my level of knowledge; Can anyone here help me?
Googling produces a number of hits with people having the same issue but no resolution. Thanks in advance!
11.1-RELEASE-p6
Then I updated the source to:
11.1-RELEASE-p10
I built the kernel and probably should have filtered the output so I'd notice that there were a number of errors, but suffice to say the final version of the kernel resulted in a lot of issues like pf firewall not working.
I recompiled the kernel and had a pile of errors like this:
Code:
/usr/src-stable/sys/dev/nvme/nvme.h:922:16: error:
taking address of packed member 'cdw10' of class or structure
'nvme_command' may result in an unaligned pointer value
[-Werror,-Waddress-of-packed-member]
*(uint64_t *)&cmd->cdw10 = lba;
s -mno-avx -std=iso9899:1999 -Werror /usr/src/sys/netpfil/pf/pf.c
/usr/src/sys/netpfil/pf/pf.c:4687:33: warning: taking address of packed member
'ip_src' of class or structure 'ip' may result in an unaligned pointer
value [-Waddress-of-packed-member]
pd2.src = (struct pf_addr *)&h2.ip_src;
^~~~~~~~~
/usr/src/sys/netpfil/pf/pf.c:4688:33: warning: taking address of packed member
'ip_dst' of class or structure 'ip' may result in an unaligned pointer
value [-Waddress-of-packed-member]
pd2.dst = (struct pf_addr *)&h2.ip_dst;
^~~~~~~~~
/usr/src/sys/netpfil/pf/pf.c:5472:47: warning: taking address of packed member
'ip_src' of class or structure 'ip' may result in an unaligned pointer
value [-Waddress-of-packed-member]
pf_map_addr(AF_INET, r, (struct pf_addr *)&ip->ip_src,
^~~~~~~~~~
I purged my source folder, downloaded 11.1-RELEASE, updated patches, and then made a clean kernel and I get the same errors.
Basically I can't seem to get my kernel to compile and the cause goes beyond my level of knowledge; Can anyone here help me?
Googling produces a number of hits with people having the same issue but no resolution. Thanks in advance!