After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 477017 - Fix compilation with gcc 4.2
Fix compilation with gcc 4.2
Status: RESOLVED FIXED
Product: passepartout
Classification: Deprecated
Component: Default
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: Sven Herzberg
passepartout-maint
Depends on:
Blocks:
 
 
Reported: 2007-09-14 19:10 UTC by Gaudenz Steinlin
Modified: 2007-09-16 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch fixes compiling with GCC 4.2 (540 bytes, patch)
2007-09-14 19:13 UTC, Gaudenz Steinlin
none Details | Review

Description Gaudenz Steinlin 2007-09-14 19:10:33 UTC
GCC 4.2 does stricter C++ visibility handling. This leads to the following error:
> if powerpc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../src    -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0   -I/usr/include/freetype2   -I../../src -Wall -MT libps_a-misc.o -MD -MP -MF ".deps/libps_a-misc.Tpo" \
> 	  -c -o libps_a-misc.o `test -f 'misc.cc' || echo './'`misc.cc; \
> 	then mv -f ".deps/libps_a-misc.Tpo" ".deps/libps_a-misc.Po"; \
> 	else rm -f ".deps/libps_a-misc.Tpo"; exit 1; \
> 	fi
> misc.cc:6: error: 'std::ostream& PS::operator<<(std::ostream&, const PS::Concat&)' should have been declared inside 'PS'
> make[4]: *** [libps_a-misc.o] Error 1
> make[4]: Leaving directory `/build/tbm/passepartout-0.6/src/ps'
Comment 1 Gaudenz Steinlin 2007-09-14 19:13:06 UTC
Created attachment 95604 [details] [review]
This patch fixes compiling with GCC 4.2
Comment 2 Sven Herzberg 2007-09-16 11:01:17 UTC
Thank you for taking the time to report this bug. It has been fixed in the current development code and will be included with the next release.

    Fix compilation with gcc 4.2
    
        GCC 4.2 does stricter c++ visibility handling. This patch fixes
        http://bugzilla.gnome.org/show_bug.cgi?id=477017
    
        Written by Gaudenz Steinlin <gaudenz@soziologie.ch>
    
        * src/ps/misc.cc: follow stricter namespace handling for gcc 4.2
    
    
    git-svn-id: svn+ssh://svn.gnome.org/svn/passepartout/trunk@1531 910bfebc-b532-0410-a802-fb3981afa09c