Bug 100693 - building failed at WebKitWebProcess
Summary: building failed at WebKitWebProcess
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 12:30 PDT by tjoen
Modified: 2012-11-01 10:48 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tjoen 2012-10-29 12:30:59 PDT
Linux-x32 LFS-like gcc-4.7.2 Gnome-3.6.1 WebKit-r132657

./autogen.sh --prefix=/usr --disable-geolocation \
  --with-gtk=3.0 --with-gstreamer=1.0

Build stops at:
  CXXLD    Programs/WebKitWebProcess
./.libs/libwebkit2gtk-3.0.so: undefined reference to `WebCore::PageGroup::addUserScriptToWorld(WebCore::DOMWrapperWorld*, WTF::String const&, WebCore::KURL const&, WTF::Vector<WTF::String, 0u> const&, WTF::Vector<WTF::String, 0u> const&, WebCore::UserScriptInjectionTime, WebCore::UserContentInjectedFrames)'
and more linking errors

make -n shows:
./doltlibtool --silent --tag=CXX   --mode=link g++  -Wno-c++0x-compat -O2   -o Programs/WebKitWebProcess Source/WebKit2/gtk/Programs_WebKitWebProcess-MainGtk.o libjavascriptcoregtk-3.0.la libwebkit2gtk-3.0.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0   -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0   -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0   -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0

Looks like missing one or more of these I found in the root directory:
libWTF.la         libWebCoreGtk2.la       
libWebCore.la     libWebCoreInternals.la  
libWebCoreGtk.la  libWebCoreModules.la    libwebkitgtk-3.0.la

I tried inserting all of them between libjavascriptcoregtk-3.0.la and
libwebkit2gtk-3.0.la but same result.

Cannot continue building Gnome-3.6.1 so I think it is critical

--disable-static and --disable-webkit2 results in similar linking
problem in another location
Comment 1 tjoen 2012-10-30 02:52:59 PDT
libjavascriptcoregtk-3.0.la:
..
dependency_libs=' -licui18n -licuuc -licudata /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgmodule-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgthread-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgio-2.0.la /usr/lib/libgobject-2.0.la /usr/lib/libgmodule-2.0.la -ldl -lz -lresolv /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgobject-2.0.la /usr/lib/libgthread-2.0.la /usr/lib/libglib-2.0.la /usr/lib/libffi.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libglib-2.0.la /usr/lib/libpcre.la -lpthread -lrt /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libstdc++.la'

libwebkit2gtk-3.0.la:
dependency_libs=' /home/tjoen/rpmbuild/BUILD/WebKit-r132657/libjavascriptcoregtk
-3.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgailutil-3.la /usr/lib/
libgtk-3.la /usr/lib/libgdk-3.la /usr/lib/libXinerama.la /usr/lib/libXrandr.la /
usr/lib/libXcursor.la /usr/lib/libpangocairo-1.0.la /usr/lib/libXi.la /usr/lib/libXcomposite.la /usr/lib/libcairo-gobject.la /usr/lib/libgdk_pixbuf-2.0.la /usr/lib/libatk-bridge-2.0.la /usr/lib/libatk-1.0.la /usr/lib/libatspi.la /usr/lib/libdbus-1.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstapp-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstaudio-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstfft-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstpbutils-1.0.la /usr/lib/libgstvideo-1.0.la /usr/lib/libgstaudio-1.0.la /usr/lib/libgsttag-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstvideo-1.0.la /usr/lib/libgstbase-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstbase-1.0.la /usr/lib/libgstreamer-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgstreamer-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgthread-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgtk-3.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgdk-3.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libatk-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libpangocairo-1.0.la /usr/lib/libpangoft2-1.0.la /usr/lib/libpango-1.0.la /usr/lib/libharfbuzz.la /usr/lib/libstdc++.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgdk_pixbuf-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libcairo-gobject.la /usr/lib/libcairo.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libcairo.la /usr/lib/libpixman-1.la /usr/lib/libfontconfig.la /usr/lib/libpng15.la /usr/lib/libxcb-shm.la /usr/lib/libXrender.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libjpeg.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libsoup-2.4.la /usr/lib/libgio-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgio-2.0.la -lresolv /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libxslt.la /usr/lib/libxml2.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libxml2.la /usr/lib/liblzma.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libGL.la /usr/lib/libglapi.la /usr/lib/libXdamage.la /usr/lib/libxcb-glx.la /usr/lib/libXxf86vm.la /usr/lib/libXext.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libEGL.la /usr/lib/libX11-xcb.la /usr/lib/libxcb-dri2.la /usr/lib/libxcb-xfixes.la /usr/lib/libxcb-render.la /usr/lib/libxcb-shape.la /usr/lib/libudev.la /usr/lib/libdrm.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libpangoft2-1.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libpango-1.0.la /usr/lib/libgobject-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libfreetype.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libfontconfig.la /usr/lib/libfreetype.la -lbz2 /usr/lib/libexpat.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgobject-2.0.la /usr/lib/libgthread-2.0.la /usr/lib/libffi.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libpng15.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libsqlite3.la -licui18n -licuuc -licudata /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libXrender.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libXcomposite.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libXdamage.la /usr/lib/libXfixes.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libXfixes.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libXt.la /usr/lib/libSM.la /usr/lib/libuuid.la /usr/lib/libICE.la /usr/lib/libX11.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libX11.la6-pc-linux-gnu/4.7.2/../../../libenchant.la /usr/lib/libgmodule-2.0.la -lelf /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libgmodule-2.0.la -ldl /usr/lib/libglib-2.0.la /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libglib-2.0.la /usr/lib/libpcre.la -lpthread -lrt /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../libstdc++.la'
Comment 2 tjoen 2012-10-31 08:44:51 PDT
$ ./autogen.sh --prefix=/usr --disable-static --disable-geolocation \
  --disable-webkit2 --with-gtk=3.0 --with-gstreamer=1.0
$ make
...
 make[1]: execvp: /bin/sh: Argument list too long
 make[1]: *** [libWebCore.la] Error 127

I did:
$ xargs --arg-file=myfile ./doltlibtool --silent --tag=CXX   --mode=link g++ -fvisibility-inlines-hidden -fno-rtti -Wno-c++0x-compat -O2   -o libWebCore.la

Again:
$ make
  CXXLD    Programs/unittests/testapplicationcache
./.libs/libwebkitgtk-3.0.so: undefined reference to
`WebCore::Editor::performDelete()'
[etc]

Searching in make -n I found still missing libWebCore.la in
./doltlibtool .. -o Programs/unittests/testapplicationcache ..

Editing that line and adding libWebCore.la before or after libwebkitgtk-3.0.la
results in the same error.

Searching in myfile (the file used for xargs above) I found: ...
Source/WebCore/editing/libWebCore_la-EditorCommand.lo Source/WebCore/editing/libWebCore_la-Editor.lo Source/WebCore/editing/libWebCore_la-FormatBlockCommand.lo ...

$ grep Editor .libs/libWebCore.a
[no results]

How can I find out if that .libs/libWebCore.a is built correctly?
Comment 3 tjoen 2012-11-01 10:48:11 PDT
Errors occurs only with unpatched make-3.82