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=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,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 737E91F8C6 for ; Tue, 27 Jul 2021 20:19:57 +0000 (UTC) Received: from localhost ([::1]:39402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8TYS-0002mK-6m for normalperson@yhbt.net; Tue, 27 Jul 2021 16:19:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8TYO-0002m5-IU for bug-gnulib@gnu.org; Tue, 27 Jul 2021 16:19:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8TYL-0007ZQ-68 for bug-gnulib@gnu.org; Tue, 27 Jul 2021 16:19:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627417187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KGqkrjtfAkvcI0FQ1Na4GHJ5pCxnztmXl9OfG6bxhtY=; b=fgAvJ+BI/Yl9OKP4ltxidkCVqbAlyK/57UPsHoEgd60hwTaeqlJLbN9lvh8wmxQ1resPSl P7KM6//L647j96BbsYF1sxnmeNLq/pSqNBtmSNM7aq2T0p7peJTE08nvpBsK72xaHcmI6M Els8XQ0SOOPXRz7d+/eklK4iexQiKMI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-278-KXZXcZwWPV-VSOX6y8FF-Q-1; Tue, 27 Jul 2021 16:19:43 -0400 X-MC-Unique: KXZXcZwWPV-VSOX6y8FF-Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B980A3E741; Tue, 27 Jul 2021 20:19:42 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-7.ams2.redhat.com [10.36.112.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 257B860C9D; Tue, 27 Jul 2021 20:19:37 +0000 (UTC) From: Florian Weimer To: Joseph Myers Subject: Re: Undefined use of weak symbols in gnulib References: <87o8e0p92r.fsf@oldenburg.str.redhat.com> <1680226.UWtE2gOZdF@omega> <87a6piluow.fsf@oldenburg.str.redhat.com> <1882380.6EOZElgKgl@omega> Date: Tue, 27 Jul 2021 22:19:35 +0200 In-Reply-To: (Joseph Myers's message of "Tue, 27 Jul 2021 20:02:51 +0000") Message-ID: <877dhbbjc8.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=fweimer@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Received-SPF: pass client-ip=170.10.133.124; envelope-from=fweimer@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.717, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=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: Carlos O'Donell , libc-alpha@sourceware.org, bug-gnulib@gnu.org, Bruno Haible Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * Joseph Myers: > On Sat, 17 Jul 2021, Bruno Haible wrote: > >> 2) /usr/include/gnu/lib-names.h still defines LIBPTHREAD_SO. >> How about not defining LIBPTHREAD_SO, since linking with it is supposed >> to be a no-op in these newer glibc versions? > > I think LIBPTHREAD_SO is really for use with dlopen (followed by e.g. > using dlsym to look up a function by name at runtime), not linking against > (in general you need to link against the *.so name which might be a linker > script, not directly against the shared library's SONAME). > > So if there's any change regarding LIBPTHREAD_SO, I think the natural one > would be to define it to LIBC_SO (I hope the dlopen/dlsym case works > regardless of whether that change is made or not). That is in an interesting idea. I like it. It doesn't help with Bruno's use case, detecting the integrated libpthread with the preprocessor. Carlos, do you think we can still slip in a definition of PTHREAD_IN_LIBC in (for __USE_GNU)? Thanks, Florian