[Bug 290790] /usr/bin/id error compile with WITHOUT_AUDIT=yes flag

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Nov 2025 15:06:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290790

            Bug ID: 290790
           Summary: /usr/bin/id error compile with WITHOUT_AUDIT=yes flag
           Product: Base System
           Version: 15.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dmitryluhtionov@gmail.com

WITHOUT_AUDIT=yes in /etc/src.conf

```
cc -fpie -DPIC   -O2 -pipe -fno-common   -fPIE
-ffile-prefix-map=/usr/src=/usr/src -ffile-prefix-map=/usr/obj/usr/src=/usr/obj
-MD  -MF.depend.id.pieo -MTid.pieo -std=gnu17 -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 -Wno-error=cast-function-type-mismatch 
-Qunused-arguments      -c /usr/src/usr.bin/id/id.c -o id.pieo
/usr/src/usr.bin/id/id.c:149:16: error: use of undeclared identifier 'Aflag'
  149 |         if ((cflag || Aflag || Mflag) && argc > 0)
      |                       ^
/usr/src/usr.bin/id/id.c:152:10: error: use of undeclared identifier 'Aflag'
  152 |         combo = Aflag + Gflag + Mflag + Pflag + gflag + pflag + uflag;
      |                 ^
2 errors generated.
*** Error code 1
```

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