Bug 290790 - /usr/bin/id error compile with WITHOUT_AUDIT=yes flag
Summary: /usr/bin/id error compile with WITHOUT_AUDIT=yes flag
Status: Closed DUPLICATE of bug 290740
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 15.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 15:06 UTC by Dmitry Lukhtionov
Modified: 2025-11-04 15:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Lukhtionov 2025-11-04 15:06:17 UTC
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
```
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2025-11-04 15:18:46 UTC

*** This bug has been marked as a duplicate of bug 290740 ***