make[2]: Entering directory `/home/sun/sources/wine/wine/dlls/d3d8' ../../tools/makedep -I. -I. -I../../include -I../../include -I/usr/X11R6/include -C. basetexture.c cubetexture.c d3d8_main.c device.c directx.c indexbuffer.c resource.c surface.c swapchain.c texture.c vertexbuffer.c volume.c volumetexture.c math.h: No such file or directory math.h was first included from device.c:26 make[2]: *** [depend] Error 1 make[2]: Leaving directory `/home/sun/sources/wine/wine/dlls/d3d8' make[1]: *** [d3d8/__depend__] Error 2 make[1]: Leaving directory `/home/sun/sources/wine/wine/dlls' make: *** [dlls/__depend__] Error 2
The strange thing is that /usr/include/math.h exists, and seems ok. Then again, it does not appear to be in the include path provided for the command. Explanations?
Shachar
On Saturday 12 October 2002 22:58, Shachar Shemesh wrote:
make[2]: Entering directory `/home/sun/sources/wine/wine/dlls/d3d8' ../../tools/makedep -I. -I. -I../../include -I../../include -I/usr/X11R6/include -C. basetexture.c cubetexture.c d3d8_main.c device.c directx.c indexbuffer.c resource.c surface.c swapchain.c texture.c vertexbuffer.c volume.c volumetexture.c math.h: No such file or directory math.h was first included from device.c:26 make[2]: *** [depend] Error 1 make[2]: Leaving directory `/home/sun/sources/wine/wine/dlls/d3d8' make[1]: *** [d3d8/__depend__] Error 2 make[1]: Leaving directory `/home/sun/sources/wine/wine/dlls' make: *** [dlls/__depend__] Error 2
The strange thing is that /usr/include/math.h exists, and seems ok. Then again, it does not appear to be in the include path provided for the command. Explanations?
The problem is that the math.h is included as: #include "math.h" instead of #include <math.h>
Change that and it would be ok... (yes that is a bug)
Regards Zsolt
Rizsanyi Zsolt wrote:
On Saturday 12 October 2002 22:58, Shachar Shemesh wrote:
make[2]: Entering directory `/home/sun/sources/wine/wine/dlls/d3d8' ../../tools/makedep -I. -I. -I../../include -I../../include -I/usr/X11R6/include -C. basetexture.c cubetexture.c d3d8_main.c device.c directx.c indexbuffer.c resource.c surface.c swapchain.c texture.c vertexbuffer.c volume.c volumetexture.c math.h: No such file or directory math.h was first included from device.c:26 make[2]: *** [depend] Error 1 make[2]: Leaving directory `/home/sun/sources/wine/wine/dlls/d3d8' make[1]: *** [d3d8/__depend__] Error 2 make[1]: Leaving directory `/home/sun/sources/wine/wine/dlls' make: *** [dlls/__depend__] Error 2
The strange thing is that /usr/include/math.h exists, and seems ok. Then again, it does not appear to be in the include path provided for the command. Explanations?
The problem is that the math.h is included as: #include "math.h" instead of #include <math.h>
Change that and it would be ok... (yes that is a bug)
Regards Zsolt
Last time I checked, a quotes delimiter meant "search for the local version, followed by the system version", while a <> delimiter meant "search for the system version only". Since math.h is a system include, both should have equally worked.
I bypassed this problem by manually adding "/usr/include" to the "EXTRAINCL" variable. I am not at all sure, however, that this is the correct solution, and I'm not sure how to make "configure" generate such a Makefile even if it was.
Shachar
On Sat, 12 Oct 2002, Shachar Shemesh wrote:
Rizsanyi Zsolt wrote:
On Saturday 12 October 2002 22:58, Shachar Shemesh wrote:
make[2]: Entering directory `/home/sun/sources/wine/wine/dlls/d3d8' ../../tools/makedep -I. -I. -I../../include -I../../include -I/usr/X11R6/include -C. basetexture.c cubetexture.c d3d8_main.c device.c directx.c indexbuffer.c resource.c surface.c swapchain.c texture.c vertexbuffer.c volume.c volumetexture.c math.h: No such file or directory math.h was first included from device.c:26
....
Last time I checked, a quotes delimiter meant "search for the local version, followed by the system version", while a <> delimiter meant "search for the system version only". Since math.h is a system include, both should have equally worked.
If you will look again at what you sent, you will see that the error is being thrown by <wine>/tools/makedep, which might not behave exactly the same as a compiler WRT header files. It might have ts own reasons to distinguish system headers from wine headers, FI. #include "math.h" is wrong if the .c file wants <math.h>.
I bypassed this problem by manually adding "/usr/include" to the "EXTRAINCL" variable. I am not at all sure, however, that this is the correct solution, and I'm not sure how to make "configure" generate such a Makefile even if it was.
Shachar
What if the C header files are in /usr/local/include? Last time I built libc from source, that is where it wanted to install its header files, I think.
Lawson ---oops---
________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/.
Wine hasn't got a header called math.h
If you will look again at what you sent, you will see that the error is being thrown by <wine>/tools/makedep, which might not behave exactly the same as a compiler WRT header files. It might have ts own reasons to distinguish system headers from wine headers, FI. #include "math.h" is wrong if the .c file wants <math.h>.
So look at the following : - wine doesn't have math.h, so the right code is "#include <math.h>" - then #include <> must know where to look for system headers. If it doesn't, this is an installation problem.
What if the C header files are in /usr/local/include? Last time I built libc from source, that is where it wanted to install its header files, I think.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
On Sat, 2002-10-12 at 21:58, Shachar Shemesh wrote:
make[2]: Entering directory `/home/sun/sources/wine/wine/dlls/d3d8' ../../tools/makedep -I. -I. -I../../include -I../../include -I/usr/X11R6/include -C. basetexture.c cubetexture.c d3d8_main.c device.c directx.c indexbuffer.c resource.c surface.c swapchain.c texture.c vertexbuffer.c volume.c volumetexture.c math.h: No such file or directory math.h was first included from device.c:26 make[2]: *** [depend] Error 1 make[2]: Leaving directory `/home/sun/sources/wine/wine/dlls/d3d8' make[1]: *** [d3d8/__depend__] Error 2 make[1]: Leaving directory `/home/sun/sources/wine/wine/dlls' make: *** [dlls/__depend__] Error 2
The strange thing is that /usr/include/math.h exists, and seems ok. Then again, it does not appear to be in the include path provided for the command. Explanations?
Shachar I have this problem as well, it seems to be caused by the author including "math.h" instead of <math.h>, tiny Patch Attached