By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 657

Summary: [Regression] Can't start KWord or KPresenter from T-Menu
Product: TDE Reporter: Darrell <darrella>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, darrella, slavek.banko
Priority: P1    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: All   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Darrell 2011-11-20 11:35:35 CST
From the default T-Menu I can't start KWord or KPresenter. I can start other KOffice apps from the T-Menu.

I can't start either from KRunner unless I use the %u parameter. I can start either with no parameters from Konsole.

When I start KPresenter from KRunner with the same command as in the T-Menu, kpresenter %u, I receive a message box that says:

Could not open
Reason: the file does not exist.

When close KPresenter I see the following message:

The document '%u' has been modified.
Do you want to save it?

I do not receive any such messages with KWord when using the '%u' parameter.

/opt/trinity/bin is the first directory in my search path, which is set in startkde.

Both KWord and KPresenter start from KRunner if I use the full path.

Both start from the T-Menu if I modify the menu to use full paths.

I don't see anything in the desktop files that is different from the other KOffice apps.

At least one other person has confirmed this behavior?

Paper cut candidate.
Comment 1 Francois Andriot 2011-12-04 06:07:04 CST
It is working correctly here (RHEL, Fedora).
Comment 2 Darrell 2012-01-27 15:17:13 CST
Update with GIT 2838. Same behavior with KWord and KPresenter. KOffice 3.5.10 and KOffice 2 (KDE4) are not installed. There are no other executables on the system with those file names.

/opt/trinity/share/applications/kde/kword.desktop and /opt/trinity/share/applications/kde/kpresent.desktop exist.

BTW, by KRunner, I did not mean KDE4, but the Alt-F2 Run option in Trinity. Does Trinity have a name for that applet?
Comment 3 Darrell 2012-04-28 13:55:01 CDT
Is there a way I can trace/debug this? With the latest GIT I still experience this problem. I have to be able to trace/debug when launching from the menu.
Comment 4 Timothy Pearson 2012-04-28 15:24:08 CDT
The TDE Menu uses the .desktop files to launch the application, whereas the Run Dialog may not.  I would start by looking in the .desktop files for kword and kpresenter to make sure that the Exec= line is correct.
Comment 5 Darrell 2012-04-28 17:05:05 CDT
Everything is as expected.

I just tried again and noticed this in the xsession log:

[tdeinit] Got EXT_EXEC 'kword' from launcher.
The Trinity ltdl loader was unable to dlopen() the shared library '/opt/trinity/lib/trinity/libkwordpart.so' : '/opt/trinity/lib/libkwordprivate.so.4: undefined symbol: _ZN7KSpell212ConfigWidget32setBackgroundCheckingButtonShownEb'
The Trinity ltdl loader was unable to dlopen() the shared library '/opt/trinity/lib/trinity/libkwordpart.so' : '/opt/trinity/lib/libkwordprivate.so.4: undefined symbol: _ZN7KSpell212ConfigWidget32setBackgroundCheckingButtonShownEb'
[tdeinit] PID 3212 terminated.

[tdeinit] Got EXT_EXEC 'kpresenter' from launcher.
The Trinity ltdl loader was unable to dlopen() the shared library '/opt/trinity/lib/trinity/libkpresenterpart.so' : '/opt/trinity/lib/libkpresenterprivate.so.4: undefined symbol: _ZN7KSpell212ConfigWidget32setBackgroundCheckingButtonShownEb'
The Trinity ltdl loader was unable to dlopen() the shared library '/opt/trinity/lib/trinity/libkpresenterpart.so' : '/opt/trinity/lib/libkpresenterprivate.so.4: undefined symbol: _ZN7KSpell212ConfigWidget32setBackgroundCheckingButtonShownEb'

Launching the other koffice apps does not result in those errors.

libkwordprivate.so.4 is installed in /opt/trinity/lib
libkwordpart.so is installed in /opt/trinity/lib/trinity

I don't know what the errors mean or how to resolve, but looks like we now have a clue!

I don't have any symbol debugging support built in right now. :-(

Is this a problem with the way I am compiling?
Comment 6 Darrell 2012-04-28 17:07:38 CDT
Possibly more information:

ld /opt/trinity/lib/libkwordprivate.so.4
ld: warning: cannot find entry symbol _start; not setting start address
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::setBackgroundCheckingButtonShown(bool)'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::save()'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::slotDefault()'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::ConfigWidget(KSpell2::Broker*, TQWidget*, char const*)'

ld /opt/trinity/lib/trinity/libkwordpart.so
ld: warning: cannot find entry symbol _start; not setting start address
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::setBackgroundCheckingButtonShown(bool)'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::save()'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::slotDefault()'
/opt/trinity/lib/libkwordprivate.so.4: undefined reference to `KSpell2::ConfigWidget::ConfigWidget(KSpell2::Broker*, TQWidget*, char const*)'
Comment 7 Darrell 2012-04-28 20:56:46 CDT
When I run kword from the mini cli using no path then I see the "ltdl loader" errors. When I run kword with the full path (/opt/trinity/bin/kword) I do not see the errors. Someting strange going on next door....
Comment 8 Slávek Banko 2012-06-07 18:48:59 CDT
I can confirm the same behavior in 3.5.13.1.
Comment 9 Darrell 2012-06-07 22:00:34 CDT
Modifying the report to a regression for easier identification.
Comment 10 Slávek Banko 2012-06-13 02:09:22 CDT
When I track this error, I noticed the following:

Many files *. la in /opt/trinity/lib/trinity includes a reference to places where performed build: -L/tmp/buildd/koffice-trinity-3.5.13/... I made great cleaning in many Makefile.am.

On Ubuntu, not only that it does not run KWord and KPresenter from the menu, but I can not run KSpread - in any way: missing KFindDialog (=> not linked libkutils).

KWord and KPresenter not explicitly linked to libkspell2, but this alone does not help, because libkspell2 from tdelibs contains an bug. I found that CMake in tdelibs/kspell2/ui defines two targets with same name - kspell2. But each with different SRCS. Due to this, library kspell2 was incomplete.

koffice part fixed in GIT hash 5c69fcd3.
tdelibs part fixed in GIT hash 3e284fad.
Comment 11 Darrell 2012-06-14 08:11:13 CDT
Confirmed --- fixed!

Thank you!