|
X-He-Spam-Score: -1.9
|
|
Return-Path: <tony@antennahouse.com>
|
|
Delivered-To: dropbox@plan.io
|
|
Received: from m.launch.gmbh ([127.0.0.1])
|
|
by m.launch.gmbh with LMTP
|
|
id 4ETAEEAdg2UVFQMAJzdhvw
|
|
(envelope-from <tony@antennahouse.com>)
|
|
for <dropbox@plan.io>; Wed, 20 Dec 2023 17:58:40 +0100
|
|
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on m.launch.gmbh
|
|
X-Spam-Level:
|
|
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DMARC_NONE,
|
|
RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,
|
|
SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
|
|
version=3.4.6
|
|
X-Spam-Report:
|
|
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
|
|
* [score: 0.0000]
|
|
* -0.1 SPF_PASS SPF check passed
|
|
* 0.1 DMARC_NONE DMARC record not found
|
|
* 0.0 RCVD_IN_MSPIKE_H5 RBL: Excellent reputation (+5)
|
|
* [184.106.54.71 listed in wl.mailspike.net]
|
|
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
|
|
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at
|
|
* https://www.dnswl.org/, no trust
|
|
* [184.106.54.71 listed in list.dnswl.org]
|
|
* 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
|
|
* -0.0 T_SCC_BODY_TEXT_LINE No description available.
|
|
X-Spam-Score: -1.9
|
|
Authentication-Results: m.launch.gmbh; dmarc=none (p=none dis=none) header.from=antennahouse.com
|
|
Authentication-Results: m.launch.gmbh; spf=pass smtp.mailfrom=antennahouse.com
|
|
Authentication-Results: m.launch.gmbh; dkim=none; dkim-atps=neutral
|
|
Envelope-to: inbox+saxonica+f38e+saxon-c@plan.io
|
|
Received: from smtp71.ord1d.emailsrvr.com (smtp71.ord1d.emailsrvr.com [184.106.54.71])
|
|
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
|
|
(No client certificate requested)
|
|
by m.launch.gmbh (Postfix) with ESMTPS id C3B1616200E
|
|
for <inbox+saxonica+f38e+saxon-c@plan.io>; Wed, 20 Dec 2023 17:58:39 +0100 (CET)
|
|
X-Auth-ID: tony@antennahouse.com
|
|
Received: by smtp9.relay.ord1d.emailsrvr.com (Authenticated sender: tony-AT-antennahouse.com) with ESMTPSA id A852AC012E
|
|
for <inbox+saxonica+f38e+saxon-c@plan.io>; Wed, 20 Dec 2023 11:58:37 -0500 (EST)
|
|
Message-ID: <4eaa8c25-17cf-41a0-b429-69669cfe4f22@antennahouse.com>
|
|
Date: Wed, 20 Dec 2023 16:58:36 +0000
|
|
MIME-Version: 1.0
|
|
User-Agent: Mozilla Thunderbird
|
|
Subject: Re: [SaxonC - Bug #6297] 12.4.1 command build errors on CentOS 7
|
|
Content-Language: en-US
|
|
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-c@plan.io>
|
|
References: <redmine.issue-6297.20231219115046.3646@plan.io>
|
|
<redmine.journal-25416.20231220142818.3646@plan.io>
|
|
From: Tony Graham <tony@antennahouse.com>
|
|
In-Reply-To: <redmine.journal-25416.20231220142818.3646@plan.io>
|
|
Content-Type: text/plain; charset=UTF-8; format=flowed
|
|
Content-Transfer-Encoding: 8bit
|
|
X-Classification-ID: 75ea7507-3079-493d-b221-e8b1a6b26716-1-1
|
|
|
|
Either leave it off or also add it to `samples/cTests/build64-linux.sh`
|
|
as insurance against getting another issue the next time that a C99-ism
|
|
leaks into your C code.
|
|
|
|
At this point, you are unlikely to find a user with a GCC version that
|
|
predates C99.
|
|
> --- In your reply, please do not write below this line ---
|
|
>
|
|
> Issue #6297 <https://saxonica.plan.io/issues/6297?pn=1#change-25416> has
|
|
> been updated by O'Neil Delpratt.
|
|
> ------------------------------------------------------------------------
|
|
>
|
|
> I am I have moved the initial declarations outside of the for loop, but
|
|
> wondering if we really should add in the C99 compile option. I welcome
|
|
> advice on this?
|
|
>
|
|
> ------------------------------------------------------------------------
|
|
>
|
|
>
|
|
> Bug #6297: 12.4.1 command build errors on CentOS 7
|
|
> <https://saxonica.plan.io/issues/6297?pn=1#change-25416> open
|
|
>
|
|
> * *Author: *Tony Graham
|
|
> * *Status: *New
|
|
> * *Priority: *Low
|
|
> * *Assignee: *O'Neil Delpratt
|
|
> * *Category: *Linux
|
|
> * *Start date: *2023-12-19
|
|
> * *Found in version: *12.4.1
|
|
>
|
|
> Running |build-saxonc-commands.sh| on CentOS 7 generated errors about
|
|
> the C version, such as:
|
|
>
|
|
> |Transform.c: In function ‘transform’: Transform.c:33:3: error: ‘for’
|
|
> loop initial declarations are only allowed in C99 mode for (int i = 1; i
|
|
> < argc; i++) { ^ Transform.c:33:3: note: use option -std=c99 or
|
|
> -std=gnu99 to compile your code |
|
|
>
|
|
> After adding |-std=c99| to the GCC command lines, there were errors
|
|
> about |int64_t|, such as:
|
|
>
|
|
> |In file included from ../Saxon.C.API/SaxonCGlue.c:1:0:
|
|
> ../Saxon.C.API/SaxonCGlue.h:92:3: error: unknown type name ‘int64_t’
|
|
> int64_t value; /*!< Internal use only. The value of the parameter points ^ |
|
|
>
|
|
> That was worked around by adding |#include <stdint.h>| for |__LINUX__|
|
|
> and |__APPLE__| in |SaxonCGlue.h|. I don't know whether |#include
|
|
> <stdint.h>| would be necessary for |__APPLE__|.
|
|
>
|
|
> Also, it's not clear why |#include <stdio.h>| is included a second time
|
|
> for |__LINUX__| and |__APPLE__|.
|
|
>
|
|
> |--- build-saxonc-commands.sh~ 2023-12-01 12:17:46.000000000 +0000 +++
|
|
> build-saxonc-commands.sh 2023-12-19 08:52:51.329869064 +0000 @@ -4,15
|
|
> +4,15 @@ parent_path=$( cd "$(dirname "$0")" ; pwd -P )
|
|
> library_dir=${1-$(pwd -P)}/../libs/nix #cd "$parent_path" -gcc -m64
|
|
> -fPIC -I../Saxon.C.API/graalvm -c ../Saxon.C.API/SaxonCGlue.c -o
|
|
> SaxonCGlue.o $1 +gcc -std=c99 -m64 -fPIC -I../Saxon.C.API/graalvm -c
|
|
> ../Saxon.C.API/SaxonCGlue.c -o SaxonCGlue.o $1 -gcc -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Transform.c -o transform -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 +gcc -std=c99 -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Transform.c -o transform -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 -gcc -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Query.c -o query -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 +gcc -std=c99 -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Query.c -o query -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 -gcc -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Gizmo.c -o gizmo -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 +gcc -std=c99 -m64 -fPIC
|
|
> -I../Saxon.C.API/graalvm Gizmo.c -o gizmo -ldl -lc SaxonCGlue.o
|
|
> -L$library_dir -lsaxon-hec-12.4.1 $1 if [ -f Validate.c ]; then - gcc
|
|
> -m64 -fPIC -I../Saxon.C.API/graalvm Validate.c -o validate -ldl -lc
|
|
> SaxonCGlue.o -L$library_dir -lsaxon-hec-12.4.1 $1 + gcc -std=c99 -m64
|
|
> -fPIC -I../Saxon.C.API/graalvm Validate.c -o validate -ldl -lc
|
|
> SaxonCGlue.o -L$library_dir -lsaxon-hec-12.4.1 $1 fi |
|
|
>
|
|
> |--- SaxonCGlue.h~ 2023-12-01 12:17:48.000000000 +0000 +++ SaxonCGlue.h
|
|
> 2023-12-19 09:00:42.996931099 +0000 @@ -17,6 +17,7 @@ #include <stdio.h>
|
|
> #include <stdlib.h> #include <string.h> +#include <stdint.h> #else
|
|
> #include <stdint.h> #include <windows.h> |
|
|
>
|
|
> ------------------------------------------------------------------------
|
|
>
|
|
> You have received this notification because you have either subscribed
|
|
> to or are involved in a project on Saxonica Developer Community site. To
|
|
> change your notification preferences, please click here:
|
|
> https://saxonica.plan.io/my/account?tour=mail_preferences
|
|
> <https://saxonica.plan.io/my/account?tour=mail_preferences>
|
|
>
|
|
>
|
|
> This notification was cheerfully delivered by <https://plan.io/>
|
|
> Planio <https://plan.io/>
|
|
>
|
|
|
|
--
|
|
XML Division
|
|
Antenna House, Inc.
|
|
tony@antennahouse.com
|