[gnu.g++.help] Make of libg++ fails on a Sun4/490 running SunOS 4.1

fwp1@CC.MSSTATE.EDU (Frank Peters) (10/31/90)

Hello,

I am trying to install g++ on a Sun 4/490 running SunOS 4.1.  I have
managed to compile, test and install gcc.  After getting a fixed
fixincludes script I'm now satisfied that gcc works.  I have tha gas
assembler installed as gcc-as in the same gcc library directory.

Compilation of g++ also procedes without any problems.  But when I try
to compile libg++.a I don't get very far at all:

----------------------------------- Begin included text
265: 4:43pm--ra{fwp1}:make
(cd src; make GXX="g++"  GXXFLAGS=" -I/src/gnu/libg++-1.37.0/g++-include -g -O -
fstrength-reduce  -felide-constructors -fschedule-insns -fdelayed-branch -fsave-
memoized -Wall  -pipe" GXXLDFLAGS="-L/src/gnu/libg++-1.37.0/src -lg++ -lm " LIBD
IR="/usr/local/lib" SRCIDIR="/src/gnu/libg++-1.37.0/g++-include" CC="gcc" CFLAGS
=" -I/usr/local/lib/gcc-include -I/usr/include -I/src/gnu/libg++-1.37.0/g++-incl
ude -g -O -fstrength-reduce -fdelayed-branch -Wall  -pipe" RANLIB="ranlib" LDXX=
"/usr/local/lib/gcc-ld" GXXCRT1="/usr/local/lib/crt1+.o" MAKE="make" prefix="/us
r/local" VPATH="/src/gnu/libg++-1.37.0/g++-include")
g++ -I/src/gnu/libg++-1.37.0/g++-include -g -O -fstrength-reduce  -felide-constr
uctors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall  -pipe -c  AllocR
ing.cc
g++ -I/src/gnu/libg++-1.37.0/g++-include -g -O -fstrength-reduce  -felide-constr
uctors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall  -pipe -c  Obstac
k.cc
g++ -I/src/gnu/libg++-1.37.0/g++-include -g -O -fstrength-reduce  -felide-constr
uctors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall  -pipe -c  File.c
c
In file included from //usr/include/sys/file.h:41, from /src/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 /src/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 /src/gnu/lib
g++-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 (..
.)'
*** Error code 1
make: Fatal error: Command failed for target `File.o'
Current working directory /src/gnu/libg++-1.37.0/src
*** Error code 1
make: Fatal error: Command failed for target `src'
----------------------------------- End included text

It seems like there are some type inconsistencies between the g++
include files and the system include files.

Has anyone seen this problem before?

Thanks,
FWP
--
--
Frank Peters   Internet:  fwp1@CC.MsState.Edu         Bitnet:  FWP1@MsState
               Phone:     (601)325-2942               FAX:     (601)325-8921