Solaris x86 compile error

Gert Doering (gert@greenie.muc.de)
Mon, 16 Aug 1999 15:49:21 +0200


Hi,

this looks very much like a broken GCC installation - it doesn't really
tell what's going on, except that the assembler doesn't seem to like
the output the C compiler is generating.

Try running this without "-pipe" in the CFLAGS section of Makefile.

gert

On Mon, Aug 16, 1999 at 08:05:35AM +0600, Cary T. Conrad wrote:
> Gert,
> 
> Your suggestion fixed one bug, now I have another:
> 
> jumpstart- 8:10am-36-#make
> gcc -O2 -Wall -pipe -Dsolaris86 -DAUTO_PPP
> -DFAX_SPOOL_IN=\"/var/spool/fax/incom
> ing\" -c mgetty.c
> Usage: as [options] file
> /usr/local/lib/gcc-lib/i486-sun-solaris2.5.1/2.7.2.2/include/sys/stat.h: In
> func
> tion `stat':
> In file included from mgetty.c:19:
> /usr/local/lib/gcc-lib/i486-sun-solaris2.5.1/2.7.2.2/include/sys/stat.h:237:
>  out
> put pipe has been closed
> cpp: output pipe has been closed
> *** Error code 1
> make: Fatal error: Command failed for target `mgetty.o'    
> 
> 
> My guess is that this may be a gnucc issue, can you point me in the right
> direction?
> 
> Thanks Gert!
> 
> CC
> 
> 
>      
> >Hi,
> >
> >On Fri, Aug 13, 1999 at 10:08:28AM -0400, Cary T. Conrad wrote:
> >> gcc -O2 -Wall -pipe -Dsolaris86 -DAUTO_PPP
> >> -DFAX_SPOOL_IN=\"/var/spool/fax/incom
> >> ing\" -c mgetty.c
> >> In file included from mgetty.c:23:
> >> mgetty.h:277: conflicting types for `getopt'
> >> /usr/local/lib/gcc-lib/i486-sun-solaris2.5.1/2.7.2.2/include/stdlib.h:154:
> >
> >Add " && !defined(solaris86)" to mgetty.h, line 276 (right before the
> >"extern int getopt" declaration).
> >
> >gert
> >-- 
> >USENET is *not* the non-clickable part of WWW!
> >                                                           //www.muc.de/~gert/
> >Gert Doering - Munich, Germany                             gert@greenie.muc.de
> >fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de
> 

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de