FS#51959 - [sqlite] linker error

Attached to Project: Arch Linux
Opened by Baudouin Feildel (amdg) - Saturday, 26 November 2016, 10:28 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 28 November 2016, 21:12 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The sqlite package is installed and up-to-date, but when I try to compile some applications (qgis and nextcloud-client) the link stage failed. The linker say that he can't find reference to function in sqlite:

With qgis:

CMakeFiles/virtuallayerprovider.dir/qgsvirtuallayersqlitemodule.cpp.o : Dans la fonction « qgsvlayerModuleInit » :
qgsvirtuallayersqlitemodule.cpp:(.text+0x1a0e) : référence indéfinie vers « sqlite3_create_module_v2 »
collect2: erreur : ld a retourné 1 code d'état d'exécution

With nextcloud-client:

../../csync/src/libocsync.so.2.2.4 : référence indéfinie vers « sqlite3_threadsafe »
collect2: erreur : ld a retourné 1 code d'état d'exécution

I tried to locate these two methods in the sqlite object file, and I found them:

# objdump -TC /usr/lib/libsqlite3.so | grep sqlite3_create_module_v2
00000000000d9410 g DF .text 0000000000000005 Base sqlite3_create_module_v2

# objdump -TC /usr/lib/libsqlite3.so | grep sqlite3_threadsafe
00000000000863f0 g DF .text 0000000000000006 Base sqlite3_threadsafe

I am not sure if this is related to the SQLite package.

Additional info:
* package version(s) : core/sqlite 3.15.1-2


Steps to reproduce:
download PKGBUILD from AUR for QGis and Nextcloud-Client and try to compile
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 28 November 2016, 21:12 GMT
Reason for closing:  Works for me
Comment by Doug Newgard (Scimmia) - Sunday, 27 November 2016, 05:03 GMT
I built QGIS yesterday before updating it in the AUR. No problems at all. Build it in a clean chroot, I'll bet it works.
Comment by Baudouin Feildel (amdg) - Sunday, 27 November 2016, 08:19 GMT
It seems true that other people can build it. But I found that I am not the only one getting this issue. See :

https://aur.archlinux.org/packages/qgis/?comments=all#comment-556544

https://bugs.archlinux.org/task/45091

The bug was closed, but it seems that the error is not related to the compilation flag.

I will try with a clean chroot. To get one I just have to do as if I was installing archlinux ?
Comment by Doug Newgard (Scimmia) - Sunday, 27 November 2016, 15:26 GMT Comment by Andreas Radke (AndyRTR) - Monday, 28 November 2016, 21:12 GMT
No problems here building nextcloud-client. So not a bug. Works for me.

Loading...