Bug 97075

Summary: [Qt] Link failure with bfd linker on --minimal build
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Simon Hausmann <hausmann>
Severity: Blocker CC: abecsi, hausmann, ossy, vestbo
Priority: P1 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Description Flags
Patch vestbo: review+

Description Csaba Osztrogonác 2012-09-18 23:28:38 PDT
simple --minimal build on Debian Squeeze:
obj/release/platform/graphics/gstreamer/GStreamerVersioning.o: In function `getVideoSizeAndFormatFromCaps(_GstCaps*, WebCore::IntSize&, GstVideoFormat&, int&, int&, int&)':
GStreamerVersioning.cpp:(.text._Z29getVideoSizeAndFormatFromCapsP8_GstCapsRN7WebCore7IntSizeER14GstVideoFormatRiS6_S6_+0x95): undefined reference to `gst_video_format_parse_caps'
GStreamerVersioning.cpp:(.text._Z29getVideoSizeAndFormatFromCapsP8_GstCapsRN7WebCore7IntSizeER14GstVideoFormatRiS6_S6_+0xa7): undefined reference to `gst_video_parse_caps_pixel_aspect_ratio'
collect2: ld returned 1 exit status
make[3]: *** [../../lib/libWebCore.so.1.0.0] Error 1

$ ld -v
GNU ld (GNU Binutils for Debian) 2.20.1-system.20100303

--minimal build on Debian Squeeze with CONFIG+=buildbot:
/ramdisk/qt-linux-release-minimal/build/WebKitBuild/Release/lib/libQtWebKit.so: undefined reference to `gst_video_parse_caps_pixel_aspect_ratio'
/ramdisk/qt-linux-release-minimal/build/WebKitBuild/Release/lib/libQtWebKit.so: undefined reference to `gst_video_format_parse_caps'
collect2: ld returned 1 exit status
make[3]: *** [../../bin/QtWebProcess] Error 1

Otherwise I tried it on Ubuntu 11.10, and got same results.
Comment 1 Csaba Osztrogonác 2012-09-18 23:29:58 PDT
Before https://trac.webkit.org/changeset/128885 gold linker was the default
if ld.gold exists and -fuse-ld=gold is supported gcc option. (It is true on Debian, but false on Ubuntu)
Comment 2 Csaba Osztrogonác 2012-09-18 23:30:39 PDT
It is P1/blocker bug, because --minimal build is broken on the 
build.webkit.org bot because of this bug.
Comment 3 Simon Hausmann 2012-09-19 04:03:53 PDT
Created attachment 164708 [details]
Comment 4 Simon Hausmann 2012-09-19 04:12:29 PDT
Committed r128987: <http://trac.webkit.org/changeset/128987>