Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81066 (kdelibs-after-qt) - "checking if UIC has KDE plugins available" fails after Qt upgrade
Summary: "checking if UIC has KDE plugins available" fails after Qt upgrade
Status: RESOLVED CANTFIX
Alias: kdelibs-after-qt
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal with 2 votes (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 81511 82070 82732 83326 83397 83405 83460 87523 94806 106785 106869 107010 108640 109564 112118 116071 121475 128010 135439 136086 147357 149836 150202 150364 154143 154384 154724 154769 158823 159190 159970 160334 165762 181997 188486 206111 214447 256659 257387 258379 258946 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-06 20:39 UTC by Charles Duffy
Modified: 2009-10-11 08:16 UTC (History)
36 users (show)

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


Attachments
config.log of a failed build (config.log,97.03 KB, text/plain)
2009-02-15 19:36 UTC, Tiger!P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Duffy 2005-02-06 20:39:47 UTC
from config.log:

configure:24093: checking if UIC has KDE plugins available
configure:24120: /usr/qt/3/bin/uic -L /usr/kde/3.3/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
configure:24123: $? = 0
configure:24134: result: no
configure:24137: error: you need to install kdelibs first.

Inspecting aclocal.m4, I find that it's using the following test:

cat > actest.ui << EOF
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>NewConnectionDialog</class>
<widget class="QDialog">
   <widget class="KLineEdit">
        <property name="name">
           <cstring>testInput</cstring>
        </property>
   </widget>
</widget>
</UI>
EOF
/usr/qt/3/bin/uic -L /usr/kde/3.3/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
grep klineedit actest.cpp


Since the generated actest.cpp doesn't include "klineedit" (in all lowercase), configure claims that kde-libs needs to be merged. However, if I simply force the test to succeed (by putting kde_cv_uic_plugins=yes in my environment), kdiff3 builds correctly.

Reproducible: Always
Steps to Reproduce:
1.emerge kdiff3




Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-co-0.6.2-pre7 i686)
=================================================================
System uname: 2.6.10-co-0.6.2-pre7 i686 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r1,dev-lang/python-2.3.4 [2.3.4 (#1,
Jan  8 2005, 13:49:38)]
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]dev-lang/python:     2.2.3-r1, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.6.3, 1.9.4, 1.4_p6, 1.5, 1.8.5-r3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -mfpmath=sse -msse -msse2 -m3dnow -O3 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -mfpmath=sse -msse -msse2 -m3dnow -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d acl apache2 arts audiofile bash-completion berkdb
bitmap-fonts bonobo bzip2 crypt cups curl emacs esd f77 fam firebird flac
font-server fortran gdbm gif gnome gnutls gstreamer gtk gtk2 gtkhtml guile
imagemagick imlib ipv6 java javascript jpeg junit kde kerberos libclamav libg++
libwww mad maildir mikmod mmx mozilla mozsvg mpeg ncurses nptl nptlonly
offensive oggvorbis opengl pam pcre pdflib perl pic png postgres python qt
readline ruby samba sdl slang speex spell sqlite ssl tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts wxwindows xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2005-02-07 04:56:30 UTC
Did you recently upgrade Qt?

Do you have another version of Qt lying around on disk somewhere?

Most likely if you re-emerge kdelibs you'll be fine.
Comment 2 Charles Duffy 2005-02-07 06:59:02 UTC
No recent upgrade to Qt. No alternate version of Qt on-disk. Further, it's obvious that the test is broken -- if it weren't, the build wouldn't work perfectly when the system is forced to ignore it.

The generated actest.cpp looks perfectly acceptable -- it just happens not to include the string "klineedit".

Even so, I've remerged kdelibs, and kdiff3 now compiles without incident.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2005-02-07 07:09:24 UTC
The problem is that it can't load the .so file it links.  The wording is pretty bad for this bug, though.

Not much I can do.  I wrote a FAQ entry about this topic on the KDE website, and I've addressed it many times, and asked about getting fixes on the mailing list, but there's no good check and it seems nobody wants to fix it upstream.
Comment 4 Simone Gotti (RETIRED) gentoo-dev 2005-02-12 18:31:13 UTC
I really think that the test is right. 

The explanation is in the "Build Key":

http://doc.trolltech.com/3.3/plugins-howto.html

The same problem happens with the style as also they are QT plugins.
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2005-02-15 00:26:17 UTC
*** Bug 82070 has been marked as a duplicate of this bug. ***
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-17 06:37:01 UTC
*** Bug 81511 has been marked as a duplicate of this bug. ***
Comment 7 Simone Gotti (RETIRED) gentoo-dev 2005-02-18 16:20:06 UTC
I think that we should probably add in the ebuild a warning about this problem.

A more advanced feature will be a check that will look which files => ebuilds should be recompiled and inform the user to do this. Dunno if this is easy and possible to do.
Comment 8 Simone Gotti (RETIRED) gentoo-dev 2005-02-20 14:19:52 UTC
*** Bug 82732 has been marked as a duplicate of this bug. ***
Comment 9 Avuton Olrich 2005-02-22 05:35:51 UTC
Does anyone know the affected ebuilds, I'd like to mask them here, Thanks.
Comment 10 Dan A. Dickey 2005-02-23 15:14:42 UTC
Is there a known workaround for this problem?
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2005-02-23 15:16:53 UTC
remerge kdelibs
Comment 12 Chris Smith 2005-02-23 15:17:40 UTC
remerging kdelibs worked for me
Comment 13 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-25 12:43:20 UTC
*** Bug 83326 has been marked as a duplicate of this bug. ***
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-26 11:23:02 UTC
*** Bug 83397 has been marked as a duplicate of this bug. ***
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-26 13:26:41 UTC
*** Bug 83405 has been marked as a duplicate of this bug. ***
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-27 07:54:57 UTC
*** Bug 83460 has been marked as a duplicate of this bug. ***
Comment 17 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-12 10:45:40 UTC
*** Bug 87523 has been marked as a duplicate of this bug. ***
Comment 18 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-23 14:27:25 UTC
*** Bug 94806 has been marked as a duplicate of this bug. ***
Comment 19 Matan Peled 2005-08-06 03:42:11 UTC
I can't get this to work, including the workaround.

I'm on amd64, and I have the binary 32bit version of qt installed - but I
removed that, remerged qt, kdelibs, and it still doensn't work...
Comment 20 Gregorio Guidi (RETIRED) gentoo-dev 2005-08-08 05:17:27 UTC
(In reply to comment #19) 
> I can't get this to work, including the workaround. 
 
Then this is probably a different problem, and we need more informations. 
 
 
In qt-3.3.4-r7 I added a warning as suggested in comment #7. Unfortunately 
this is the best we can do in this situation. 
 
Comment 21 Gregorio Guidi (RETIRED) gentoo-dev 2005-08-25 04:00:52 UTC
*** Bug 94806 has been marked as a duplicate of this bug. ***
Comment 22 Mike Auty (RETIRED) gentoo-dev 2005-08-25 06:18:35 UTC
Hi,
  My bug was recently marked as a duplicate of this, so I'll give a little
explanation of what it was and what seemed to fix it, and hopefully this may
give some insight into fixing it.

I have an AMD64, but everything is compiled in 32-bit mode and I haven't touched
anything 64-bit.  I am however running a hardened copy of gcc.  When I compile
qt and polymer (a style plugin for qt), they both compile fine without any
errors but the polymer plugin doesn't show up in the style list.  I also
compiled another test plugin that I was provided in my bug, and that also didn't
show up.

I recently recompiled polymer using the vanilla-gcc config (ie without the
hardened pic/pie flags) and qtconfig then had it in the list, and the plugin
worked fine.  I've also found similar module loading problems with the gstreamer
framework, which currently won't work with position independent code.

So, is this the same bug?  Will it be fixed upstream?  Should qt plugins work in
a hardened environment?

If anyone needs any more details, or has tests for me to run to try and narrow
down the problem, I'll be very happy to do whatever, just let me know.

Thanks,

Mike  5:)
Comment 23 Gregorio Guidi (RETIRED) gentoo-dev 2005-08-25 07:43:01 UTC
In general this bug is about the fact that the Qt plugin loader is very strict 
and can refuse to load plugins for various reasons (mainly explained here: 
http://doc.trolltech.com/3.3/plugins-howto.html) 
 
It is not fully clear whether the hardened gcc problem is explained by the 
above reference (maybe it's just the fact that Qt and the plugin were compiled 
with different versions of gcc?), if someone is interested and has the time 
and skill, he can create testcase plugins (there are examples in the Qt docs) 
and try to manually compile them in a controlled environment... 
 
Comment 24 Gregorio Guidi (RETIRED) gentoo-dev 2005-09-21 06:41:28 UTC
*** Bug 106785 has been marked as a duplicate of this bug. ***
Comment 25 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-09-22 02:21:24 UTC
*** Bug 106869 has been marked as a duplicate of this bug. ***
Comment 26 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-23 10:04:05 UTC
*** Bug 107010 has been marked as a duplicate of this bug. ***
Comment 27 Steve Greene 2005-10-09 09:41:42 UTC
I also run an amd64 entirely in 32-bit mode and continue to get this error even
after recompiling qt and kdelibs.

I get the following error:
  >checking for KDE... libraries /usr/kde/3.4/lib, headers /usr/kde/3.4/include
  >checking if UIC has KDE plugins available... no
  >configure: error:
  >you need to install kdelibs first

However, I noticed that I'm running ~x86 and kdelibs-3.5_beta1-r1 is unmasked. 
I'm now rebuilding kdelibs-3.4* (and qt) and will retry kdebase-kioslaves (which
is where I was hanging up).
Comment 28 Steve Greene 2005-10-09 09:42:56 UTC
I also run an amd64 entirely in 32-bit mode and continue to get this error even
after recompiling qt and kdelibs.

I get the following error:
  >checking for KDE... libraries /usr/kde/3.4/lib, headers /usr/kde/3.4/include
  >checking if UIC has KDE plugins available... no
  >configure: error:
  >you need to install kdelibs first

However, I noticed that I'm running ~x86 and kdelibs-3.5_beta1-r1 is unmasked. 
I'm now rebuilding kdelibs-3.4* (and qt) and will retry kdebase-kioslaves (which
is where I was hanging up).
Comment 29 Steve Greene 2005-10-09 10:24:32 UTC
(In reply to comment #28)
> I also run an amd64 entirely in 32-bit mode and continue to get this error even
> after recompiling qt and kdelibs.
> 
> I get the following error:
>   >checking for KDE... libraries /usr/kde/3.4/lib, headers /usr/kde/3.4/include

That did it.  I had rebuilt kdelibs about a dozen times, each time the 3.5-beta,
which did not satisfy the ebuild.  Maybe the beta libs should stay masked until
the whole package is "ready".

Comment 30 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-09 10:32:57 UTC
beta ebuilds *are* masked  
Comment 31 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-10 09:26:51 UTC
*** Bug 108640 has been marked as a duplicate of this bug. ***
Comment 32 Gregorio Guidi (RETIRED) gentoo-dev 2005-10-17 08:43:46 UTC
*** Bug 109564 has been marked as a duplicate of this bug. ***
Comment 33 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-11-10 14:45:14 UTC
*** Bug 112118 has been marked as a duplicate of this bug. ***
Comment 34 fabio de francesco 2005-11-10 15:41:36 UTC
(In reply to comment #33)   
> *** Bug 112118 has been marked as a duplicate of this bug. ***   
   
Ok. I had searched the database by different keywords so I didn't find this   
previous file.   
   
Anyway, any idea how to fix this? How can I install kde on my Gentoo? 
   
Comment 35 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-11-10 15:51:39 UTC
Recompile kdelibs every time you build qt. 
Simple. 
Comment 36 fabio de francesco 2005-11-10 15:54:47 UTC
(In reply to comment #35) 
> Recompile kdelibs every time you build qt.  
> Simple.  
 
Maybe you didn't read my file... I have made "emerge qt && emerge kdelibs && 
emerge kdebase" in one shot. Sorry for poor English. 
 
So, what more can I do? 
  
 
 
Comment 37 Petteri Räty (RETIRED) gentoo-dev 2005-11-11 05:00:58 UTC
This bug should probably be mentioned in pkg_postinst of Qt as people seem to
hit this quite often.
Comment 38 Gregorio Guidi (RETIRED) gentoo-dev 2005-11-16 02:30:58 UTC
(In reply to comment #36)  
> Maybe you didn't read my file... I have made "emerge qt && emerge kdelibs &&   
> emerge kdebase" in one shot. Sorry for poor English.   
>    
> So, what more can I do?   
 
Your problem is related even if not identical, it seems for some reason Qt 
itself is compiled without opengl support, while the Qt plugins inside the Qt 
package are compiled with opengl support... I don't know what could cause 
this. 
 
Comment 39 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-19 11:03:24 UTC
*** Bug 116071 has been marked as a duplicate of this bug. ***
Comment 40 fabio de francesco 2005-12-25 17:41:16 UTC
(In reply to comment #38)
> (In reply to comment #36)  
> > Maybe you didn't read my file... I have made "emerge qt && emerge kdelibs &&   
> > emerge kdebase" in one shot. Sorry for poor English.   
> >    
> > So, what more can I do?   
>  
> Your problem is related even if not identical, it seems for some reason Qt 
> itself is compiled without opengl support, while the Qt plugins inside the Qt 
> package are compiled with opengl support... I don't know what could cause 
> this. 

I am sorry I am still here looking for help. At now I haven't yet been able to install KDE (kde-base/kde-meta). Have you found out some trick that permits me to have KDE in my Gentoo system? At least, do you know where I can ask for help?

I have seen that all these unsuccessful tries to install that desktop manager have left some directories: /usr/kde/3.4, /usr/kde/3.5, /usr/qt/3 and /usr/lib/qt4/. The kde directories seem not to be populated as they should (I mean with all the subdirectories and files that they should contain), while it seems that the two qt directories are allright.

Do you think that manually removing /usr/kde/3.4 and /usr/kde/3.5 could solve this issue? The only KDE package that seems correctly installed is kdelibs so i would precede the above-mentioned directories removings by a "emerge --unmerge kdelibs". Then, what do you think about the presence of qt version 3 and 4 at the same time?

I really don't know anymore what to try. I have asked the Gentoo forum and this bugzilla too then I have searched through Google but I haven't found any solution.

What does my particular Gentoo system have that forbids a simple "emerge kde-meta"? If I can't have KDE on Gentoo I will have to install some other distribution in order to get it.

Please help me.
Comment 41 Caleb Tennis (RETIRED) gentoo-dev 2006-02-23 08:21:35 UTC
*** Bug 121475 has been marked as a duplicate of this bug. ***
Comment 42 Robin Bankhead 2006-03-20 06:01:56 UTC
I am having this problem too, it has taken down a perfectly functioning kde-3.5.1 setup and is mightily annoying.  First, a blow-by-blow preamble:

1) Emerged qt-4.1.1 with world.  Lost about half my widget-sets.
2) Re-emerged kdelibs per suggestion on Gentoo forums.  Now nothing happens beyond kdm login, splash screen, ...
3) Tried to re-emerge kdebase-startkde, kdm, kwin, kdesktop ... all getting the same error (as in summary).
4) quickpkg'd and unmerged qt-4.1.1, re-emerged qt-3.3.6, qt-unixODBC-3.3.6 and kdelibs-3.5.1-r1 (all these were already installed).
5) Repeated step (3).  This time kdebase-startkde compiled fine, but the others are still giving the same errors.

Here's the thinggggy:

~ # emerge --info
Portage 2.1_pre6-r3 (default-linux/x86/2005.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -ffast-math -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/make.conf /usr/NX/etc /usr/NX/home /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -ffast-math -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://brazil/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 apm arts asf avi berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr crypt cups dbus dio doc dri dvd dvdread eds emboss encode ffmpeg flac flash foomaticdb fortran gdbm gif gpm gstreamer gtk2 hal i8x0 ieee1394 imagemagick imlib innodb ipv6 java javascript jpeg kde libg++ libwww mad matroska mikmod mmx motif mp3 mpeg msn mysql mysqli ncurses nls nptl nsplugin odbc ogg oggvorbis opengl oss pam pcmcia pcre pdflib perl php png ppds python qt quicktime readline samba sdl session sharedmem soap sockets spell sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vcd vhosts vorbis wifi win32codecs xine xml2 xmlrpc xmms xsl xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_i810"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 43 Robin Bankhead 2006-03-23 12:22:21 UTC
To add to the above, I've now done the following:

1) emerge -C kdelibs kde-env arts qt-unixODBC qt
2) rm -rf /usr/qt /usr/kde /usr/lib/*qt*
3) emerge --oneshot kdelibs [pulls in the other packages]

Despite this action (which I hoped was a thorough purge of all the problematic packages) the situation with attempting to merge any further kde packages is the same as before.

Please can anyone suggest what action is needed in order to completely clear the decks and start from scratch?  Where else can remnants of QT or KDE remain?  Or is there something else confusing the matter?

As the poster before me indicates, the above discussion does not help us lay-people to work around this issue, as it's over our heads.  Some plain and simple guidance would be much appreciated.
Comment 44 Caleb Tennis (RETIRED) gentoo-dev 2006-03-23 12:50:27 UTC
Have you tried clearing out the portage cache before re-emerging as well?

rm -rf /var/tmp/portage/qt*
rm -rf /var/tmp/portage/kde*
Comment 45 Robin Bankhead 2006-03-24 03:20:37 UTC
(In reply to comment #44)
> Have you tried clearing out the portage cache before re-emerging as well?
> 
> rm -rf /var/tmp/portage/qt*
> rm -rf /var/tmp/portage/kde*
> 

Yes, I emptied /var/tmp/portage completely before emerge -c world.

Is there something in the build of qt that we can point to as affecting this?  Any particular USE-flags or such?
Comment 46 Robin Bankhead 2006-03-24 03:21:04 UTC
(In reply to comment #44)
> Have you tried clearing out the portage cache before re-emerging as well?
> 
> rm -rf /var/tmp/portage/qt*
> rm -rf /var/tmp/portage/kde*
> 

Yes, I emptied /var/tmp/portage completely before emerge -e world.

Is there something in the build of qt that we can point to as affecting this?  Any particular USE-flags or such?
Comment 47 Robin Bankhead 2006-03-24 14:11:12 UTC
Apologies for the double post.  Was correcting it to say 'emerge -e world'.

I've been googling for the error-string, and found a couple of interesting references:
http://amarok.kde.org/amarokwiki/index.php/KDElibs_without_aRts
http://fugitivethought.com/projects/amarokcompile/

Both pages give the cause of the error as qt being built without the -thread config flag (not sure whether this relates to USE="threads" or not).  That interests me because the very beginning of this saga for me was rebuilding my system with glibc-2.4, which requires the global USE="nptlonly".

Now, I know nought of threads.  But the synchronicity of events here makes me wonder if there can be a connection.  I still have both "nptl" and "threads" in my flags as well as "nptlonly" - should I have removed "threads" at the same time as adding "nptlonly"?  Can this be related to this bug, or am I simply clutching at straws?
Comment 48 Robin Bankhead 2006-03-26 04:07:06 UTC
OK, now I have managed to get kde-base/* packages built (although I cannot launch KDE/KDM, but this may be more of a modular-X problem).

I did:
1) emerge -C qt qt-unixODBC
<left kdelibs in place this time>
2) echo "x11-libs/qt debug examples -nptlonly" >>/etc/portage/package.use
<debug and examples were in case it still didn't work>
3) emerge kdebase-startkde (pulling in qt etc.)

Will post back once I can confirm whether KDE is working.
Comment 49 Robin Bankhead 2006-03-28 07:54:37 UTC
Looks like my bug is different (has a different cause) to the OP's.

I looked at the config.log (should have done this first of all) for one of the unsuccessful KDE packages, and saw this.

./configure: line 30790: 13426 Segmentation fault      /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui >actest.cpp

I have been able to build a non-segfaulting UIC (and successfully compile KDE packages) by making qt with USE="debug" - don't ask me why this works, it just does.

However, KDE is unable to start, and I suspect that the builds are still bad (X is fine, at least I can get twm up OK, but KDM or XDM -> startkde: forget it).

Anyway, as my causes for the problem (and now disposition of the problem) seem to be different to the above, I'll start a new bug.
Comment 50 Jonas Bähr 2006-03-28 11:23:35 UTC
(In reply to comment #49)
> Looks like my bug is different (has a different cause) to the OP's.
> 
> I looked at the config.log (should have done this first of all) for one of the
> unsuccessful KDE packages, and saw this.
> 
> ./configure: line 30790: 13426 Segmentation fault      /usr/qt/3/bin/uic -L
> /usr/kde/3.5/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui
> >actest.cpp

please take a look at his bug #126078
I think it's the same...

> I have been able to build a non-segfaulting UIC (and successfully compile KDE
> packages) by making qt with USE="debug" - don't ask me why this works, it just
> does.
> 
> However, KDE is unable to start, and I suspect that the builds are still bad (X
> is fine, at least I can get twm up OK, but KDM or XDM -> startkde: forget it).
> 
> Anyway, as my causes for the problem (and now disposition of the problem) seem
> to be different to the above, I'll start a new bug. 
Comment 51 Robin Bankhead 2006-03-29 03:37:07 UTC
(In reply to comment #50)
> (In reply to comment #49)

> please take a look at his bug #126078
> I think it's the same...
> 

Thanks, I missed that one when searching and, yes, they do seem similar (though why can you build KDE and I can't?).  My bug presents a method of preventing the segfault, so the real bug for me is the resulting b0rked KDE apps (apparently). In any case, if maintainers see fit to dup them, no problem by me.

By the way, Caleb, can you explain the purpose of the qt-3.3.6-uic-fix.patch?
Comment 52 Caleb Tennis (RETIRED) gentoo-dev 2006-03-29 03:45:21 UTC
Yeah - when Qt 3.3.5 was released it completely broke uic files from the KDE project that had namespaced values in the includehints.  This patch was quickly released to fix that.

http://aseigo.blogspot.com/2005/09/qt-335-uic-problem-fix-patches.html
Comment 53 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-29 09:58:43 UTC
*** Bug 128010 has been marked as a duplicate of this bug. ***
Comment 54 Robin Bankhead 2006-03-29 11:50:11 UTC
Just an update that KDE 3.5.2 has entered the ~x86 tree, and I built it with a non-debug qt-3.3.6 and did not get the UIC error.  However, I still can't start KDE and the errors are the same as before.
Comment 55 Caleb Tennis (RETIRED) gentoo-dev 2006-03-29 12:02:49 UTC
Robin, your bug is most definitely related.  I did a glibc update a few days ago, and my Qt related programs stopped working as well (the underlying threading mechanism had changed).  

I ended up having to rebuild a couple of packages until I got everything to be happy again.

I wondering if an "emerge -e system" or an "emerge -e world" will help you out.
Comment 56 Robin Bankhead 2006-03-29 14:34:29 UTC
(In reply to comment #55)
> Robin, your bug is most definitely related.  I did a glibc update a few days
> ago, and my Qt related programs stopped working as well (the underlying
> threading mechanism had changed).  
> 
I'm still open to that possibility, though as you can see, I've introduced a lot of confounds into the mix over the course of things.  New X, new KDE...

> I ended up having to rebuild a couple of packages until I got everything to be
> happy again.
> 
Can you elaborate?  kde-packages, or toolchain/system/other packages? Did you follow a particular methodology to identify them?

> I wondering if an "emerge -e system" or an "emerge -e world" will help you out.
> 
I did this (both in fact)after the glibc-update, so my toolchain and world packages should all be nptlony now.  Perhaps I'll repeat the process anyway just to pass the time...
Comment 57 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-03 16:14:51 UTC
*** Bug 135439 has been marked as a duplicate of this bug. ***
Comment 58 Jakub Moc (RETIRED) gentoo-dev 2006-06-08 10:37:17 UTC
*** Bug 136086 has been marked as a duplicate of this bug. ***
Comment 59 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-12 12:45:15 UTC
*** Bug 147357 has been marked as a duplicate of this bug. ***
Comment 60 ¤£ysêrg 2006-09-12 22:07:02 UTC
can someone plz post a make.conf that works to compile kdebase-startkde ive been struggling with this bug for a month now and its very frustrating
Comment 61 Robin Bankhead 2006-09-13 01:14:13 UTC
(In reply to comment #60)
> can someone plz post a make.conf that works to compile kdebase-startkde ive
> been struggling with this bug for a month now and its very frustrating
> 
I don't know how I neglected to post this here before (maybe it ended up in a forums post instead) but I think I got over the problem by removing -Os (and possibly -ffast-math) from my CFLAGS.

Hope that's some help.
Comment 62 Jakub Moc (RETIRED) gentoo-dev 2006-10-02 05:37:45 UTC
*** Bug 149836 has been marked as a duplicate of this bug. ***
Comment 63 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 13:27:13 UTC
*** Bug 150204 has been marked as a duplicate of this bug. ***
Comment 64 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 13:27:25 UTC
*** Bug 150202 has been marked as a duplicate of this bug. ***
Comment 65 Jakub Moc (RETIRED) gentoo-dev 2006-10-07 03:53:36 UTC
*** Bug 150364 has been marked as a duplicate of this bug. ***
Comment 66 Jakub Moc (RETIRED) gentoo-dev 2006-11-05 08:26:37 UTC
*** Bug 154143 has been marked as a duplicate of this bug. ***
Comment 67 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-07 09:37:28 UTC
*** Bug 154384 has been marked as a duplicate of this bug. ***
Comment 68 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-11 04:17:35 UTC
*** Bug 154769 has been marked as a duplicate of this bug. ***
Comment 69 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 07:20:05 UTC
*** Bug 154724 has been marked as a duplicate of this bug. ***
Comment 70 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-22 04:44:35 UTC
*** Bug 158823 has been marked as a duplicate of this bug. ***
Comment 71 Jakub Moc (RETIRED) gentoo-dev 2006-12-27 04:58:05 UTC
*** Bug 159190 has been marked as a duplicate of this bug. ***
Comment 72 Bob Barry 2006-12-27 08:40:37 UTC
(In reply to comment #71)
> *** Bug 159190 has been marked as a duplicate of this bug. ***
> This bug has been open for almost two years.  Thirty-four people have been sufficiently troubled by it to submit bug reports, and all were simply marked "resolved, duplicate of bug 81066". This bug _blocks_ upgrade of all kde-related packages on my system.  None of the suggested workarounds worked on my system.  I think the severity of this bug should be raised, and priority given to finding a solution or work-around.  Bob Barry

Comment 73 Jakub Moc (RETIRED) gentoo-dev 2006-12-27 09:22:16 UTC
(In reply to comment #72)
> None of the suggested workarounds worked on my system.  I think the severity of > this bug should be raised, and priority given to finding a solution or 
> work-around. 

Because we have a s3cr1t solution carefully hidden in our knowledge base and just won't apply it because we love pointless duplicates filed by users who don't use search.

P.S. Fix your line wrapping, the whole formatting in this bug is now broken.
Comment 74 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-27 10:01:07 UTC
Just rebuild kdelibs after you get this error.
It happens when:

- you change compiler;
- you enable/disable opengl;
- you enable/disable other features.
Comment 75 Bob Barry 2006-12-27 11:14:29 UTC
(In reply to comment #73)
> (In reply to comment #72)
> > None of the suggested workarounds worked on my system.  I think the severity of > this bug should be raised, and priority given to finding a solution or 
> > work-around. 
> 
> Because we have a s3cr1t solution carefully hidden in our knowledge base and
> just won't apply it because we love pointless duplicates filed by users who
> don't use search.
> 
> P.S. Fix your line wrapping, the whole formatting in this bug is now broken.
> 
The ebuild said "re-emerge kdelibs"; I re-emerged both qt and kdelibs (many
times). I searched for kdelibs, and found nothing similar.  All description
submitted with bug report has been obscured by the "duplicate" treatment.
What "worksforyou" does NOT "workforme".

Line wrapping is that of the bugzilla browser bug-entry facility.
Comment 76 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-04 07:49:56 UTC
*** Bug 159970 has been marked as a duplicate of this bug. ***
Comment 77 Jakub Moc (RETIRED) gentoo-dev 2007-01-05 15:36:06 UTC
*** Bug 160334 has been marked as a duplicate of this bug. ***
Comment 78 Jakub Moc (RETIRED) gentoo-dev 2007-02-07 14:29:21 UTC
*** Bug 165762 has been marked as a duplicate of this bug. ***
Comment 79 Jacob Chacko 2007-02-07 20:29:04 UTC
(In reply to comment #74)
> Just rebuild kdelibs after you get this error.
> It happens when:
> - you change compiler;
> - you enable/disable opengl;
> - you enable/disable other features.

This worked for me.  Thanks.
Comment 80 Sergio D. Rodríguez Inclan 2007-04-20 12:01:57 UTC
I had the same problem installing net-p2p/Apollon on an AMD64 system but it was solved recompiling kdelibs.
Comment 81 Codo 2007-06-06 07:48:45 UTC
(In reply to comment #79)
> (In reply to comment #74)
> > Just rebuild kdelibs after you get this error.
> > It happens when:
> > - you change compiler;
> > - you enable/disable opengl;
> > - you enable/disable other features.
> 
> This worked for me.  Thanks.
> 

It _doesn't_ work for me.  I'm reemerging kdelibs-3.5.6-r9 and is broken.  The problem must be in QT, not in KDE.

/usr/qt/3/bin/uic: symbol lookup error: /usr/qt/3/bin/uic: undefined symbol: _ZNK7QString3argExii

Commenting deep from my ignorance...  uic (the 'user_interface_compiler') is trying to compile something with id _ZNK7QString3argExii (like a control?!?) that doesn't exist anymore.  The QT is broken, that uid should be there beforehand.

Workaround please!!! I'm pulling my hair over here.

And, the status has been changed to "RESOLVED WORKSFORME", well, I think the ebuild must be patched to make the checks...

>> snippet <<
../dcop/dcopidl2cpp/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub kmainwindowiface.kidl
rm -f kshortcutdialog_simple.cpp
echo '#include <kdialog.h>' > kshortcutdialog_simple.cpp
echo '#include <klocale.h>' >> kshortcutdialog_simple.cpp
/usr/qt/3/bin/uic -nounload -tr tr2i18n -i kshortcutdialog_simple.h ./kshortcutdialog_simple.ui > kshortcutdi                                                                                       alog_simple.cpp.temp ; ret=$?; \
        /usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" kshortcutdialog_simple.cpp.temp | /usr/bin/perl                                                                                        -pe "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_kshortc                                                                                       utdialog_simple,g" | /usr/bin/perl -pe "s,: QWizard\(,: KWizard(,g" >> kshortcutdialog_simple.cpp ;\
        rm -f kshortcutdialog_simple.cpp.temp ;\
        if test "$ret" = 0; then echo '#include "kshortcutdialog_simple.moc"' >> kshortcutdialog_simple.cpp;                                                                                        else rm -f kshortcutdialog_simple.cpp ; exit $ret ; fi
/usr/qt/3/bin/uic: symbol lookup error: /usr/qt/3/bin/uic: undefined symbol: _ZNK7QString3argExii
make[3]: *** [kshortcutdialog_simple.cpp] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.6-r9/work/kdelibs-3.5.6/kdeui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.6-r9/work/kdelibs-3.5.6/kdeui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.6-r9/work/kdelibs-3.5.6'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.5.6-r9 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  kdelibs-3.5.6-r9.ebuild, line 151:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 336:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/kde-base/kdelibs-3.5.6-r9/temp/build.log'.
Comment 82 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 08:05:35 UTC
*** Bug 181997 has been marked as a duplicate of this bug. ***
Comment 83 Jakub Moc (RETIRED) gentoo-dev 2007-08-11 17:06:11 UTC
*** Bug 188486 has been marked as a duplicate of this bug. ***
Comment 84 Sumit Khanna 2007-08-11 19:48:40 UTC
I had this problem with k9copy. The bug was marked as duplicate. I ran the following based on the first comment:

kde_cv_uic_plugins=yes emerge --resume

and k9copy compiled fine. 
Comment 85 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 22:21:31 UTC
*** Bug 206111 has been marked as a duplicate of this bug. ***
Comment 86 Jakub Moc (RETIRED) gentoo-dev 2008-03-23 21:58:14 UTC
*** Bug 214447 has been marked as a duplicate of this bug. ***
Comment 87 Brian McKee 2008-08-26 03:00:24 UTC
Just a note: AMD64 Turion system gcc 4.3.1. I got this problem and resolved it by changing cflags from -os to -o2.

Pain bug, IMO.

Raydude
Comment 88 Facundo de Guzmán 2008-12-15 21:24:19 UTC
Came across the same problem with kpdf 3.5.10.

kde_cv_uic_plugins=yes emerge --resume

worked for me too.
Comment 89 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-10 00:54:25 UTC
*** Bug 257387 has been marked as a duplicate of this bug. ***
Comment 90 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-10 00:54:34 UTC
*** Bug 258379 has been marked as a duplicate of this bug. ***
Comment 91 Markos Chandras (RETIRED) gentoo-dev 2009-02-10 11:44:41 UTC
Folks, I am re-opening this since we get hit of this bug quite often latetly

I would like some extra info to do some tests though.

So I would like somebody who encounters this problem to attach the config.log file for now
Comment 92 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-10 14:23:16 UTC
There's nothing to be done about this issue. It happens always, when switching anything in your system affecting the Qt 3 build key, as you can read following the url in comment 4.
Comment 93 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-10 23:41:24 UTC
*** Bug 256659 has been marked as a duplicate of this bug. ***
Comment 94 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-14 15:03:38 UTC
*** Bug 258946 has been marked as a duplicate of this bug. ***
Comment 95 Tiger!P 2009-02-15 19:36:13 UTC
Created attachment 182154 [details]
config.log of a failed build

This is the config.log of a failed build of media-sound/noteedit (version 2.8.1-r2) on an amd64 system.
Comment 96 Hal Engel 2009-02-20 19:29:06 UTC
I had the same issue with noteedit-2.8.1-r2 and rebuilding kdelibs:3.5 fixed it.
Comment 97 Tiger!P 2009-02-21 13:05:11 UTC
I still have the problem with noteedit-2.8.1-r2
I have re-emerged kdelibs-4.2.0-r3, but that does not help.
Comment 98 Markos Chandras (RETIRED) gentoo-dev 2009-03-07 11:33:14 UTC
You should re-emerge kdelibs:3.5 and not kdelibs:4.2
Comment 99 Nabeel Sowan 2009-06-17 10:14:52 UTC
My system is an x86_64, using -Os and has about 1000 packages, including qt:3.5, qt4 and a bunch of crossdev toolchains.

I have done: 
emerge -eD --keep-going world
8 times now, the only packages that can't be rebuilt are the ones which depend on something that is affected by this. (kde stuff)

Reading some previous comments, I wonder if this is being caused by a mismatch in optimisation level, where one of the involved packages forces -O2 on something. (since I use -Os normally)

Can someone clarify this, since I would consider it a serious bug if qt/kde refuses to load a plugins that are compiled with different optimisation settings. This would be creating a problem where there isn't any.

Where can I find the build key that qt was built with?
How do I know which build key a kde ebuild is attempting to use when merging?
Comment 100 Nabeel Sowan 2009-06-17 10:52:06 UTC
Sorry, I mean qt-3.3.8b-r1 (I've tried qt-3.3.8b-r2 as well, with same results)
And obviously, re-emerging kdelibs does not help.
Comment 101 Tommy Pettersson 2009-07-20 21:29:03 UTC
I could not emerge kde-misc/basket-1.0.3.1 because I got the Segmentation fault of /usr/qt/3/bin/uic. This is on amd64 in 64-bit mode with x11-libs/qt-3.3.8b-r1, and kde-base/kdelibs-3.5.10-r6. All the versions are supposed to be stable. My CFLAGS="-march=athlon64 -Os -fomit-frame-pointer -pipe".

I temporarily change -Os to -O2 in my CFLAGS and reemerged kdelibs. Then I changed it back to -Os, and now I could successfully emerge basket without uic getting a segmentation fault. So a fix for the segmentation fault bug seams to be forcing CFLAGS -Os to -O2 in kdelibs for amd64. 

The "need to rebuild kdelibs after random change" bug is probably not affected by this -Os problem, so they are really two different bugs.
Comment 102 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-07-21 05:06:28 UTC
(In reply to comment #101)
> I could not emerge kde-misc/basket-1.0.3.1 because I got the Segmentation fault
> of /usr/qt/3/bin/uic. This is on amd64 in 64-bit mode with
> x11-libs/qt-3.3.8b-r1, and kde-base/kdelibs-3.5.10-r6. All the versions are
> supposed to be stable. My CFLAGS="-march=athlon64 -Os -fomit-frame-pointer
> -pipe".
> 
> I temporarily change -Os to -O2 in my CFLAGS and reemerged kdelibs. Then I
> changed it back to -Os, and now I could successfully emerge basket without uic
> getting a segmentation fault. So a fix for the segmentation fault bug seams to
> be forcing CFLAGS -Os to -O2 in kdelibs for amd64. 

Are you sure basked, kdelibs and the qt deps were all built with the same gcc version? Using different gcc versions can cause these type of issues.
Comment 103 Nabeel Sowan 2009-07-21 09:50:47 UTC
> Are you sure basked, kdelibs and the qt deps were all built with the same gcc
> version? Using different gcc versions can cause these type of issues.

I have the same issue, this is a *REAL* bug. The packages cannot be built with only -Os. At least Qt and/or kdelibs need a different (-O2) setting.

Something is terribly wrong with the idea that Qt somehow needs to magically manage build options for you, it's more likely to cause worse bugs than it ever hopes to solve.

There needs to be a way to switch off all Qt plugin-loader runtime checks. (and obviously these build time checks as well)
Comment 104 Tommy Pettersson 2009-07-23 23:00:59 UTC
(In reply to comment #102)
> Are you sure basked, kdelibs and the qt deps were all built with the same gcc
> version? Using different gcc versions can cause these type of issues.

Yep, I'm quite sure! I reemerged all three packages eight times, with all eight possible combinations of -Os and -O2. :-)  For qt and basket the -O flag didn't matter, as long as kdelibs was compiled with -O2.
Comment 105 Nabeel Sowan 2009-07-25 09:22:02 UTC
rant-ish... As a developer, it is my opinion that ebuilds should never(!) interfere with the choices of compiler, options and environment, since I like to change those things a on a per package basis.

It's nice to have a blacklist in a package, where the package can give a useful error message if the environment is somehow totally wrong (and there is no way in the world that it will work after building)
But a whitelist... to assume all gentoo environments can be known, to me it sounds like a mistake.
Most of the time, when I use gentoo, I'm using experimental stuff, Is it not likely that a large amount of gentoo users are using various experimental gcc or glibc?
It's also very likely that hardened users insert uncommon compiler flags on select packages.

Now, I don't know whether to file this as a bug upstream or in gentoo, since it should be relatively easy to patch out the evil code in Qt ;p
I'd guess that the Ubuntu people want this in Qt, and that it will stay upstream.

Thank you for your time, love you guys :).
Comment 106 Fredrick Marsham 2009-10-09 05:10:54 UTC
Try adding "-opengl" to qt's USE flags, re-emerging qt, then re-emerging kdelibs.  That worked for me.