Bug 121282 - [GTK] Fix build break caused by missing libm.
Summary: [GTK] Fix build break caused by missing libm.
Status: RESOLVED DUPLICATE of bug 119688
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: ChangSeok Oh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 01:56 PDT by ChangSeok Oh
Modified: 2013-09-20 03:01 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.16 KB, patch)
2013-09-13 02:04 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ChangSeok Oh 2013-09-13 01:56:44 PDT
I don't know what causes this, but libm seems missed.

CCLD   Programs/unittests/testdomdomwindow
  CCLD   Programs/unittests/testdomdocument
//usr/lib/gcc/x86_64usr/lib-linux/-gnugcc//4.7x86_64-/.linux-./gnu/4.7../.././x86_64.-linux/-gnu./libxslt.so.: /error:. undefined. reference/ tox86_64-linux '-fmod'gnu
//usr/libxslt.solib/gcc/x86_64: -error:linux undefined- referencegnu to/ '4.7fmod'/
/.usr/.lib//gcc/.x86_64-.linux-/gnu/.4.7/...//../x86_64-.linux-.gnu//libxslt.so: errorx86_64-: undefined referencelinux- gnu/tolibxslt.so:  error': floorundefined 'reference 
to /'floorusr'
//usrlib/lib//gccgcc/x86_64/-linuxx86_64-gnu/4.7-linux/-gnu/..usr//../lib//gcc/4.7x86_64-/.linux-..gnu.///x86_644.7../././-linux.../.../-x86_64-/linux-gnu/gnu/x86_64libxslt.so:-linux errorlibxslt.so: :undefined -reference  to gnu'fmoderror'
//usr:/liblibxslt.so/gcc undefined/x86_64:-linux -gnu reference/4.7error/.:./ .. /.to./undefinedx86_64- 'linux- gnu/reference libxslt.sopow'
: error: to undefined 'reference topow' '
floor'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'pow'
collect2: error: ld returned 1 exit statuscollect2: error: ld returned 1 exit statuscollect2: error: ld returned 1 exit status


make[1]: *** [Programs/unittests/testdomdocument] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Programs/unittests/testcontextmenu] Error 1
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'fmod'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'floor'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'pow'
make[1]: *** [Programs/unittests/testdomdomwindow] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Programs/unittests/testapplicationcache] Error 1
make[1]: Leaving directory `/home/shivamidow/Projects/WebKit/WebKitBuild/Release'
make: *** [all] Error 2
Comment 1 ChangSeok Oh 2013-09-13 02:04:47 PDT
Created attachment 211520 [details]
Patch
Comment 2 ChangSeok Oh 2013-09-13 02:17:18 PDT
(In reply to comment #1)
> Created an attachment (id=211520) [details]
> Patch

This is a libxslt bug. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721602
We would be better to wait the next libxslt release. In the meantime, you can apply this patch to avoid the break for your convenient.
Comment 3 Alberto Garcia 2013-09-13 02:18:34 PDT
A workaround is to add -lm to the Libs: section in /usr/lib/*/pkgconfig/libxslt.pc
Comment 4 ChangSeok Oh 2013-09-13 02:26:07 PDT

*** This bug has been marked as a duplicate of bug 119688 ***