Bug#455125: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Sun Dec 9 06:21:12 UTC 2007
Package: webkit
Version: 0~svn27674-1
Usertags: ftbfs-gcc-4.3
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). There's some more information about this at
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include
You can reproduce this problem with gcc-snapshot from unstable. Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere. I suggest you talk to your upstream.
> Automatic build of webkit_0~svn27674-1 on em64t by sbuild/amd64 0.53
...
> g++ -c -g -Wall -O2 -D_REENTRANT -I/usr/include -Wreturn-type -fno-strict-aliasing -g -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -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 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DQT_SHARED -DBUILDING_GTK__=1 -DBUILDING_CAIRO__ -DUSE_SYSTEM_MALLOC -DNDEBUG -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_DATABASE=1 -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_GTK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../WebCore -I../../WebCore/platform/gtk -I../../WebCore/platform/network/curl -I../../WebCore/platform/graphics/cairo -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/Api -I../../WebKit/gtk/WebCoreSupport -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/ForwardingHeaders -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/loader -I../../WebCore/page -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -Itmp -Itmp -Itmp -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/pcre -I/build/tbm/webkit-0~svn27674/build-gtk/JavaScriptCore/kjs/tmp -I../../WebCore/platform/gtk -I../../WebCore/platform/graphics/gtk -I../../WebCore/platform/graphics/cairo -I../../WebCore/platform/graphics/svg/cairo -I../../WebCore/platform/network/curl -I../../WebCore/platform/image-decoders/bmp -I../../WebCore/platform/image-decoders/gif -I../../WebCore/platform/image-decoders/ico -I../../WebCore/platform/image-decoders/jpeg -I../../WebCore/platform/image-decoders/png -I../../WebCore/platform/image-decoders/xbm -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/WebCoreSupport -I../../WebKit/gtk/Api -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../../webkit-0~svn27674 -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/wtf -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/platform/graphics/svg -I../../WebCore/platform/graphics/svg/filters -I../../WebCore/platform/sql -I../../WebCore/storage -I../../WebCore/loader -I../../WebCore/loader/icon -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/page -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -I../../WebCore/bindings/js -I../../WebCore/ksvg2 -I../../WebCore/ksvg2/css -I../../WebCore/ksvg2/svg -I../../WebCore/ksvg2/misc -I../../WebCore/ksvg2/events -I../../WebCore/platform/image-decoders -I../../WebCore -I. -o tmp/function_object.o ../../JavaScriptCore/kjs/function_object.cpp
> g++ -c -g -Wall -O2 -D_REENTRANT -I/usr/include -Wreturn-type -fno-strict-aliasing -g -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -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 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DQT_SHARED -DBUILDING_GTK__=1 -DBUILDING_CAIRO__ -DUSE_SYSTEM_MALLOC -DNDEBUG -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_DATABASE=1 -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_GTK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../WebCore -I../../WebCore/platform/gtk -I../../WebCore/platform/network/curl -I../../WebCore/platform/graphics/cairo -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/Api -I../../WebKit/gtk/WebCoreSupport -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/ForwardingHeaders -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/loader -I../../WebCore/page -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -Itmp -Itmp -Itmp -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/pcre -I/build/tbm/webkit-0~svn27674/build-gtk/JavaScriptCore/kjs/tmp -I../../WebCore/platform/gtk -I../../WebCore/platform/graphics/gtk -I../../WebCore/platform/graphics/cairo -I../../WebCore/platform/graphics/svg/cairo -I../../WebCore/platform/network/curl -I../../WebCore/platform/image-decoders/bmp -I../../WebCore/platform/image-decoders/gif -I../../WebCore/platform/image-decoders/ico -I../../WebCore/platform/image-decoders/jpeg -I../../WebCore/platform/image-decoders/png -I../../WebCore/platform/image-decoders/xbm -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/WebCoreSupport -I../../WebKit/gtk/Api -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../../webkit-0~svn27674 -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/wtf -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/platform/graphics/svg -I../../WebCore/platform/graphics/svg/filters -I../../WebCore/platform/sql -I../../WebCore/storage -I../../WebCore/loader -I../../WebCore/loader/icon -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/page -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -I../../WebCore/bindings/js -I../../WebCore/ksvg2 -I../../WebCore/ksvg2/css -I../../WebCore/ksvg2/svg -I../../WebCore/ksvg2/misc -I../../WebCore/ksvg2/events -I../../WebCore/platform/image-decoders -I../../WebCore -I. -o tmp/identifier.o ../../JavaScriptCore/kjs/identifier.cpp
> g++ -c -g -Wall -O2 -D_REENTRANT -I/usr/include -Wreturn-type -fno-strict-aliasing -g -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -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 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DQT_SHARED -DBUILDING_GTK__=1 -DBUILDING_CAIRO__ -DUSE_SYSTEM_MALLOC -DNDEBUG -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_DATABASE=1 -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_GTK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../WebCore -I../../WebCore/platform/gtk -I../../WebCore/platform/network/curl -I../../WebCore/platform/graphics/cairo -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/Api -I../../WebKit/gtk/WebCoreSupport -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/ForwardingHeaders -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/loader -I../../WebCore/page -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -Itmp -Itmp -Itmp -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/pcre -I/build/tbm/webkit-0~svn27674/build-gtk/JavaScriptCore/kjs/tmp -I../../WebCore/platform/gtk -I../../WebCore/platform/graphics/gtk -I../../WebCore/platform/graphics/cairo -I../../WebCore/platform/graphics/svg/cairo -I../../WebCore/platform/network/curl -I../../WebCore/platform/image-decoders/bmp -I../../WebCore/platform/image-decoders/gif -I../../WebCore/platform/image-decoders/ico -I../../WebCore/platform/image-decoders/jpeg -I../../WebCore/platform/image-decoders/png -I../../WebCore/platform/image-decoders/xbm -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/WebCoreSupport -I../../WebKit/gtk/Api -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../../webkit-0~svn27674 -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/wtf -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/platform/graphics/svg -I../../WebCore/platform/graphics/svg/filters -I../../WebCore/platform/sql -I../../WebCore/storage -I../../WebCore/loader -I../../WebCore/loader/icon -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/page -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -I../../WebCore/bindings/js -I../../WebCore/ksvg2 -I../../WebCore/ksvg2/css -I../../WebCore/ksvg2/svg -I../../WebCore/ksvg2/misc -I../../WebCore/ksvg2/events -I../../WebCore/platform/image-decoders -I../../WebCore -I. -o tmp/internal.o ../../JavaScriptCore/kjs/internal.cpp
> g++ -c -g -Wall -O2 -D_REENTRANT -I/usr/include -Wreturn-type -fno-strict-aliasing -g -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DPNG_NO_MMX_CODE -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 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DQT_SHARED -DBUILDING_GTK__=1 -DBUILDING_CAIRO__ -DUSE_SYSTEM_MALLOC -DNDEBUG -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_DATABASE=1 -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_GTK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../WebCore -I../../WebCore/platform/gtk -I../../WebCore/platform/network/curl -I../../WebCore/platform/graphics/cairo -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/Api -I../../WebKit/gtk/WebCoreSupport -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/ForwardingHeaders -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/loader -I../../WebCore/page -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -Itmp -Itmp -Itmp -I../../JavaScriptCore -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/bindings/c -I../../JavaScriptCore/wtf -I../../JavaScriptCore/pcre -I/build/tbm/webkit-0~svn27674/build-gtk/JavaScriptCore/kjs/tmp -I../../WebCore/platform/gtk -I../../WebCore/platform/graphics/gtk -I../../WebCore/platform/graphics/cairo -I../../WebCore/platform/graphics/svg/cairo -I../../WebCore/platform/network/curl -I../../WebCore/platform/image-decoders/bmp -I../../WebCore/platform/image-decoders/gif -I../../WebCore/platform/image-decoders/ico -I../../WebCore/platform/image-decoders/jpeg -I../../WebCore/platform/image-decoders/png -I../../WebCore/platform/image-decoders/xbm -I/build/tbm/webkit-0~svn27674/WebCore/loader/gtk -I../../WebCore/page/gtk -I../../WebKit/gtk/WebCoreSupport -I../../WebKit/gtk/Api -I../../WebCore -I../../WebCore/ForwardingHeaders -I../../../webkit-0~svn27674 -I../../JavaScriptCore/kjs -I../../JavaScriptCore/bindings -I../../JavaScriptCore/wtf -I../../WebCore/platform -I../../WebCore/platform/network -I../../WebCore/platform/graphics -I../../WebCore/platform/graphics/svg -I../../WebCore/platform/graphics/svg/filters -I../../WebCore/platform/sql -I../../WebCore/storage -I../../WebCore/loader -I../../WebCore/loader/icon -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/page -I../../WebCore/bridge -I../../WebCore/editing -I../../WebCore/rendering -I../../WebCore/history -I../../WebCore/xml -I../../WebCore/html -I../../WebCore/bindings/js -I../../WebCore/ksvg2 -I../../WebCore/ksvg2/css -I../../WebCore/ksvg2/svg -I../../WebCore/ksvg2/misc -I../../WebCore/ksvg2/events -I../../WebCore/platform/image-decoders -I../../WebCore -I. -o tmp/interpreter.o ../../JavaScriptCore/kjs/interpreter.cpp
> ../../JavaScriptCore/kjs/interpreter.cpp: In member function 'KJS::Completion KJS::Interpreter::evaluate(const KJS::UString&, int, const KJS::UChar*, int, KJS::JSValue*)':
> ../../JavaScriptCore/kjs/interpreter.cpp:380: error: 'getpid' was not declared in this scope
> make[2]: *** [tmp/interpreter.o] Error 1
> make[2]: Leaving directory `/build/tbm/webkit-0~svn27674/build-gtk/WebCore'
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-webkit-maintainers
mailing list