From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C38211F5AE for ; Tue, 27 Apr 2021 23:22:52 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CEFEF3989CAE; Tue, 27 Apr 2021 23:22:51 +0000 (GMT) Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.166]) by sourceware.org (Postfix) with ESMTPS id 78D373938C11; Tue, 27 Apr 2021 23:22:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 78D373938C11 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=clisp.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=bruno@clisp.org ARC-Seal: i=1; a=rsa-sha256; t=1619565765; cv=none; d=strato.com; s=strato-dkim-0002; b=E46lTazaXw4igh/VGp2VRf2oRL0UyQDAUzquVHazCiT+ynVgk643T8rczUCSgvIfh5 KWFu0upH7s3BCfyZ63+blbYn7lR8IfeDx0uwARX7aNOcgXkdWN3b9h7aftVjJWgsqZqQ M2KtVQRSL55QzCtAjCJ1q1Vr3ojkX+fdF4MmXhuAO1aec4SsZpg4D8FW7usUTRVxrr5g H9vmADsyhV+Rw5Jn9zyldvOYefZFPciZqQvhTC5FCvbR8084S1dqw9hcvkCIysb3poWx ParHIrqwi7FvucbE/OGQ8Xcf53KzB0+gG36XqA9x3IdZMxgv3v2AIXa88YfF7xhJPaNA hVuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1619565765; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=pfHmIynSU6cpovbPYgLjJgg7+VMv+psD+QwxoR3g08c=; b=mXGG6NzhiROV6ijs2iCbxgD+k6zuzECurBQ0siXcCAiZTSClVcyUuyZ3cEBAEIIQH1 0E7Ndu85AIFIsOyDP9938yZ/fQe1lMDGJi4bMLYCQSq9k7Ee7fTHeAj/yt4ylVqxlqpl sgNzYmRC9hobSR3gdsRCsuKj44SHrQRkFWjXd+MB+HK2/JDpEZFIj/yRZEGdMCcWYRun pJP1hh5tK4/BLYm51ghy+Nb6QlqTlfQtCBNngLxymMA+KrbGsrIvY8LKa3mdgTRSmND5 g7H8u/f8D/BAoskJyAw9lKOX4xBYBz1dzBQPqyegxNoKlSbr7/QWGDb4bXV9RJj1lHfT SHoQ== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1619565765; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=pfHmIynSU6cpovbPYgLjJgg7+VMv+psD+QwxoR3g08c=; b=KSQ5C+VWnTHcVdjCIPpfXt0OBQ1RUXUQbh7s6PI2foj/SfkFIEegTjT7FhEhsBIRXl b/cEkLz23lY3UnJk629+6vFzO7xppfAqjJsJuk0klQLqnvHWRMdysl0GOwRgPz556cjB WyetdjFwZ0dCZ9B11TIDxYPb6gchQTzdC1wQcS4c8pVR5YnI5ummksSqNnYUZhEE3KMB Af297iyUA1AvG//0jh3NMjzCooyQjGHLskQ7nN+Tkx9DChlAmar0ZlROc81V9yhJdr0P JXXqoB6W3XPyOUkuzwJ673XbhgpYzRjJHTHOa7PoFgujydskoyLK9GFsb6tlEnf0GAI/ GkPQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf3z5NW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.25.2 DYNA|AUTH) with ESMTPSA id 905ad3x3RNMi3Ou (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 28 Apr 2021 01:22:44 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: Undefined use of weak symbols in gnulib Date: Wed, 28 Apr 2021 01:22:44 +0200 Message-ID: <3329251.x8xr5TbW7N@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <87fszc8a1z.fsf@igel.home> References: <87o8e0p92r.fsf@oldenburg.str.redhat.com> <87fszc8a1z.fsf@igel.home> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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: , Cc: Florian Weimer , libc-alpha@sourceware.org, Andreas Schwab , binutils@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Andreas Schwab wrote: > It is likely that the use of weak pthread symbols is not confined to > gnulib. Yes. Between 2000 and 2010 I heard a couple of times "Multithreading support is only available through libpthread. It is a common technique to use weak symbols to distinguish a program linked with -lpthread from a program not linked with -lpthread (and such a program is single-threaded)". Also, people were saying "dlopen of libpthread does not work" [1][2]. Bruno [1] https://jmmv.dev/2004/11/dynamic-open-of-libpthread-considered.html [2] https://sourceware.org/bugzilla/show_bug.cgi?id=18192