Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6595

Summary: glademm-1.1.1b fails on gcc3.1.1-r1
Product: Gentoo Linux Reporter: Jacob Perkins <jap1>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: nwourms
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glademm-1.1.1b-gcc3.diff

Description Jacob Perkins 2002-08-16 11:12:11 UTC
Lots of warnings from deprecated headers, including last error below:

In file included from /usr/include/g++-v31/backward/algo.h:59,
                 from ../Tag.hh:27,
                 from ../GladeTag.hh:22,
                 from ../Widget.hh:24,
                 from WriterBase.hh:28,
                 from widget.hh:22,
                 from misc.hh:20,
                 from image.cc:21:
/usr/include/g++-v31/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.
image.cc: In member function `void Gtk_Image::EmbedImage(CxxFile&, const
std::string&) const':
image.cc:171: `ifstream' undeclared (first use this function)
image.cc:171: (Each undeclared identifier is reported only once for each
function it appears in.)
image.cc:171: parse error before `(' token
image.cc:172: `is' undeclared (first use this function)
make[3]: *** [image.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/glademm-1.1.1b/work/glademm-1.1.1b/src/writers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glademm-1.1.1b/work/glademm-1.1.1b/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/glademm-1.1.1b/work/glademm-1.1.1b
make: *** [all] Error 2

By the way, glade-1.1.1 and libgnomemm-1.3.4 emerge just fine
Comment 1 Nicholas Wourms 2002-08-26 15:55:13 UTC
This problem was resolved in cvs after the 1.1.1b release.  I have generated and
tested a patch against image.cc, which resulted in a successful build.  If
someone could fixup the ebuild with appropriate guards for gcc versions earlier
than 3.1, that would be great.
Comment 2 Nicholas Wourms 2002-08-26 15:56:55 UTC
Created attachment 3452 [details, diff]
glademm-1.1.1b-gcc3.diff

A patch to image.cc which resolves the c++ errors returned by gcc versions >=
3.1.
Comment 3 foser (RETIRED) gentoo-dev 2002-10-09 14:15:10 UTC
Well instead of the patch i've version bumped the package to 1.1.1c, which
solves the compile problems for me. Test please.

By the looks of the description on the homepage the 1.1 tree can generate code
for both gtk1 and gtk2. This would mean we could ditch the 0.6.x tree. Can
anyone confirm or deny this.
Comment 4 Spider (RETIRED) gentoo-dev 2002-10-10 12:18:57 UTC
supposedly, but that will require the updated libstdc++, and then we need to fix
all libstdc++ dependencies. 
Comment 5 foser (RETIRED) gentoo-dev 2002-10-13 12:59:36 UTC
anyway, this is fixed imo. closing.