Gentoo Archives: gentoo-user

From: Corbin Bird <corbinbird@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] webkit-gtk-2.14.2 cant find sqlite3 symbols
Date: Tue, 07 Feb 2017 23:24:52
Message-Id: 589A56D7.30101@charter.net
In Reply to: Re: [gentoo-user] webkit-gtk-2.14.2 cant find sqlite3 symbols by kelly hirai
1 On 02/07/2017 09:55 AM, kelly hirai wrote:
2 >
3 >
4 > On 02/06/2017 06:31 PM, Corbin Bird wrote:
5 >> On 02/06/2017 01:09 PM, kelly hirai wrote:
6 >>> hello fellow gentoo-users,
7 >>>
8 >>> for about a month now, i have not been able to make
9 >>> webkit-gtk-2.14.[2,3] compile. it terminates at the linking step
10 >>> complaining it cant find some sqlite functions.
11 >>>
12 >>> ./configure phase reports sqlite3 availability
13 >>>
14 >>> -- Checking for module 'sqlite3'
15 >>> -- Found sqlite3, version 3.13.0
16 >>> -- Found Sqlite: /usr/include
17 >>>
18 >>> but when it comes time to do the linking it cant find it:
19 >>>
20 >>> FAILED: : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2
21 >>> -pipe -fno-strict-aliasing -std=c++1y -Wl,--no-undefined -Wl,-O1
22 >>> -Wl,--as-needed -Wl,--no-keep-memory -fuse-ld=gold
23 >>> -Wl,--disable-new-dtags -fuse-ld=gold -Wl,--disable-new-dtags
24 >>> -Wl,--version-script,/var/tmp/portage/net-libs/webkit-gtk-2.14.2/work/webkitgtk-2.14.2/Source/cmake/gtksymbols.filter
25 >>>
26 >>> -shared -Wl,-soname,libwebkit2gtk-4.0.so.37 -o
27 >>> lib/libwebkit2gtk-4.0.so.37.14.9 @CMakeFiles/WebKit2.rsp && :
28 >>> lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/sql/SQLiteDatabase.cpp.o):SQLiteDatabase.cpp:function
29 >>>
30 >>> void
31 >>> std::__once_call_impl<std::_Bind_simple<WebCore::initializeSQLiteIfNecessary()::{lambda()#1}
32 >>>
33 >>> ()> >(): error: undefined reference to 'sqlite3_initialize'
34 >>> lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/sql/SQLiteDatabase.cpp.o):SQLiteDatabase.cpp:function
35 >>>
36 >>> void
37 >>> std::__once_call_impl<std::_Bind_simple<WebCore::initializeSQLiteIfNecessary()::{lambda()#1}
38 >>>
39 >>> ()> >(): error: undefined reference to 'sqlite3_errstr'
40 >>> lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/sql/SQLiteDatabase.cpp.o):SQLiteDatabase.cpp:function
41 >>>
42 >>> WebCore::SQLiteDatabase::setCollationFunction(WTF::String const&,
43 >>> std::function<int (int, void const*, int, void const*)>): error:
44 >>> undefined reference to 'sqlite3_create_collation_v2'
45 >>> lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/sql/SQLiteDatabase.cpp.o):SQLiteDatabase.cpp:function
46 >>>
47 >>> WebCore::SQLiteDatabase::removeCollationFunction(WTF::String const&):
48 >>> error: undefined reference to 'sqlite3_create_collation_v2'
49 >>> collect2: error: ld returned 1 exit status
50 >>>
51 >>> the symbols seem to be in the library:
52 >>>
53 >>> strings /usr/lib32/libsqlite3.so | grep create_collation_
54 >>> sqlite3_create_collation_v2
55 >>>
56 >>> strings /usr/lib64/libsqlite3.so | grep create_collation_
57 >>> sqlite3_create_collation_v2
58 >>>
59 >>> i'm stumped here. i don't see any explicit linking flags. the
60 >>> @CMakefiles/WebKit2.rsp doesn't make sense to me, maybe its in there?
61 >>>
62 >>> k.
63 >> Please post the USE flags set for all the following : "dev-db/sqlite:3"
64 >> and "net-libs/webkit-gtk:2", "net-libs/webkit-gtk:3",
65 >> "net-libs/webkit-gtk:4". ( Yes, webkit-gtk has three slots. 3 slots = 3
66 >> possible different sets of use flags. )
67 >>
68 >> Corbin
69 >>
70 > thanks for looking at this Corbin. :)
71 >
72 > [I] net-libs/webkit-gtk
73 > Available versions:
74 > (3) 2.4.11-r1(3/25)
75 > (2) 2.4.11-r200
76 > (4) 2.12.5(4/37)^t ~2.14.2(4/37)^t ~2.14.3(4/37)^t
77 > {(+)X aqua coverage debug doc +egl +geoloc +geolocation gles2
78 > gnome-keyring +gstreamer +introspection +jit libnotify nsplugin
79 > +opengl spell test wayland +webgl
80 > Installed versions:
81 > 2.4.11-r1(3)(01:04:58 PM 01/13/2017)(X egl geolocation
82 > gnome-keyring gstreamer introspection jit opengl spell webgl -aqua
83 > -coverage -debug -gles2 -test -wayland)
84 > 2.12.5(4)^t(01:07:41 AM 12/13/2016)(X egl geolocation
85 > gnome-keyring gstreamer introspection jit libnotify opengl spell webgl
86 > -aqua -coverage -doc -gles2 -nsplugin -test -wayland)
87 >
88 > [I] dev-db/sqlite
89 > Available versions: (3) 3.12.0 ~3.12.1 ~3.12.2 3.13.0 ~3.14.1
90 > ~3.14.2 ~3.15.1 ~3.15.2 ~3.16.2
91 > {debug doc icu +readline secure-delete static-libs tcl test
92 > tools ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64"
93 > ABI_X86="32 64 x32"}
94 > Installed versions: 3.13.0(3)(11:35:43 AM 02/06/2017)(readline
95 > -debug -doc -icu -secure-delete -static-libs -tcl -test -tools
96 > ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64"
97 > ABI_X86="32 64 -x32")
98 >
99 >
100 -------------
101 I just compiled / installed webkit-gtk-2.14.3 with no problems.
102
103 It replaced this version of webkit :
104 [ebuild R ] net-libs/webkit-gtk-2.12.5:4/37::gentoo USE="(X)
105 coverage egl geolocation gnome-keyring gstreamer introspection libnotify
106 nsplugin opengl spell wayland webgl (-aqua) -doc -gles2 -jit {-test}" 0 KiB
107
108
109 These are the USE flags and package versions on my system :
110 [ebuild R ~] dev-db/sqlite-3.16.2:3::gentoo USE="icu readline
111 secure-delete static-libs tcl tools -debug -doc {-test}" ABI_X86="32
112 (64) (-x32)" 0 KiB
113 [ebuild R ~] net-libs/webkit-gtk-2.14.3:4/37::gentoo USE="(X)
114 coverage egl geolocation gnome-keyring gstreamer introspection libnotify
115 nsplugin opengl spell wayland webgl (-aqua) -doc -gles2 -jit {-test}" 0 KiB
116
117 -------------
118
119 Suggestion : reinstall sqlite with the following USE flags "tools" +
120 "static-libs" + "icu" in "package.use" for sqlite, then attempt
121 compiling webkit-gtk.
122
123 I will be very surprised if webkit doesn't find the necessary sqlite
124 deps, after this update.
125
126 Corbin

Replies

Subject Author
Re: [gentoo-user] webkit-gtk-2.14.2 cant find sqlite3 symbols kelly hirai <kgh03@×××.edu>