GNOME Bugzilla – Bug 503921
Fails to build with GCC 4.3
Last modified: 2008-02-28 01:05:43 UTC
[ Initially found by Martin Milchmayr, see http://bugs.debian.org/456053 ] The error-viewer extension fails to build with GCC 4.3: > Automatic build of epiphany-extensions_2.20.1-2 on em64t by sbuild/amd64 0.53 ... > g++ -DHAVE_CONFIG_H -I. -I../../.. -I.. -I../../../include -I../../../extensions/error-viewer -DSHARE_DIR=\"/usr/share/epiphany-extensions\" -DPNG_NO_MMX_CODE -DORBIT2=1 -pthread -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/epiphany/2.20 -I/usr/include/libgnomeui-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gconf/2 -I/usr/include/libart-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gail-1.0 -fno-rtti -fshort-wchar -g -Wall -O2 -Wall -Wno-unused -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -g -Wall -O2 -c validate.cpp -fPIC -DPIC -o .libs/liberrorvieweropensp_la-validate.o > validate.cpp: In member function 'void HtmlErrorFinder::handle_line(const char*)': > validate.cpp:143: error: 'strcmp' was not declared in this scope > make[5]: *** [liberrorvieweropensp_la-validate.lo] Error 1 > make[5]: Leaving directory `/build/tbm/epiphany-extensions-2.20.1/extensions/error-viewer/opensp' AIUI this is just a matter of adding a correct "#include <string.h>".
Created attachment 101737 [details] [review] [1/1] Include <cstring> for strcmp. extensions/error-viewer/opensp/validate.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
It's <cstring> for C++ AFAIK.
Ok, I've pushed this now.
*** Bug 519174 has been marked as a duplicate of this bug. ***