From nobody Mon Aug 28 08:44:39 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 4RZ3yb5twcz4rJXd for ; Mon, 28 Aug 2023 08:44:39 +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 4RZ3yb4cQNz3KqX for ; Mon, 28 Aug 2023 08:44:39 +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=1693212279; 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: in-reply-to:in-reply-to:references:references; bh=I5n6bMfmKQfJt6Hti463I6hMskSa6i63fDU026icMgM=; b=Jyee3a1YuamqZwQ358H6lWP5RGRRvXVjv/gq6W3vv+T8wCh5FRWmg7WboENsTBvseCrXlg Q0pckpGhywhwmLV8ajj931iZqVDX0jmvsl/H/JXqHVcbKrTbGFRy/eWrnZv/VMR1gzfXUc k0R4OZpbZ2lzdmk+mg0o7/Qg11gguX3yHdbEOI5rqyvRFsC6XclTLUdzetm9LI4ZtfGr8w hm5BGoAcYvGEfpUMyWr6bn2qp8gqx1QMdDK9iU5vHN9sEY96yB692sYSQUZ39D/By/mqA+ o6Yn6npwR8GtIdBq3LKjxnDpWsk41g7DHeoO+dzqyDL2/Cnm/QktWTn46k80aw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693212279; a=rsa-sha256; cv=none; b=SHBkAnG8IfDObU+3bTMuK5ATMOt3BJ4zqIp+RdE7arAqgsjK/9jlugmzuJLfCafFxaCCNP m7EdZRDzPWMmLFus7++24h47NXF37BWM+qxhvd7CXLFGIniSorS8Fypzj6y9W1YFfHDpkL 5FcpJuwOpK3jkThoj35Ea+zLXJDmJq5E9tgNUlKV9Z8lSMbMfiUVeRmKHImgzR5s/dn61t YpFOu7vf3flrsf9THbkU+iP8a5yVVUebC3Soh6COWh7AaTREk6Mwh6mDoN28pBqtTl4eh6 TeqC5kSp5g4SHyfJb2SlccURLi3aMs41QyzZ/VZN4/DhDtt04TN1rB6JHCBg4A== 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 4RZ3yb3FGzz12TW for ; Mon, 28 Aug 2023 08:44:39 +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 37S8idwO040992 for ; Mon, 28 Aug 2023 08:44:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37S8idWh040991 for bugs@FreeBSD.org; Mon, 28 Aug 2023 08:44:39 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: Mon, 28 Aug 2023 08:44:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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 --- Comment #4 from Jan Beich --- Both attachment 244373 and review D41600?id=3D126574 are not self-sufficien= t: $ cat a.c #include int main() { timerfd_create(CLOCK_MONOTONIC, 0); return 0; } $ cc a.c a.c:2:29: error: use of undeclared identifier 'CLOCK_MONOTONIC' int main() { timerfd_create(CLOCK_MONOTONIC, 0); return 0; } ^ 1 error generated. as found via www/chromium ../../third_party/wayland/src/src/event-loop.c:318:28: error: use of undecl= ared identifier 'CLOCK_MONOTONIC' timer_fd =3D timerfd_create(CLOCK_MONOTONIC, ^ ../../third_party/wayland/src/src/event-loop.c:495:2: warning: call to undeclared function 'clock_gettime'; ISO C99 and later do not support impli= cit function declarations [-Wimplicit-function-declaration] clock_gettime(CLOCK_MONOTONIC, &now); ^ ../../third_party/wayland/src/src/event-loop.c:495:16: error: use of undecl= ared identifier 'CLOCK_MONOTONIC' clock_gettime(CLOCK_MONOTONIC, &now); ^ ../../third_party/wayland/src/src/event-loop.c:620:3: warning: call to undeclared function 'clock_gettime'; ISO C99 and later do not support impli= cit function declarations [-Wimplicit-function-declaration] clock_gettime(CLOCK_MONOTONIC, &deadline); ^ ../../third_party/wayland/src/src/event-loop.c:620:17: error: use of undecl= ared identifier 'CLOCK_MONOTONIC' clock_gettime(CLOCK_MONOTONIC, &deadline); ^ Note, clock_gettime() is also affected due to namespace pollution in glibc/= musl where includes . On FreeBSD clock_gettime() was provided via -> . --=20 You are receiving this mail because: You are the assignee for the bug.=