Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239791 - kde-base/kopete-4.1.2 fails to build with useflag jabber: qplatformdefs.h missing
Summary: kde-base/kopete-4.1.2 fails to build with useflag jabber: qplatformdefs.h mis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal with 2 votes (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 240373 241762 250936 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-05 00:53 UTC by Rafael Kolless
Modified: 2009-08-09 11:12 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,193.18 KB, text/plain)
2008-10-05 00:55 UTC, Rafael Kolless
Details
eclass-debug.log (eclass-debug.log,7.22 KB, text/plain)
2008-10-05 00:56 UTC, Rafael Kolless
Details
environment (environment,126.63 KB, text/plain)
2008-10-05 00:56 UTC, Rafael Kolless
Details
qt-core log from before (20081026-223454.log,447.67 KB, text/plain)
2008-11-02 12:46 UTC, SpanKY
Details
qt-core log after (20081102-082336.log,448.54 KB, text/plain)
2008-11-02 12:46 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Kolless 2008-10-05 00:53:09 UTC
When kopete is compiled with the USE flag "jabber" it fails with the following message:

[ 69%] Building CXX object kopete/protocols/jabber/libiris/CMakeFiles/iris_kopete.dir/iris/xmpp-im/xmpp_task.o           
/var/tmp/portage/kde-base/kopete-4.1.2/work/kopete-4.1.2/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_task.cpp:21:27: Fehler: qplatformdefs.h: Datei oder Verzeichnis nicht gefunden                                                         
make[2]: *** [kopete/protocols/jabber/libiris/CMakeFiles/iris_kopete.dir/iris/xmpp-im/xmpp_task.o] Fehler 1              
make[1]: *** [kopete/protocols/jabber/libiris/CMakeFiles/iris_kopete.dir/all] Fehler 2 

All other KDE related packages for 4.1.2 built correctly

The failure happens with MAKEOPTS="-j1" also


Reproducible: Always

Steps to Reproduce:
1.emerge =kde-base/kopete-4.1.2 with USE flag jabber
2.
3.

Actual Results:  
fails with error

Expected Results:  
straight compiling

Portage 2.2_rc11 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================                                        
System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Sat, 04 Oct 2008 21:45:01 +0000                                                        
ccache version 2.4 [enabled]                                                                              
app-shells/bash:     3.2_p33                                                                              
dev-java/java-config: 1.3.7, 2.1.6                                                                        
dev-lang/python:     2.5.2-r7                                                                             
dev-python/pycrypto: 2.0.1-r6                                                                             
dev-util/ccache:     2.4-r7                                                                               
sys-apps/baselayout: 1.12.11.1                                                                            
sys-apps/sandbox:    1.2.18.1-r2                                                                          
sys-devel/autoconf:  2.13, 2.61-r2                                                                        
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                                         
sys-devel/binutils:  2.18-r3                                                                              
sys-devel/gcc-config: 1.4.0-r4                                                                            
sys-devel/libtool:   1.5.26                                                                               
virtual/os-headers:  2.6.23-r3                                                                            
ACCEPT_KEYWORDS="amd64"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                              
CFLAGS="-O2 -march=athlon64 -pipe"                                                                        
CHOST="x86_64-pc-linux-gnu"                                                                               
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"                                                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/desktop-effects /data/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amarok amd64 arts asf audiofile bash-completion berkdb bluetooth branding browserplugin bzip2 cairo capi cdparanoia cdr cli cracklib crypt css cups curl dbus dga directfb dri dts dv dvb dvd dvdr dvdread dvdreadi eds emboss encode esd evo exif fam fame fax ffmpeg firefox font-server fortran fping gdbm gif gimp gimpprint glut gmp gpm gstreamer gtk gtk2 hal iconv icq idn ieee1394 imagemagick imlib inotify ipod isdnlog java javascript joystick jpeg jpeg2k kde kdehiddenvisibility kdeprefix kerberos kipi koffice-plugin lcms libnotify lua mad maildir matroska mbox midi mikmod mime mjpeg mmx mmxext mng moneyplex monkey mozbranding moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mplayer msn mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nsplugin nvidia objc ogg ogm openal opengl openmp oscar pam pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime rar rdesktop readline reflection reiserfs ruby samba scanner sdl session smp sms sox speedo spell spl sqlite sse sse-filters sse2 ssl startup-notification stats subtitles svg sysfs tcltk tcpd theora tiff truetype unicode usb utf8 v4l vcd videos vorbis wifi x264 xattr xcompositexine xinerama xml xorg xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="usb-audio hda-intel emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="keyboard joystick mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafael Kolless 2008-10-05 00:55:35 UTC
Created attachment 167233 [details]
build.log
Comment 2 Rafael Kolless 2008-10-05 00:56:07 UTC
Created attachment 167235 [details]
eclass-debug.log
Comment 3 Rafael Kolless 2008-10-05 00:56:37 UTC
Created attachment 167237 [details]
environment
Comment 4 Timo Gurr (RETIRED) gentoo-dev 2008-10-08 07:10:55 UTC
*** Bug 240373 has been marked as a duplicate of this bug. ***
Comment 5 Cully 2008-10-13 01:01:20 UTC
I experienced this as well.  When emerged with -jabber it was successful.  

I received the following message when it was failing:
qplatformdefs.h: No such file or directory


kde-base/kopete-4.1.2  USE="addbookmarks alias autoreplace contactnotes gadu highlight history latex msn nowlistening oscar otr pipes privacy sms ssl statistics texteffect translator urlpicpreview webpresence winpopup yahoo -debug -groupwise -htmlhandbook -jabber -kdeprefix -messenger -qq -testbed"

Linux aero 2.6.24-gentoo-r4 #1 SMP Thu May 15 16:39:03 CDT 2008 i686 Intel(R) Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux

Cheers
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-13 14:23:20 UTC
*** Bug 241762 has been marked as a duplicate of this bug. ***
Comment 7 J.C. Wren 2008-10-13 14:36:02 UTC
It should probably be noted that if you use 'ufed' to manage the USE flags, jabber must be set to [-].  Leaving it blank causes jabber to be included.
Comment 8 Rafael Kolless 2008-10-13 19:21:08 UTC
Yes, if jabber is unset than kopete builds fine but normaly I expect that it builds straight with the useflag and I would like to use Kopete with xmpp.

As a "quick and dirty" workaround I copied I /usr/share/qt4/mkspecs/linux-g++/qplatformdefs.h into the correct /usr/share/qt4/qt
then the build works.

So it seems clearly that the kopete build does not recognize /usr/share/qt/mkspecs as a include folder.

My knowledge to cmake is very limited so I don't know currently where this could be fixed.





 
Comment 9 Rafael Kolless 2008-10-13 19:23:26 UTC
(In reply to comment #8)

> As a "quick and dirty" workaround I copied I
> /usr/share/qt4/mkspecs/linux-g++/qplatformdefs.h into the correct
> /usr/share/qt4/qt

sorry for the mistype: I copied it to /usr/include/qt4/Qt

> then the build works.



Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-13 20:52:53 UTC
I managed to replicate this behavior. It seems that it has some issues qit qt-core older than 4.4.2.

Try upgrade on qt-core-4.4.2 and report if it fixes the problem, or just close the bug.
Comment 11 Rafael Kolless 2008-10-13 21:43:02 UTC
Excuse me but qt-core-4.2.2 is installed on my system since I opened this bug:

 eix qt-core
[I] x11-libs/qt-core
     Available versions:  (4)  [M](~)4.4.0 (~)4.4.1 (~)4.4.1-r1 (~)4.4.2
        {debug doc glib pch qt3support ssl}
     Installed versions:  4.4.2(4)(19:22:47 03.10.2008)(qt3support ssl -debug -doc -glib -pch)
     Homepage:            http://www.trolltech.com/
     Description:         The Qt toolkit is a comprehensive C++ application development framework.

This can be found in the build.log also:

-- Found Qt-Version 4.4.2 (using /usr/bin/qmake)

I see no reason to close the bug because an upgrade of qt-core is not possible :)


Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-13 23:43:41 UTC
Ok in that case try it with -pch then :].

And i was so happy that i was able to reproduce this :D
Comment 13 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-13 23:44:45 UTC
erm i am again elsewhere when typing...

i thought +glib not -pch...
Comment 14 Rafael Kolless 2008-10-14 06:45:25 UTC
Thanks alot Tomas,

After rebuilding qt-core with the useflag glib kopete builds with the jabber support successfully.

I tried to reproduce the failure again by rebuilding qt-core (and qt-gui) with glib unset but also after this it builded properbly.

I made a binary backup of the old qt-core and using this packages I could reproduce the build error.

In this case the first built of qt-core-4.4.2 and I tried to find out if ths "faulty" built could be reproduced.

For KDE 4.1.2 I switched from stable QT 4,3 to the keyworded QT 4,4 so I downgraded Qt 4.4 to QT 4.3 and rebuilded qt-4.4 with QT 4.3 currently installed.
After this downgrading/upgrading process I tried to build kopete 4.1.2 again and the same built error appeared again.

It seems that this whole bug is an upgrade issue of QT4.
The general solution is just to rebuild qt-core again, the useflag glib is not needed.

How could this be fixed in the future? Building qt-core twice during an upgrade of QT?

 




Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-14 09:52:17 UTC
Would you mind creating diff between tghe package installed file and files you have on system wehn you sucesfully compile kopete?

Maybe ewen crete diff between files itself so we can see what differ?

thanks in advice :]
Comment 16 SpanKY gentoo-dev 2008-11-02 08:23:39 UTC
this isnt fixed ... kopete needs a depend on qt-core:glib
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-02 12:15:19 UTC
Well i have whole kde compiled with qt not having glib flag. So i would say that is negative...
Comment 18 SpanKY gentoo-dev 2008-11-02 12:30:36 UTC
my point was that this isnt fixed.  my saying it needed a glib depend was based on earlier comments.  if that isnt the case, then something else is broken ... but that still brings us back to "this bug isnt fixed".

i just hit it on my x86_64 machine.  as soon as i rebuilt only qt-core with USE=glib, kopete emerged fine.
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-02 12:35:30 UTC
Ok here is the deal. Emerge qt-core without that flag again and you will be still working. It is some issue in updating qt. Try to make diff between first and the last install so we can see what has changed.

Maybe we would be able to track this thing down.
Comment 20 SpanKY gentoo-dev 2008-11-02 12:46:01 UTC
Created attachment 170531 [details]
qt-core log from before
Comment 21 SpanKY gentoo-dev 2008-11-02 12:46:19 UTC
Created attachment 170533 [details]
qt-core log after
Comment 22 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-02 12:50:38 UTC
Erm i had on my mind new log also without glibc...
Comment 23 Rafael Kolless 2008-11-02 16:30:49 UTC
I think my last comment is the reason that looks like +glib is needed for it but it also compile without glib if qt-core is not emerged from qt-4.3 directly.

For me this upgrade path leads to a build failure in kopete:

qt-4.3.3->qt-core-4.4.2-> build error

If you remerge qt-4.4.2 no built error appear:

qt-4.3.3->qt-core-4.4.2->qt-core-4.4-2-> no build error

During my several rebuilds I was able to compile with Jabber support using +glib and -glib.
Comment 24 Rafael Kolless 2008-11-02 16:50:16 UTC
(In reply to comment #15)
> Would you mind creating diff between tghe package installed file and files you
> have on system wehn you sucesfully compile kopete?
> 

Sorry, I missed your reply.

Is there a simple solution to create the diffs? Would like to have a diff of the bin package which it didn't compile correctly?

Comment 25 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-02 16:58:33 UTC
(In reply to comment #24)
> (In reply to comment #15)
> > Would you mind creating diff between tghe package installed file and files you
> > have on system wehn you sucesfully compile kopete?
> > 
> 
> Sorry, I missed your reply.
> 
> Is there a simple solution to create the diffs? Would like to have a diff of
> the bin package which it didn't compile correctly?
> 

just paste here log for qt-core when kopete failed and also paste log when kopete didnt (for qt-core and not using glib flag)
Comment 26 Vineus 2008-12-15 21:44:33 UTC
*** Bug 250936 has been marked as a duplicate of this bug. ***
Comment 27 Mark Wagner 2009-01-29 22:14:37 UTC
(In reply to comment #23)
> 
> For me this upgrade path leads to a build failure in kopete:
> 
> qt-4.3.3->qt-core-4.4.2-> build error
> 
> If you remerge qt-4.4.2 no built error appear:
> 
> qt-4.3.3->qt-core-4.4.2->qt-core-4.4-2-> no build error

I can confirm that building qt-core twice, both times with "-glib", will fix this problem.
Comment 28 Rafael Kolless 2009-01-30 18:08:52 UTC
Could you provide the build log of qt-core?
I still miss my developer system and I tried to reproduce it in a virtual machine but my time currently is extremly limited for this :(
Comment 29 quazgar 2009-02-01 15:48:33 UTC
The same bug appeared for kopete-4.2 as well.  Using qt-core-4.4.2-r1 fixed it though, so maybe this can be closed as well?
Comment 30 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-09 11:12:08 UTC
This was fixed by the magical qt deps which force user to have clean versions.