Hello! My name is Sokolov Alexey.

<[EMAIL PROTECTED]:~>% uname -sr
FreeBSD 7.0-PRERELEASE

<[EMAIL PROTECTED]:~>% git-clone git://anongit.freedesktop.org/git/mesa/mesa
...
<[EMAIL PROTECTED]:~/mesa>% make
...
cc -c -I../../include -O  -O2 -fPIC -D_POSIX_SOURCE
-D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM -DHZ=100
-I/usr/local/include -ffast-math -pedantic -fno-strict-aliasing
engine.c
engine.c: In function 'PistonStrokePosition':
engine.c:252: error: 'M_PI' undeclared (first use in this function)
engine.c:252: error: (Each undeclared identifier is reported only once
engine.c:252: error: for each function it appears in.)
engine.c: In function 'ComputeConnectingRodPosition':
engine.c:302: error: 'M_PI' undeclared (first use in this function)
engine.c: In function 'DrawConnector':
engine.c:406: error: 'M_PI' undeclared (first use in this function)
engine.c: In function 'DrawPositionedConnectingRod':
engine.c:527: error: 'M_PI' undeclared (first use in this function)
engine.c: In function 'SquareWithHole':
engine.c:551: error: 'M_PI' undeclared (first use in this function)
gmake: *** [engine.o] Error 1
*** Error code 1

Stop in /usr/home/tuser/mesa/progs.

Error in file 'math.h', at this moment, there are two such FreeBSD
file: '/usr/include/math.h' and '/usr/include/c + +/4.2/tr1/math.h'
connects the second, a directive M_PI it not, therefore, have to
manually specify. Of course the best option would have been to include
this policy in the assembly script 'configure', or 'configs/freebsd*',
but now I have another busy little =)
Good luck!

Get patch:
http://www.truebsd.org/files/soko1/patches/intel2freebsd70_M_PI_error.diff


-- 
http://www.TrueBSD.org
diff -ru mesa.orig/progs/demos/engine.c mesa/progs/demos/engine.c
--- mesa.orig/progs/demos/engine.c	2008-01-21 14:44:56.000000000 +0000
+++ mesa/progs/demos/engine.c	2008-01-21 14:44:04.000000000 +0000
@@ -15,6 +15,10 @@
 #include "readtex.h"
 #include "trackball.h"
 
+#if !M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 #define DEG_TO_RAD(DEG)  ((DEG) * M_PI / 180.0)
 
 #define TEXTURE_FILE "../images/reflect.rgb"
diff -ru mesa.orig/progs/xdemos/corender.c mesa/progs/xdemos/corender.c
--- mesa.orig/progs/xdemos/corender.c	2008-01-21 14:44:56.000000000 +0000
+++ mesa/progs/xdemos/corender.c	2008-01-21 14:44:04.000000000 +0000
@@ -25,6 +25,10 @@
 #include <unistd.h>
 #include "ipc.h"
 
+#if !M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 static int MyID = 0;  /* 0 or 1 */
 static int WindowID = 0;
 static GLXContext Context = 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to