| Summary: | Cannot build 14-STABLE kernel due to ld: error: undefined symbol: ktrcapfail (ktrace) | ||
|---|---|---|---|
| Product: | Base System | Reporter: | jakub_lach |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | emaste, jfree |
| Priority: | --- | ||
| Version: | 14.0-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Adding options KTRACE # ktrace(1) support allowed kernel to build/link/install. FreeBSD 14.1-STABLE #1 stable/14-0418d7a09 Fixed by kib@ commit 00cf2f3092e462b8840b8cb9c3d86c471da065e5 Author: Konstantin Belousov <kib@FreeBSD.org> Date: Wed Apr 24 22:06:14 2024 +0300 vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled (cherry picked from commit 6b0cf2a2379b86b67269ed4549057cd6d69490e5) |
Hello, I'm on FreeBSD 14.1-STABLE #0 stable/14-91df7d335 with custom kernel with KTRACE removed, after updating git I wanted to rebuild the same kernel and world, kernel failed with: --- kernel --- linking kernel ld: error: undefined symbol: ktrcapfail >>> referenced by vfs_lookup.c >>> vfs_lookup.o:(namei) >>> referenced by vfs_lookup.c >>> vfs_lookup.o:(namei_setup) >>> referenced by vfs_lookup.c >>> vfs_lookup.o:(vfs_lookup) >>> referenced 3 more times *** [kernel] Error code 1 I suspect recent ktrace changes.