Some issues compiling on Irix:
authorChris Want <cwant@ualberta.ca>
Wed, 22 Feb 2006 23:34:12 +0000 (23:34 +0000)
committerChris Want <cwant@ualberta.ca>
Wed, 22 Feb 2006 23:34:12 +0000 (23:34 +0000)
+ the code in writemovie.c no longer compiles (since the renderer
refactor). I have #if 0-ed it.

+ OpenGL on Irix doesn't have GL_ARB_vertex_program

+ mmap on Irix doesn't like MAP_ANON.

+ If using the MipsPro 7.3 compiler, the variable MIPS73_ISOHEADERS
can be set to point to the directory with those weird C++ headers
that don't have .h in the name

intern/guardedalloc/intern/mallocn.c
source/blender/src/writemovie.c
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.h
source/nan_compile.mk

index e682f17a386391af2c1a963f8f02e8a8022fcbd2..d26e39e5bcc4c2aa8af5b9d7430a7921b140988b 100644 (file)
@@ -259,8 +259,13 @@ void *MEM_mapallocN(unsigned int len, const char *str)
        
        len = (len + 3 ) & ~3;  /* allocate in units of 4 */
        
+#if defined(__sgi)
+       memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), 
+                          PROT_READ|PROT_WRITE, MAP_SHARED, -1, 0);
+#else
        memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), 
                           PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0);
+#endif
        
        if(memh!=(MemHead *)-1) {
                make_memhead_header(memh, len, str);
index 3491f4f0f60dcc1ee4c2be0917c63ed22d4ebc45..2d828f1213b2a80d6f247e9c545274152fac554f 100644 (file)
@@ -30,7 +30,8 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
-#ifdef __sgi
+//#ifdef __sgi
+#if 0
 
 #include <unistd.h>
 #include <movie.h>
index 00d1d0c9d055d142b1a67b4fadd059c932a0e567..26217c1d78e1e22889a5c948e0d6a5aca2421fa7 100644 (file)
 #  undef __glext_h_
 #endif
 
+#ifdef __sgi
+#  undef GL_ARB_vertex_program
+#endif
+
 #include "glext.h"
 
 #include "EXT_separate_specular_color.h"
index 1201d3e546ed7060d3eae1de5808a1aec9c6903b..736a3c56ec861802260f63dce3825005acff213d 100644 (file)
@@ -117,7 +117,11 @@ ifeq ($(OS),irix)
     CCC        = CC
     CFLAGS     += -n32 -mips3 -Xcpluscomm
     CCFLAGS    += -n32 -mips3 -Xcpluscomm -LANG:std
+ifdef MIPS73_ISOHEADERS
     CCFLAGS    += -LANG:libc_in_namespace_std=off -I$(MIPS73_ISOHEADERS)
+else
+    CCFLAGS    += -LANG:libc_in_namespace_std=off
+endif
     REL_CFLAGS += -n32 -mips3 -O2 -OPT:Olimit=0
     REL_CCFLAGS += -n32 -mips3 -O2 -OPT:Olimit=0
     OPENGL_HEADERS = /usr/include