🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #277

Make of libg++ fails on a Sun4/490 running SunOS 4.1

#277
From: Frank Peters
Date: Tue, 30 Oct 1990 23:32
56 lines
3219 bytes
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
Technical Details
Message-ID: <FWP1.90Oct30173238@tzu.CC.MsState.Edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CC.MSSTATE.EDU!fwp1

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CC.MSSTATE.EDU!fwp1
From: fwp1@CC.MSSTATE.EDU (Frank Peters)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Make of libg++ fails on a Sun4/490 running SunOS 4.1
Message-ID: <FWP1.90Oct30173238@tzu.CC.MsState.Edu>
Date: 30 Oct 90 23:32:38 GMT
Sender: daemon@tut.cis.ohio-state.edu
Followup-To: gnu.g++.lib.bug
Organization: Computing Center, Mississippi State University
Lines: 56