Bug 106196 - undefined reference to soup cookie and g_thread_get_type of libgstreamer
Summary: undefined reference to soup cookie and g_thread_get_type of libgstreamer
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-06 12:17 PST by Faisal Rehman
Modified: 2014-11-18 09:50 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Faisal Rehman 2013-01-06 12:17:38 PST
While compiling webkit using jhbuild on debian testing, I faced following error. Kindly review and help me out to compile webkit.

./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_is_persistent'
./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_add_cookie_with_first_party'
./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_get_cookie_list'
/opt/gnome/lib64/libgstreamer-1.0.so.0: undefined reference to `g_thread_get_type'
collect2: error: ld returned 1 exit status
make[1]: *** [Programs/unittests/testapplicationcache] Error 1
make[1]: Leaving directory `/home/faisal/checkout/gnome/webkitgtk-1.11.2'
make: *** [all] Error 2
Comment 1 Sergio Villar Senin 2013-01-16 08:53:58 PST
(In reply to comment #0)
> While compiling webkit using jhbuild on debian testing, I faced following error. Kindly review and help me out to compile webkit.
> 
> ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_is_persistent'
> ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_add_cookie_with_first_party'
> ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_get_cookie_list'
> /opt/gnome/lib64/libgstreamer-1.0.so.0: undefined reference to `g_thread_get_type'
> collect2: error: ld returned 1 exit status
> make[1]: *** [Programs/unittests/testapplicationcache] Error 1
> make[1]: Leaving directory `/home/faisal/checkout/gnome/webkitgtk-1.11.2'
> make: *** [all] Error 2

have you run Tools/Scripts/update-webkitgtk-libs as stated here: http://trac.webkit.org/wiki/BuildingGtk#Dependencies ?
Comment 2 Faisal Rehman 2013-01-19 14:04:00 PST
(In reply to comment #1)
> (In reply to comment #0)
> > While compiling webkit using jhbuild on debian testing, I faced following error. Kindly review and help me out to compile webkit.
> > 
> > ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_is_persistent'
> > ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_add_cookie_with_first_party'
> > ./.libs/libwebkitgtk-3.0.so: undefined reference to `soup_cookie_jar_get_cookie_list'
> > /opt/gnome/lib64/libgstreamer-1.0.so.0: undefined reference to `g_thread_get_type'
> > collect2: error: ld returned 1 exit status
> > make[1]: *** [Programs/unittests/testapplicationcache] Error 1
> > make[1]: Leaving directory `/home/faisal/checkout/gnome/webkitgtk-1.11.2'
> > make: *** [all] Error 2
> 
> have you run Tools/Scripts/update-webkitgtk-libs as stated here: http://trac.webkit.org/wiki/BuildingGtk#Dependencies ?

Actually I was interested in checking new features of epiphany 3.7.3.

update-webkitgtk-libs is not present in ~/checkout/gnome/webkitgtk-1.11.4/Tools/Scripts
The webkitgtk01.11.4 folder was downloaded and extracted by jhbuild.

This problem occurs only when I use following command:
$jhbuild build WebKit

But when I compile outside jhbuild using configure, make and then make install, it works:

I set the path for ld and pkg_config:
$ export LD_LIBRARY_PATH=/home/faisal/opt/gnome/lib64
$ export PKG_CONFIG_PATH=/home/faisal/opt/gnome/lib64/pkgconfig

verfied it by:
$ echo $PKG_CONFIG_PATH
$ echo $LD_LIBRARY_PATH

changed the directory to webkit folder which was downloaded and extracted by jhbuild.
$ cd ~/checkout/gnome/webkitgtk-1.11.4

configured with same options as used by jhbuild (from config.log):
$ ./configure --prefix=/opt/gnome --libdir=/opt/gnome/lib64 --enable-introspection --disable-silent-rules --with-gstreamer=1.0 --disable-static --disable-gtk-doc

then make:
$ make
$ make install
Comment 3 Philippe Normand 2014-03-04 23:58:26 PST
Is this still an issue?
Comment 4 Philippe Normand 2014-11-18 09:50:18 PST
No news in months. Please reopen if this issue is still valid.