scsh-users
[Top] [All Lists]

Anyone succeed building on Solaris 2.5?

To: scsh@martigny.ai.mit.edu
Subject: Anyone succeed building on Solaris 2.5?
From: lewikk@grasshopper.aud.alcatel.com (Kevin K. Lewis)
Date: 16 May 1996 08:40:37 -0500
Organization: Alcatel Network Systems
I get the following:

---
gcc -c -I./cig -I./scsh/regexp -DHAVE_CONFIG_H -I. -I. -g -O -o 
scsh/machine/stdio_dep.o scsh/machine/stdio_dep.c
scsh/machine/stdio_dep.c: In function `setfileno':
scsh/machine/stdio_dep.c:64: invalid lvalue in assignment
make: *** [scsh/machine/stdio_dep.o] Error 1
---

void setfileno(FILE *fs, int fd)
{
  fileno(fs) = fd;
  ^^^^^^^^^^^^^^^
  It dies on this line.  `fileno' in the `stdio.h' that GCC uses is a
  function and not a macro (as it is in `/usr/include').
}

I put

#undef fileno
#define fileno(p)       ((p)->_file)

before the definition of `setfileno' and Scsh compiled, but I question
it's stability (for this reason only).

I'm using GCC 2.7.2.

Thanks for any info.
-- 
--
Kevin K. Lewis               | My opinions may be unreasonable
lewikk@aud.alcatel.com       | but such is the voice of inspiration

<Prev in Thread] Current Thread [Next in Thread>