Bug 97075 - [Qt] Link failure with bfd linker on --minimal build
Summary: [Qt] Link failure with bfd linker on --minimal build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Blocker
Assignee: Simon Hausmann
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2012-09-18 23:28 PDT by Csaba Osztrogonác
Modified: 2012-09-19 04:12 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.72 KB, patch)
2012-09-19 04:03 PDT, Simon Hausmann
vestbo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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]
Patch
Comment 4 Simon Hausmann 2012-09-19 04:12:29 PDT
Committed r128987: <http://trac.webkit.org/changeset/128987>