Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222207 - kde-base/kcontrol fails because it can't find kdnssd during linking
Summary: kde-base/kcontrol fails because it can't find kdnssd during linking
Status: RESOLVED DUPLICATE of bug 199856
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 228989 234247 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-15 06:05 UTC by Andreas Buck
Modified: 2008-09-14 00:30 UTC (History)
3 users (show)

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


Attachments
Amended kcontrol-3.5.9.ebuild (kcontrol-3.5.9.ebuild,2.31 KB, text/plain)
2008-07-31 17:12 UTC, John Simmonds (overfuse)
Details
Patch for original ebuild. (kcontrol-3.5.9.avahi_useflag.patch,509 bytes, patch)
2008-08-01 09:36 UTC, John Simmonds (overfuse)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Buck 2008-05-15 06:05:38 UTC
/bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o configdialog.lo configdialog.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o kcm_kdnssd.la -rpath /usr/kde/3.5/lib64/kde3 -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    kcmdnssd.lo configdialog.lo -lkdnssd -lkdeui 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lkdnssd
collect2: ld returned 1 exit status
make[3]: *** [kcm_kdnssd.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kde-base/kcontrol-3.5.8-r2/work/kcontrol-3.5.8/kcontrol/dnssd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kcontrol-3.5.8-r2/work/kcontrol-3.5.8/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kcontrol-3.5.8-r2/work/kcontrol-3.5.8'
make: *** [all] Error 2
 * 
 * ERROR: kde-base/kcontrol-3.5.8-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4407:  Called kde-meta_src_compile
 *             environment, line 2943:  Called kde_src_compile
 *             environment, line 3108:  Called kde_src_compile 'src_compile'
 *             environment, line 3228:  Called kde_src_compile 'src_compile' 'all' 'myconf'
 *             environment, line 3224:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   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/kcontrol-3.5.8-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/kcontrol-3.5.8-r2/temp/environment'.
 * 

 * Messages for package kde-base/kcontrol-3.5.8-r2:

 * 
 * ERROR: kde-base/kcontrol-3.5.8-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4407:  Called kde-meta_src_compile
 *             environment, line 2943:  Called kde_src_compile
 *             environment, line 3108:  Called kde_src_compile 'src_compile'
 *             environment, line 3228:  Called kde_src_compile 'src_compile' 'all' 'myconf'
 *             environment, line 3224:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make
Comment 1 Roeland Douma 2008-05-15 09:48:54 UTC
Try to reemerge kdelibs and/or run revdep-rebuild.
Comment 2 Andreas Buck 2008-05-19 10:43:39 UTC
I'm sorry for the late answer. As I felt convinced that the issue was merely caused by a missing dependency in the ebuild I didn't check back earlier.

I solved the problem shortly after I reported it by installing kde-misc/kdnssd-avahi to satisfy the linker. Therefore I unfortunately can't check any more if your solution might have worked out too. 
Comment 3 Matt 2008-05-25 05:50:47 UTC
(In reply to comment #1)
> Try to reemerge kdelibs and/or run revdep-rebuild.
> 

I was having trouble compiling kcontrol-3.5.8 and your recommendation worked for me. Thanks.
Comment 4 Hans Nieser 2008-05-25 08:10:17 UTC
I just ran into this problem as well as kcontrol was being compiled as a dependency of konqueror (without already having anything kde-related on my system when I ran 'emerge konqueror').

Strangely enough when I tried to re-emerge kdelibs as suggested here it suddenly brought in kdnssd-avahi. It seems odd that it didn't do this initially, I didn't touch my USE flags or anything (avahi was already enabled).
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-23 00:21:13 UTC
*** Bug 228989 has been marked as a duplicate of this bug. ***
Comment 6 John Simmonds (overfuse) 2008-07-31 17:12:11 UTC
Created attachment 161850 [details]
Amended kcontrol-3.5.9.ebuild

Amended kcontrol-3.5.9.ebuild to install kde-misc/kdnssd-avahi if USE flag "avahi" is set.
Comment 7 John Simmonds (overfuse) 2008-08-01 09:32:11 UTC
(In reply to comment #6)
> Created an attachment (id=161850) [edit]
> Amended kcontrol-3.5.9.ebuild
> 
> Amended kcontrol-3.5.9.ebuild to install kde-misc/kdnssd-avahi if USE flag
> "avahi" is set.
> 

This is a patch file instead. Both the previous ebuild and this patch don't really fix the fact the kcontrol is using auto magic to determine if it needs kdnssd for avahi.

I will continue looking into it and see if I can produce a patch it fix the source's makefile as well.
Comment 8 John Simmonds (overfuse) 2008-08-01 09:36:03 UTC
Created attachment 161903 [details, diff]
Patch for original ebuild.
Comment 9 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-08-08 16:53:32 UTC
*** Bug 234247 has been marked as a duplicate of this bug. ***
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-08-08 16:55:39 UTC
If you look at kdelibs-3.5.9*, you'll see the following:

PDEPEND="avahi? ( kde-misc/kdnssd-avahi )
        bindist? ( kde-misc/kdnssd-avahi )"

Did you have the avahi or the bindist use flags enabled? If so, unless you've emerged kdelibs with --no-deps, this shouldn't have happened.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-13 00:13:38 UTC
good ol' Portage bug
Comment 12 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-14 00:30:52 UTC
Ow - dupe it, actually.

*** This bug has been marked as a duplicate of bug 199856 ***