From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Orpkg-0007aS-Ks for garchives@archives.gentoo.org; Sat, 04 Sep 2010 10:13:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48C5FE078C; Sat, 4 Sep 2010 10:13:08 +0000 (UTC) Received: from dcnode-01.unlimitedmail.net (smtp.unlimitedmail.net [94.127.184.242]) by pigeon.gentoo.org (Postfix) with ESMTP id EA354E078C for ; Sat, 4 Sep 2010 10:13:07 +0000 (UTC) Received: from scooter.muppet.show (hex.aaisp.net.uk [90.155.53.9] (may be forged)) (authenticated bits=0) by dcnode-01.unlimitedmail.net (8.14.3/8.14.3) with ESMTP id o84ACtLN003660 for ; Sat, 4 Sep 2010 12:12:56 +0200 Date: Sat, 4 Sep 2010 10:58:51 +0100 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] gawk and filefuncs Message-ID: <20100904105851.6406a06d@scooter.muppet.show> In-Reply-To: References: <20100903220429.4c949e46@scooter.muppet.show> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SOLTECSIS-MailScanner-ID: o84ACtLN003660 X-SOLTECSIS-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: 5f5d6159-59ff-41de-9182-f5be2b3c918d X-Archives-Hash: c25068b9301bbe10e589e1218f682c21 On Sat, 4 Sep 2010 00:25:32 +0200 Al wrote: > Thank you very much. That is the best explanation a read to this. It > should be deliverd with the sources. > > Still the procedure is unusual. They could apply a patch to > extensions/ filefuncs.c and exclude it for vanilla. Since it's critical for Gentoo gawk, perhaps they didn't want to depend on gawk's source distribution suddenly removing that file or otherwise changing (and patches need to be maintained up-to-date against the original, while a standalone file does not need maintenance). But this is all just my guessing. > I have a second issue. When compiling gawk on Cygwin, where is no > windows kernel, the Gentoo version of filefuncs breaks. I have to > disable it in the ebuild to get gawk compiled. > > filefuncs.o:filefuncs.c:(.text+0x1e): undefined reference to > `_make_builtin' [... lots of this ... ] > filefuncs.o:filefuncs.c:(.text+0x10f1): undefined reference to > `_update_ERRNO' collect2: ld returned 1 exit status > make: *** [filefuncs.so.0.0.1] Error 1 > > You say it is mandatory on a Gentoo system, because there are awk > scripts that rely on. Do this functions break because of the missing > kernel? What would be the workaround? How are you building it? It needs special commands because it needs to become a shared object, not an executable. Note that building that file is by no means necessary for a working gawk. And, even if you built it, it wouldn't do anything unless you specifically used the extension() gawk command to reference the object file and import the extra definitions (see the link I posted in the first email for all the gory details. Also the Makefile that comes with Gentoo's own filefuncs.c may help).