[gnome-db] gda_config_get_provider_list



I am having trouble with gda_config_get_provider_list.

Here is some sample code:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <libgda/libgda.h>

int main(int argc, char *argv[])
{
  gda_init(PACKAGE, VERSION, argc, argv);
  GList *prov_list;
  prov_list = gda_config_get_provider_list ();

 *return* EXIT_SUCCESS;
}

(If needed I can tar up the whole directory; this is from a KDevelop project, and has associated Makefiles, etc.)
This stops under gdb with the following backtrace:
Stopped due to shared library event
(gdb) info thread
* 1 Thread -1214126400 (LWP 22036) 0xb7f3cd30 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) backtrace
#0  0xb7f3cd30 in _dl_debug_state () from /lib/ld-linux.so.2
#1  0xb7f3c506 in _dl_init_internal () from /lib/ld-linux.so.2
#2  0xb7b0a04f in dl_open_worker () from /lib/tls/libc.so.6
#3  0xb7f3c3d6 in _dl_catch_error () from /lib/ld-linux.so.2
#4  0xb7b09b80 in _dl_open () from /lib/tls/libc.so.6
#5  0xb7b71d6d in dlopen_doit () from /lib/tls/libdl.so.2
#6  0xb7f3c3d6 in _dl_catch_error () from /lib/ld-linux.so.2
#7  0xb7b722c1 in _dlerror_run () from /lib/tls/libdl.so.2
#8  0xb7b71cf1 in dlopen@@GLIBC_2.1 () from /lib/tls/libdl.so.2
#9 0xb7d3cef8 in _g_module_open (file_name=0x8080000 "/usr/lib/libgda-3.0/providers/libgda-sqlite.so", bind_lazy=1, bind_local=0) at gmodule-dl.c:98 #10 0xb7d3d75a in g_module_open (file_name=0x8074d30 "/usr/lib/libgda-3.0/providers/libgda-sqlite.so", flags=G_MODULE_BIND_LAZY) at gmodule.c:402
#11 0xb7e0219e in gda_config_get_provider_list () at gda-config.c:1477
#12 0x08048611 in main (argc=1, argv=0xbf844f54) at /mnt/raid/home/mj/issues/get_provider_list/src/get_provider_list.c:32
(gdb) frame 0
#0  0xb7f3cd30 in _dl_debug_state () from /lib/ld-linux.so.2

I am thinking that I must be doing something wrong because:
1. I assume this is the same function used by gnome-database-properties-3.0. That program successfully lists the providers. 2. I've checked, and I do have permissions on all the directories and the library libgda-sqlite.so. 3. I have successfully tested connections with gnome-database-properties-3.0.

Could it be my setting of LD_LIBRARY_PATH (=/usr/local/pgsql-8.2.1/lib) This seems doubtful as it is set for the gnome-database-properties-3.0 as well. Also, it is an absolute path passed to g_module_open.

I am using svn 2845 (trunk) of libgda.

Please help,
Mark




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]