From nobody Sat Aug 26 23:26:53 2023 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 4RYCdT4Xbcz4rBCp for ; Sat, 26 Aug 2023 23:26:53 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYCdT2bCWz3JTw for ; Sat, 26 Aug 2023 23:26:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693092413; 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=OgDhuKEFf97FlZHD3FoXmZSXW/tL3du7e3BTv9nHN5Y=; b=rmI6oZ0Ptvf6LGDAhRMKqBVSgyBUMmsn1xrRus07wHX8KSV4SFhjsdnIBVewMGadkAOV6J zX+b9jMSmYc2S0wVGFTl0Dtvl/UdzblQzq5ImYwrj4LukuCi3yqW60wo/7ak0S4TDtHP+g TIPjBoElAlawBLTvNUZEWYCFp/phjbhZwTQhRkjzJ1aKVANDxBIiLGxwpweS+O/uy+zZko U8ZZs2/n1Xs1Fsu35qH95yrYLmhgCBJWRxz/UmPT8ZY1iHkJ9TIhdFfx3gBjv0E6l9cL+M DVwjXYH44Be5xvRkmEDaUUHzPTpKTFxJcmSKcKUBhkbJRJkvmrkWBSfH9FdFqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693092413; a=rsa-sha256; cv=none; b=vNUaxlru20VTurFvUq+gSni5bmvVQuehZV9KwRxYktFqRjMPRAizP0uWNkZ/O6mx25Ab3N p/7cJb+b8/R3bJtLlCnjHH6mY80K5fkb9qlcjvx46Tq9IF1PXpbB+ZeSR2y60J0UGQVbEI W4O1TxWZAaN5veb2Qtt3M9brNAdMri7vOLPuNYHTIpkz9uLsiop2BNLHqNiOwF1907SgOn Et+LC1SRypDX6cfD2pvA1aIfACU4pu9lQIbnzc8wiI8k7yWt5HfeUTkE3rKZ7L05XXGZzj VCuWagVj12hWfmJ9aSY9Hdut2E+zEQXq0L1tq42nG23ujaI4LPzsLIAVhMqEzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RYCdT1ClDztpp for ; Sat, 26 Aug 2023 23:26:53 +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 37QNQrRO047488 for ; Sat, 26 Aug 2023 23:26:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37QNQrT9047487 for bugs@FreeBSD.org; Sat, 26 Aug 2023 23:26:53 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 273373] fails to build in POSIX mode due to namespace pollution Date: Sat, 26 Aug 2023 23:26:53 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org 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 cc 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=3D273373 Bug ID: 273373 Summary: fails to build in POSIX mode due to namespace pollution Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: jfree@freebsd.org While timerfd_* isn't part of POSIX consumers may expect to build fine given epoll-shim, glibc, musl don't error out. Found via x11/mako. $ cat a.cc #define _XOPEN_SOURCE 700 #include int main() {} $ cc a.c In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:49: In file included from /usr/include/sys/filedesc.h:41: In file included from /usr/include/sys/lock.h:37: /usr/include/sys/_lock.h:36:2: error: unknown type name 'u_int' u_int lo_flags; ^ /usr/include/sys/_lock.h:37:2: error: unknown type name 'u_int' u_int lo_data; /* General class specific data. */ ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:49: In file included from /usr/include/sys/filedesc.h:41: /usr/include/sys/lock.h:62:2: error: unknown type name 'u_int' u_int lc_flags; ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:49: In file included from /usr/include/sys/filedesc.h:43: /usr/include/sys/priority.h:133:2: error: unknown type name 'u_char'; did y= ou mean 'char'? u_char pri_class; /* Scheduling class. */ ^ /usr/include/sys/priority.h:134:2: error: unknown type name 'u_char'; did y= ou mean 'char'? u_char pri_level; /* Normal priority level. */ ^ /usr/include/sys/priority.h:135:2: error: unknown type name 'u_char'; did y= ou mean 'char'? u_char pri_native; /* Priority before propagation. */ ^ /usr/include/sys/priority.h:136:2: error: unknown type name 'u_char'; did y= ou mean 'char'? u_char pri_user; /* User priority based on p_cpu and p_nice.= */ ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:49: /usr/include/sys/filedesc.h:53:2: error: unknown type name 'u_long'; did you mean 'long'? u_long *fc_ioctls; /* per-descriptor allowed ioctls */ ^ /usr/include/sys/filedesc.h:97:2: error: unknown type name 'u_int' u_int pwd_refcount; ^ /usr/include/sys/filedesc.h:108:2: error: unknown type name 'u_int' u_int pd_refcount; ^ /usr/include/sys/filedesc.h:109:2: error: unknown type name 'u_short'; did = you mean 'short'? u_short pd_cmask; /* mask for file creation */ ^ /usr/include/sys/filedesc.h:118:2: error: unknown type name 'u_long'; did y= ou mean 'long'? NDSLOTTYPE *fd_map; /* bitmap of free fds */ ^ /usr/include/sys/filedesc.h:86:20: note: expanded from macro 'NDSLOTTYPE' #define NDSLOTTYPE u_long ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:55: /usr/include/sys/osd.h:40:2: error: unknown type name 'u_int' u_int osd_nslots; /* (c) */ ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:57: /usr/include/sys/rtprio.h:74:2: error: unknown type name 'u_short'; did you mean 'short'? u_short type; /* scheduling class */ ^ /usr/include/sys/rtprio.h:75:2: error: unknown type name 'u_short'; did you mean 'short'? u_short prio; ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:58: /usr/include/sys/runq.h:73:54: error: unknown type name 'u_char'; did you m= ean 'char'? void runq_remove_idx(struct runq *, struct thread *, u_char *); ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:62: /usr/include/sys/signalvar.h:54:2: error: unknown type name 'sig_t' sig_t ps_sigact[_SIG_MAXSIG]; /* Disposition of signals. */ ^ /usr/include/sys/signalvar.h:67:2: error: unknown type name 'u_int' u_int ps_refcnt; ^ In file included from a.c:2: In file included from /usr/include/sys/timerfd.h:33: In file included from /usr/include/sys/proc.h:70: /usr/include/sys/ucred.h:98:2: error: unknown type name 'u_int' u_int cr_version; /* structure layout version */ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 20 errors generated. --=20 You are receiving this mail because: You are the assignee for the bug.=