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 498451 - gcc4.3 build issue
gcc4.3 build issue
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-11-20 10:52 UTC by Sebastien Bacher
Modified: 2007-11-29 22:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
fix build issue (427 bytes, patch)
2007-11-20 10:55 UTC, Sebastien Bacher
none Details | Review

Description Sebastien Bacher 2007-11-20 10:52:36 UTC
gtkmm2.4 2.12.1 doesn't build with gcc4.3

 /usr/lib/gcc-snapshot/bin/g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -I../../gtk -I../../gtk -I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -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/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gtk-unix-print-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall -O2 -c scale.cc  -fPIC -DPIC -o .libs/scale.o
In file included from ../../pango/pangomm/item.h:26,
                 from ../../pango/pangomm/context.h:38,
                 from ../../gtk/gtkmm/widget.h:28,
                 from ../../gtk/gtkmm/range.h:28,
                 from ../../gtk/gtkmm/scale.h:30,
                 from scale.cc:4:
../../pango/pangomm/attributes.h:219: warning: type qualifiers ignored on function return type
scale.cc: In function 'gchar*<unnamed>::Scale_signal_format_value_callback(GtkScale*, gdouble, void*)':
scale.cc:145: error: 'strlen' was not declared in this scope
scale.cc: In static member function 'static gchar* Gtk::Scale_Class::format_value_callback(GtkScale*, gdouble)':
scale.cc:315: error: 'strlen' was not declared in this scope


 /usr/lib/gcc-snapshot/bin/g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -I../../gtk -I../../gtk -I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -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/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gtk-unix-print-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall -O2 -c targetentry.cc  -fPIC -DPIC -o .libs/targetentry.o
targetentry.cc: In constructor 'Gtk::TargetEntry::TargetEntry()':
targetentry.cc:31: error: 'memset' was not declared in this scope
Comment 1 Sebastien Bacher 2007-11-20 10:55:22 UTC
Created attachment 99391 [details] [review]
fix build issue
Comment 2 Murray Cumming 2007-11-20 21:16:25 UTC
Feel free to commit with a ChangeLog entry to trunk and gtkmm-2-12. Thanks again.
Comment 3 Murray Cumming 2007-11-29 08:15:05 UTC
Committed. Thanks.
Comment 4 Sebastien Bacher 2007-11-29 22:03:18 UTC
looks like I've been slow to reply, thanks for commiting the change!