[webkit-dev] Can any one enlight me on this matter; linking problem?

KwangYul Seo kwangyul.seo at gmail.com
Sat Nov 8 19:09:06 PST 2008


Hi,

I had the same problem compilin WebKit on the maemo platform.

I modified the constructor of StyleTransformData in
StyleTransformData.cpp to the following:

StyleTransformData::StyleTransformData()
{
    m_operations = (RenderStyle::initialTransform());
    m_x = (RenderStyle::initialTransformOriginX());
    m_y = (RenderStyle::initialTransformOriginY());
}

I don't know why the compilation failed, but this fixes the problem.

BTW, the latest WebKit on the maemo platform has a severe problem. It
spends 100% CPU all the time, but GtkLauncher takes several minutes to
load the inital Google page.

Regards,
Kwang Yul Seo




2008/10/20 Mikael Tennhammar <Mikael.Tennhammar at teleca.com>:
> Hi !
>
>
>
> When building webkit(gtk) on the maemo platform (i.e. in then Scratchbox
> ARMEL ) I get the following linking problem:
>
>
>
> ./.libs/libWebCore.a(libWebCore_la-StyleTransformData.o):(.bss._ZZN7WebCore11RenderStyle16initialTransformEvE4tops[*WebCore::RenderStyle::initialTransform()::ops]+0x0):
> multiple definition of `WebCore::RenderStyle::initialTransform()::tops'
>
> ./.libs/libWebCore.a(libWebCore_la-CSSStyleSelector.o):(.bss._ZZN7WebCore11RenderStyle16initialTransformEvE4tops[WebCore::RenderStyle::initialTransform()::ops]+0x0):
> first defined here
>
>
>
>
>
> When I build on my ubuntu for (gtk) it works fine….
>
> The version is the latest, but I have had the problem at least last week as
> well.
>
> Does anyone knows the source of problem or could direct me in some direction
> (tool chain versions?)
>
>
>
>
>
> A Detailed printout of the problem:
>
> -----------------------------------------
>
> creating libWebCore.la
>
> (cd .libs && rm -f libWebCore.la && ln -s ../libWebCore.la libWebCore.la)
>
> /bin/sh ./libtool --tag=CXX --mode=link g++     -o libwebkit-1.0.la -rpath
> /usr/local/lib  -version-info 1:0:0
> Wl,--version-script,/home/miws/WebKit/symbols.filter
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-ChromeClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-ContextMenuClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-DragClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-EditorClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-FrameLoaderClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-InspectorClientGtk.lo
> WebKit/gtk/WebCoreSupport/libwebkit_1_0_la-PasteboardHelperGtk.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitnetworkrequest.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitprivate.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitversion.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitwebbackforwardlist.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitwebframe.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitwebhistoryitem.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitwebsettings.lo
> WebKit/gtk/webkit/libwebkit_1_0_la-webkitwebview.lo
> DerivedSources/libwebkit_1_0_la-webkitenumtypes.lo
> DerivedSources/libwebkit_1_0_la-webkitmarshal.lo libWebCore.la
>
> g++ -shared -nostdlib
> /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib/crti.o
> /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/crtbeginS.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-ChromeClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-ContextMenuClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-DragClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-EditorClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-FrameLoaderClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-InspectorClientGtk.o
> WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-PasteboardHelperGtk.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitnetworkrequest.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitprivate.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitversion.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebbackforwardlist.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebframe.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebhistoryitem.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebsettings.o
> WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebview.o
> DerivedSources/.libs/libwebkit_1_0_la-webkitenumtypes.o
> DerivedSources/.libs/libwebkit_1_0_la-webkitmarshal.o -Wl,--whole-archive
> ./.libs/libWebCore.a -Wl,--no-whole-archive  -L/usr/lib
> /usr/lib/libgthread-2.0.so -lgtk-x11-2.0 -lgdk-x11-2.0
> /usr/lib/libatk-1.0.so -lrt -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0
> /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so
> /usr/lib/libglib-2.0.so -lXt -lX11 -lSM -lICE /usr/lib/libcurl.so -lssl
> -lcrypto -lcairo -lfontconfig -lfreetype -licui18n -licuuc -licudata
> /usr/lib/libsqlite3.so -ldl /usr/lib/libxslt.so -lz -lxml2
> /usr/lib/libjpeg.so -lpthread
> -L/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4
> -L/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc
> -L/usr/lib/gcc/arm-none-linux-gnueabi/3.4.4
> -L/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib
> -lstdc++ -lm -lc -lgcc_s
> /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/crtendS.o
> /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/lib/crtn.o
> -Wl,-soname -Wl,libwebkit-1.0.so.1 -o .libs/libwebkit-1.0.so.1.0.0
>
> ./.libs/libWebCore.a(libWebCore_la-StyleTransformData.o):(.bss._ZZN7WebCore11RenderStyle16initialTransformEvE4tops[*WebCore::RenderStyle::initialTransform()::tops]+0x0):
> multiple definition of `WebCore::RenderStyle::initialTransform()::tops'
>
> ./.libs/libWebCore.a(libWebCore_la-CSSStyleSelector.o):(.bss._ZZN7WebCore11RenderStyle16initialTransformEvE4tops[WebCore::RenderStyle::initialTransform()::tops]+0x0):
> first defined here
>
> collect2: ld returned 1 exit status
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>


More information about the webkit-dev mailing list