Re: Problem building on Linux with D-Bus

Dmitry Medvinsky <[email protected]> Wed, 26 Oct 2011 13:37:26 +0400
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
> Did you run autogen.sh to create the configure scripts and makefiles? It
> contains some magic to prevent this error....

Oh, I didn't. Thanks. I finally managed to build it.

Only, now it silently quits when I run it. I was able to do some debugging,
here's my last gdb session:

$ gdb ./frontend/gtkmm/src/workrave
Reading symbols from /home/dmedvinsky/projects/opensource/workrave/frontend/gtkmm/src/workrave...done.
(gdb) break Core::init_configurator()
Breakpoint 1 at 0x52589f: file Core.cc, line 189.
(gdb) run
Starting program: /home/dmedvinsky/projects/opensource/workrave/frontend/gtkmm/src/workrave
[Thread debugging using libthread_db enabled]

Breakpoint 1, Core::init_configurator (this=0x849c00) at Core.cc:189
189   string ini_file = Util::complete_directory("workrave.ini", Util::SEARCH_PATH_CONFIG);
(gdb) n
191   if (Util::file_exists(ini_file))
(gdb)
203       configurator = ConfiguratorFactory::create(ConfiguratorFactory::FormatNative);
(gdb) s
ConfiguratorFactory::create (fmt=ConfiguratorFactory::FormatNative) at ConfiguratorFactory.cc:52
52    Configurator *c =  NULL;
(gdb) n
53    IConfigBackend *b = NULL;
(gdb)
56    if (fmt == FormatXml)
(gdb) print fmt
$1 = ConfiguratorFactory::FormatNative
(gdb) n
96    if (fmt == FormatIni)
(gdb)
106       exit(1);
(gdb)
[Inferior 1 (process 26826) exited with code 01]
warning: Error removing breakpoint 0
warning: Error removing breakpoint 0
warning: Error removing breakpoint 0
warning: Error removing breakpoint 0
warning: Error removing breakpoint 0
(gdb)


So there's some problem with configuration backend initialization. I'm building
it to use gdome XML for config, but something goes wrong.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev