http://bugs.winehq.org/show_bug.cgi?id=27833
Summary: Direct3D-9 math compilation failure, due to missing NAN and INFINITY Product: Wine Version: 1.3.24 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: Nachanon_Vetjasit@hotmail.com
Created an attachment (id=35599) --> (http://bugs.winehq.org/attachment.cgi?id=35599) Full make output
I'm trying to compile wine-1.3.24 on Debian GNU/Linux 5.0 Lenny i386, after a successfull configure, with warnings that xinput2, opencl, gstreamer and oss support won't be enabled, then I left it to compile, and it finally ended up with:
... gcc -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O2 -o math.o math.c math.c: In function 'test_D3DXFloat_Array': math.c:2251: error: 'INFINITY' undeclared (first use in this function) math.c:2251: error: (Each undeclared identifier is reported only once math.c:2251: error: for each function it appears in.) math.c:2253: error: 'NAN' undeclared (first use in this function) make[1]: *** [math.o] Error 1 make[1]: Leaving directory `/home/window/build/wine-1.3.24/dlls/d3dx9_36/tests' make: *** [dlls/d3dx9_36/tests] Error 2
Adding "#define _GNU_SOURCE" before the first line of math.c, making math.c looked like this:
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
#define _GNU_SOURCE #include "wine/test.h" #include "d3dx9.h" #include <math.h>
could make the compilation continue, but it might not be an appropriate fix.
System: Debian GNU/Linux 5.0 Lenny (i386: Celeron 2GHz) uname: Linux WINDOW 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux GCC: Debian Package version 4.3.2-1.1 GNU libc: Debian Package version 2.7-18lenny7
Note: Both configure and make, invoked without any parameter (plain 'configure' followed by a single plain 'make')