Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Threading issues with compiling Qt apps
Date: Thu, 02 Nov 2006 13:57:01
Message-Id: 200611021345.21541.alan@linuxholdings.co.za
1 Hi,
2
3 I want to double check some things here first before I report a bug,
4 just in case the problem is in the fingers. arch = ~x86
5
6 Emerging amarok and kde-base/kopete both fail with this error in the
7 configure step:
8
9 =======================
10 checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (library
11 qt-mt) not found. Please check your installation!
12 For more details about this problem, look at the end of config.log.
13 Make sure that you have compiled Qt with thread support!
14 =======================
15
16 The amarok build log contains this:
17
18 =======================
19 configure:33196: rm -rf SunWS_cache; i686-pc-linux-gnu-g++ -o
20 conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_
21 BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4
22 -pipe -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-c
23 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
24 conftes
25 t.cpp -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lpthread
26 1>&5
27 /usr/qt/3/lib/libqt-mt.so: undefined reference to
28 `__pthread_register_cancel@GLIBC_2.3.3'
29 /usr/qt/3/lib/libqt-mt.so: undefined reference to
30 `__pthread_unregister_cancel@GLIBC_2.3.3'
31 collect2: ld returned 1 exit status
32 =======================
33
34 The kopete log contains much the same. It seems like I have faulty glibc
35 build settings, and this will happen for all future Qt builds. I
36 haven't had to remerge a Qt app for a while and the most recent
37 relevant change I can think of was to glibc-2.5: remove nptlonly and
38 add glibc-compat20. My full USE flags for related apps:
39 Calculating dependencies... done!
40 [ebuild R ] kde-base/kdelibs-3.5.5-r5 USE="acl alsa arts cups doc
41 fam jpeg2k kdeenablefinal openexr spell ssl tiff
42 zeroconf -debug -kdehiddenvisibility -kerberos -legacyssl -lua -utempter -xinerama"
43 LINGUAS="-he" 0 kB
44 [ebuild R ] x11-libs/qt-3.3.6-r4 USE="cups doc gif mysql odbc
45 opengl postgres
46 sqlite -debug -examples -firebird -immqt -immqt-bc -ipv6 -nas -nis -xinerama"
47 0 kB
48 [ebuild U ] media-sound/amarok-1.4.4 [1.4.3-r1] USE="aac arts kde
49 mysql opengl postgres
50 real -debug -ifp -ipod -mtp% -njb -noamazon -visualization -xinerama
51 (-xmms)"
52 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"
53 0 kB
54 [ebuild U ] kde-base/kopete-3.5.5-r2 [3.5.5-r1] USE="arts crypt
55 kdeenablefinal slp sms
56 ssl -addbookmarks -alias -autoreplace -connectionstatus -contactnotes -debug -gadu -groupwise -highlight -history -irc -jingle -kdehiddenvisibility -latex -netmeeting -nowlistening -sametime -statistics -texteffect -translator -webpresence -winpopup -xinerama
57 (-xmms) -xscreensaver -yahoo" 0 kB
58 [ebuild R ] sys-libs/glibc-2.5 USE="glibc-compat20 nls nptl
59 profile -build -glibc-omitfp -hardened (-multilib) -nptlonly
60 (-selinux)" 0 kB
61
62 Have I done something stupid, or is there a real bug here?
63
64 alan
65
66 --
67 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Threading issues with compiling Qt apps Andrey <4ndrey@×××××.com>