Summary: | dev-db/sqlite-3.6.22: libsqlite3.so isnt properly linked | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Library | Assignee: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aballier, betelgeuse, cornicx, dliana, jackdachef, james.ausmus, schulz.benjamin, tetromino, zeekec |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log
build-log emerge --info sqlite-3.6.22-dlopen.patch ebuild to use above patch ebuild to use above patch |
Description
Juergen Rose
2010-01-13 13:22:25 UTC
Created attachment 216348 [details]
/var/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log
on my system, it seems that one can emerge it either with mysql or sqlite, but not with both. Unfortunately, I need mysql for Kde4's akonadi, which is needed by kmail. I also need sqllite for qt-assistant and for the plotting program qtiplot.... So this bug implies that some software cannot be installed at the same time. (In reply to comment #2) Huh ? What are you talking about ? qt-sql database backends are independent of each other. As for the bug, that output suggests a problem with sqlite3, not qt-sql. build log of that one, please. yes you are right. It seems that I was upgrading from a previous version, where both useflags worked and got confused.Sorry. Here is more output: MySQL (thread-safe) enabled. OCI auto-detection... () x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o oci.o oci.cpp oci.cpp:42:17: Fehler: oci.h: Datei oder Verzeichnis nicht gefunden gmake: *** [oci.o] Fehler 1 OCI disabled. ODBC auto-detection... () x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o odbc.o odbc.cpp linking odbc ODBC enabled. PostgreSQL auto-detection... () x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W -I../../../mkspecs/linux-g++ -I. -I/usr/include/postgresql-8.4 -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o psql.o psql.cpp linking psql PostgreSQL enabled. SQLite auto-detection... () x86_64-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -Wall -W -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/freetype2 -o sqlite.o sqlite.cpp linking sqlite /usr/lib64/libsqlite3.so: undefined reference to `dlsym' /usr/lib64/libsqlite3.so: undefined reference to `dlerror' /usr/lib64/libsqlite3.so: undefined reference to `dlopen' /usr/lib64/libsqlite3.so: undefined reference to `dlclose' collect2: ld gab 1 als Ende-Status zurück gmake: *** [sqlite] Fehler 1 SQLite disabled. SQLite support cannot be enabled due to functionality tests! Turn on verbose messaging (-v) to ./configure to see the final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue. * ERROR: x11-libs/qt-sql-4.6.0-r1 failed: * ./configure failed * * Call stack: * ebuild.sh, line 54: Called src_configure * environment, line 3490: Called qt4-build_src_configure * environment, line 3142: Called die * The specific snippet of code: * ./configure ${myconf} || die "./configure failed"; * * If you need support, post the output of 'emerge --info =x11-libs/qt-sql-4.6.0-r1', * the complete build log and the output of 'emerge -pqv =x11-libs/qt-sql-4.6.0-r1'. * The complete build log is located at '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/temp/environment'. * S: '/tmp/portage/x11-libs/qt-sql-4.6.0-r1/work/qt-everywhere-opensource-src-4.6.0' Created attachment 216375 [details]
build-log
Created attachment 216376 [details]
emerge --info
This is caused by Created attachment 216381 [details, diff]
sqlite-3.6.22-dlopen.patch
(sorry for fail post above - epiphany went crazy)
This error occurs because sqlite-3.6.22's build process neglects to link libsqlite3.so.0.8.6 to libdl when built with USE=extensions
Patch to make sqlite link correctly is attached
Created attachment 216383 [details]
ebuild to use above patch
Created attachment 216385 [details]
ebuild to use above patch
Solution in comment 8 looks correct. Seems yet another sqlite autotools "success". *** Bug 300916 has been marked as a duplicate of this bug. *** Patch and ebuild works for me. Please get this in the portage three- *** Bug 300817 has been marked as a duplicate of this bug. *** *** Bug 301058 has been marked as a duplicate of this bug. *** *** Bug 301664 has been marked as a duplicate of this bug. *** Patch confirmed... I merely patched the source in the workdir and used ebuild command to compile and merge. Didn't test the ebuild... Thanks for the fix. could someone put this in portage. thx Fixed in 3.6.22-r1. Thanks for contributing! |