| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:in-reply-to | |
| :references:mime-version:content-type; q=dns; s=default; b=s1KGp | |
| MklIF5AXMxRwrMa0JcWm0X98aNAsEOLer1r7Vdqy4NhOYNxd4IZS1W0+M01BIE9z | |
| mIv1G02rtSoyCI3kgrRx746u8bKBCte226aLAksexoA7rNHuxaQdctaErsFd3/g7 | |
| QNQIfCOWnXI67MLmg4sdR6MdMeOPQGebSI4274= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:in-reply-to | |
| :references:mime-version:content-type; s=default; bh=vq7XO8kXPTA | |
| gdSuzAdF40VPP9Fk=; b=I9p0dA0lx9nHJ7TYhsjkwcBJLecGzpM2y+c2eFmFDNb | |
| tB9f0Yt2vSw65Gh0LSWw9eVOf3XSmaDJcWE9cDlQy1FUsLaO8aj6+ihexH6MQ6JR | |
| ns5r+K/r+zkeII9cNUBGCtdorYNJcMciTDj7tblG7ClKRgZeUi9uKTMdQAYeDwpM | |
| = | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Spam-SWARE-Status: | No, score=-10.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=2.8, POSIX, sk:wwwope, sk:www.ope |
| X-HELO: | conssluserg-05.nifty.com |
| DKIM-Filter: | OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 00TG8L4Y010867 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1580314102; bh=3iThAfUVA4oKPef3MK38anbeBwCobamhw8hJJAY89yk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=BZ1CzrVFzHeqIpfaK30jtdUuV2OoRfbNQfeT7/lzX0E23eQ2riCLEhkwjI3PK3GQz xkBKfJRlf2iQQZJEJ8hjbCNvDXA/tWGKJI+DMIAw/e3ZT571qVeWjmMLaz5jhG6P4X wZHn93xYqDoKiNn39OZICeM+95gngQpiZTY4+sXxmO8L8mUe/GiS9LQpqg9VTnfVcE g8Ymaxb6zh6jODxIeCTOUEQ5QsL0nl9V/UEIDt/wWTwqSRt5/putUWdRzgBfZNhb8L JB1zDoKZbhfXHQDkusbXgCIdXCdbrZ/hpVd6I5K4FGcFCkVerBJh2GDjjRHxQdXxgf 0nU/y+Cz8xWuA== |
| Date: | Thu, 30 Jan 2020 01:08:27 +0900 |
| From: | Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: headache on build repeatibility: octave vs BLODA ? |
| Message-Id: | <20200130010827.9b8102597f7fe7df637f509b@nifty.ne.jp> |
| In-Reply-To: | <20200129153428.GP3549@calimero.vinschen.de> |
| References: | <9b370970-fcfe-cca9-321f-973de777642a AT gmail DOT com> <878sluhcc1 DOT fsf AT Otto DOT invalid> <08ac898e-e7f9-c8e9-91ba-d4ee33f2e27c AT gmail DOT com> <0fb5712c-7d57-d5cb-56b7-3a0d2f44d8a2 AT gmail DOT com> <20200127203346 DOT 1c8e3657d7283e3aa2c617d8 AT nifty DOT ne DOT jp> <85ddac25-0b4a-5e01-7885-0d2855c37a45 AT gmail DOT com> <20200129094427 DOT GI3549 AT calimero DOT vinschen DOT de> <9e66f9f1-109f-7a3c-2c86-abd3ef7fc628 AT gmail DOT com> <20200129224653 DOT b3238736661d3c95fc30ee5f AT nifty DOT ne DOT jp> <20200129153218 DOT GO3549 AT calimero DOT vinschen DOT de> <20200129153428 DOT GP3549 AT calimero DOT vinschen DOT de> |
| Mime-Version: | 1.0 |
| X-IsSubscribed: | yes |
--Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Wed, 29 Jan 2020 16:34:28 +0100
Corinna Vinschen wrote:
> On Jan 29 16:32, Corinna Vinschen wrote:
> > On Jan 29 22:46, Takashi Yano wrote:
> > > --- m4/fseeko.m4.orig 2020-01-29 21:39:37.280507900 +0900
> > > +++ m4/fseeko.m4 2020-01-29 21:36:29.263747100 +0900
> > > @@ -30,16 +30,19 @@
> > > HAVE_FSEEKO=0
> > > else
> > > if test $WINDOWS_64_BIT_OFF_T = 1; then
>
> This makes me a bit suspicious... it looks like a check only
> required for native builds, not for Cygwin.
I think REPLACE_FSEEKO is set to 1 not here,
> > > m4_ifdef([gl_FUNC_FFLUSH_STDIN], [
> > > gl_FUNC_FFLUSH_STDIN
> > > case "$gl_cv_func_fflush_stdin" in
> > > *yes) ;;
> > > - *) REPLACE_FSEEKO=1 ;;
> > > + dnl *) REPLACE_FSEEKO=1 ;;
> > > + *) REPLACE_FSEEKO=0 ;;
> > > esac
but here.
gl_cv_func_fflush_stdin is set here in configure by:
if ac_fn_c_try_run "$LINENO"; then :
gl_cv_func_fflush_stdin=yes
else
gl_cv_func_fflush_stdin=no
fi
and the test code for this decision is as attached. conftest.c
returns 0 in cygwin 3.0.7, while cygwin with commit 59362c80e3a
returns 5.
I am not sure why segfault occurs if fseeko is replaced.
Probably due to a bug in octave or cygwin.
--
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
--Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr
Content-Type: text/x-csrc;
name="conftest.c"
Content-Disposition: attachment;
filename="conftest.c"
Content-Transfer-Encoding: 7bit
#include <stdio.h>
# include <unistd.h>
int
main ()
{
FILE *f = fopen ("conftest.txt", "r");
char buffer[10];
int fd;
int c;
if (f == NULL)
return 1;
fd = fileno (f);
if (fd < 0 || fread (buffer, 1, 5, f) != 5)
{ fclose (f); return 2; }
/* For deterministic results, ensure f read a bigger buffer. */
if (lseek (fd, 0, SEEK_CUR) == 5)
{ fclose (f); return 3; }
/* POSIX requires fflush-fseek to set file offset of fd. This fails
on BSD systems and on mingw. */
if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
{ fclose (f); return 4; }
if (lseek (fd, 0, SEEK_CUR) != 5)
{ fclose (f); return 5; }
/* Verify behaviour of fflush after ungetc. See
<http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */
/* Verify behaviour of fflush after a backup ungetc. This fails on
mingw. */
c = fgetc (f);
ungetc (c, f);
fflush (f);
if (fgetc (f) != c)
{ fclose (f); return 6; }
/* Verify behaviour of fflush after a non-backup ungetc. This fails
on glibc 2.8 and on BSD systems. */
c = fgetc (f);
ungetc ('@', f);
fflush (f);
if (fgetc (f) != c)
{ fclose (f); return 7; }
fclose (f);
return 0;
;
return 0;
}
--Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr
Content-Type: text/plain;
name="conftest.txt"
Content-Disposition: attachment;
filename="conftest.txt"
Content-Transfer-Encoding: 7bit
hello world
--Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr
Content-Type: text/plain; charset=us-ascii
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |