[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error in example / gettext-0.17 -- update (subprocess I/O error) --
From: |
Bruno Haible |
Subject: |
Re: error in example / gettext-0.17 -- update (subprocess I/O error) -- preliminary solution |
Date: |
Fri, 26 Sep 2008 22:46:45 +0200 |
User-agent: |
KMail/1.5.4 |
Hello,
Rainer Tammer wrote:
> I have found a preliminary solution for this problem:
>
> If I remove
>
> #undef HAVE_POSIX_SPAWN
>
> in gettext-tools/config.h.in prior to the configure run then the I/O
> error problem is gone.
>
> So I suspect that somethint with the POSIX_SPAWN is wrong on AIX.
Thanks for this analysis. Given you debugging results (create_pipe_in()
succeeds but getline returns -1), that's my suspicion as well.
To determine reliably whether the bug is really in posix_spawn and/or the
AIX shell, I've written a test case. To use it, please save both files
in the same directory and do
$ xlc -D_ALL_SOURCE test-posix_spawn.c -o test-posix_spawn
$ ./test-posix_spawn
$ echo $?
Does it succeed (error code 0), or does it print some error?
In the first case, more debugging on your side would be required, since I
don't have access to an AIX machine that has posix_spawn().
In the second case, I'll use the test case in gnulib to check whether
posix_spawn works, before using it.
Thanks for your help!
Bruno
test-posix_spawn.c
Description: Text Data
test-posix_spawn.sh
Description: application/shellscript