Build error in stable/14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 Nov 2024 04:18:26 UTC
Hi, I found an issue building stable/14, my current host is running stable/13. It compiles for a poudriere jail but fails building on host. In sys/consio.h line 366 we have #define SW_B40x25 _IO('S', M_B40x25) I find M_B40x25 defined in sys/fbio.h Adding #include <sys/fbio.h> to sys/consio.h fixes the build for me. I added this include for stable/13 as well, guess I skipped reporting it back then. #ifndef _KERNEL #include <sys/types.h> #include <sys/fbio.h> #endif Relevant buildlog - --- ioctl.o --- /usr/local/bin/ccache cc -target x86_64-unknown-freebsd14.2 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-omit-frame-pointer -fno-co mmon -march=sandybridge -I/usr/obj/usr/src/amd64.amd64/lib/libsysdecode -I/usr/src/sys -I/usr/src/libexec/rtld-elf -DPF -g -gz=zlib -MD -MF.depend.ioctl.o -MTioctl.o -std=gnu99 -Wno-form at-zero-length -fstack-protector-strong -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 -Wt hread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-parameter -Qunused-arguments -c ioctl.c -o ioctl.o --- ioctl.o --- ioctl.c:400:18: error: use of undeclared identifier 'video_adapter_info_t' 400 | else if (val == CONS_ADPINFO) | ^ /usr/src/sys/./sys/consio.h:270:38: note: expanded from macro 'CONS_ADPINFO' 270 | #define CONS_ADPINFO _IOWR('c', 101, video_adapter_info_t) | ^ ioctl.c:414:18: error: use of undeclared identifier 'video_info_t' 414 | else if (val == CONS_FINDMODE) | ^ /usr/src/sys/./sys/consio.h:276:39: note: expanded from macro 'CONS_FINDMODE' 276 | #define CONS_FINDMODE _IOWR('c', 103, video_info_t) | ^ ioctl.c:434:18: error: use of undeclared identifier 'video_info_t' 434 | else if (val == CONS_MODEINFO) | ^ /usr/src/sys/./sys/consio.h:273:39: note: expanded from macro 'CONS_MODEINFO' 273 | #define CONS_MODEINFO _IOWR('c', 102, video_info_t) | ^ ioctl.c:1470:18: error: use of undeclared identifier 'M_B40x25' 1470 | else if (val == SW_B40x25) | ^ /usr/src/sys/./sys/consio.h:365:29: note: expanded from macro 'SW_B40x25' 365 | #define SW_B40x25 _IO('S', M_B40x25) | ^ ... and more my src.conf has WITH_CCACHE_BUILD=yes WITHOUT_REPRODUCIBLE_BUILD=yes WITHOUT_LIB32=yes WITH_CLANG_EXTRAS=yes WITHOUT_LLVM_TARGET_ALL=yes WITH_BSD_GREP=yes WITH_SORT_THREADS=yes WITH_CTF=yes WITH_TESTS=yes WITH_DTRACE_TESTS=yes WITH_GOOGLETEST=yes WITHOUT_GCC=yes make.conf CPUTYPE?=sandybridge # Don't die on warnings MK_WERROR=no WERROR= # for DTrace support STRIP= CFLAGS+= -fno-omit-frame-pointer WITH_CTF=1 KERNCONF=GENERIC DEBUG -- FreeBSD - the place to B...Software Developing Shane Ambler