Bug 178133

Summary: [WPE] Cannot link against libWPEWebkit due to wrong contents of wpe-webkit.pc
Product: WebKit Reporter: Adrian Perez <aperez>
Component: Tools / TestsAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, clopez, commit-queue, lforschler, mcatanzaro, webkit-bug-importer, zan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Adrian Perez 2017-10-10 09:51:22 PDT
The “wpe-webkit.pc” file contains:

    Requires.private: glib-2.0 libsoup-2.4
    Libs: -L${libdir} -lWPEWebKit -lWPE

There is no “libWPE.so*” so of course linking fails.

Once “-lWPE” is removed, the following error happens at link time:

    /home/aperez/devel/wpe/buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/6.4.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: CMakeFiles/dinghy.dir/dinghy.c.o: undefined
 reference to symbol 'g_main_loop_unref'                                                                                                                     
    /home/aperez/devel/wpe/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/lib/libglib-2.0.so.0: error adding symbols: DSO missing from command line
Comment 1 Adrian Perez 2017-10-10 09:56:38 PDT
Created attachment 323312 [details]
Patch
Comment 2 WebKit Commit Bot 2017-10-10 10:45:01 PDT
Comment on attachment 323312 [details]
Patch

Clearing flags on attachment: 323312

Committed r223133: <http://trac.webkit.org/changeset/223133>
Comment 3 WebKit Commit Bot 2017-10-10 10:45:02 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2017-10-10 10:47:32 PDT
<rdar://problem/34913841>