GNU bug report logs - #29015
LONG_LONG_MAX/MIN not defined on systems using musl libc

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: newbluemoon <blaumolch@HIDDEN>; dated Thu, 26 Oct 2017 16:25:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Oct 2017 16:24:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 26 12:24:56 2017
Received: from localhost ([127.0.0.1]:35325 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e7kxj-0005B2-TU
	for submit <at> debbugs.gnu.org; Thu, 26 Oct 2017 12:24:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <blaumolch@HIDDEN>) id 1e7kbe-0004bb-EX
 for submit <at> debbugs.gnu.org; Thu, 26 Oct 2017 12:02:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <blaumolch@HIDDEN>) id 1e7kbT-0008Vt-Kk
 for submit <at> debbugs.gnu.org; Thu, 26 Oct 2017 12:02:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:51089)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <blaumolch@HIDDEN>)
 id 1e7kbT-0008Vl-Hb
 for submit <at> debbugs.gnu.org; Thu, 26 Oct 2017 12:01:55 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48358)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <blaumolch@HIDDEN>) id 1e7kbJ-0000vn-Rc
 for bug-guile@HIDDEN; Thu, 26 Oct 2017 12:01:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <blaumolch@HIDDEN>) id 1e7kbG-0008Ok-NA
 for bug-guile@HIDDEN; Thu, 26 Oct 2017 12:01:45 -0400
Received: from mx2.mailbox.org ([80.241.60.215]:52587)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <blaumolch@HIDDEN>)
 id 1e7kbG-0008OE-Dy
 for bug-guile@HIDDEN; Thu, 26 Oct 2017 12:01:42 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id 6CA134C993
 for <bug-guile@HIDDEN>; Thu, 26 Oct 2017 18:01:40 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-transfer-encoding:content-language:content-type
 :content-type:mime-version:date:date:message-id:subject:subject
 :from:from:received; s=mail20150812; t=1509033685; bh=/S5/2DnZyG
 qkZYxF2cBoQs8zHDYGd9MyCBS8+t2LavA=; b=fEiL0e58czs9W+iX8USaq1zgFw
 e7gWUpCoO4//vs727N4Jd1j5S3x32PfHqImJODxsff+j9KsZN6l2VPcs51fClW6v
 RkxbcHADduHcEtGe+FZ5ZKoeuPT/uj/XuJw2FmeEKtv9djXO3J+OlMztB2Ws4iSy
 tgwKxhhgxmvjgr9z9kIPT3tF7QUuviuNUuC+gwqw2RM8Bo9QO2xSybQNlZ8rKpZb
 LX0mKtn1/08t9FgAq8aBVLX0nW0OPl7oQXM6sTju6QdRfhy7ubjD9Q/zSzqRDGzZ
 gWV7eXK4PWgv4H2A6taR9fZwk8F/nkuIAlZkkCPWfXxhzC3KpluVkht424vQ==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp1.mailbox.org ([80.241.60.240])
 by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de
 [80.241.56.117]) (amavisd-new, port 10030)
 with ESMTP id PYIKI-rz5jG8 for <bug-guile@HIDDEN>;
 Thu, 26 Oct 2017 18:01:25 +0200 (CEST)
To: bug-guile@HIDDEN
From: newbluemoon <blaumolch@HIDDEN>
Subject: LONG_LONG_MAX/MIN not defined on systems using musl libc
Message-ID: <dc397db4-3956-4e7a-cbd1-56ac87a06afa@HIDDEN>
Date: Thu, 26 Oct 2017 18:01:25 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: de-DE
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 26 Oct 2017 12:24:55 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

On systems using the musl libc LONG_LONG_MAX and LONG_LONG_MIN are not
defined which leads to a compilation error in certain cases. The
following patch replaces these macros with LLONG_MAX and LLONG_MIN
respectively.


--- a/libguile/fports.c	2017-03-01 17:32:58.000000000 +0100
+++ b/libguile/fports.c	2017-10-26 17:36:41.705006593 +0200
@@ -67,8 +67,8 @@
 #define OFF_T_MAX  LONG_MAX
 #define OFF_T_MIN  LONG_MIN
 #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
-#define OFF_T_MAX  LONG_LONG_MAX
-#define OFF_T_MIN  LONG_LONG_MIN
+#define OFF_T_MAX  LLONG_MAX
+#define OFF_T_MIN  LLONG_MIN
 #else
 #error Oops, unknown OFF_T size
 #endif




Acknowledgement sent to newbluemoon <blaumolch@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#29015; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.