Date: Fri, 11 Oct 2024 19:48:32 -0400 From: Nathan Nasby <nathan.nasby@hey.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Buildworld stops build - undeclaired identifier Message-ID: <adceb77670841b7843d1b2af6d54370bb72168f6@hey.com> In-Reply-To: <6c3c140c52ee272fd7c85c843bc50506e9c5a32a@hey.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Ok I re-cloned the repository and then made sure every single file is up
to date. Now I'm getting this.
Why is everything getting corrupted after multiple times of pulling and
confirming that the repo is up to date?
===> lib/libpfctl (all)
--- libpfctl.o ---
cc -O2 -pipe -fno-common -fpic -g -gz=zlib -MD -MF.depend.libpfctl.o
-MTlibpfctl.o -std=gnu99 -Wno-format-zero-length -fstack-protector-
strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-
parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -
Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-
parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-
definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations
-Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-
variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c
/usr/src/lib/libpfctl/libpfctl.c -o libpfctl.o
/usr/src/lib/libpfctl/libpfctl.c:2922:12: error: use of undeclared
identifier 'PF_RS_NR'; did you mean 'PF_RT_NR'?
2922 | { .type = PF_RS_NR, .off = _OUT(nr), .cb =
snl_attr_get_uint32 },
| ^~~~~~~~
| PF_RT_NR
/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here
210 | PF_RT_NR = 23, /* u32 */
| ^
/usr/src/lib/libpfctl/libpfctl.c:2923:12: error: use of undeclared
identifier 'PF_RS_NAME'
2923 | { .type = PF_RS_NAME, .off = _OUT(name), .arg = (void
*)PF_ANCHOR_NAME_SIZE, .cb = snl_attr_copy_string },
| ^
/usr/src/lib/libpfctl/libpfctl.c:2926:1: error: invalid application of
'sizeof' to an incomplete type 'const struct snl_attr_parser[]'
2926 | SNL_DECLARE_PARSER(ruleset_parser, struct genlmsghdr,
fp_ruleset, ap_ruleset);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:175:2: note: expanded from macro
'SNL_DECLARE_PARSER'
175 | SNL_DECLARE_PARSER_EXT(_name, sizeof(_t), 0, _fp, _np,
NULL)
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:170:13: note: expanded from macro
'SNL_DECLARE_PARSER_EXT'
170 | .np_size = NL_ARRAY_LEN(_np),
\
| ^~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:71:33: note: expanded from macro
'NL_ARRAY_LEN'
71 | #define NL_ARRAY_LEN(_a) (sizeof(_a) / sizeof((_a)[0]))
| ^~~~
/usr/src/lib/libpfctl/libpfctl.c:2944:52: error: use of undeclared
identifier 'PFNL_CMD_GET_RULESETS'; did you mean 'PFNL_CMD_GETRULES'?
2944 | hdr = snl_create_genl_msg_request(&nw, family_id,
PFNL_CMD_GET_RULESETS);
|
^~~~~~~~~~~~~~~~~~~~~
|
PFNL_CMD_GETRULES
/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared
here
44 | PFNL_CMD_GETRULES = 6,
| ^
/usr/src/lib/libpfctl/libpfctl.c:2946:31: error: use of undeclared
identifier 'PF_RS_PATH'; did you mean 'PF_CS_NAT'?
2946 | snl_add_msg_attr_string(&nw, PF_RS_PATH, path);
| ^~~~~~~~~~
| PF_CS_NAT
/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here
295 | PF_CS_NAT = 12, /* bool */
| ^
/usr/src/lib/libpfctl/libpfctl.c:2980:52: error: use of undeclared
identifier 'PFNL_CMD_GET_RULESET'; did you mean 'PFNL_CMD_GETRULES'?
2980 | hdr = snl_create_genl_msg_request(&nw, family_id,
PFNL_CMD_GET_RULESET);
|
^~~~~~~~~~~~~~~~~~~~
|
PFNL_CMD_GETRULES
/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared
here
44 | PFNL_CMD_GETRULES = 6,
| ^
/usr/src/lib/libpfctl/libpfctl.c:2982:31: error: use of undeclared
identifier 'PF_RS_PATH'; did you mean 'PF_CS_NAT'?
2982 | snl_add_msg_attr_string(&nw, PF_RS_PATH, path);
| ^~~~~~~~~~
| PF_CS_NAT
/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here
295 | PF_CS_NAT = 12, /* bool */
| ^
/usr/src/lib/libpfctl/libpfctl.c:2983:28: error: use of undeclared
identifier 'PF_RS_NR'; did you mean 'PF_RT_NR'?
2983 | snl_add_msg_attr_u32(&nw, PF_RS_NR, nr);
| ^~~~~~~~
| PF_RT_NR
/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here
210 | PF_RT_NR = 23, /* u32 */
| ^
8 errors generated.
*** [libpfctl.o] Error code 1
make[5]: stopped making "all" in /usr/src/lib/libpfctl
make[5]: 1 error
make[5]: stopped making "all" in /usr/src/lib/libpfctl
make[4]: stopped making "all" in /usr/src/lib
--- all_subdir_lib/googletest ---
make[4]: stopped making "all" in /usr/src/lib
--- all_subdir_lib/libomp ---
make[4]: stopped making "all" in /usr/src/lib
--- all_subdir_lib/clang ---
make[5]: stopped making "all" in /usr/src/lib/clang
make[4]: stopped making "all" in /usr/src/lib
make[3]: stopped making "_generic_libs" in /usr/src
make[2]: stopped making "libraries" in /usr/src
375.76 real 1368.14 user 121.33 sys
make[1]: stopped making "buildworld" in /usr/src
make: stopped making "buildworld" in /usr/src
On October 10, 2024, Nathan Nasby <nathan.nasby@hey.com> wrote:
> So will doing git reset —hard solve it?
>
> - Nathan
>
> On October 10, 2024, Konstantin Belousov <kostikbel@gmail.com>
> wrote:On Wed, Oct 09, 2024 at 06:13:44PM +0000, Nathan Nasby wrote:
> > > Hello,
> > >
> > > When I try to compile world with the latest source, I get error of
> > > undeclared identifiers
> > >
> > > /usr/src/usr.bin/procstat/procstat_vm.c:118:7: error: use of
> > undeclared
> > > identifier ‘KVME_FLAG_SYSVSHM’
> > >
> > > 118 | KVME_FLAG_SYSVSHM ? “true : “false”);
> > > /usr/src/usr.bin/procstat/procstat_vm.c:169:25: error: use of
> > undeclared
> > > identifier ‘KVME_FLAG_SYSVSHM’
> > >
> > > 169 | if ((kve->kve_flags & KVME_FLAG_SYSVSHM) != 0)
> > >
> > > /usr/src/usr.bin/procstat/procstat_vm.c:173:25: error: use of
> > undeclared
> > > identifier ‘KVME_FLAG_POSIXSHM’
> > >
> > > 173 | if ((kve->kve_flags & KVME_FLAG_POSIXSHM) != 0)
> >
> > You have the corrupted checkout. sys/sys/user.h is out of date.
>
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" id="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=10.0,initial-scale=1.0" />
<style>
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } h1 { font-size: 1.3em; line-height: 1.2; margin: 0; } ul, ol { margin: 0; padding: 0; } ul li, ol li, li li { margin: 0 0 0 36px; } [dir=rtl] li { margin: 0 18px 0 0; } blockquote { border-color: #dfdee1; /* --color--border */ border-style: solid; border-width: 0 0 0 1px; margin: 0; padding: 0 0 0 1em; } [dir=rtl] blockquote, blockquote[dir=rtl] { border-width: 0 1px 0 0; padding: 0 1em 0 0; } pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; /* --font-family--mono */ font-size: 0.9em; margin: 0; padding: 1rem; background-color: #f3f1ef; /* --color-bg--surface */ white-space: pre-wrap; word-wrap: break-word; overflow: visible; } .message-content { font-family: -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* --font-family */ line-height: 1.4; } .attachment { display: inline-block; margin: 0; padding: 0; } .attachment__caption { padding: 0; text-align: center; } .attachment__caption a[href] { text-decoration: none; color: #333333; } .attachment--preview { width: 100%; text-align: center; margin: 0.625em 0; } .attachment--preview img { border: 1px solid #dfdee1; /* --color--border */ vertical-align: middle; width: auto; max-width: 100%; max-height: 640px; } .attachment--preview .attachment__caption { color: #716d7b; /* --color-txt--subtle */ font-size: 0.85em; margin-top: 0.625em; } .attachment--file { color: #282138; /* --color-txt */ line-height: 1; margin: 0 2px 2px 0; padding: 0.4em 1em; border: 1px solid #dfdee1; /* --color--border */ border-radius: 5px; } .permalink { color: inherit; } .txt--subtle { color: #716d7b; /* --color-txt--subtle */ } .txt--xx-small { font-size: 14px; } .flush { margin: 0; padding: 0; } .push--bottom { margin-bottom: 8px; } .border--top { border-top: 1px solid #ECE9E6; /* --color-border--solid */ } .btn { padding: 0.2em 0.4em; font-weight: 500; text-decoration: none; border-radius: 3rem; white-space: nowrap; background: #5522FA; /* --color-tertiary */ border-color: #5522FA; color: #ffffff; } .btn--email { display: inline-block; text-align: center; font-weight: 500; font-size: 1em; text-decoration: none; border-radius: 2em; white-space: nowrap; background: #5522FA; /* --color-tertiary */ border-color: #5522FA; color: #ffffff; border-top: 0.3em solid #5522FA; border-left: 1em solid #5522FA; border-bottom: 0.3em solid #5522FA; border-right: 1em solid #5522FA; } .shaded { padding: 1em; border-radius: 4px; background-color: #f6f5f3; /* --color-bg--surface */ border: 1px solid #dfdee1; /* --color--border */ } .shaded--blue { background-color: rgba(80, 162, 255, 0.2); /* --rgb-blue 0.2 */ } .shaded--red { background-color: rgba(255, 120, 120, 0.2); /* --rgb-red 0.2 */ } .strikethrough { text-decoration: line-through; }
</style>
</head>
<body>
<div class="message-content">
<div class="trix-content">
<div>Ok I re-cloned the repository and then made sure every single file is up to date. Now I'm getting this.<br><br>Why is everything getting corrupted after multiple times of pulling and confirming that the repo is up to date?<br><br>===> lib/libpfctl (all)<br>--- libpfctl.o ---<br>cc -O2 -pipe -fno-common -fpic -g -gz=zlib -MD -MF.depend.libpfctl.o -MTlibpfctl.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c /usr/src/lib/libpfctl/libpfctl.c -o libpfctl.o<br>/usr/src/lib/libpfctl/libpfctl.c:2922:12: error: use of undeclared identifier 'PF_RS_NR'; did you mean 'PF_RT_NR'?<br> 2922 | { .type = PF_RS_NR, .off = _OUT(nr), .cb = snl_attr_get_uint32 },<br> | ^~~~~~~~<br> | PF_RT_NR<br>/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here<br> 210 | PF_RT_NR = 23, /* u32 */<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2923:12: error: use of undeclared identifier 'PF_RS_NAME'<br> 2923 | { .type = PF_RS_NAME, .off = _OUT(name), .arg = (void *)PF_ANCHOR_NAME_SIZE, .cb = snl_attr_copy_string },<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2926:1: error: invalid application of 'sizeof' to an incomplete type 'const struct snl_attr_parser[]'<br> 2926 | SNL_DECLARE_PARSER(ruleset_parser, struct genlmsghdr, fp_ruleset, ap_ruleset);<br> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>/usr/include/netlink/netlink_snl.h:175:2: note: expanded from macro 'SNL_DECLARE_PARSER'<br> 175 | SNL_DECLARE_PARSER_EXT(_name, sizeof(_t), 0, _fp, _np, NULL)<br> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>/usr/include/netlink/netlink_snl.h:170:13: note: expanded from macro 'SNL_DECLARE_PARSER_EXT'<br> 170 | .np_size = NL_ARRAY_LEN(_np), \<br> | ^~~~~~~~~~~~~~~~~<br>/usr/include/netlink/netlink_snl.h:71:33: note: expanded from macro 'NL_ARRAY_LEN'<br> 71 | #define NL_ARRAY_LEN(_a) (sizeof(_a) / sizeof((_a)[0]))<br> | ^~~~<br>/usr/src/lib/libpfctl/libpfctl.c:2944:52: error: use of undeclared identifier 'PFNL_CMD_GET_RULESETS'; did you mean 'PFNL_CMD_GETRULES'?<br> 2944 | hdr = snl_create_genl_msg_request(&nw, family_id, PFNL_CMD_GET_RULESETS);<br> | ^~~~~~~~~~~~~~~~~~~~~<br> | PFNL_CMD_GETRULES<br>/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared here<br> 44 | PFNL_CMD_GETRULES = 6,<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2946:31: error: use of undeclared identifier 'PF_RS_PATH'; did you mean 'PF_CS_NAT'?<br> 2946 | snl_add_msg_attr_string(&nw, PF_RS_PATH, path);<br> | ^~~~~~~~~~<br> | PF_CS_NAT<br>/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here<br> 295 | PF_CS_NAT = 12, /* bool */<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2980:52: error: use of undeclared identifier 'PFNL_CMD_GET_RULESET'; did you mean 'PFNL_CMD_GETRULES'?<br> 2980 | hdr = snl_create_genl_msg_request(&nw, family_id, PFNL_CMD_GET_RULESET);<br> | ^~~~~~~~~~~~~~~~~~~~<br> | PFNL_CMD_GETRULES<br>/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared here<br> 44 | PFNL_CMD_GETRULES = 6,<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2982:31: error: use of undeclared identifier 'PF_RS_PATH'; did you mean 'PF_CS_NAT'?<br> 2982 | snl_add_msg_attr_string(&nw, PF_RS_PATH, path);<br> | ^~~~~~~~~~<br> | PF_CS_NAT<br>/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here<br> 295 | PF_CS_NAT = 12, /* bool */<br> | ^<br>/usr/src/lib/libpfctl/libpfctl.c:2983:28: error: use of undeclared identifier 'PF_RS_NR'; did you mean 'PF_RT_NR'?<br> 2983 | snl_add_msg_attr_u32(&nw, PF_RS_NR, nr);<br> | ^~~~~~~~<br> | PF_RT_NR<br>/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here<br> 210 | PF_RT_NR = 23, /* u32 */<br> | ^<br>8 errors generated.<br>*** [libpfctl.o] Error code 1<br><br>make[5]: stopped making "all" in /usr/src/lib/libpfctl<br>make[5]: 1 error<br><br>make[5]: stopped making "all" in /usr/src/lib/libpfctl<br><br>make[4]: stopped making "all" in /usr/src/lib<br>--- all_subdir_lib/googletest ---<br><br>make[4]: stopped making "all" in /usr/src/lib<br>--- all_subdir_lib/libomp ---<br><br>make[4]: stopped making "all" in /usr/src/lib<br>--- all_subdir_lib/clang ---<br><br>make[5]: stopped making "all" in /usr/src/lib/clang<br><br>make[4]: stopped making "all" in /usr/src/lib<br><br>make[3]: stopped making "_generic_libs" in /usr/src<br><br>make[2]: stopped making "libraries" in /usr/src<br> 375.76 real 1368.14 user 121.33 sys<br><br>make[1]: stopped making "buildworld" in /usr/src<br><br>make: stopped making "buildworld" in /usr/src<br><br></div><div>On October 10, 2024, Nathan Nasby <nathan.nasby@hey.com> wrote:</div><blockquote>So will doing git reset —hard solve it?<br><br>- Nathan<br><br>On October 10, 2024, Konstantin Belousov <kostikbel@gmail.com> wrote:On Wed, Oct 09, 2024 at 06:13:44PM +0000, Nathan Nasby wrote:<blockquote>> Hello,<br>> <br>> When I try to compile world with the latest source, I get error of<br>> undeclared identifiers<br>> <br>> /usr/src/usr.bin/procstat/procstat_vm.c:118:7: error: use of undeclared<br>> identifier ‘KVME_FLAG_SYSVSHM’<br>> <br>> 118 | KVME_FLAG_SYSVSHM ? “true : “false”);<br>> /usr/src/usr.bin/procstat/procstat_vm.c:169:25: error: use of undeclared<br>> identifier ‘KVME_FLAG_SYSVSHM’<br>> <br>> 169 | if ((kve->kve_flags & KVME_FLAG_SYSVSHM) != 0)<br>> <br>> /usr/src/usr.bin/procstat/procstat_vm.c:173:25: error: use of undeclared<br>> identifier ‘KVME_FLAG_POSIXSHM’<br>> <br>> 173 | if ((kve->kve_flags & KVME_FLAG_POSIXSHM) != 0)<br><br>You have the corrupted checkout. sys/sys/user.h is out of date.</blockquote></blockquote>
</div>
</div>
</body>
</html>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?adceb77670841b7843d1b2af6d54370bb72168f6>
