Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262488 - net-im/kadu-0.6.5.1 needs net-libs/libgadu with pthread USE flag set
Summary: net-im/kadu-0.6.5.1 needs net-libs/libgadu with pthread USE flag set
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dawid Węgliński (RETIRED)
URL:
Whiteboard:
Keywords:
: 271211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-14 23:07 UTC by Jacek Trubłajewicz
Modified: 2009-05-27 20:10 UTC (History)
3 users (show)

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


Attachments
kadu-0.6.5.1 build.log (build.log,6.37 KB, text/plain)
2009-03-14 23:09 UTC, Jacek Trubłajewicz
Details
net-libs/libgadu-1.8.2 configure log (libgadu.configure.log,8.08 KB, text/plain)
2009-03-14 23:11 UTC, Jacek Trubłajewicz
Details
emerge --info (emerge.info,3.31 KB, text/plain)
2009-03-14 23:13 UTC, Jacek Trubłajewicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Trubłajewicz 2009-03-14 23:07:49 UTC
During emerge:
[ebuild  N    ] net-libs/libgadu-1.8.2  USE="ssl threads" 0 kB
[ebuild  N    ] net-im/kadu-0.6.5.1  USE="alsa audacious sms ssl -amarok -amarok2 -ao (-bmpx) -config_wizard -dragonplayer -oss -spell -vlc -voice" 0 kB

I receive following error:

 Scanning dependencies of target account_management
[  1%] Building CXX object modules/account_management/CMakeFiles/account_management.dir/account_management.cpp.o
In file included from /var/tmp/portage/net-im/kadu-0.6.5.1/work/kadu/modules/account_management/register.h:6,
                 from /var/tmp/portage/net-im/kadu-0.6.5.1/work/kadu/modules/account_management/account_management.cpp:14:
/var/tmp/portage/net-im/kadu-0.6.5.1/work/kadu/kadu-core/gadu.h:15:3: error: #error "libgadu must be compiled with pthread support"
make[2]: *** [modules/account_management/CMakeFiles/account_management.dir/account_management.cpp.o] Błąd 1
make[1]: *** [modules/account_management/CMakeFiles/account_management.dir/all] Błąd 2
make: *** [all] Błąd 2
 * 
 * ERROR: net-im/kadu-0.6.5.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2736:  Called cmake-utils_src_compile
 *             environment, line  720:  Called cmake-utils_src_make
 *             environment, line  792:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!

I've reemerged dev-libs/pth-2.0.7-r1 (don't know if this is somehow connected with pthreads) and tried rebuild libgadu and kadu again with no success.


Reproducible: Always

Steps to Reproduce:
1. emerge -C libgadu kadu 
2. add "net-libs/libgadu threads" into /etc/packages.use
3. emerge "=net-im/kadu-0.6.5.1"
Comment 1 Jacek Trubłajewicz 2009-03-14 23:09:27 UTC
Created attachment 185012 [details]
kadu-0.6.5.1 build.log
Comment 2 Jacek Trubłajewicz 2009-03-14 23:11:37 UTC
Created attachment 185013 [details]
net-libs/libgadu-1.8.2 configure log
Comment 3 Jacek Trubłajewicz 2009-03-14 23:13:44 UTC
Created attachment 185014 [details]
emerge --info
Comment 4 Dawid Węgliński (RETIRED) gentoo-dev 2009-03-15 13:19:22 UTC
Can you please reproduce it with properly set -march for your processor? athlon64 is for amd64 profile as far as i remember. Please set it to athlon-xp and rebuild libgadu, then try to build kadu.
Comment 5 Jacek Trubłajewicz 2009-03-16 11:25:20 UTC
It seems that I was misled by this document: http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Athlon_64 which propose setting march=k8 (which I believe is the same as athlon64) for 32bit Athlon 64 environment.

Unfortunately, doing as you said and setting march=athlon-xp, rebuilding libgadu and then kadu, doesn't help. Kadu complains with the same error as it did before.
Comment 6 Maciej Mrozowski gentoo-dev 2009-03-16 14:07:17 UTC
It looks like rather libgadu bug than kadu bug.
Kadu checks for definition of #define GG_CONFIG_HAVE_PTHREAD in libgadu.h
It does it in two places - in CMakeLists.txt (using grep), and in kady-core/gadu,h.
First check may return 'true' even if "#define GG_CONFIG_HAVE_PTHREAD" was commented oyt as grep will accept "// #define GG_CONFIG_HAVE_PTHREAD" as found as well, but that's different story.
Second check - the one actually valid, is in gadu.h using #ifndef just below #include <libgadu.h>.
Kadu already requires libgadu[pthread], so that from kadu ebuild perspective - all requirements are met.
Now the question is - why libgadu (1.8.2) for that user doesn't allow setting pthread USE flag (so that #define GG_CONFIG_HAVE_PTHREAD is present in libgadu.h).

For the start - try upgrading your system first - especially gcc and glibc to latest stable and then try rebuilding libgadu.
Comment 7 Jacek Trubłajewicz 2009-03-17 22:13:20 UTC
Upgrade below packages to:

[ebuild   R   ] sys-devel/binutils-2.18-r3  USE="nls -multislot -multitarget -test -vanilla" 0 kB
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="fortran gtk mudflap nls (-altivec) -bootstrap -build -d -doc -gcj (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild   R   ] sys-libs/glibc-2.8_p20080602-r1  USE="nls -debug -gd -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla"

didn't help and the problem still occurs. 

(In reply to comment #6)
> Now the question is - why libgadu (1.8.2) for that user doesn't allow setting
> pthread USE flag (so that #define GG_CONFIG_HAVE_PTHREAD is present in
> libgadu.h).

But this symbol (GG_CONFIG_HAVE_PTHREAD) actually IS defined in my libgadu.h:

/* Defined if libgadu was compiled and linked with pthread support. */
#define GG_CONFIG_HAVE_PTHREAD 


Comment 8 Jacek Trubłajewicz 2009-03-17 22:29:29 UTC
Finally I found the cause of this problem, it was another libgadu.h placed in /usr/local/include, I think it was remain from some old overlay kadu ebuild. Thanks for your help and sorry for messing around.
Comment 9 Dawid Węgliński (RETIRED) gentoo-dev 2009-03-17 22:36:11 UTC
Ah lol. No problem. I've been preparing my x86 chroot just while ago to figure it out. Thanks you spoted it out. :)

Reopen to close it. :/
Comment 10 Dawid Węgliński (RETIRED) gentoo-dev 2009-03-17 22:36:33 UTC
And close.
Comment 11 Maciej Mrozowski gentoo-dev 2009-05-27 20:10:15 UTC
*** Bug 271211 has been marked as a duplicate of this bug. ***