Solaris x86 compile error

"Cary T. Conrad" (conrad@messagesecure.com)
Mon, 16 Aug 1999 08:05:35 +0600


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