🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #458

SUMMARY: libg++ 2.3 and SunOS 4.1.3

#458
From: J. Porter Clark
Date: Tue, 26 Jan 1993 02:15
43 lines
2262 bytes
A few days ago, I posted this bug description:

>There's some sort of include file conflict between libg++ 2.3 and SunOS
>4.1.3.  Here's what I get:

[much deleted]

>gcc -g -O -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'

After I posted the message, I discovered that there was in fact an
earlier posting from Howard Ferguson <hlf@cerf.net> with much the same
problem described.  I contacted Howard, and he said that Per Bothner
<bothner@cygnus.com> told him to run the following after installing
gcc-2.3.3:

  make install-fixincludes

(per the gcc instructions).  This does indeed fix the problem.  I do
get some warnings here and there.

I always thought the fixincludes step was optional; you could run gcc
with the -traditional flag and you'd be about as well off.  Apparently
this isn't true for libg++.  I wish the libg++ documentation said
something about this!

I also received "me too" queries from:

  Christian.Claveleira@irisa.fr (Christian Claveleira)
  puri-sidd@CS.YALE.EDU (Sidd Puri)

I had an earlier response from Per Bothner, but it was more of a
request for clarification.

BTW, I never saw the original article I posted on Usenet, but it seems
that it made it as far as France.  Odd.
--
J. Porter Clark    jpc@avdms8.msfc.nasa.gov or jpc@gaia.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch
Technical Details
Message-ID: <jpc.727995377@avdms8.msfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!avdms8.msfc.nasa.gov!jpc
References: <jpc.727547925@avdms8.msfc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!avdms8.msfc.nasa.gov!jpc
From: jpc@avdms8.msfc.nasa.gov (J. Porter Clark)
Newsgroups: gnu.g++.lib.bug
Subject: SUMMARY: libg++ 2.3 and SunOS 4.1.3
Date: 25 Jan 1993 21:15:45 -0500
Organization: NASA/MSFC
Lines: 44
Sender: daemon@cis.ohio-state.edu
Approved: bug-lib-g++@prep.ai.mit.edu
Distribution: gnu
Message-ID: <jpc.727995377@avdms8.msfc.nasa.gov>
References: <jpc.727547925@avdms8.msfc.nasa.gov>