Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61186 - kdenetwork fails to compile with USE="-arts wifi"
Summary: kdenetwork fails to compile with USE="-arts wifi"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 62338 62716 65463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-21 12:18 UTC by tomchuk
Modified: 2005-01-01 08:26 UTC (History)
9 users (show)

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


Attachments
ugly hack for removing wifi's dependency on arts (wifi-without-arts-hack.patch,4.19 KB, patch)
2004-08-21 13:01 UTC, Konstantin Arkhipov (RETIRED)
Details | Diff
same ugly hack with removed -lmcop (ugly_wifi_hack.patch,4.19 KB, patch)
2004-08-22 04:38 UTC, Konstantin Arkhipov (RETIRED)
Details | Diff
Modified patch to turn off arts in wifi (wifi-arts.patch,5.27 KB, patch)
2004-09-19 19:31 UTC, Caleb Tennis (RETIRED)
Details | Diff
Patch for kdenetwork-3.3.0, including Caleb's patch and the status.cpp patch (3.30-kdenetwork.diff,6.12 KB, patch)
2004-10-16 11:22 UTC, Jonathan Love
Details | Diff
Hopefully working patch, including Makefile.in & status.cpp patch, and Caleb's latest (3.30-kdenetwork.diff,6.74 KB, patch)
2004-10-16 12:14 UTC, Jonathan Love
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tomchuk 2004-08-21 12:18:29 UTC
Arts rears its ugly head again:


make[3]: Entering directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
/usr/qt/3/bin/moc ./interface_wireless.h -o interface_wireless.moc
/usr/qt/3/bin/moc ./interface_wireless_wirelessextensions.h -o interface_wireless_wirelessextensions.moc
/usr/qt/3/bin/moc ./kwifimanager.h -o kwifimanager.moc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -msse -msse2 -pipe -Wformat-security -Wmissing-format-attribute -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 locator.o locator.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -msse -msse2 -pipe -Wformat-security -Wmissing-format-attribute -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 main.o main.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -msse -msse2 -pipe -Wformat-security -Wmissing-format-attribute -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 picture.o picture.cpp
In file included from locator.cpp:20:
interface_wireless.h:24:28: arts/iomanager.h: No such file or directory
interface_wireless.h:25:29: arts/dispatcher.h: No such file or directory
In file included from picture.cpp:23:
interface_wireless.h:24:28: arts/iomanager.h: No such file or directory
interface_wireless.h:25:29: arts/dispatcher.h: No such file or directory
In file included from picture.cpp:23:
interface_wireless.h:98: error: `Arts' is not a class or namespace
interface_wireless.h:99: error: `TimeNotify' is not a class or namespace
interface_wireless.h:99: error: invalid base-class specification
interface_wireless.h:101: error: syntax error before `::' token
interface_wireless.h:102: error: parse error before `::' token
interface_wireless.h:107: error: parse error before `}' token
In file included from locator.cpp:20:
interface_wireless.h:98: error: `Arts' is not a class or namespace
interface_wireless.h:99: error: `TimeNotify' is not a class or namespace
interface_wireless.h:99: error: invalid base-class specification
interface_wireless.h:101: error: syntax error before `::' token
interface_wireless.h:102: error: parse error before `::' token
interface_wireless.h:107: error: parse error before `}' token
make[3]: *** [locator.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [picture.o] Error 1
In file included from kwifimanager.h:43,
                 from main.cpp:25:
interface_wireless.h:24:28: arts/iomanager.h: No such file or directory
interface_wireless.h:25:29: arts/dispatcher.h: No such file or directory
In file included from kwifimanager.h:43,
                 from main.cpp:25:
interface_wireless.h:98: error: `Arts' is not a class or namespace
interface_wireless.h:99: error: `TimeNotify' is not a class or namespace
interface_wireless.h:99: error: invalid base-class specification
interface_wireless.h:101: error: syntax error before `::' token
interface_wireless.h:102: error: parse error before `::' token
interface_wireless.h:107: error: parse error before `}' token
make[3]: *** [main.o] Error 1
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0'
make: *** [all] Error 2

!!! ERROR: kde-base/kdenetwork-3.3.0 failed.
!!! Function kde_src_compile, Line 130, Exitcode 2
!!! died running emake, kde_src_compile:make


Reproducible: Always
Steps to Reproduce:
USE="-arts wifi" emerge kdenetwork



Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8
                                                 .1-ck1)
=================================================================
System uname: 2.6.8.1-ck1 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -
                                                 msse -msse2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3
                                                
/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /us
                                                 r/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/te                             
                    xmf/tex/platex/config/ /usr/share/texmf/xdvi/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx
                                                  -msse -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo http://gentoo.oregonstate.e
                                                 du
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa apm audiofile avi berkdb bindist bzlib calendar cdr c
                                                 rypt cups dga directfb
divx4linux doc dvd encode ethereal exif f77 fam fbcon fla                      
                           c flash foomaticdb ftp gdbm gif gnome gphoto2 gpm gps
gstreamer gtk gtk2 gtkhtml                                                   icc
icq imagemagick imap imlib jabber java jpeg junit ldap libg++ libwww mad ma    
                                             ildir mikmod ming mmx mozilla mpeg
mpi msn ncurses nocd nptl offensive oggvorbis                                  
                opengl oss pam pcmcia pdflib perl png pnp ppds python qt
quicktime readline sam                                                  ba
scanner slang slp spell sqlite sse ssl svg svga tcpd tetex theora tidy tiff t  
                                               ruetype usb wmf x86 xinerama xml
xml2 xosd xv xvid yahoo zlib"
Comment 1 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-21 13:01:39 UTC
Created attachment 37891 [details, diff]
ugly hack for removing wifi's dependency on arts

this dummy hack removes this dependency in cost of lost audial notification
untested, but should work
Comment 2 tomchuk 2004-08-21 14:26:06 UTC
Closer...

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -msse -msse2 -pipe -Wformat-security -Wmissing-format-attribute -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 interface_dcop_skel.o interface_dcop_skel.cpp
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -mcpu=pentium4 -O2 -fomit-frame-pointer -ftracer -mmmx -msse -msse2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o kwifimanager -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib  interface_wireless.o interface_wireless_wirelessextensions.o kwifimanager.o locator.o main.o picture.o speed.o statistics.o status.o strength.o asusled.o interface_dcop_skel.o -lmcop -liw -lkdeui 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmcop
collect2: ld returned 1 exit status
make[3]: *** [kwifimanager] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0/wifi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdenetwork-3.3.0/work/kdenetwork-3.3.0'
make: *** [all] Error 2

!!! ERROR: kde-base/kdenetwork-3.3.0 failed.
!!! Function kde_src_compile, Line 130, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-22 04:38:02 UTC
Created attachment 37933 [details, diff]
same ugly hack with removed -lmcop

can you try it?
Comment 4 tomchuk 2004-08-22 17:07:25 UTC
Did the trick, thanks!
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-08-25 11:41:15 UTC
Can you also file this at bugs.kde.org so it gets fixed upstream?
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-08-31 05:45:38 UTC
*** Bug 62338 has been marked as a duplicate of this bug. ***
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2004-09-03 09:09:51 UTC
*** Bug 62716 has been marked as a duplicate of this bug. ***
Comment 8 Disenchanted (RETIRED) gentoo-dev 2004-09-10 09:17:46 UTC
can we apply this here till it is fixed upstream?
Comment 9 Bret Towe 2004-09-10 14:57:59 UTC
i hit this bug since 3.3 was marked x86 recently
it would be nice to see it included
it does work fine here
Comment 10 Disenchanted (RETIRED) gentoo-dev 2004-09-18 19:23:11 UTC
people rebuilding keep getting hit by this, can we use this till upstream fixed it?
Comment 11 Steve 2004-09-19 10:11:49 UTC
The KDE people have this bug, when it will be fixed, who knows, In the mean time, could something be put in the ebuild to apply the patch in a -arts situation? I keep getting emails and emails from my users and I don't realy like making a portage overlay unless I have to
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2004-09-19 11:09:42 UTC
again, can someone file this as bugs.kde.org and post a link?
Comment 13 tomchuk 2004-09-19 18:02:32 UTC
Sorry Caleb, I've been floating around on a boat for the last month with $10/min email though a sat phone. Looks like Steve filed the bug here: http://bugs.kde.org/show_bug.cgi?id=88565  Thanks for taking care of that Steve.
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2004-09-19 18:41:52 UTC
good deal - i think i can work up a patch for this that is a bit cleaner, too.
Comment 15 Caleb Tennis (RETIRED) gentoo-dev 2004-09-19 19:31:33 UTC
Created attachment 39981 [details, diff]
Modified patch to turn off arts in wifi

Please try this out and let me know if it works.
Comment 16 Caleb Tennis (RETIRED) gentoo-dev 2004-09-27 05:21:48 UTC
*** Bug 65463 has been marked as a duplicate of this bug. ***
Comment 17 Jonathan Love 2004-10-16 11:19:33 UTC
Caleb,

Your most recent patch (http://bugs.gentoo.org/attachment.cgi?id=39981) doesn't work properly, as it does not modify the status.cpp to "#include <unistd.h>", as per the previous patch.

I'll attach a version that I've created that adds this, as taken from the previous patch, and also changes the locations diff will look for, so that this can be used as a Gentoo patch in the ebuild.

i.e.:

Save attachment as 3.3.0-kdenetwork.diff, under /usr/portage/kde-base/kdenetwork/files
Then modify kdenetwork-3.3.0.ebuild, in /usr/portage/kde-base/kdenetwork/, to have:

src_unpack() {
    kde_src_unpack
    epatch ${FILESDIR}/3.3.0-kget.diff
    epatch ${FILESDIR}/3.3.0-kopete.diff
    epatch ${FILESDIR}/3.3.0-kdenetwork.diff
}

(i.e. tell emerge to apply the new diff)

I've got no idea if this is the correct method of doing any of this, and I'm only installing Gentoo for the first time today ;)

If anyone can confirm this works, maybe it's a good idea to post to the KDE bugzilla too.

Regards,

Jonathan Love
Comment 18 Jonathan Love 2004-10-16 11:22:40 UTC
Created attachment 41976 [details, diff]
Patch for kdenetwork-3.3.0, including Caleb's patch and the status.cpp patch
Comment 19 Jonathan Love 2004-10-16 11:47:54 UTC
Comment on attachment 41976 [details, diff]
Patch for kdenetwork-3.3.0, including Caleb's patch and the status.cpp patch

Still need to include the Makefile changes from the previous patch.

Will create a new one...
Comment 20 Jonathan Love 2004-10-16 12:14:07 UTC
Created attachment 41981 [details, diff]
Hopefully working patch, including Makefile.in & status.cpp patch, and Caleb's latest
Comment 21 Rafal Dejewski 2004-10-17 04:57:10 UTC
Guys, I've tried the last patch (41981) with kdenetwork-3.3.1. It worked! Patch was applied with some fuzz. Thanks!
Comment 22 Alessandro Ronchi 2004-12-04 05:27:51 UTC
Is it possibile to include this patch to the gentoo kde-network package?
Comment 23 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-04 07:18:14 UTC
It's fixed for kde 3.3.2, which will be out in a few days.
Comment 24 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-01 08:26:33 UTC
Closing.