On 11/03/2010 08:56 AM, Thomas Schulz wrote:
> gzip 1.4 fails make check when built on Solaris 2.5.1, Solaris 7 & Solaris 8
> using any of the following Sun compilers
> cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
> cc: Forte Developer 7 C 5.4 2002/03/09
> cc: Sun C 5.8 2005/10/13
> 
> with the message:
> FAIL: tests/zgrep-f

I expect that this is a problem with your shell, not with the C compiler.
Can you please verify this by sending us the first line of "zgrep"?
My guess is that it reads "#!/bin/ksh"; that would probably explain things.
I'll look into writing a fix.  The problem is that the script assumes
that if it makes file descriptor 6 open on a file, then that file descriptor
is inherited by child processes: but POSIX does not guarantee this for the
shell, so the script is not portable to ksh.

Reply via email to