🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problems compiling libg++ 2.2 on a Sun4 under 4.1.1

#22
From: Sam Leffler
Date: Fri, 30 Oct 1992 19:49
39 lines
2389 bytes
I'm at a loss on this.  I built gcc 2.2.2 and installed it (no problem).  I got
libg++2.2 off gatekeeper.dec.com and did configure sun4 in the top directory.
Then:

eucsun% cd libg++
eucsun% make
rootme=`pwd` ; export rootme; CC="`if [ -f ${rootme}/../gcc/gcc ] ;  then echo 
${rootme}/../gcc/gcc\\ -B${rootme}/../gcc/ ;  else echo gcc ; fi` `if [ -f 
${rootme}/../gcc/gcc ] ;  then echo -I${rootme}/../gcc/include ;  else echo ; fi`"; export 
CC; \
./utils/gen-params  >tmp-params.h
In file included from dummy.c:4:
/usr/include/stdio.h:25: warning: `NULL' redefined
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/include/stddef.h:145: warning: this 
is the location of the previous definition
mv tmp-params.h _G_config.h
gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
In file included from ./../g++-include/sys/types.h:15, from /usr/include/unistd.h:72, 
from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22:
/usr/include/sys/types.h:24: conflicting types for `wchar_t'
./../g++-include/stddef.h:11: previous declaration of `wchar_t'
*** Error code 1
make: Fatal error: Command failed for target `AllocRing.o'
Current working directory /usr/people/sam/libg++-2.2/libg++/src
*** Error code 1
make: Fatal error: Command failed for target `in-src'

I've looked at lots of include files, but can't find anything that defines wchar_t
except the one in /usr/include/sys/stddefs.h.  The deduced definition in _G_config.h
is correct...  BTW, it sure would help if gcc would tell me what the conflicting
types were!

	Sam
---
Sam Leffler				Voice: (415) 390-1269
Silicon Graphics, Inc.			Email: sam@sgi.com
Research & Development, 7U-005		FAX:   (415) 965-7824
2011 N. Shoreline Blvd			
Mountain View, CA 94039-7311
Technical Details
Message-ID: <1992Oct30.194905.17861@pasteur.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!ames!pasteur!oxford.cs.berkeley.edu!sam

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!ames!pasteur!oxford.cs.berkeley.edu!sam
From: sam@oxford.cs.berkeley.edu (Sam Leffler)
Subject: Problems compiling libg++ 2.2 on a Sun4 under 4.1.1
Message-ID: <1992Oct30.194905.17861@pasteur.Berkeley.EDU>
Sender: nntp@pasteur.Berkeley.EDU (NNTP Poster)
Nntp-Posting-Host: oxford.berkeley.edu
Organization: University of California, at Berkeley
Date: Fri, 30 Oct 1992 19:49:05 GMT
Lines: 40