From unknown Sat Aug 09 13:14:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60022: configure.ac fix for C99 compatibility Resent-From: Florian Weimer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 12 Dec 2022 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60022 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 60022@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167088095216944 (code B ref -1); Mon, 12 Dec 2022 21:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2022 21:35:52 +0000 Received: from localhost ([127.0.0.1]:55553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4qSm-0004PE-9l for submit@debbugs.gnu.org; Mon, 12 Dec 2022 16:35:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:48558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4qSj-0004P7-0e for submit@debbugs.gnu.org; Mon, 12 Dec 2022 16:35:50 -0500 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 1p4qSh-0006MW-2t for bug-guile@gnu.org; Mon, 12 Dec 2022 16:35:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4qSc-0004b3-Hp for bug-guile@gnu.org; Mon, 12 Dec 2022 16:35:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670880940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=S9oPji6pDXad519gSB3VAd7tTPfGlX1SWOBGYbtmLKc=; b=Vtibo/HNRWKp+30oafZaC2P4VYvdIt/h9MukLwVH2ojZhPFT70+K+QSiooHb+alghYueH6 4v+KGIqOQS02x4mxfgUmbwppqALFbGMH1nu1v2M7jguIbF2rQQdsC3kvcf71Wy/SN+XB3x 1i040j8df6YMw1mD8YHkQ2B2skWwOsk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-144-Er6N-2VlMl-CJB7ejYLlDw-1; Mon, 12 Dec 2022 16:35:39 -0500 X-MC-Unique: Er6N-2VlMl-CJB7ejYLlDw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66C1A8038E8 for ; Mon, 12 Dec 2022 21:35:39 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C83B82166B26 for ; Mon, 12 Dec 2022 21:35:38 +0000 (UTC) From: Florian Weimer Date: Mon, 12 Dec 2022 22:35:33 +0100 Message-ID: <874ju0paoq.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This patch is needed to improve C99 compatibility: diff --git a/configure.ac b/configure.ac index b3879df1f..cc865a028 100644 --- a/configure.ac +++ b/configure.ac @@ -904,7 +904,7 @@ AC_CACHE_VAL(guile_cv_localtime_cache, AC_RUN_IFELSE([AC_LANG_SOURCE([[#include #include extern char **environ; -unset_TZ () +int unset_TZ () { char **from, **to; for (to = from = environ; (*to = *from); from++) @@ -913,7 +913,7 @@ unset_TZ () } char TZ_GMT0[] = "TZ=GMT0"; char TZ_PST8[] = "TZ=PST8"; -main() +int main() { time_t now = time ((time_t *) 0); int hour_GMT0, hour_unset; Future compilers are likely to reject implicit int types by default. Found via: Thanks, Florian From unknown Sat Aug 09 13:14:11 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Florian Weimer Subject: bug#60022: closed (Re: bug#60022: configure.ac fix for C99 compatibility) Message-ID: References: <87358aktqo.fsf@gnu.org> <874ju0paoq.fsf@oldenburg.str.redhat.com> X-Gnu-PR-Message: they-closed 60022 X-Gnu-PR-Package: guile Reply-To: 60022@debbugs.gnu.org Date: Mon, 16 Jan 2023 22:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1673907602-13732-1" This is a multi-part message in MIME format... ------------=_1673907602-13732-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60022: configure.ac fix for C99 compatibility which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60022@debbugs.gnu.org. --=20 60022: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60022 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1673907602-13732-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60022-done) by debbugs.gnu.org; 16 Jan 2023 22:19:44 +0000 Received: from localhost ([127.0.0.1]:35149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHXpQ-0003Yr-Km for submit@debbugs.gnu.org; Mon, 16 Jan 2023 17:19:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHXpO-0003Yd-DW for 60022-done@debbugs.gnu.org; Mon, 16 Jan 2023 17:19:43 -0500 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 1pHXpI-00072H-TM; Mon, 16 Jan 2023 17:19:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=9He/SqpsrL6zOhGGazlLIpUaRrhpEfIUnZ4ido/RoUk=; b=I+L15GyydArHNpAEp6o6 HeSUyURgQG9DiiJgtcx4ZrAdUi/iohptlus9tbMdo6s3vruLELesmuoCaGGdD1+uUqkmYoCW9+KdW H+MnDXzLGHN7bbwXIctfdm7DzKR5m68yuv9Ktf4hKjsbtpq2AmdKePIMnNQDLXTmFUEX70duLfgBK SlC95fJ439GOp06G2ATuCZCbocbpf1PKcWATXO9ktboARs5CUlm+sGVSJt/thjjIi1qaNcaXdO7vf 0S3/o7/enfEyZQ1qM98TwIOdOzWEGm+NhMZrSQnHRMk/Jy6rfhAzzxhbIileXPcNS6IP+7PgbZ5XH /01/fM9auaH2tQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHXpB-0007Bf-21; Mon, 16 Jan 2023 17:19:36 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Florian Weimer Subject: Re: bug#60022: configure.ac fix for C99 compatibility References: <874ju0paoq.fsf@oldenburg.str.redhat.com> Date: Mon, 16 Jan 2023 23:19:27 +0100 In-Reply-To: <874ju0paoq.fsf@oldenburg.str.redhat.com> (Florian Weimer's message of "Mon, 12 Dec 2022 22:35:33 +0100") Message-ID: <87358aktqo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60022-done Cc: 60022-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Florian, Florian Weimer skribis: > This patch is needed to improve C99 compatibility: > > diff --git a/configure.ac b/configure.ac > index b3879df1f..cc865a028 100644 > --- a/configure.ac > +++ b/configure.ac Applied, thanks. Ludo=E2=80=99. ------------=_1673907602-13732-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2022 21:35:52 +0000 Received: from localhost ([127.0.0.1]:55553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4qSm-0004PE-9l for submit@debbugs.gnu.org; Mon, 12 Dec 2022 16:35:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:48558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4qSj-0004P7-0e for submit@debbugs.gnu.org; Mon, 12 Dec 2022 16:35:50 -0500 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 1p4qSh-0006MW-2t for bug-guile@gnu.org; Mon, 12 Dec 2022 16:35:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4qSc-0004b3-Hp for bug-guile@gnu.org; Mon, 12 Dec 2022 16:35:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670880940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=S9oPji6pDXad519gSB3VAd7tTPfGlX1SWOBGYbtmLKc=; b=Vtibo/HNRWKp+30oafZaC2P4VYvdIt/h9MukLwVH2ojZhPFT70+K+QSiooHb+alghYueH6 4v+KGIqOQS02x4mxfgUmbwppqALFbGMH1nu1v2M7jguIbF2rQQdsC3kvcf71Wy/SN+XB3x 1i040j8df6YMw1mD8YHkQ2B2skWwOsk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-144-Er6N-2VlMl-CJB7ejYLlDw-1; Mon, 12 Dec 2022 16:35:39 -0500 X-MC-Unique: Er6N-2VlMl-CJB7ejYLlDw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66C1A8038E8 for ; Mon, 12 Dec 2022 21:35:39 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C83B82166B26 for ; Mon, 12 Dec 2022 21:35:38 +0000 (UTC) From: Florian Weimer To: bug-guile@gnu.org Subject: configure.ac fix for C99 compatibility Date: Mon, 12 Dec 2022 22:35:33 +0100 Message-ID: <874ju0paoq.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This patch is needed to improve C99 compatibility: diff --git a/configure.ac b/configure.ac index b3879df1f..cc865a028 100644 --- a/configure.ac +++ b/configure.ac @@ -904,7 +904,7 @@ AC_CACHE_VAL(guile_cv_localtime_cache, AC_RUN_IFELSE([AC_LANG_SOURCE([[#include #include extern char **environ; -unset_TZ () +int unset_TZ () { char **from, **to; for (to = from = environ; (*to = *from); from++) @@ -913,7 +913,7 @@ unset_TZ () } char TZ_GMT0[] = "TZ=GMT0"; char TZ_PST8[] = "TZ=PST8"; -main() +int main() { time_t now = time ((time_t *) 0); int hour_GMT0, hour_unset; Future compilers are likely to reject implicit int types by default. Found via: Thanks, Florian ------------=_1673907602-13732-1--