Module Name: src Committed By: rillig Date: Sat Jan 9 21:37:44 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: Makefile Added Files: src/usr.bin/xlint/lint1: oper.c Removed Files: src/usr.bin/xlint/lint1: ops.c Log Message: lint: rename ops.c to oper.c The file ops.c had previously been autogenerated. This meant that in a NetBSD build, it was generated in OBJDIR, and a build that had just updated src/usr.bin would fail. For a build that last ran on 2020-12-01, and again today, it looks like this: # link lint1/lint1 cc ... -o lint1 cgram.lo ... ops.lo ... tyname.lo /usr/bin/ld: ops.lo: in function `initmtab': ops.c:(.text+0x63): undefined reference to `STRUCT_ASSIGN' This is caused by ops.c existing in OBJDIR, so the new version in NETBSDSRCDIR is not looked at. To prevent this, use oper.c instead as the filename, which has not been used before. https://mail-index.netbsd.org/source-changes-d/2021/01/09/msg013096.html To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/Makefile cvs rdiff -u -r0 -r1.1 src/usr.bin/xlint/lint1/oper.c cvs rdiff -u -r1.1 -r0 src/usr.bin/xlint/lint1/ops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.