Mailinglist Archive: opensuse-buildservice (197 mails)

< Previous Next >
Re: [opensuse-buildservice] qt3-3.3.6-129.2 doesn't load any database modules
  • From: Hans-Peter Jansen <hpj@xxxxxxxxx>
  • Date: Thu, 29 Jun 2006 19:26:00 +0200
  • Message-id: <200606291926.00484.hpj@xxxxxxxxx>
Am Dienstag, 27. Juni 2006 14:59 schrieb Hans-Peter Jansen:
> Hi,
>
> Qt3 from KDE:/KDE3/SUSE_Linux_9.3 won't load any database modules,
> although plenty of them are installed:
>
> qt3-unixODBC-3.3.6-1.8
> qt3-devel-3.3.6-129.2
> qt3-devel-tools-3.3.6-1.8
> qt3-postgresql-3.3.6-1.8
> qt3-sqlite-3.3.6-1.8
> qt3-devel-doc-3.3.6-1.57
> qt3-examples-3.3.6-1.8
> qt3-mysql-3.3.6-1.8
> qt3-3.3.6-129.2
> qt3-extensions-3.3.6-1.8
>
> Check yourself with dbtest.cpp
>
> #include <qapplication.h>
> #include <qsqldatabase.h>
>
> int main(int argc, char *argv[])
> {
> QApplication app(argc, argv);
> qDebug("Available Qt database drivers: ");
> QStringList list = QSqlDatabase::drivers();
> QStringList::Iterator it = list.begin();
> while( it != list.end() ) {
> qDebug( *it );
> ++it;
> }
> return 0;
> }
>
> dbtest.pro:
> SOURCES = dbtest.cpp
>
> Any idea, what's wrong here?

- Could somebody confirm this?
- Is bugzilla a better place for such deficits?

Or asking more heretically: Is this KDE supposed to be usable?
E.g. it took me a while to get kmail going after the update with about
10 crash dumps to prove that fact.. Now, I'm down to 1-2 crashes per
day. The whole thing "feels" a lot more fragile then the one
distributed..

Back on topic:
~> strace -fs512 ./dbtest 2>&1 | grep 'sql'
access("/opt/kde3/lib64/kde3/plugins/sqldrivers/.", F_OK) = -1 ENOENT
(No such file or directory)
access("/opt/kde3/lib/kde3/plugins/sqldrivers/.", F_OK) = -1 ENOENT (No
such file or directory)
access("/home/hp/.kde/lib/kde3/plugins/sqldrivers/.", F_OK) = -1 ENOENT
(No such file or directory)
access("/usr/lib/qt3/plugins/sqldrivers/.", F_OK) = 0
open("/usr/lib/qt3/plugins/sqldrivers", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 5
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so",
{st_mode=S_IFREG|0755, st_size=60341, ...}) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so",
{st_mode=S_IFREG|0755, st_size=82994, ...}) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so",
{st_mode=S_IFREG|0755, st_size=49951, ...}) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so",
{st_mode=S_IFREG|0755, st_size=117409, ...}) = 0
access("/net/tyrex/home/hp/src/qt/cdcollection/dbtest/sqldrivers/.",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so",
{st_mode=S_IFREG|0755, st_size=49951, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
read(7, "ll-config
no-opengl^e2006-06-20T12:11:12^e\nlib/qt3/plugins/sqldrivers/libqsqlpsql.non-mt.so=30304^e1^ei686
Linux g++-3.* full-config
no-opengl^e2005-03-22T21:06:36^e\nlib/qt3/plugins/sqldrivers/libqsqlpsql.so=30306^e3^ei686
Linux g++-3.* full-config
no-opengl^e2006-06-20T12:11:12^e\nlib/qt3/plugins/styles/thinkeramik.so=30304^e3^ei686
Linux g++-3.* full-config^e2006-06-19T13:35:37^e\n\n", 4096) = 385
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so",
{st_mode=S_IFREG|0755, st_size=60341, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so",
{st_mode=S_IFREG|0755, st_size=117409, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so",
{st_mode=S_IFREG|0755, st_size=82994, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so",
{st_mode=S_IFREG|0755, st_size=49951, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlite.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so",
{st_mode=S_IFREG|0755, st_size=60341, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so",
{st_mode=S_IFREG|0755, st_size=117409, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlodbc.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
lstat64("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so",
{st_mode=S_IFREG|0755, st_size=82994, ...}) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0
access("/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so", F_OK) = 0

Compared to the qt3-3.3.4-11.3, these commands are "missing" in the case
of the QMYSQL3 module:
-open("/usr/lib/qt3/plugins/sqldrivers/libqsqlmysql.so", O_RDONLY) = 4
-read(4, "\177ELF...) = 512
-fstat64(4, {st_mode=S_IFREG|0755, st_size=44316, ...}) = 0
-old_mmap(NULL, 42784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
4, 0) = 0x40d04000
-madvise(0x40d04000, 42784, MADV_SEQUENTIAL|0x1) = 0
-old_mmap(0x40d0e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 4, 0xa000) = 0x40d0e000
-close(4) = 0
-open("/etc/ld.so.cache", O_RDONLY) = 4
-fstat64(4, {st_mode=S_IFREG|0644, st_size=55801, ...}) = 0
-old_mmap(NULL, 55801, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40d58000
-close(4) = 0
-open("/usr/lib/libmysqlclient.so.14", O_RDONLY) = 4
[...]

Qt3 sees, accesses and then ignores the db modules. Strange, isn't it?

Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice-help@xxxxxxxxxxxx

< Previous Next >
References