From nobody Sat Mar 14 04:06:05 2026 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fXnpT0H9lz6V5x9 for ; Sat, 14 Mar 2026 04:06:09 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fXnpS6m1rz3Fn9; Sat, 14 Mar 2026 04:06:08 +0000 (UTC) (envelope-from glebius@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773461169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YTYBE3FmSa4mso8AaCAvwmwaBmGb30HzBUsoMxIg684=; b=N95E97RGejTORyscjy+FnADWc8hGi8lzMsDy13RWtS3V6kmUNOSR9ScJD+sOMXT6jXnf6s toFqYlyrRkNxVnT5uxlfYYTNLNR0mB6vUOOreaBlx5iGk3r/EVElYmAIEWnHx3nx6kBz7p ASegI/8bZ/X68nVGtFvhjFQYJaK88VWrBZ72x+LJKNtuFAxvsJlsJ+Pl6kxqrLpWKWNjLR QU19ev4ks+mw0WOMsm8zoxFeSqSfTy3mTyQjDxXyaVwF8W+WyupEWylUm+XmSJ2WKEWS1L k2wzB/ouUz7zutXbbq0pmzdO6jJ6sWtlEihSxBJMW8E40cf4WaVDrZFoi8fpRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773461169; a=rsa-sha256; cv=none; b=MlRFV75NRdSPjpJ25GzTFbvLJXHILfnL8kNPugNqSRrUjvh4amWCGBhmBgzqlYfa07GaDQ 6qL/lInZrJQrxNiVzpOYfPnQdToFmRE3MWFalp0xhd6ksHJ2n7/5rax6+ZSW8zMrnGL9QB 2N0k7Tx6hMzoeU5gtnLLuUehDfOkSKhROFKEAotJOqZ4NCLaNIpsccIhY7AwE7lARRDEDg 4pXnm6vM4boR+iiswbcFjhZy98AGdc116ZqfPWE4Jn9XaSR39FSSf5jcty4pagS2HluPtr 4qGsSr65yqZWjgvkSP3wfDtNdajQilb0V+cZERkMX9w/ES1/XSNyLRM3UJtOsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773461169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YTYBE3FmSa4mso8AaCAvwmwaBmGb30HzBUsoMxIg684=; b=KLsm0iV5580H+uqNLCgAdBxFBVcd+tJlBPK0wxvgJeeqGv6X1FQyqrxBRmvYtzXJA4C9Sv 8um6oi+bx+k9CKgZRfJRjejmm5e4rrifF/cjZiLYxjmK4sPjfwaQSIldyRGoe8Lt0bj9Hl hTl54wrpxYjcfkzxC07DTNWXYzFKWgTDkZQDOXi9lXYFzNgd2YLS+zWdpnoCQkj+gjOz4S LWeHicpKcwvFqn8/8cqeN2zDYvnnmvOIIT/ptxGWAyAxZXLnG+w7cL31AKJ+6V4p0/q+fp +KU2i8WxSNj4d/3ciOf2KcB6dQBKq9dbuwD5E6SgBSLhcRNG19+YyzKEQK9nfA== Received: from cell.glebi.us (glebi.us [162.251.186.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: glebius) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fXnpS3fRzz16CJ; Sat, 14 Mar 2026 04:06:08 +0000 (UTC) (envelope-from glebius@freebsd.org) Date: Fri, 13 Mar 2026 21:06:05 -0700 From: Gleb Smirnoff To: Ian FREISLICH Cc: FreeBSD Current Subject: Re: buildkernel failure [in_prot.c:61:2: error: use of undeclared identifier 'RA_LOCKED'] Message-ID: References: <8439a9b9-028e-44b8-9869-4b0287ad2461@gmail.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8439a9b9-028e-44b8-9869-4b0287ad2461@gmail.com> Ian, sorry for the breakage - my fault. I have just pushed fixups. On Fri, Mar 13, 2026 at 10:54:32PM -0400, Ian FREISLICH wrote: I> Hi I> I> I get this build failure with the attached kernel config. I> I> /usr/src/sys/netinet/in_prot.c:61:2: error: call to undeclared function I> 'rw_assert'; ISO C99 and later do not support implicit function I> declarations [-Werror,-Wimplicit-function-declaration] I> 61 | INP_LOCK_ASSERT(inp); I> | ^ I> /usr/src/sys/netinet/in_pcb.h:538:30: note: expanded from macro I> 'INP_LOCK_ASSERT' I> 538 | #define INP_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, I> RA_LOCKED) I> | ^ I> /usr/src/sys/netinet/in_prot.c:61:2: error: use of undeclared identifier I> 'RA_LOCKED' I> /usr/src/sys/netinet/in_pcb.h:538:58: note: expanded from macro I> 'INP_LOCK_ASSERT' I> 538 | #define INP_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, I> RA_LOCKED) I> | ^ I> 2 errors generated. I> *** Error code 1 I> I> cpu HAMMER I> ident ROUTER I> I> makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols I> I> options SCHED_ULE # ULE scheduler I> options NUMA # Non-Uniform Memory Architecture support I> options PREEMPTION # Enable kernel thread preemption I> I> options INET # IPv6 communications protocols I> options INET6 # IPv6 communications protocols I> options IPSEC I> options IPSEC_OFFLOAD # Inline ipsec offload infra I> options ROUTE_MPATH # Multipath routing support I> options FIB_ALGO # Modular fib lookups I> options TCP_OFFLOAD # TCP offload I> options TCP_BLACKBOX # Enhanced TCP event logging I> options TCP_HHOOK # hhook(9) framework for TCP I> options TCP_RFC7413 # TCP Fast Open I> options SCTP_SUPPORT # Allow kldload of SCTP I> options KERN_TLS # TLS transmit & receive offload I> options MAC I> options MAC_NTPD I> options MAC_PORTACL I> I> options FFS # Berkeley Fast Filesystem I> options SOFTUPDATES # Enable FFS soft updates support I> options UFS_ACL # Support for access control lists I> options UFS_DIRHASH # Improve performance on big directories I> options UFS_GJOURNAL # Enable gjournal-based UFS journaling I> options ZFS I> options ZSTDIO I> options PROCFS # Process filesystem (requires PSEUDOFS) I> options PSEUDOFS # Pseudo-filesystem framework I> options TMPFS # Efficient memory filesystem I> options GEOM_LABEL # Provides labelization I> options GEOM_PART_GPT I> options EFIRT # EFI Runtime Services support I> options COMPAT_FREEBSD32 # Compatible with i386 binaries I> options COMPAT_FREEBSD4 # Compatible with FreeBSD4 I> options COMPAT_FREEBSD5 # Compatible with FreeBSD5 I> options COMPAT_FREEBSD6 # Compatible with FreeBSD6 I> options COMPAT_FREEBSD7 # Compatible with FreeBSD7 I> options COMPAT_FREEBSD9 # Compatible with FreeBSD9 I> options COMPAT_FREEBSD10 # Compatible with FreeBSD10 I> options COMPAT_FREEBSD11 # Compatible with FreeBSD11 I> options COMPAT_FREEBSD12 # Compatible with FreeBSD12 I> options COMPAT_FREEBSD13 # Compatible with FreeBSD13 I> options COMPAT_FREEBSD14 # Compatible with FreeBSD14 I> #options COMPAT_FREEBSD15 # Compatible with FreeBSD15 I> options KTRACE # ktrace(1) support I> options STACK # stack(9) support I> options SYSVSHM # SYSV-style shared memory I> options SYSVMSG # SYSV-style message queues I> options SYSVSEM # SYSV-style semaphores I> I> options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions I> options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. I> options KBD_INSTALL_CDEV # install a CDEV entry in /dev I> options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) I> options INCLUDE_CONFIG_FILE # Include this file in kernel I> I> # Debugging support. Always need this: I> options KDB I> options KDB_UNATTENDED I> options DDB I> options GDB I> options KDB_TRACE I> options ALT_BREAK_TO_DEBUGGER I> I> # Kernel dump features. I> options EKCD # Support for encrypted kernel dumps I> options GZIO # gzip-compressed kernel and user dumps I> options ZSTDIO # zstd-compressed kernel and user dumps I> options DEBUGNET # debugnet networking I> options NETDUMP # netdump(4) client support I> options NETGDB # netgdb(4) client support I> I> device pf I> device pflog I> #device pfsync I> I> # Make an SMP-capable kernel by default I> options SMP # Symmetric MultiProcessor Kernel I> device cpufreq I> I> # Bus support. I> device acpi I> device acpi_wmi I> device smbios I> device smbus I> device ichsmb I> device iicbus I> device ig4 I> options IOMMU I> device pci I> options PCI_HP # PCI-Express native HotPlug I> options PCI_IOV # PCI SR-IOV support I> I> I> # ATA controllers I> device ahci # AHCI-compatible SATA controllers I> device scbus # SCSI bus (required for ATA/SCSI) I> device ch # SCSI media changers I> device da # Direct Access (disks) I> device sa # Sequential Access (tape etc) I> device cd # CD I> device pass # Passthrough device (direct ATA/SCSI access) I> device ses # Enclosure Services (SES and SAF-TE) I> I> # NVM Express (NVMe) support I> device nvme # base NVMe driver I> device nvd # expose NVMe namespaces as disks, depends on nvme I> I> # atkbdc0 controls both the keyboard and the PS/2 mouse I> device atkbdc # AT keyboard controller I> device atkbd # AT keyboard I> device kbdmux # keyboard multiplexer I> I> # syscons is the legacy console driver, resembling an SCO console I> #device vga # VGA video card driver I> #device splash # Splash screen and screen saver support I> #device sc I> #options SC_PIXEL_MODE # add support for the raster text mode I> I> # vt is the default video console driver I> device vt I> device vt_vga I> device vt_efifb I> device vt_vbefb I> I> device agp # support several AGP chipsets I> I> options PPS_SYNC I> device uart # Generic UART driver I> I> device superio I> device gpio I> device gpiopps I> I> # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure I> device iflib I> device igc # Intel I225 2.5G Ethernet I> device ix # Intel PRO/10GbE PCIE PF Ethernet I> I> # Pseudo devices. I> device crypto # core crypto support I> device cryptodev I> device aesni # AES-NI OpenCrypto module I> device ossl I> device loop # Network loopback I> device rdrand_rng # Intel Bull Mountain RNG I> device ether # Ethernet support I> device vlan # 802.1Q VLAN support I> device tuntap # Packet tunnel. I> device md # Memory "disks" I> device gif # IPv6 and IPv4 tunneling I> device firmware # firmware assist module I> device xz # lzma decompression I> I> options EVDEV_SUPPORT I> device evdev I> device uinput I> I> # The `bpf' device enables the Berkeley Packet Filter. I> # Be aware of the administrative consequences of enabling this! I> # Note that 'bpf' is required for DHCP. I> device bpf # Berkeley packet filter I> I> # USB support I> options USB_DEBUG # enable debug msgs I> device uhci # UHCI PCI->USB interface I> device ohci # OHCI PCI->USB interface I> device ehci # EHCI PCI->USB interface (USB 2.0) I> device xhci # XHCI PCI->USB interface (USB 3.0) I> device usb # USB Bus (required) I> device usbhid # USB HID Transport I> device hkbd # HID Keyboard I> device ukbd # USB Keyboard I> device umass # Disks/Mass storage - Requires scbus and da I> I> # Sound support I> device sound # Generic sound driver (required) I> device snd_hda # Intel High Definition Audio I> I> # Netmap provides direct access to TX/RX rings on supported NICs I> device netmap # netmap(4) support I> I> device hid # Generic HID support I> device hidbus # Generic HID Bus I> I> # EFI devices I> device efidev # EFI pseudo-device I> device efirtc # EFI RTC -- Gleb Smirnoff