GNOME Bugzilla – Bug 477017
Fix compilation with gcc 4.2
Last modified: 2007-09-16 11:01:17 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'
Created attachment 95604 [details] [review] This patch fixes compiling with GCC 4.2
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