From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Janneke Nieuwenhuizen Newsgroups: gmane.lisp.guile.user Subject: guile-lzlib fix for native build with gcc-14 Date: Sat, 07 Dec 2024 09:57:44 +0100 Organization: AvatarAcademy.nl Message-ID: <87ed2jan07.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="38470"; 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 Sat Dec 07 09:58:53 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 1tJqeK-0009nw-49 for guile-user@m.gmane-mx.org; Sat, 07 Dec 2024 09:58:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJqdY-0000U7-QL; Sat, 07 Dec 2024 03:58:04 -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 1tJqdW-0000QC-L5 for guile-user@gnu.org; Sat, 07 Dec 2024 03:58:02 -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 1tJqdV-0002at-8Q; Sat, 07 Dec 2024 03:58:01 -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=jvj0NnCkzD4V4eyhwMwcIIlDqbrPosPgJGfpyS3RZl4=; b=UtKrhXT6GJCydZ dNmVFMi2lnCU8zWwv+8Hyzms0kbhqgi+0a24N739OP1vhwd9fV+VCNI5gxpuk/mnttw8TxIUbk5fw frIToaIRtTlWvsfGeypybdJvNzJ7BH1xCOjRp20oNdG1nt74S6tccH3exk1EAVg8fnZlbPxe0ucnM 0XMZ/hiMjh1SLXjOG0NSMcaPXm8vNz/eMON+ZHgeKTvm62KjFKDDyclxhztzuUsHY1Px2mnbmASfa JvRbl8Lz/LOnSkKxpAruHm8barGEtby2wK62P0t6/D6BUcRISsd7ErfAnr07xaaEuFv+5BrBqkhP4 yJ4K6jimevnXiZ2PKbtA==; 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:19939 Archived-At: --=-=-= Content-Type: text/plain Hi Mathieu, This is a bit of a deja-vu, I'm using the attached patch for a native build of guile-lzlib with gcc-14 on "core-packages-team". Greetings, Janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-build-Support-gcc-14.patch >From 8b0db8997007d427ce9e77cb8191e698d1c47f02 Mon Sep 17 00:00:00 2001 From: "janneke@gnu.org" Date: Sat, 7 Dec 2024 09:48:49 +0100 Subject: [PATCH] build: Support gcc-14. * configure.ac: When compiling natively 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 4c56768..ffdab1d 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,10 @@ EOF else old_LIBS="$LIBS" LIBS="-llz" - AC_LINK_IFELSE([AC_LANG_SOURCE([int main () { return LZ_decompress_open(); }])], + AC_LINK_IFELSE([AC_LANG_SOURCE([ +int LZ_decompress_open (); +int main () { return LZ_decompress_open(); } +])], [guile_cv_liblz_libdir="`ldd conftest$EXEEXT | grep liblz | sed '-es/.*=> \(.*\) .*$/\1/g'`"]) LIBS="$old_LIBS" fi]) -- 2.46.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=--