wine 0.9.1 compile fix

Edgar Hucek gimli at gentoo.org
Sun Nov 13 09:55:40 CST 2005


Hi.

I use gentoo linux. I got the following comopile error :


make[2]: Entering directory
`/var/tmp/portage/wine-0.9.1/work/wine-0.9.1/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+
-Wdeclaration-after-statement -Wpointer-arith  -O2 -march=pentium3 -pipe
-I//usr/include/lcms  -o joystick.o joystick.c
In Datei, eingefügt von joystick.c:66:
../../../include/winuser.h:3109:1: Warnung: "SW_MAX" redefined
In Datei, eingefügt von /usr/include/linux/joystick.h:33,
                    von joystick.c:56:
/usr/include/linux/input.h:576:1: Warnung: this is the location of the previous
definition
joystick.c: In function `JSTCK_GetDevCaps':
joystick.c:255: Warnung: implizite Deklaration der Funktion »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(.text+0x2cd): In function `JSTCK_DriverProc':
/var/tmp/portage/wine-0.9.1/work/wine-0.9.1/dlls/winmm/joystick/joystick.c:255:
undefined reference to `strcpyW'
collect2: ld gab 1 als Ende-Status zurück
winegcc: i686-pc-linux-gnu-gcc failed.
make[2]: *** [joystick.drv.so] Fehler 2
make[2]: Leaving directory
`/var/tmp/portage/wine-0.9.1/work/wine-0.9.1/dlls/winmm/joystick'
make[1]: *** [winmm/joystick] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/wine-0.9.1/work/wine-0.9.1/dlls'
make: *** [dlls] Fehler 2

The attached patch did fix the problem for me.

cu

gimli





-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-0.9.1-uniciode_fix.patch
Type: text/x-patch
Size: 433 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051113/247bc8ad/wine-0.9.1-uniciode_fix.patch


More information about the wine-patches mailing list