| View previous topic :: View next topic |
| Author |
Message |
R0B_IX Tux's lil' helper

Joined: 15 Jun 2003 Posts: 83
|
Posted: Tue Sep 02, 2003 3:48 am Post subject: Problem compiling wine (-pthread error) |
|
|
Well, I've searched a bit and was unable to find anything. I am having problems compiling wine (and winex for that matter). I have tried both the wine ebuild, and getting the source from the cvs. Everytime I compile though, I get this error "Unknown option -pthread"
"../../../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-20030813/work/wine-20030813/dlls/winmm/winearts'
make[1]: *** [winmm/winearts/__depend__] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-20030813/work/wine-20030813/dlls'
make: *** [dlls/__depend__] Error 2
!!! ERROR: app-emulation/wine-20030813 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)"
My system is using...
Kernel 2.6.0-test3-mm2
GCC 3.3.1
Glibc 2.3.2-rc2 /w NPTL
Any thoughts _________________ Laptop:Sager 5670
CPU:3.06ghz w/HT enabled
RAM:512 megs PC2100
Video:ATI Radeon Mobility 9000
HD1:40 gig 5400 RPM 2.5" drive
HD2:20 gig 5400 RPM external 2.5" USB2 drive
OS of choice:Windows 3.1 (just kidding, it's gentoo) |
|
| Back to top |
|
 |
MarkWPiper n00b

Joined: 02 Jun 2002 Posts: 30
|
Posted: Fri Sep 05, 2003 5:30 pm Post subject: |
|
|
This problem occurs only when wine is compiling its arts support.
There are two workarounds I've found:
1) Disable wine's arts support, and trick wine into thinking you don't have arts, as documented https://forums.gentoo.org/viewtopic.php?t=67841&highlight=wine+pthread
2) Modify the configure and configure.ac files in the /var/tmp/portage/wine-* directory. The real problem is that artsc-config --cflags returns a line that gets used inside the autoconfig stuff, and that line contains -pthread. I used ebuild to do the following:
| Code: | cd /usr/portage/app-emulation/wine
ebuild wine-20030813.ebuild setup clean fetch digest unpack
cd /var/tmp/portage/wine-20030813/work/wine-20030813
|
Now, you have to change two lines in the configure and configure.ac files. You can see which lines I'm talking about by doing grep ARTSC_CFLAGS= *
Change those lines to be the output from artsc-config --cflags, but remove the -pthread part. (Remember to use single quotes, rather than backquotes)
Then tell portage to finish compiling:
| Code: |
cd /usr/portage/app-emulation/wine
ebuild wine-20030813.ebuild compile qmerge config |
|
|
| Back to top |
|
 |
hardloop n00b

Joined: 13 Nov 2002 Posts: 18
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|