From patchwork Mon May 22 05:16:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Cruz X-Patchwork-Id: 1784255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=TZ0nhZ2j; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QPm0T2MKbz20Pr for ; Mon, 22 May 2023 15:17:13 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 488983858409 for ; Mon, 22 May 2023 05:17:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 488983858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684732629; bh=Dk+444l4Avgs4St/PJ/l9WESnok+a0OXkl9Xf5gtanE=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=TZ0nhZ2jSv/kthWb5lbs1dSzuPcqkfp8LHCYgtp0APkm/MJrnGN8RsTPTuOu2cuya Ld62EMSTcMBDxVf5OalBsfVyKB+f7du52J2C3bZr92SHFC23UEM9I/qfrgFxrQ/FSI dLPYUxU3w603YqonWQndH+17tyEa3Z1Y/ErjUCgo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by sourceware.org (Postfix) with ESMTPS id 5E69B3858D20 for ; Mon, 22 May 2023 05:16:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E69B3858D20 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-56190515833so47770337b3.0 for ; Sun, 21 May 2023 22:16:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684732612; x=1687324612; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dk+444l4Avgs4St/PJ/l9WESnok+a0OXkl9Xf5gtanE=; b=j8CpU0X33DjzJjguRQfzuUWrOghPkejGCTJ0m4Q57cqWxsS+VIAmrmtE0iyYJweO6n 9ArOjxprj7kIDhb4zUSgtnctNQQftzZNPa5ivtIIQj7yJLi+KH8RcokOFCdInnH94OVm GFMvWNjVbne/nYF5GDnIXkB9CLkCekvD7oJVTfVs7CW3Q8w91Qu+C2XLd/FDFS09jDtq 3rAHufj3eTaDJCpqzxZNBao9FXevq1fL1SvEKDqB2L/hVSuPckPXuosGQgbJyVIbTXfI W12djhEl8nSFr2NS40kdombPgW6pXaDY3HHL1Ftm2cK3NoJaIyCgTk/0NnijDbd9h+/E ORyw== X-Gm-Message-State: AC+VfDzPYYAHbzovELs9ev7ruJhI0NjcMphaNj/sUtebcktkTT6jvv2j 0bfDrVNdZZLCK5opNxzTaJtcWvqIWQ== X-Google-Smtp-Source: ACHHUZ5BzN4tcxCcsvSmnFkLZM+J7RoPyUQOxnNIEB2RU/KDCgIif3N2/JUqd+s+SGKbyfj0hLB1xQ== X-Received: by 2002:a81:1cd2:0:b0:55d:a851:1aab with SMTP id c201-20020a811cd2000000b0055da8511aabmr10521981ywc.17.1684732612612; Sun, 21 May 2023 22:16:52 -0700 (PDT) Received: from jupiter.tail36e24.ts.net (dynamic-acs-24-154-253-225.zoominternet.net. [24.154.253.225]) by smtp.gmail.com with ESMTPSA id h69-20020a816c48000000b00552f7767803sm1823241ywc.58.2023.05.21.22.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 22:16:52 -0700 (PDT) Date: Mon, 22 May 2023 01:16:50 -0400 To: bug-hurd@gnu.org, libc-alpha@sourceware.org Cc: samuel.thibault@gnu.org Subject: [PATCH glibc] Fix build for hurd/thread-self.c for i386. Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_FILL_THIS_FORM_SHORT, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Flavio Cruz via Libc-alpha From: Flavio Cruz Reply-To: Flavio Cruz Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" We need to include hurd.h for libc_hidden_proto (__hurd_thread_self), introduced in https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b44c1e12524bb5de0f93294a7c24c8e41c06bb75 This the error log: In file included from : ./../include/libc-symbols.h:472:33: error: '__EI___hurd_thread_self' aliased to undefined symbol '__GI___hurd_thread_self' 472 | extern thread __typeof (name) __EI_##name \ | ^~~~~ ./../include/libc-symbols.h:468:3: note: in expansion of macro '__hidden_ver2' 468 | __hidden_ver2 (, local, internal, name) | ^~~~~~~~~~~~~ ./../include/libc-symbols.h:476:41: note: in expansion of macro '__hidden_ver1' 476 | # define hidden_def(name) __hidden_ver1(__GI_##name, name, name); | ^~~~~~~~~~~~~ ./../include/libc-symbols.h:557:32: note: in expansion of macro 'hidden_def' 557 | # define libc_hidden_def(name) hidden_def (name) | ^~~~~~~~~~ thread-self.c:27:1: note: in expansion of macro 'libc_hidden_def' 27 | libc_hidden_def (__hurd_thread_self) | ^~~~~~~~~~~~~~~ --- hurd/thread-self.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hurd/thread-self.c b/hurd/thread-self.c index af013503bf..494a127aa5 100644 --- a/hurd/thread-self.c +++ b/hurd/thread-self.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see . */ +#include #include thread_t