From nobody Wed Jul 24 19:38:25 2024 X-Original-To: bugs@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 4WTkp96M27z5QHrr for ; Wed, 24 Jul 2024 19:38:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTkp953s6z4Tq5 for ; Wed, 24 Jul 2024 19:38:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721849905; a=rsa-sha256; cv=none; b=WL8ieki6RdEVYBWSgshayBDNdzrCVMND6VCMbIhnXS/a0E26cykOQHTfpug+N9P1HHXgm2 2eX68lhWqWm9wH+SJjnw+7cIhwysW9lP28i/9CU9BneUtXJ7/46AaOgJRMtDsTeBEdOb/k gVl4vBtXzc1ekVFmWxgKY6xgDeAYqyQitE4h0nSLGvtbKzaYMQDRA55gNoQUSYzbePo19h HnuxpRUVkGUd7MKwe1kKRDV6BwVMDnWpGGiUkhxvsQc5iTuI4O3BLC5v2PqNYN81bQYruW yxnPRbZdClkgmiH0ZvAwT+FVK6MeGkPPshyjdUh0m5B9KxY4gDsbU9QRCUfI4Q== 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=1721849905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iodT2e3nomO+v+KDLgTT5MyhzmVNTh5gWJbpsVqGuS8=; b=PHRU5QIYWyguzxx/aEA/Sxl/ZtXyvxyv1i5PHxS7E5V9Mcqz80dLoJOaBKY5O9rcBHnmhU i6uwQK1z7OHh5hfOFtpUHqj++6w0+ww4hZmf5f0GiQgbyUKfLuQZ6CGZf43EffIa9EWBf2 raRreF9KKePSPSANniimMW6NphNEIXAI7hnd+D/CHHjg+1fxUgG6+OOv5ZFD9BxGFXhMlI kNdysiAjfzlWw+ko46SYwB87uzqGd4dqcQouGOjNcV+cCr/u6w9GJCsdGrpt1OpauPUt/0 TDnPY1egs6l7K/Dz5MrpF82tXLjpS1J16889BjYjrE5Gvg4JXIM8DBkJ+Yk5Kg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WTkp94YX7zNyk for ; Wed, 24 Jul 2024 19:38:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46OJcPuV088390 for ; Wed, 24 Jul 2024 19:38:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46OJcP2X088387 for bugs@FreeBSD.org; Wed, 24 Jul 2024 19:38:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280432] needs and but does not include them Date: Wed, 24 Jul 2024 19:38:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mhjacobson@me.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280432 Bug ID: 280432 Summary: needs and but does not include them Product: Base System Version: 13.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mhjacobson@me.com Including from userland fails unless you've previously inclu= ded and . ( brings in .) should include the headers for the types and macros it references so that it can be independently included. $ freebsd-version -k 13.3-RELEASE $ cc -c -x c - #include ^D In file included from :1: /usr/include/sys/linker.h:347:22: error: use of undeclared identifier 'MAXPATHLEN' 347 | char name[MAXPATHLEN]; | ^ /usr/include/sys/linker.h:350:5: error: unknown type name 'caddr_t' 350 | caddr_t address; /* load address */ | ^ /usr/include/sys/linker.h:351:5: error: unknown type name 'size_t' 351 | size_t size; /* size in bytes */ | ^ /usr/include/sys/linker.h:352:26: error: use of undeclared identifier 'MAXPATHLEN' 352 | char pathname[MAXPATHLEN]; | ^ /usr/include/sys/linker.h:358:5: error: unknown type name 'u_long'; did you mean 'long'? 358 | u_long symvalue; | ^ /usr/include/sys/linker.h:359:5: error: unknown type name 'size_t' 359 | size_t symsize; | ^ 6 errors generated. --=20 You are receiving this mail because: You are the assignee for the bug.=