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.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_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 66F3E1F4B4 for ; Sat, 17 Apr 2021 19:19:34 +0000 (UTC) Received: from localhost ([::1]:49550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXqTc-0000BZ-V7 for normalperson@yhbt.net; Sat, 17 Apr 2021 15:19:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXqT5-0000Aj-Bi for bug-gnulib@gnu.org; Sat, 17 Apr 2021 15:18:59 -0400 Received: from freefriends.org ([96.88.95.60]:40318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXqT1-0001hw-UP for bug-gnulib@gnu.org; Sat, 17 Apr 2021 15:18:58 -0400 X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 13HJIdN5006695 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 17 Apr 2021 13:18:40 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 13HJIcY2006691; Sat, 17 Apr 2021 13:18:38 -0600 From: arnold@skeeve.com Message-Id: <202104171918.13HJIcY2006691@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Sat, 17 Apr 2021 13:18:38 -0600 To: ldv@altlinux.org, arnold@skeeve.com Subject: Re: current gnulib regex breaks in gawk References: <202102070957.1179vU6M000313@freefriends.org> <12701376.Ek0rttrokf@omega> <202102071208.117C8s0q014959@freefriends.org> <2898337.fT53xVPUIt@omega> <202102080611.1186BJYj009728@freefriends.org> <202102080636.1186aTQY012783@freefriends.org> <20210416223045.GC17630@altlinux.org> In-Reply-To: <20210416223045.GC17630@altlinux.org> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=96.88.95.60; envelope-from=arnold@skeeve.com; helo=freefriends.org 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, SPF_HELO_PASS=-0.001, SPF_NONE=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: bruno@clisp.org, bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Thanks for the report. What causes the interface to be marked as GLIBC_PRIVATE? I don't have the issue you report on either Ubuntu 18.04 or 20.04, which are the main systems I develop on. I will try to look into this some. > I wish gawk sources used some gnulib module import automation, e.g. > gnulib-tool script, like many other gnulib users do, that would make > updating gnulib modules a relatively straightforward task. Sorry to disappoint you, but I prefer to keep my project such that the support infrastructure doesn't overwhelm the actual project code. Arnold "Dmitry V. Levin" wrote: > Hi Arnold, > > On Sun, Feb 07, 2021 at 11:36:29PM -0700, arnold@skeeve.com wrote: > > arnold@skeeve.com wrote: > > > > > I still have to have the following change, otherwise I get a linkage > > > error on the gl_dyanarray_* routines. :-( > > > > > > So, at least for the nonce, my copy and Gnulib's will be out of sync. > > > Oh well. > > > > So actually, I've managed to work around this issue too. So the files > > are back in sync. Whew! > > I've just tried to build the latest commit gawk-5.1.0-260-gde598391 from > gawk-5.1-stable branch. Unfortunately, the result executable uses a > private glibc interface: > $ nm gawk |grep GLIBC_PRIVATE > U __libc_dynarray_resize@GLIBC_PRIVATE > This makes it unusable at least in GNU/Linux distributions. > > Such an unfortunate result is due to very unusual method used to integrate > dynarray module from gnulib into gawk: > - unlike gnulib's lib/dynarray.h, gawk's support/dynarray.h is empty; > - gnulib's lib/malloc/dynarray_resize.c is not imported into gawk's > support/malloc/ at all. > > I was able to make an ad-hoc fix by replacing gawk's support/dynarray.h > with gnulib's lib/dynarray.h, importing gnulib's > lib/malloc/dynarray_resize.c as support/malloc/dynarray_resize.c, > and adding malloc/dynarray_resize.c to libsupport_a_SOURCES of > support/Makefile.am, hope this helps. > > I wish gawk sources used some gnulib module import automation, e.g. > gnulib-tool script, like many other gnulib users do, that would make > updating gnulib modules a relatively straightforward task. > > > -- > ldv