Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118472

Summary: joystick.c compilation crash with app-emulation/wine-20050930
Product: Gentoo Linux Reporter: Pedroleouf <pedroleouf>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: critical CC: gtbgs
Priority: Low    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pedroleouf 2006-01-09 17:23:32 UTC
Compilation failed:

make[2]: Entering directory `/var/tmp/portage/wine-20050930/work/wine-20050930/dlls/winmm/joystick'
i686-pc-linux-gnu-gcc -c -I. -I. -I../../../include -I../../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -march=pentium4 -pipe -O2 -I//usr/include/lcms  -o joystick.o joystick.c
joystick.c: In function `JSTCK_GetDevCaps':
joystick.c:255: warning: implicit declaration of function `strcpyW'
../../../tools/winegcc/winegcc -B../../../tools/winebuild -shared ./joystick.drv.spec    joystick.o     -o joystick.drv.so -L../../../dlls -L../../../dlls/winmm -L../../../dlls/user32 -L../../../dlls/kernel32 -lwinmm -luser32 -lkernel32  -L../../../libs/wine -lwine  -L../../../libs/port -lwine_port  
joystick.o: In function `JSTCK_GetDevCaps':
/var/tmp/portage/wine-20050930/work/wine-20050930/dlls/winmm/joystick/joystick.c:255: undefined reference to `strcpyW'
collect2: ld returned 1 exit status
winegcc: i686-pc-linux-gnu-gcc failed.
make[2]: *** [joystick.drv.so] Error 2
make[2]: Leaving directory `/var/tmp/portage/wine-20050930/work/wine-20050930/dlls/winmm/joystick'
make[1]: *** [winmm/joystick] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-20050930/work/wine-20050930/dlls'
make: *** [dlls] Error 2

!!! ERROR: app-emulation/wine-20050930 failed.
!!! Function src_compile, Line 137, Exitcode 2
!!! all
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 DC 2006-01-09 22:34:34 UTC
Adding #include "wine/unicode.h" to dlls/winmm/joystick.c seems to fix this.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 01:37:12 UTC

*** This bug has been marked as a duplicate of 112146 ***
Comment 3 Pedroleouf 2006-01-10 14:42:08 UTC
Same error with #include "wine/unicode.h"
Comment 4 Julien Cassignol 2006-01-10 15:07:40 UTC
You have to edit (and fix) dlls/winmm/joystick/joystick.c too.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 20:37:44 UTC
We won't be fixing this version.

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