View previous topic :: View next topic |
Author |
Message |
foobar.bernie n00b
Joined: 11 Jul 2012 Posts: 5
|
Posted: Tue Oct 16, 2018 1:13 pm Post subject: app-emulation/lxd-3.5 failed: cannot find -lsqlite3 [SOLVED] |
|
|
Freshly installed system and lxd won't compile
Profile: default/linux/amd64/17.0/no-multilib/hardened (stable)
This is where the build failed:
Code: |
/bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -I./include -Wall -O2 -I/var/tmp/portage/app-emulation/lxd-3.5/work/lxd-3.5/dist/sqlite -L/usr/lib/lxd -lsqlite3 -luv -lrt -lpthread -lnsl -ldl -version-info 0:1:0 -Wl,-O1 -Wl,--as-needed -o libdqlite.la -rpath /usr/lib/lxd src/conn.lo src/db.lo src/error.lo src/file.lo src/format.lo src/fsm.lo src/gateway.lo src/lifecycle.lo src/options.lo src/message.lo src/metrics.lo src/queue.lo src/replication.lo src/request.lo src/response.lo src/server.lo src/stmt.lo src/vfs.lo
libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC src/.libs/conn.o src/.libs/db.o src/.libs/error.o src/.libs/file.o src/.libs/format.o src/.libs/fsm.o src/.libs/gateway.o src/.libs/lifecycle.o src/.libs/options.o src/.libs/message.o src/.libs/metrics.o src/.libs/queue.o src/.libs/replication.o src/.libs/request.o src/.libs/response.o src/.libs/server.o src/.libs/stmt.o src/.libs/vfs.o -L/usr/lib/lxd -lsqlite3 -luv -lrt -lpthread -lnsl -ldl -Wl,--as-needed -O2 -Wl,-O1 -Wl,-soname -Wl,libdqlite.so.0 -o .libs/libdqlite.so.0.0.1
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsqlite3
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:811: libdqlite.la] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-emulation/lxd-3.5/work/lxd-3.5/dist/dqlite'
make: *** [Makefile:696: all] Error 2
* ERROR: app-emulation/lxd-3.5::gentoo failed (compile phase):
* emake failed
|
UPDATE: I emerged sqlite separately, which solved the issue.
I wonder why lxd does not pull sqlite automatically. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Wed Oct 17, 2018 2:29 am Post subject: |
|
|
According to the comments in the ebuild, this package bundles a hacked version of sqlite instead of using the system copy as it should. You may have found a configuration where the bundled version is not built, but is still needed. What is the output of emerge --verbose --info app-emulation/lxd? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Wed Oct 17, 2018 5:41 am Post subject: Re: app-emulation/lxd-3.5 failed: cannot find -lsqlite3 [SOL |
|
|
foobar.bernie wrote: | I wonder why lxd does not pull sqlite automatically. |
Probably something related at this bug _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|