Broken C++ under 4.1.1

Greg Vesper - RMS vesper at kong.gsfc.nasa.gov
Thu Jan 17 05:45:29 AEST 1991


I recently upgraded to 4.1.1 only to find that my Oregon C++ compiler and
the GNU C++ compiler are busted under 4.1.1.  Sun changed the setup of
some header files and now my C++ compilers barf with the following sort of
errors:

> In file included from //usr/include/sys/file.h:41, from
> /source/gnu/libg++-1.37.
> 0/g++-include/sys/file.h:18, from File.cc:27:
> /usr/include/sys/fcntlcom.h:123: warning: `flock' was declared `extern'
> and late
> r `static'
> In file included from
> /source/gnu/libg++-1.37.0/g++-include/sys/stat.h:7, from /
> usr/include/sys/fcntlcom.h:147, from //usr/include/sys/file.h:41, from
> /source/g
> nu/libg++-1.37.0/g++-include/sys/file.h:18, from File.cc:27:
> //usr/include/sys/stat.h:90: conflicting types for `unsigned short int
> umask (..
> .)'

Both compilers are generating similar complaints about multiple
definitions in the sys header files.  Is anyone else having similar
problems??  Does anyone know of any fixes??

I traced through the header files for a while and got nowhere.  It looks
like the POSIX compliance preprocessor commands are screwing up.

Any input would be appreciated.

Greg Vesper (vesper at kong.gsfc.nasa.gov) 301-286-5162



More information about the Comp.sys.sun mailing list