Skip Menu |
 
Report information
Id: 3370
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: nick [at] Bagpuss.unfortu.net
Cc:
AdminCc:

Operating System: Linux
PatchStatus: (no value)
Severity: low
Type: library
Perl Version: 5.6.0
Fixed In: (no value)



Date: Tue, 13 Jun 2000 00:19:57 +0100
From: Nicholas Clark <nick [...] Bagpuss.unfortu.net>
To: perlbug [...] perl.com
Subject: Configure checks for fflush(NULL) after I choose sfio
This is a bug report for perl from nick@talking.bollo.cx, generated with the help of perlbug 1.28 running under perl v5.6.0. ----------------------------------------------------------------- [Please enter your report here] Configure asks me: perl5 can use the sfio library, but it is experimental. You seem to have sfio available, do you want to try using it? [n] y and even though I've said yes to sfio it later checks fflush from stdio: Checking how to flush all pending stdio output... Your fflush(NULL) works okay for output streams. Let's see if it clobbers input pipes... fflush(NULL) seems to behave okay with input streams. which seems somewhat illogical. If I'm using sfio, should it skip this case, or check sfio's sfsync()? Nicholas Clark [Please do not change anything below this line] ----------------------------------------------------------------- --- Flags: category=core severity=low --- Site configuration information for perl v5.6.0: Configured by nick at Mon Jun 12 20:06:37 BST 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=linux, osvers=2.2.15-rmk1, archname=armv4l-linux uname='linux bagpuss.unfortu.net 2.2.15-rmk1 #4 wed may 31 12:47:03 bst 2000 armv4l ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=define uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='cc', optimize='-g', gccversion=egcs-2.91.60 19990113/philb (egcs-1.1.1 release) cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include' ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lsfio -lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Locally applied patches: --- @INC for perl v5.6.0: lib /usr/local/lib/perl5/5.6.0/armv4l-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/armv4l-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl . --- Environment for perl v5.6.0: HOME=/home/nick LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/other/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/nick/bin:/sbin:/usr/sbin PERL_BADLANG (unset) SHELL=/bin/bash
Date: Mon, 12 Jun 2000 19:53:38 -0400
From: "Kurt D. Starsinic" <kstar [...] chapin.edu>
To: nick [...] talking.bollo.cx
Cc: perl5-porters [...] perl.org
Subject: Re: [ID 20000612.006] Configure checks for fflush(NULL) after I choose sfio
Download (untitled) / with headers
text/plain 1.3k
On Tue, Jun 13, 2000 at 12:19:57AM +0100, Nicholas Clark wrote: Show quoted text
> This is a bug report for perl from nick@talking.bollo.cx, > generated with the help of perlbug 1.28 running under perl v5.6.0. > > > ----------------------------------------------------------------- > [Please enter your report here] > > Configure asks me: > > perl5 can use the sfio library, but it is experimental. > You seem to have sfio available, do you want to try using it? [n] y > > and even though I've said yes to sfio it later checks fflush from stdio: > > Checking how to flush all pending stdio output... > Your fflush(NULL) works okay for output streams. > Let's see if it clobbers input pipes... > fflush(NULL) seems to behave okay with input streams. > > > which seems somewhat illogical. If I'm using sfio, should it skip this case, > or check sfio's sfsync()?
I would say that it never hurts to perform the test. fflush information is then available for a verbose configuration dump, and may prove useful in some situations. What's to be gained by skipping the test? Peace, * Kurt Starsinic (kstar@orientation.com) ---------- Senior Network Engineer * | `It is always possible to aglutenate multiple separate problems | | into a single complex interdependent solution. In most cases | | this is a bad idea.' - Ross Callon |


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org