Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257247 - net-im/twinkle-1.4 will not build in the presence of kde4
Summary: net-im/twinkle-1.4 will not build in the presence of kde4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-01 16:45 UTC by Michael Davidsaver
Modified: 2009-02-15 12:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (twinkle-1.4.log,101.80 KB, text/plain)
2009-02-01 16:46 UTC, Michael Davidsaver
Details
Possible fix (twinkle-1.4.1-kde4.patch,892 bytes, patch)
2009-02-01 23:04 UTC, Michael Davidsaver
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Davidsaver 2009-02-01 16:45:44 UTC
I have a system with both kde 3.5 and 4.1 installed.

When the kde use flag is enabled the configure script
finds the wrong include path.

This seems to be because AC_CHECK_FILES() is checking for
a header (kapplication.h) which is present in both kde 3.5 and 4.1
and it finds the 4.1 version (/usr/include) before
the 3.5 version (/usr/kde/3.5/include).

The headers which are not being found in 4.1 'ksystemtray.h' and
'kpopupmenu.h' might be a better ones to test for.

This problem still exists with twinkle 1.4.1.

excepts for build log

...
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-kde --with-ilbc --without-arts --with-zrtp --with-speex --with-x --enable-mitshm --with-xinerama --with-qt-dir=/usr/qt/3 --enable-mt --with-qt-libraries=/usr/qt/3/lib64 --disable-dependency-tracking --disable-debug --without-debug --without-arts --enable-gcc-hidden-visibility --enable-libsuffix=64 --with-extra-includes=/usr/kde/3.5/include --with-extra-libs=/usr/kde/3.5/lib64 --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
...
checking for Qt... libraries /usr/qt/3/lib64, headers /usr/qt/3/include using -mt                        
...
checking for KDE... libraries /usr/kde/3.5/lib64, headers /usr/include                                   
checking if UIC has KDE plugins available... yes                                                         
checking for KDE paths... defaults                                                                       
...                                                                     
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -march=k8 -O2 -pipe -fno-strict-aliasing -D_REENTRANT  -DQT_NO_STL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I.. -I../../src -I/usr/include/libxml2 -I/usr/include -I/usr/qt/3/include -I.ui/ -I. -I.moc/ -o .obj/twinklesystray.o twinklesystray.cpp                                                                          
In file included from twinklesystray.cpp:19:                                                             
twinklesystray.h:25:25: error: ksystemtray.h: No such file or directory                                  
twinklesystray.h:26:24: error: kpopupmenu.h: No such file or directory                                   
twinklesystray.h:35: error: expected class-name before ‘{’ token                                         
twinklesystray.cpp: In constructor ‘t_twinkle_sys_tray::t_twinkle_sys_tray(QWidget*, const char*)’:      
twinklesystray.cpp:24: error: class ‘t_twinkle_sys_tray’ does not have any field named ‘KSystemTray’     
make[3]: *** [.obj/twinklesystray.o] Error 1 
...
Comment 1 Michael Davidsaver 2009-02-01 16:46:43 UTC
Created attachment 180564 [details]
Complete build log
Comment 2 Michael Davidsaver 2009-02-01 23:04:01 UTC
Created attachment 180622 [details, diff]
Possible fix

This convinces the configure script to pull in the correct headers and everything compiles correctly.  Applies to 1.4 and 1.4.1.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2009-02-15 12:51:52 UTC
added - thanks for the patch. I'm not sure its the best solution but its good enough for now. I've notified twinkle's developer of this bug.