Page MenuHomeFreeBSD

sysutils/lockfile-progs: Fix build in poudriere
ClosedPublic

Authored by otis on Dec 11 2024, 7:05 PM.
Tags
None
Referenced Files
F165203488: D48037.id147829.diff
Thu, Aug 6, 7:09 PM
F165179563: D48037.id147841.diff
Thu, Aug 6, 2:24 PM
F165163947: D48037.id147841.diff
Thu, Aug 6, 12:25 PM
F165140433: D48037.id147829.diff
Thu, Aug 6, 9:00 AM
Unknown Object (File)
Wed, Aug 5, 6:50 AM
Unknown Object (File)
Tue, Aug 4, 7:47 AM
Unknown Object (File)
Sun, Jul 19, 9:11 PM
Unknown Object (File)
Wed, Jul 8, 1:36 PM
Subscribers
None

Details

Summary

While building in poudriere, the following error occurs:

lockfile-progs.c:312:7: error: expected expression
  312 |       char *err = 0L;
      |       ^
lockfile-progs.c:313:26: error: use of undeclared identifier 'err'
  313 |       int rc = asprintf(&err, "unrecognized error status (%d)", status);
      |                          ^
lockfile-progs.c:319:14: error: use of undeclared identifier 'err'
  319 |       return err;
      |              ^

This small patch addresses this problem.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 61093
Build 57977: arc lint + arc unit

Event Timeline

otis requested review of this revision.Dec 11 2024, 7:05 PM
otis created this revision.

Thanks for patch. I confirmed build of 0.2.0 fails with 13.3-RELEASE and your patch fix it.

This revision is now accepted and ready to land.Dec 12 2024, 6:29 AM