Bug 18163 - [Autotools] Build errors
Summary: [Autotools] Build errors
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 15:23 PDT by Luca Bruno
Modified: 2008-04-08 02:47 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Bruno 2008-03-27 15:23:10 PDT
Hello, it's almost a week i can't get WebKit compiled using autotools, always updating svn. These are errors using ./configure --prefix=/usr/local

WebCore/platform/network/AuthenticationChallengeBase.cpp:32: error: 'AuthenticationChallengeBase' has not been declared
WebCore/platform/network/AuthenticationChallengeBase.cpp:32: error: ISO C++ forbids declaration of 'AuthenticationChallengeBase' with no type
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'int WebCore::AuthenticationChallengeBase()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:33: error: only constructors take base initializers
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:38: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:42: error: ISO C++ forbids declaration of 'AuthenticationChallengeBase' with no type
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'int WebCore::AuthenticationChallengeBase(const WebCore::ProtectionSpace&, const WebCore::Credential&, unsigned int, const WebCore::ResourceResponse&, const WebCore::ResourceError&)':
WebCore/platform/network/AuthenticationChallengeBase.cpp:43: error: only constructors take base initializers
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:52: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:52: error: non-member function 'unsigned int WebCore::previousFailureCount()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'unsigned int WebCore::previousFailureCount()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:54: error: 'm_previousFailureCount' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:57: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:57: error: non-member function 'const WebCore::Credential& WebCore::proposedCredential()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'const WebCore::Credential& WebCore::proposedCredential()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:59: error: 'm_proposedCredential' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:62: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:62: error: non-member function 'const WebCore::ProtectionSpace& WebCore::protectionSpace()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'const WebCore::ProtectionSpace& WebCore::protectionSpace()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:64: error: 'm_protectionSpace' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:67: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:67: error: non-member function 'const WebCore::ResourceResponse& WebCore::failureResponse()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'const WebCore::ResourceResponse& WebCore::failureResponse()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:69: error: 'm_failureResponse' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:72: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:72: error: non-member function 'const WebCore::ResourceError& WebCore::error()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'const WebCore::ResourceError& WebCore::error()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:74: error: 'm_error' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:77: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp:77: error: non-member function 'bool WebCore::isNull()' cannot have cv-qualifier
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'bool WebCore::isNull()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:79: error: 'm_isNull' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:82: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'void WebCore::nullify()':
WebCore/platform/network/AuthenticationChallengeBase.cpp:84: error: 'm_isNull' was not declared in this scope
WebCore/platform/network/AuthenticationChallengeBase.cpp: At global scope:
WebCore/platform/network/AuthenticationChallengeBase.cpp:87: error: 'AuthenticationChallengeBase' is not a class or namespace
WebCore/platform/network/AuthenticationChallengeBase.cpp: In function 'bool WebCore::compare(const WebCore::AuthenticationChallenge&, const WebCore::AuthenticationChallenge&)':
WebCore/platform/network/AuthenticationChallengeBase.cpp:110: error: 'platformCompare' is not a member of 'WebCore::AuthenticationChallenge'
make[1]: *** [WebCore/platform/network/libWebCore_la-AuthenticationChallengeBase.lo] Error 1
make[1]: Leaving directory `/media/common/projects/WebKit'
make: *** [all] Error 2

Also, if i --enable-svg this will give me the following error:

DerivedSources/SVGElementFactory.cpp: In function 'WebCore::SVGElement* WebCore::hkernConstructor(WebCore::Document*, bool)':
DerivedSources/SVGElementFactory.cpp:132: error: expected type-specifier before 'SVGHKernElement'
DerivedSources/SVGElementFactory.cpp:132: error: cannot convert 'int*' to 'WebCore::SVGElement*' in return
DerivedSources/SVGElementFactory.cpp:132: error: expected ';' before 'SVGHKernElement'
DerivedSources/SVGElementFactory.cpp:132: error: 'SVGHKernElement' was not declared in this scope
make[1]: *** [DerivedSources/libWebCore_la-SVGElementFactory.lo] Error 1
make[1]: Leaving directory `/media/common/projects/WebKit'
make: *** [all] Error 2
Comment 1 Luca Bruno 2008-03-27 15:24:29 PDT
Notice that AuthenticationChallengeBase.cpp doesn't include AuthenticationChallengeBase.h, and even including it won't fix the problem totally.
Comment 2 Luca Bruno 2008-03-28 11:03:43 PDT
Fixed the AuthenticationChallenge stuff thanks to Alp.
Comment 3 Luca Bruno 2008-04-02 04:48:41 PDT
After updating now the error changed:

g++ -DHAVE_CONFIG_H -I. -DWTF_USE_ICU_UNICODE=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DNDEBUG -DENABLE_ICONDATABASE=0 -I./WebCore -I./WebCore/platform -I./WebCore/platform/network -I./WebCore/platform/graphics -I./WebCore/platform/text -I./WebCore/loader -I./WebCore/loader/archive -I./WebCore/loader/icon -I./WebCore/css -I./WebCore/dom -I./WebCore/page -I./WebCore/bridge -I./WebCore/bridge/c -I./WebCore/editing -I./WebCore/history -I./WebCore/xml -I./WebCore/html -I./WebCore/bindings/js -I./WebCore/platform/image-decoders -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./WebCore/plugins -I./WebCore/rendering -I./WebCore/bindings/js -DWTF_USE_CURL=1 -I./WebCore/platform/network/curl -DENABLE_CROSS_DOCUMENT_MESSAGING=1 -DENABLE_DATABASE=1 -I./WebCore/platform/sql -I./WebCore/storage -DENABLE_XPATH=1 -DENABLE_XSLT=1 -DENABLE_SVG=1 -I./WebCore/svg -I./WebCore/svg/graphics -I./WebCore/svg/graphics/filters -I./JavaScriptCore -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/wtf -I./JavaScriptCore/kjs -I./DerivedSources -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/wtf/unicode -I./JavaScriptCore/pcre -I./JavaScriptCore/kjs -I./WebKit/gtk/webkit -DBUILDING_CAIRO__=1 -DBUILD_WEBKIT -I./WebCore/platform/gtk -I./WebCore/platform/graphics/gtk -I./WebCore/platform/graphics/cairo -I./WebCore/loader/gtk -I./WebCore/page/gtk -I./WebKit/gtk -I./WebKit/gtk/WebCoreSupport -I./WebKit/gtk/webkit -DUSE_FREETYPE=1 -I./WebCore/svg/graphics/cairo -fno-strict-aliasing -fvisibility-inlines-hidden -fno-rtti -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -fno-exceptions -fvisibility=hidden -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -MT DerivedSources/libWebCore_la-JSSVGAltGlyphElement.lo -MD -MP -MF DerivedSources/.deps/libWebCore_la-JSSVGAltGlyphElement.Tpo -c DerivedSources/JSSVGAltGlyphElement.cpp  -fPIC -DPIC -o DerivedSources/.libs/libWebCore_la-JSSVGAltGlyphElement.o
DerivedSources/JSSVGAltGlyphElement.cpp: In constructor 'WebCore::JSSVGAltGlyphElement::JSSVGAltGlyphElement(KJS::JSObject*, WebCore::SVGAltGlyphElement*)':
DerivedSources/JSSVGAltGlyphElement.cpp:75: error: no matching function for call to 'WebCore::JSSVGTextPositioningElement::JSSVGTextPositioningElement(KJS::JSObject*&, WebCore::SVGAltGlyphElement*&)'
DerivedSources/JSSVGTextPositioningElement.h:36: note: candidates are: WebCore::JSSVGTextPositioningElement::JSSVGTextPositioningElement(KJS::JSObject*, WebCore::SVGTextPositioningElement*)
DerivedSources/JSSVGTextPositioningElement.h:33: note:                 WebCore::JSSVGTextPositioningElement::JSSVGTextPositioningElement(const WebCore::JSSVGTextPositioningElement&)
DerivedSources/JSSVGAltGlyphElement.cpp: In member function 'KJS::JSValue* WebCore::JSSVGAltGlyphElement::getValueProperty(KJS::ExecState*, int) const':
DerivedSources/JSSVGAltGlyphElement.cpp:88: error: invalid static_cast from type 'WebCore::SVGElement*' to type 'WebCore::SVGAltGlyphElement*'
DerivedSources/JSSVGAltGlyphElement.cpp:89: error: invalid use of undefined type 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.h:31: error: forward declaration of 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.cpp:92: error: invalid static_cast from type 'WebCore::SVGElement*' to type 'WebCore::SVGAltGlyphElement*'
DerivedSources/JSSVGAltGlyphElement.cpp:93: error: invalid use of undefined type 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.h:31: error: forward declaration of 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.cpp:96: error: invalid static_cast from type 'WebCore::SVGElement*' to type 'WebCore::SVGAltGlyphElement*'
DerivedSources/JSSVGAltGlyphElement.cpp:97: error: invalid use of undefined type 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.h:31: error: forward declaration of 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.cpp:98: error: no matching function for call to 'toJS(KJS::ExecState*&, WebCore::SVGAnimatedTemplate<WebCore::String>*, WebCore::SVGAltGlyphElement*&)'
./DerivedSources/JSNode.h:71: note: candidates are: KJS::JSValue* WebCore::toJS(KJS::ExecState*, WebCore::Node*)
./DerivedSources/JSNode.h:72: note:                 KJS::JSValue* WebCore::toJS(KJS::ExecState*, WebCore::EventTargetNode*)
./DerivedSources/JSEvent.h:63: note:                 KJS::JSValue* WebCore::toJS(KJS::ExecState*, WebCore::Event*)
./WebCore/bindings/js/JSEventTargetBase.h:152: note:                 KJS::JSValue* WebCore::toJS(KJS::ExecState*, WebCore::EventTarget*)
DerivedSources/JSSVGAnimatedString.h:57: note:                 KJS::JSValue* WebCore::toJS(KJS::ExecState*, WebCore::SVGAnimatedString*, WebCore::SVGElement*)
DerivedSources/JSSVGAltGlyphElement.cpp: In member function 'void WebCore::JSSVGAltGlyphElement::putValueProperty(KJS::ExecState*, int, KJS::JSValue*)':
DerivedSources/JSSVGAltGlyphElement.cpp:113: error: invalid static_cast from type 'WebCore::SVGElement*' to type 'WebCore::SVGAltGlyphElement*'
DerivedSources/JSSVGAltGlyphElement.cpp:115: error: invalid use of undefined type 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.h:31: error: forward declaration of 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.cpp:120: error: invalid static_cast from type 'WebCore::SVGElement*' to type 'WebCore::SVGAltGlyphElement*'
DerivedSources/JSSVGAltGlyphElement.cpp:122: error: invalid use of undefined type 'struct WebCore::SVGAltGlyphElement'
DerivedSources/JSSVGAltGlyphElement.h:31: error: forward declaration of 'struct WebCore::SVGAltGlyphElement'
make[1]: *** [DerivedSources/libWebCore_la-JSSVGAltGlyphElement.lo] Error 1
make[1]: Leaving directory `/media/common/projects/WebKit'
make: *** [all] Error 2
Comment 4 Luca Bruno 2008-04-08 02:47:41 PDT
Fixed using --enable-svg-experimental