When trying to emerge wine, it fails at a certain point. I have KDE from cvs installed with the latest danamrak ebuilds besides the newest kde from the stable tree. Reproducible: Always Steps to Reproduce: 1. emerge wine Actual Results: ... cd `dirname winmm/winearts/__depend__` && make depend make[2]: Entering directory `/var/tmp/portage/wine-20030508/work/wine-20030508/d lls/winmm/winearts' ../../../tools/makedep -I. -I. -I../../../include -I../../../include -I/usr/kde/ cvs/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include - C. arts.c audio.c Unknown option '-pthread' Usage: ../../../tools/makedep [options] [files] Options: -Idir Search for include files in directory 'dir' -Cdir Search for source files in directory 'dir' -fxxx Store output in file 'xxx' (default: Makefile) -sxxx Use 'xxx' as separator (default: "### Dependencies") make[2]: *** [depend] Error 1 make[2]: Leaving directory `/var/tmp/portage/wine-20030508/work/wine-20030508/dlls/winmm/winearts' make[1]: *** [winmm/winearts/__depend__] Error 2 make[1]: Leaving directory `/var/tmp/portage/wine-20030508/work/wine-20030508/dlls' make: *** [dlls/__depend__] Error 2 !!! ERROR: app-emulation/wine-20030508 failed. !!! Function src_compile, Line 62, Exitcode 2 !!! (no error message) Expected Results: compile correctly Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1700+ GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/cvs/share/config /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga java guile X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl aalib acpi alsa -apm cdr dga fbcon mozilla mysql pic sse tcltk tetex tiff usb wmf -gpm moznoirc moznomail moznocompose" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="no" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage/" FEATURES="sandbox ccache"
do you have perl compiled with thread support ? this isn't working for many ebuilds
As far as I know, I didn't do anything special with perl. I just emerged it. I am not a developer. Maybe it is compiled with thread support: ====== sander@herman sander $ perl -V | grep thread usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil perllibs=-lpthread -lnsl -ldl -lm -lc -lcrypt -lutil ====== How do I compile perl without thread support?
#USE="-threads" emerge perl
this has nothing to do with perl threads, it a problem with kde-cvs, i get it here and i dont use perl threads. removing "-pthread" from the winearts Makefile fixes it without any known side effects.
I get that too. Will remove -pthread and see if it works. If it does, we should make the wine ebuild remove pthread. Is it needed to kde <=3.1.x ?
Whoops - my mistake - artsc-config --libs includes -pthread in its output, which os obviously wrong (it should only be in the --libs output), hence the unknown option error. I'll look into fixing it in the cvs arts ebuild.
Traced it to a problem in the glib2 .pc. Cf bug #24385 which I've just submitted about it. Can't do anything further on this myself atm as I'm leaving linuxtag for home but won't get there for a couple of days.
hmm... alex@SUKA alex $ artsc-config --libs -L/usr/kde/cvs/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 no -pthread here and I still get the error while emerging wine, kde-cvs compiled about a week ago, I think I had glib 2.2.2 when I emerged kde-cvs but I am not sure.
Doh, alex@SUKA alex $ artsc-config --cflags -I/usr/kde/cvs/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include here it is...
how about just mark this as dupe of bug #24385 ?
*** This bug has been marked as a duplicate of 24385 ***