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: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1D6FF1F5AE for ; Thu, 29 Apr 2021 06:34:01 +0000 (UTC) Received: from localhost ([::1]:35618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc0FL-0003DL-L1 for normalperson@yhbt.net; Thu, 29 Apr 2021 02:33:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc0F6-0003D6-58 for bug-gnulib@gnu.org; Thu, 29 Apr 2021 02:33:44 -0400 Received: from smtp2.cs.stanford.edu ([171.64.64.26]:53502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc0En-0003qe-DL for bug-gnulib@gnu.org; Thu, 29 Apr 2021 02:33:43 -0400 Received: from mail-io1-f48.google.com ([209.85.166.48]:40834) by smtp2.cs.Stanford.EDU with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1lc0Eh-0002A1-GB for bug-gnulib@gnu.org; Wed, 28 Apr 2021 23:33:20 -0700 Received: by mail-io1-f48.google.com with SMTP id e186so11633134iof.7 for ; Wed, 28 Apr 2021 23:33:19 -0700 (PDT) X-Gm-Message-State: AOAM531+vSiSjkpTnldvZIZZlqm+ZbsBlu92z5/zOsR6O8GrwtNK8RKL l8kmYw7iVagKp++urQK15D4al3leUmCTFe62nno= X-Google-Smtp-Source: ABdhPJx4TR8BT79Jdsio+HSHKvBhD60xa9RNMr2pB3NyZr0D7i6qMPxugMtdXx/Jr2j4LqP2s1X0qRt+Wksrc8k2IdA= X-Received: by 2002:a02:9643:: with SMTP id c61mr30361438jai.124.1619677998906; Wed, 28 Apr 2021 23:33:18 -0700 (PDT) MIME-Version: 1.0 References: <87o8e0p92r.fsf@oldenburg.str.redhat.com> <19516512.8WduG5kV5J@omega> <875z06lu3v.fsf@oldenburg.str.redhat.com> <2800926.834q8TerIH@omega> In-Reply-To: <2800926.834q8TerIH@omega> From: Ben Pfaff Date: Wed, 28 Apr 2021 23:33:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Undefined use of weak symbols in gnulib To: Bruno Haible Content-Type: text/plain; charset="UTF-8" X-Scan-Signature: 4c7a780eb20f40a19c8376fd8d8b00d5 Received-SPF: pass client-ip=171.64.64.26; envelope-from=blp@cs.stanford.edu; helo=smtp2.cs.Stanford.EDU X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , bug-gnulib , libc-alpha@sourceware.org, binutils@sourceware.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Wed, Apr 28, 2021 at 7:40 AM Bruno Haible wrote: > So, in the normal cases (link with '-lpthread', link without '-lpthread', > and even with dlopen()), everything will work fine. The only problematic > case thus is the the use of LD_PRELOAD. Right? > > I think few packages in a distro will be affected. And few users are > using LD_PRELOAD on their own, because since the time when glibc > started to use 'internal' calls to system calls where possible, there > are not a lot of uses of LD_PRELOAD that still work. One important use of LD_PRELOAD is for the "fakeroot" program that Debian and derived distributions tend to use to build packages. I haven't followed along carefully enough to know whether this is likely to cause problems for what we're talking about now.