Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-10 Thread Marco van de Voort
> > It is a FPC/FCL/LCL/Lazarus bug, but mostly fpc. > > I don't use Lazarus - ironically, I ran into this bug while > trying to recompile a program that interfaces FPC with NEdit. > It doesn't use Lazarus or GTK, but it uses popen(F, 'ppc386 -iV', 'R') > to check the compiler version. As a temp

[fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-10 Thread Jeff Pohlmeyer
> It is a FPC/FCL/LCL/Lazarus bug, but mostly fpc. I don't use Lazarus - ironically, I ran into this bug while trying to recompile a program that interfaces FPC with NEdit. It doesn't use Lazarus or GTK, but it uses popen(F, 'ppc386 -iV', 'R') to check the compiler version. As a temporary workar

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-10 Thread Marco van de Voort
> > This is the culprit. > > On my system (SuSE 7.1) I have /etc/localtime: > symbolic link to /usr/share/zoneinfo/CST6CDT > > - but I can't find a file named "timezone" anywhere. It is a FPC/FCL/LCL/Lazarus bug, but mostly fpc. I've to talk to Peter first before fixing this. ___

[fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Jeff Pohlmeyer
> This is the culprit. > People that have this file don't have the problem. Yes, that's the problem - open("/etc/timezone", O_RDONLY) = -1 ENOENT If I create an empty file named /etc/timezone the program still fails: open("/usr/share/zoneinfo/localtime", O_RDONLY) = -1 ENOENT If

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Pedro Lopez-Cabanillas
Marco van de Voort wrote: > > open("/etc/timezone", O_RDONLY) = 3 > > This is the culprit. People that have this file don't have the problem. > If this one goes wrong, the errno value remains there, and the next > decision that bases itself on linuxerror goes wrong. Confirmed. Removing /et

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Marco van de Voort
[ Charset ISO-8859-1 unsupported, converting... ] > Marco van de Voort wrote: > > - Do an strace, and see if there is a function that fails. > > Everything seems OK. > > $ strace pipetest > execve("/home/plc/Pascal/test1.9/pipetest", ["pipetest"], [/* 63 vars */]) = 0 > sigaction(SIGFPE, {0x805a9

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Pedro Lopez-Cabanillas
Marco van de Voort wrote: > - Do an strace, and see if there is a function that fails. Everything seems OK. $ strace pipetest execve("/home/plc/Pascal/test1.9/pipetest", ["pipetest"], [/* 63 vars */]) = 0 sigaction(SIGFPE, {0x805a9d4, [], 0}, {SIG_DFL}, 0x40054d58) = 0 sigaction(SIGSEGV, {0x805a9

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Marco van de Voort
> > pipi, pipo: text; > > begin > > AssignPipe(pipi, pipo); > > perror('AssignPipe', LinuxError); > > end. > > I've tried it, with fpc 1.9.0 (binary rpm downloaded from sf). > > $ fpc pipetest.pp > Hint: End of reading config file /etc/fpc.cfg > Free Pascal Compiler version 1.9.0 [2003/11/0

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Pedro Lopez-Cabanillas
Jeff Pohlmeyer wrote: > Could someone else please try this with the Linux 1.9.0 compiler, > and let me know the results ? > > > program pipetest; > uses errors, unix; > var > pipi, pipo: text; > begin > AssignPipe(pipi, pipo); > perror('AssignPipe', LinuxError); > end. I've tried it, with fp

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Florian Klaempfl
GongYu wrote: > Jeff Pohlmeyer: > I do not try your sample(I remove it and install 1.0.10), > but the lazarus IDE on my pc always show the same error("can not create pipe") > with FPC 1.9.0 Compiler! This won't help us to improve FPC... ___ fpc-devel

Re: [fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread GongYu
Jeff Pohlmeyer: I do not try your sample(I remove it and install 1.0.10), but the lazarus IDE on my pc always show the same error("can not create pipe") with FPC 1.9.0 Compiler!    >> > Did you try the example I posted? > >> Yes, and it runs fine. >> Peter > > >hmmm... > I have tried everything

[fpc-devel]Re: Bug in AssignPipe() on Linux

2003-11-09 Thread Jeff Pohlmeyer
> > Did you try the example I posted? > Yes, and it runs fine. > Peter hmmm... I have tried everything you suggested ( and everything else I can think of ) but I still can't get it to work. Could someone else please try this with the Linux 1.9.0 compiler, and let me know the results ?