Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] webkit-gtk-2.14.2 cant find sqlite3 symbols Corbin Bird <corbinbird@×××××××.net>