Created attachment 230038 [details] Move include of sys/param.h before sys/module.h On src main after git: df38ada2931f, sys/module.h SHALL be included AFTER sys/param.h. Attached patch moves sys/param.h just before sys/modules.h to fix build. At least x11/nvidia-driver is affected, too, but possibly more kmod ports are affected.
^Triage: [tags] in issue Titles are deprecated.
Committed, Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0ecb98de91f1386b34df8b86afb60424b8d51761 commit 0ecb98de91f1386b34df8b86afb60424b8d51761 Author: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> AuthorDate: 2021-12-21 13:13:24 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2021-12-21 17:29:25 +0000 sysutils/acpi_call: fix build after src:df38ada2931f error: use of undeclared identifier MAXPATHLEN sys/module.h SHALL be included AFTER sys/param.h PR: 260333 Reported by: junchoon@dec.sakura.ne.jp Approved by: gelraen.ua@gmail.com (maintainer, timeout 6 days) sysutils/acpi_call/files/patch-acpi__call.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
(In reply to Fernando Apesteguía from comment #2) confirmed. Thanks!