public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Threading issues with compiling Qt apps
  2006-11-02 11:45 [gentoo-user] Threading issues with compiling Qt apps Alan McKinnon
@ 2006-11-02  5:54 ` Andrey
  2006-11-02 17:31   ` Alan McKinnon
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey @ 2006-11-02  5:54 UTC (permalink / raw
  To: gentoo-user

> /usr/qt/3/lib/libqt-mt.so: undefined reference to 
> `__pthread_register_cancel@GLIBC_2.3.3'
> /usr/qt/3/lib/libqt-mt.so: undefined reference to 
> `__pthread_unregister_cancel@GLIBC_2.3.3'
> collect2: ld returned 1 exit status
> =======================
<skipped> 
> Have I done something stupid, or is there a real bug here?

Have you tried to reemerge qt-3.3.6-r4 ?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user] Threading issues with compiling Qt apps
@ 2006-11-02 11:45 Alan McKinnon
  2006-11-02  5:54 ` Andrey
  0 siblings, 1 reply; 3+ messages in thread
From: Alan McKinnon @ 2006-11-02 11:45 UTC (permalink / raw
  To: gentoo-user

Hi,

I want to double check some things here first before I report a bug, 
just in case the problem is in the fingers. arch = ~x86

Emerging amarok and kde-base/kopete both fail with this error in the 
configure step:

=======================
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (library 
qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
=======================

The amarok build log contains this:

=======================
configure:33196: rm -rf SunWS_cache; i686-pc-linux-gnu-g++ -o 
conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_
BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4
 -pipe -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-c
ommon -I/usr/qt/3/include -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/qt/3/lib -L/usr/lib    -L/usr/kde/3.5/lib  
conftes
t.cpp  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 
1>&5
/usr/qt/3/lib/libqt-mt.so: undefined reference to 
`__pthread_register_cancel@GLIBC_2.3.3'
/usr/qt/3/lib/libqt-mt.so: undefined reference to 
`__pthread_unregister_cancel@GLIBC_2.3.3'
collect2: ld returned 1 exit status
=======================

The kopete log contains much the same. It seems like I have faulty glibc 
build settings, and this will happen for all future Qt builds. I 
haven't had to remerge a Qt app for a while and the most recent 
relevant change I can think of was to glibc-2.5: remove nptlonly and 
add glibc-compat20. My full USE flags for related apps:
Calculating dependencies... done!
[ebuild   R   ] kde-base/kdelibs-3.5.5-r5  USE="acl alsa arts cups doc 
fam jpeg2k kdeenablefinal openexr spell ssl tiff 
zeroconf -debug -kdehiddenvisibility -kerberos -legacyssl -lua -utempter -xinerama" 
LINGUAS="-he" 0 kB
[ebuild   R   ] x11-libs/qt-3.3.6-r4  USE="cups doc gif mysql odbc 
opengl postgres 
sqlite -debug -examples -firebird -immqt -immqt-bc -ipv6 -nas -nis -xinerama" 
0 kB
[ebuild     U ] media-sound/amarok-1.4.4 [1.4.3-r1] USE="aac arts kde 
mysql opengl postgres 
real -debug -ifp -ipod -mtp% -njb -noamazon -visualization -xinerama 
(-xmms)" 
LINGUAS="en_GB -af% -ar% -az -bg -br -ca -cs -cy -da -de -el -es -et -fi -fr -ga -gl -he -hi -hu -is -it -ja -ka -km -ko -lt -ms -nb -nl -nn -pa -pl -pt -pt_BR -ro -ru -rw -sk% -sl -sq% -sr -sr@Latn -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW" 
0 kB
[ebuild     U ] kde-base/kopete-3.5.5-r2 [3.5.5-r1] USE="arts crypt 
kdeenablefinal slp sms 
ssl -addbookmarks -alias -autoreplace -connectionstatus -contactnotes -debug -gadu -groupwise -highlight -history -irc -jingle -kdehiddenvisibility -latex -netmeeting -nowlistening -sametime -statistics -texteffect -translator -webpresence -winpopup -xinerama 
(-xmms) -xscreensaver -yahoo" 0 kB
[ebuild   R   ] sys-libs/glibc-2.5  USE="glibc-compat20 nls nptl 
profile -build -glibc-omitfp -hardened (-multilib) -nptlonly 
(-selinux)" 0 kB

Have I done something stupid, or is there a real bug here?

alan

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Threading issues with compiling Qt apps
  2006-11-02  5:54 ` Andrey
@ 2006-11-02 17:31   ` Alan McKinnon
  0 siblings, 0 replies; 3+ messages in thread
From: Alan McKinnon @ 2006-11-02 17:31 UTC (permalink / raw
  To: gentoo-user

On Thursday 02 November 2006 07:54, Andrey wrote:
> > /usr/qt/3/lib/libqt-mt.so: undefined reference to
> > `__pthread_register_cancel@GLIBC_2.3.3'
> > /usr/qt/3/lib/libqt-mt.so: undefined reference to
> > `__pthread_unregister_cancel@GLIBC_2.3.3'
> > collect2: ld returned 1 exit status
> > =======================
>
> <skipped>
>
> > Have I done something stupid, or is there a real bug here?
>
> Have you tried to reemerge qt-3.3.6-r4 ?

I knew I forgot to do something :-)

remerging qt did indeed fix the problem. Thanks!

alan

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-02 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 11:45 [gentoo-user] Threading issues with compiling Qt apps Alan McKinnon
2006-11-02  5:54 ` Andrey
2006-11-02 17:31   ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox