Bug 290787 - [patch] 'id' fails to build with AUDIT disabled.
Summary: [patch] 'id' fails to build with AUDIT disabled.
Status: Closed DUPLICATE of bug 290740
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.3-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 11:33 UTC by iron.udjin
Modified: 2025-11-04 11:36 UTC (History)
0 users

See Also:


Attachments
id.c.patch (575 bytes, patch)
2025-11-04 11:33 UTC, iron.udjin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2025-11-04 11:33:50 UTC
Created attachment 265147 [details]
id.c.patch

When audit is disabled in /etc/src.conf (WITHOUT_AUDIT=YES), 'id' fails to build:

OS: 14.3-STABLE

cc -target x86_64-unknown-freebsd14.3 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -O2 -pipe -march=native -fno-common   -DRESCUE -I/usr/obj/usr/src/amd64.amd64/lib/libifconfig -I/usr/obj/usr/src/amd64.amd64/lib/libiscsiutil -DNDEBUG -ffile-prefix-map=/usr/src=/usr/src -ffile-prefix-map=/usr/obj/usr/src/amd64.amd64/rescue/rescue/usr/src=/usr/obj -MD  -MF.depend.id.o -MTid.o -std=gnu99 -Wno-format-zero-length -Wsystem-headers -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.o
/usr/src/usr.bin/id/id.c:161:16: error: use of undeclared identifier 'Aflag'
  161 |         if ((cflag || Aflag || Mflag) && argc > 0)
      |                       ^
/usr/src/usr.bin/id/id.c:164:10: error: use of undeclared identifier 'Aflag'
  164 |         combo = Aflag + Gflag + Mflag + Pflag + gflag + pflag + uflag;
      |                 ^
2 errors generated.
*** Error code 1
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-11-04 11:36:33 UTC

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