Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29654 - glademm-2.0.0: fails to compile with gcc-3.3.1: missing <cassert> include
Summary: glademm-2.0.0: fails to compile with gcc-3.3.1: missing <cassert> include
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High major
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 24855
  Show dependency tree
 
Reported: 2003-09-26 02:14 UTC by Phil Richards
Modified: 2003-10-02 08:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed glademm-2.0.0-gcc-3.3 patch (glademm-2.0.0-gcc-3.3.patch,1.37 KB, patch)
2003-09-26 07:08 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Richards 2003-09-26 02:14:25 UTC
Compiling glademm-2.0.0 with gcc-3.3.1-r3 fails with the following error.
The problem is that <cassert> is not included by any of the source files
that use "assert" - I suspect gcc-3.3.1 has stopped indirectly including
it through one of the other headers.

Anyway, the least invasive fix is to use CXX="g++ -include cassert" on the
build - the real fix is to get it sorted upstream :-)

Work around: CXX="g++ -include cassert" emerge glademm

[...]
if g++ -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -mcpu=i686 -pipe -MT SystemFile.o -MD -MP -MF ".deps/SystemFile.Tpo" \
  -c -o SystemFile.o `test -f 'SystemFile.cc' || echo './'`SystemFile.cc; \
then mv -f ".deps/SystemFile.Tpo" ".deps/SystemFile.Po"; \
else rm -f ".deps/SystemFile.Tpo"; exit 1; \
fi
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/strstream:51,
                 from SystemFile.hh:24,
                 from CxxFile.hh:28,
                 from CxxFile.cc:24:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/strstream:51,
                 from SystemFile.hh:24,
                 from SystemFile.cc:21:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
CxxFile.cc: In member function `CxxFile& CxxFile::EndLine(bool)':
CxxFile.cc:107: error: `assert' undeclared (first use this function)
CxxFile.cc:107: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
CxxFile.cc: In member function `CxxFile_Context CxxFile::Visibility()':
CxxFile.cc:610: error: `assert' undeclared (first use this function)
CxxFile.cc: In member function `CxxFile& CxxFile::Visibility(CxxFile_Context)':
CxxFile.cc:620: error: `assert' undeclared (first use this function)
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-09-26 07:08:23 UTC
Created attachment 18362 [details, diff]
proposed glademm-2.0.0-gcc-3.3 patch

This patch contains gcc-3.3 fixes that have already made their way into
the glademm cvs tree.
( http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&dir=glade-- )

With the patch glademm compiles fine using either gcc-3.2.3 or gcc-3.3.1
Comment 2 Joshua Kinard gentoo-dev 2003-10-02 02:06:47 UTC
Any Gnome folks mind if the patch provided in Comment #2 is applied to close
this bug?  This falls into our field, and unless there are any objections
from the Gnome Team, I'll add the patch to the glademm ebuild in a couple
of days.
Comment 3 foser (RETIRED) gentoo-dev 2003-10-02 05:58:27 UTC
patch looks fine to me, apply as you see fit.
Comment 4 Joshua Kinard gentoo-dev 2003-10-02 08:47:31 UTC
Resolving as FIXED as the patch is now in CVS.