[Kmymoney-devel] Re: Compile problem after KDE upgrade

David Houlden djhoulden at gmail.com
Sun Dec 5 21:32:05 CET 2010


On Sunday 05 December 2010 Thomas Baumgart wrote:
> Hi,
>
> on Sunday 05 December 2010 19:54:41 David Houlden wrote:
> > On Sunday 05 December 2010 Thomas Baumgart wrote:
> > > Hi,
> > >
> > > on Sunday 05 December 2010 17:40:21 David Houlden wrote:
> > > > On Sunday 05 December 2010 Cristian Oneț wrote:
> > > > > On Sunday 05 December 2010 16:19:48 David Houlden wrote:
> > > > > > Hi all.
> > > > > >
> > > > > > I suspect this may not be a kmymoney problem at all but would
> > > > > > like your opinion because I am a bit lost. I have been
> > > > > > compiling kmymoney SVN on KDE 4.5.3 without any problems. Today
> > > > > > I upgraded my Slackware current box to KDE 4.5.4 and now I get
> > > > > > an error linking kmymoney.
> > > > > >
> > > > > > Linking CXX executable kmymoney
> > > > > > /usr/lib/libkhtml.so.5.5.0: undefined reference to
> > > > > > `Phonon::VideoPlayer::event(QEvent*)'
> > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > > > Any advice appreciated. Do you think there is a problem with
> > > > > > the kdelibs 4.5.4 package?
> > > > >
> > > > > I don't think so I would suggest running a 'make clean' before
> > > > > running make install.
> > > >
> > > > Thanks for the suggestion Cristian. I did try make clean but it
> > > > didn't help so I deleted my build directory and started again with
> > > > cmake followed by make. I'm still getting the same error.
> > >
> > > Strange. I just tried to see if the symbol is used on my ancient
> > > 4.3.5.
> > >
> > >   objdump -R /usr/lib64/libkhtml.so.5.3.0 | grep Video
> > >
> > > gives an empty result set but there's a reference to phonon:
> > >
> > >   thb at localhost:~> ldd /usr/lib64/libkhtml.so | grep -i phon
> > >         libphonon.so.4 => /usr/lib64/libphonon.so.4
> > > (0x00007f81e083a000)
> > >
> > >
> > > Maybe that helps to isolate the problem.
> >
> > dave:/usr/lib$ objdump -R libkhtml.so.5.5.0 | grep Video
> > 00659f78 R_386_32          _ZN6Phonon11VideoPlayer16staticMetaObjectE
> > 0065a2fc R_386_32          _ZN6Phonon11VideoPlayer5eventEP6QEvent
> > 0065ac6c R_386_32          _ZTIN6Phonon11VideoPlayerE
> > 0069460c R_386_JUMP_SLOT   _ZNK6Phonon11MediaObject8hasVideoEv
> > 0069494c R_386_JUMP_SLOT  
> > _ZN6Phonon11VideoPlayer4loadERKNS_11MediaSourceE 00694aac
> > R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayerD2Ev
> > 00694b90 R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer8isPausedEv
> > 00694f20 R_386_JUMP_SLOT   _ZN6Phonon11VideoWidget14exitFullScreenEv
> > 00695238 R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer11mediaObjectEv
> > 00695310 R_386_JUMP_SLOT  
> > _ZN6Phonon11VideoPlayer4playERKNS_11MediaSourceE 0069531c
> > R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer11videoWidgetEv 006954e0
> > R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayer4playEv
> > 006957a0 R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayer11qt_metacastEPKc
> > 00695c4c R_386_JUMP_SLOT   _ZN6Phonon11VideoWidget15enterFullScreenEv
> > 00695c74 R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayer9setVolumeEf
> > 00695d5c R_386_JUMP_SLOT
> > _ZN6Phonon11VideoPlayer11qt_metacallEN11QMetaObject4CallEiPPv
> > 00695e00 R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer9isPlayingEv
> > 00695fbc R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer11currentTimeEv
> > 006964d4 R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayer5pauseEv
> > 00696c3c R_386_JUMP_SLOT   _ZN6Phonon11VideoPlayerC2EP7QWidget
> > 00696d00 R_386_JUMP_SLOT   _ZNK6Phonon11VideoPlayer9totalTimeEv
> >
> > dave:/usr/lib$ ldd libkhtml.so.5.5.0 | grep -i phon
> >         libphonon.so.4 => /usr/lib/qt/lib/libphonon.so.4 (0xb70a7000)
> >
> > Obviously different to the 4.3.5 output but I'm not sure what it all
> > means.
>
> Can you try, if the attached patch solves the problem. Apply it with
>
>   patch -p0 < phonon.diff
>
> in the main kmymoney directory.

Hi Thomas, I still get the same error. However, I got these messages out of 
cmake after applying your patch.

CMake Warning at /usr/share/apps/cmake/modules/KDE4Macros.cmake:951 
(add_executable):
  Cannot generate a safe linker search path for target kmymoney because 
files
  in some directories may conflict with libraries in implicit directories:

    link library [libphonon.so] in /usr/lib may be hidden by files in:
      /usr/lib/qt/lib

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  kmymoney/CMakeLists.txt:80 (KDE4_ADD_EXECUTABLE)


CMake Warning at /usr/share/apps/cmake/modules/KDE4Macros.cmake:951 
(add_executable):
  Cannot generate a safe runtime search path for target kmymoney because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libphonon.so.4] in /usr/lib may be hidden by files in:
      /usr/lib/qt/lib

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  kmymoney/CMakeLists.txt:80 (KDE4_ADD_EXECUTABLE)

I seem to have two versions of libphonon.so. In /usr/lib 
and /usr/lib/qt/lib. At the moment I can't see how the Slackware packages 
have done this so I need to do a bit more investigation as I may have 
screwed something up. Please don't spend any more time on this just now and 
I'll let you know what I find.



More information about the KMyMoney-devel mailing list