From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: guile-lzlib fix for the 64bit Hurd / gcc-14 Date: Fri, 15 Nov 2024 16:33:21 +0100 Organization: AvatarAcademy.nl Message-ID: <87ed3ccy0u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24881"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: guile-user@gnu.org To: Mathieu Othacehe Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Nov 15 16:34:09 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tByKm-0006Jy-Lh for guile-user@m.gmane-mx.org; Fri, 15 Nov 2024 16:34:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tByKH-0000rK-Qb; Fri, 15 Nov 2024 10:33:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tByKA-0000r0-F8 for guile-user@gnu.org; Fri, 15 Nov 2024 10:33:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tByK8-0005zp-QJ; Fri, 15 Nov 2024 10:33:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=VG9+mHsw0vqmbL0JVWX2NSEjJOaGq0HnewZk35bF5PY=; b=dKWOUtkFRGjFxg tIhxQ/TjYKEb/vgRAUwfEbfoQS3OzdHpetpw/cVchte6Q3S45jsP+92Fb6URx8Iy0buTtd3YVPds+ GAr452tpSovCE5or8DYxE0G/J8o+CvLOmOgKQ0cEn70iwYzFwEh6rRjwLjED0o78jyPZ7crszR+Bn 0mxxBdLbSVER1oTzvJ3WljZaloujSXfKUWUYoPuDfgL4Z2uzTs4d8OF/UwZ4ymqlrv20+rWmB5yoV cXaEN4FRecxJJPbGrouECIekdaq0eHiNZrI2XeBbDQc2OJWCWz4JdkPDDNJ2P8TXbe2WqmdknwNs3 YPgaB0gc7odsDy53sloA==; X-Url: http://AvatarAcademy.nl X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19896 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Mathieu, I'm using the attached patch to build guile-lzlib for the 64bit Hurd. When configure tries to detect the shared library name, the Hurd's gcc-14 s= ays --8<---------------cut here---------------start------------->8--- x86_64-pc-gnu-gcc conftest.c -o conftest -llz -Wl,--verbose foo.c: In function =E2=80=98main=E2=80=99: foo.c:1:22: error: implicit declaration of function =E2=80=98LZ_decompress_= open=E2=80=99 [-Wimplicit-function-declaration] 1 | int main () { return LZ_decompress_open(); } | ^~~~~~~~~~~~~~~~~~ --8<---------------cut here---------------end--------------->8--- The solution could be to compile using -Wno-implicit-function-declaration, or to just declare the function, which is what this patch does. Greetings, Janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-build-Support-the-64bit-Hurd.patch >From 80dcd31562827f4b6d085affe9d9f22164f7ed34 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Fri, 15 Nov 2024 16:18:29 +0100 Subject: [PATCH] build: Support the 64bit Hurd. * configure.ac: When cross-compiling declare LZ_decompress_open before using it in conftest.c. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 50dc5ac..4c56768 100644 --- a/configure.ac +++ b/configure.ac @@ -32,7 +32,10 @@ AC_DEFUN([GUILE_LIBLZ_FILE_NAME], [ [if test "$cross_compiling" = yes; then # When cross-compiling, we cannot rely on 'ldd'. Instead, look # the output of 'ld --verbose', assuming we're using GNU ld. - echo 'int main () { return LZ_decompress_open(); }' > conftest.c + cat > conftest.c < | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=--