Quick fix: disable the "-Werror" :) Real fix: find why you GCC behave like that and send a patch for WebKit.
cheers, Benjamin ________________________________________ From: [email protected] [[email protected]] on behalf of ext luying pan [[email protected]] Sent: Monday, January 24, 2011 11:01 PM To: [email protected] Subject: [webkit-qt] qtwebkit build issue Hi, I'm trying to build qt the the latest webkit.org<http://webkit.org> nightly source code on Centos OS following the instruction on this page https://svn.webkit.org/wiki/BuildingQtOnLinux. I have qt4.7 built and installed successfully. However when I try to build from webkit source. I get the following errors: g++ -c -pipe -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -fno-stack-protector -O3 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DBUILDING_QT__=1 -DNDEBUG -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.6.3/mkspecs/linux-g++ -I../../../../Source/JavaScriptCore -I/usr/local/Trolltech/Qt-4.6.3/include/QtCore -I/usr/local/Trolltech/Qt-4.6.3/include -I../../../../Source/JavaScriptCore -I../../../../Source -I/home/bagside/WebKit-r75891 -I../../../../Source/JavaScriptCore/assembler -I../../../../Source/JavaScriptCore/bytecode -I../../../../Source/JavaScriptCore/bytecompiler -I../../../../Source/JavaScriptCore/debugger -I../../../../Source/JavaScriptCore/interpreter -I../../../../Source/JavaScriptCore/jit -I../../../../Source/JavaScriptCore/parser -I../../../../Source/JavaScriptCore/pcre -I../../../../Source/JavaScriptCore/profiler -I../../../../Source/JavaScriptCore/runtime -I../../../../Source/JavaScriptCore/wtf -I../../../../Source/JavaScriptCore/wtf/gobject -I/home/bagside/WebKit-r75891/Source/JavaScriptCore/wtf/symbian -I../../../../Source/JavaScriptCore/wtf/unicode -I../../../../Source/JavaScriptCore/yarr -I../../../../Source/JavaScriptCore/API -I../../../../Source/JavaScriptCore/ForwardingHeaders -Igenerated -I../../include/QtWebKit -I../../../../Source/JavaScriptCore/pcre -Igenerated -I. -I../../../../Source/JavaScriptCore -I. -o obj/release/DateMath.o ../../../../Source/JavaScriptCore/wtf/DateMath.cpp cc1plus: warnings being treated as errors ../../../../Source/JavaScriptCore/wtf/PassOwnArrayPtr.h: In instantiation of ‘WTF::PassOwnArrayPtr<char>’: ../../../../Source/JavaScriptCore/wtf/DateMath.h:159: instantiated from here ../../../../Source/JavaScriptCore/wtf/PassOwnArrayPtr.h:81: warning: lowering visibility of ‘WTF::PassOwnArrayPtr<U> WTF::adoptArrayPtr(U*) [with U = U, T = char]’ to match its type gmake: *** [obj/release/DateMath.o] Error 1 I need to build from webkit source because I need a bug fix from the latest nightly build. Please help. Luying _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
