# # gem install ruby-opengl # Building native extensions. This could take a while... # ERROR: While executing gem ... (RuntimeError) # Error instaling ruby-opengl: # ERROR: Failed to build gem native extension. # # rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/lib extension # cd ext/common && rake # (in /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0) # Building common rbogl object file # cc -c -Wall -g -fno-strict-aliasing -O2 -fPIC -I/usr/lib/ruby/1.8/i486-linux -o rbogl.o rbogl.c # (in /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/ext/common) # rbogl.c:26:19: GL/gl.h: No such file or directory # In file included from rbogl.c:29: # rbogl.h:23:18: ruby.h: No such file or directory # In file included from rbogl.c:29: # rbogl.h:27: error: syntax error before "cProc" # rbogl.h:27: warning: type defaults to `int' in declaration of `cProc' # rbogl.h:27: warning: data definition has no type or storage class # rbogl.h:29: error: syntax error before '[' token # rbogl.h:30: error: syntax error before '[' token # rbogl.h:31: error: syntax error before '[' token # rbogl.h:32: error: syntax error before '[' token # rbogl.h:33: error: syntax error before '[' token # rbogl.h:34: error: syntax error before '[' token # rbogl.h:35: error: syntax error before '[' token # rbogl.h:36: error: syntax error before "double" # rbogl.h:37: error: syntax error before "float" # rbogl.h:38: warning: parameter names (without types) in function declaration # rbogl.h:39: error: syntax error before "double" # rbogl.h:40: error: syntax error before "float" # rbogl.h:41: error: syntax error before "allocate_buffer_with_string" # rbogl.h:41: warning: type defaults to `int' in declaration of `allocate_buffer_with_string' # rbogl.h:41: warning: data definition has no type or storage class # rbogl.h:44: warning: parameter names (without types) in function declaration # rbogl.h:49: error: syntax error before "type" # rbogl.h:50: error: syntax error before "format" # rbogl.c:34: error: syntax error before "val" # rbogl.c: In function `num2double': # rbogl.c:37: warning: implicit declaration of function `NIL_P' # rbogl.c:37: error: `val' undeclared (first use in this function) # rbogl.c:37: error: (Each undeclared identifier is reported only once # rbogl.c:37: error: for each function it appears in.) # rbogl.c:38: warning: implicit declaration of function `RFLOAT' # rbogl.c:38: warning: implicit declaration of function `f_float' # rbogl.c:38: warning: assignment makes pointer from integer without a cast # rbogl.c:39: error: dereferencing pointer to incomplete type # rbogl.c: At top level: # rbogl.c:66: error: syntax error before "VALUE" # rbogl.c:66: warning: type defaults to `int' in declaration of `arg' # rbogl.c:66: warning: data definition has no type or storage class # rbogl.c:66: error: syntax error before "cary" # rbogl.c:66: warning: type defaults to `int' in declaration of `cary' # rbogl.c:66: warning: data definition has no type or storage class # rbogl.c:66: error: syntax error before '{' token # rbogl.c:66: error: syntax error before "entry" # rbogl.c:66: warning: type defaults to `int' in declaration of `entry' # rbogl.c:66: warning: data definition has no type or storage class # rbogl.c:66: warning: type defaults to `int' in declaration of `ary' # rbogl.c:66: error: conflicting types for `ary' # rbogl.c:66: error: previous declaration of `ary' # rbogl.c:66: warning: implicit declaration of function `RARRAY' # rbogl.c:66: warning: implicit declaration of function `rb_Array' # rbogl.c:66: warning: data definition has no type or storage class # rbogl.c:66: error: syntax error before "if" # rbogl.c:66: error: `i' undeclared here (not in a function) # rbogl.c:66: warning: type defaults to `int' in declaration of `cary' # rbogl.c:66: error: conflicting types for `cary' # rbogl.c:66: error: previous declaration of `cary' # rbogl.c:66: error: `GLint' undeclared here (not in a function) # rbogl.c:66: error: syntax error before "NUM2INT" # rbogl.c:67: error: syntax error before "VALUE" # rbogl.c:67: warning: type defaults to `int' in declaration of `arg' # rbogl.c:67: warning: data definition has no type or storage class # rbogl.c:67: error: syntax error before "cary" # rbogl.c:67: warning: type defaults to `int' in declaration of `cary' # rbogl.c:67: error: conflicting types for `cary' # rbogl.c:66: error: previous declaration of `cary' # rbogl.c:67: warning: data definition has no type or storage class # rbogl.c:67: error: syntax error before '{' token # rbogl.c:67: error: conflicting types for `ary' # rbogl.c:66: error: previous declaration of `ary' # rbogl.c:67: error: syntax error before "entry" # rbogl.c:67: warning: type defaults to `int' in declaration of `entry' # rbogl.c:67: warning: data definition has no type or storage class # rbogl.c:67: warning: type defaults to `int' in declaration of `ary' # rbogl.c:67: error: conflicting types for `ary' # rbogl.c:67: error: previous declaration of `ary' # rbogl.c:67: warning: data definition has no type or storage class # rbogl.c:67: error: syntax error before "if" # rbogl.c:67: error: `i' undeclared here (not in a function) # rbogl.c:67: warning: type defaults to `int' in declaration of `cary' # rbogl.c:67: error: conflicting types for `cary' # rbogl.c:67: error: previous declaration of `cary' # rbogl.c:67: error: `GLuint' undeclared here (not in a function) # rbogl.c:67: error: syntax error before "NUM2INT" # rbogl.c:68: error: syntax error before "VALUE" # rbogl.c:68: warning: type defaults to `int' in declaration of `arg' # rbogl.c:68: warning: data definition has no type or storage class # rbogl.c:68: error: syntax error before "cary" # rbogl.c:68: warning: type defaults to `int' in declaration of `cary' # rbogl.c:68: error: conflicting types for `cary' # rbogl.c:67: error: previous declaration of `cary' # rbogl.c:68: warning: data definition has no type or storage class # rbogl.c:68: error: syntax error before '{' token # rbogl.c:68: error: conflicting types for `ary' # rbogl.c:67: error: previous declaration of `ary' # rbogl.c:68: error: syntax error before "entry" # rbogl.c:68: warning: type defaults to `int' in declaration of `entry' # rbogl.c:68: warning: data definition has no type or storage class # rbogl.c:68: warning: type defaults to `int' in declaration of `ary' # rbogl.c:68: error: conflicting types for `ary' # rbogl.c:68: error: previous declaration of `ary' # rbogl.c:68: warning: data definition has no type or storage class # rbogl.c:68: error: syntax error before "if" # rbogl.c:68: error: `i' undeclared here (not in a function) # rbogl.c:68: warning: type defaults to `int' in declaration of `cary' # rbogl.c:68: error: conflicting types for `cary' # rbogl.c:68: error: previous declaration of `cary' # rbogl.c:68: error: `GLbyte' undeclared here (not in a function) # rbogl.c:68: error: syntax error before "NUM2INT" # rbogl.c:69: error: syntax error before "VALUE" # rbogl.c:69: warning: type defaults to `int' in declaration of `arg' # rbogl.c:69: warning: data definition has no type or storage class # rbogl.c:69: error: syntax error before "cary" # rbogl.c:69: warning: type defaults to `int' in declaration of `cary' # rbogl.c:69: error: conflicting types for `cary' # rbogl.c:68: error: previous declaration of `cary' # rbogl.c:69: warning: data definition has no type or storage class # rbogl.c:69: error: syntax error before '{' token # rbogl.c:69: error: conflicting types for `ary' # rbogl.c:68: error: previous declaration of `ary' # rbogl.c:69: error: syntax error before "entry" # rbogl.c:69: warning: type defaults to `int' in declaration of `entry' # rbogl.c:69: warning: data definition has no type or storage class # rbogl.c:69: warning: type defaults to `int' in declaration of `ary' # rbogl.c:69: error: conflicting types for `ary' # rbogl.c:69: error: previous declaration of `ary' # rbogl.c:69: warning: data definition has no type or storage class # rbogl.c:69: error: syntax error before "if" # rbogl.c:69: error: `i' undeclared here (not in a function) # rbogl.c:69: warning: type defaults to `int' in declaration of `cary' # rbogl.c:69: error: conflicting types for `cary' # rbogl.c:69: error: previous declaration of `cary' # rbogl.c:69: error: `GLubyte' undeclared here (not in a function) # rbogl.c:69: error: syntax error before "NUM2INT" # rbogl.c:70: error: syntax error before "VALUE" # rbogl.c:70: warning: type defaults to `int' in declaration of `arg' # rbogl.c:70: warning: data definition has no type or storage class # rbogl.c:70: error: syntax error before "cary" # rbogl.c:70: warning: type defaults to `int' in declaration of `cary' # rbogl.c:70: error: conflicting types for `cary' # rbogl.c:69: error: previous declaration of `cary' # rbogl.c:70: warning: data definition has no type or storage class # rbogl.c:70: error: syntax error before '{' token # rbogl.c:70: error: conflicting types for `ary' # rbogl.c:69: error: previous declaration of `ary' # rbogl.c:70: error: syntax error before "entry" # rbogl.c:70: warning: type defaults to `int' in declaration of `entry' # rbogl.c:70: warning: data definition has no type or storage class # rbogl.c:70: warning: type defaults to `int' in declaration of `ary' # rbogl.c:70: error: conflicting types for `ary' # rbogl.c:70: error: previous declaration of `ary' # rbogl.c:70: warning: data definition has no type or storage class # rbogl.c:70: error: syntax error before "if" # rbogl.c:70: error: `i' undeclared here (not in a function) # rbogl.c:70: warning: type defaults to `int' in declaration of `cary' # rbogl.c:70: error: conflicting types for `cary' # rbogl.c:70: error: previous declaration of `cary' # rbogl.c:70: error: `GLshort' undeclared here (not in a function) # rbogl.c:70: error: syntax error before "NUM2INT" # rbogl.c:71: error: syntax error before "VALUE" # rbogl.c:71: warning: type defaults to `int' in declaration of `arg' # rbogl.c:71: warning: data definition has no type or storage class # rbogl.c:71: error: syntax error before "cary" # rbogl.c:71: warning: type defaults to `int' in declaration of `cary' # rbogl.c:71: error: conflicting types for `cary' # rbogl.c:70: error: previous declaration of `cary' # rbogl.c:71: warning: data definition has no type or storage class # rbogl.c:71: error: syntax error before '{' token # rbogl.c:71: error: conflicting types for `ary' # rbogl.c:70: error: previous declaration of `ary' # rbogl.c:71: error: syntax error before "entry" # rbogl.c:71: warning: type defaults to `int' in declaration of `entry' # rbogl.c:71: warning: data definition has no type or storage class # rbogl.c:71: warning: type defaults to `int' in declaration of `ary' # rbogl.c:71: error: conflicting types for `ary' # rbogl.c:71: error: previous declaration of `ary' # rbogl.c:71: warning: data definition has no type or storage class # rbogl.c:71: error: syntax error before "if" # rbogl.c:71: error: `i' undeclared here (not in a function) # rbogl.c:71: warning: type defaults to `int' in declaration of `cary' # rbogl.c:71: error: conflicting types for `cary' # rbogl.c:71: error: previous declaration of `cary' # rbogl.c:71: error: `GLushort' undeclared here (not in a function) # rbogl.c:71: error: syntax error before "NUM2INT" # rbogl.c:72: error: syntax error before "VALUE" # rbogl.c:72: warning: type defaults to `int' in declaration of `arg' # rbogl.c:72: warning: data definition has no type or storage class # rbogl.c:72: error: syntax error before "cary" # rbogl.c:72: warning: type defaults to `int' in declaration of `cary' # rbogl.c:72: error: conflicting types for `cary' # rbogl.c:71: error: previous declaration of `cary' # rbogl.c:72: warning: data definition has no type or storage class # rbogl.c:72: error: syntax error before '{' token # rbogl.c:72: error: conflicting types for `ary' # rbogl.c:71: error: previous declaration of `ary' # rbogl.c:72: error: syntax error before "entry" # rbogl.c:72: warning: type defaults to `int' in declaration of `entry' # rbogl.c:72: warning: data definition has no type or storage class # rbogl.c:72: warning: type defaults to `int' in declaration of `ary' # rbogl.c:72: error: conflicting types for `ary' # rbogl.c:72: error: previous declaration of `ary' # rbogl.c:72: warning: data definition has no type or storage class # rbogl.c:72: error: syntax error before "if" # rbogl.c:72: error: `i' undeclared here (not in a function) # rbogl.c:72: warning: type defaults to `int' in declaration of `cary' # rbogl.c:72: error: conflicting types for `cary' # rbogl.c:72: error: previous declaration of `cary' # rbogl.c:72: error: `GLboolean' undeclared here (not in a function) # rbogl.c:72: error: syntax error before "NUM2INT" # rbogl.c:77: error: syntax error before "VALUE" # rbogl.c:77: warning: type defaults to `int' in declaration of `arg' # rbogl.c:77: warning: data definition has no type or storage class # rbogl.c:78: error: conflicting types for `cary' # rbogl.c:72: error: previous declaration of `cary' # rbogl.c:80: error: syntax error before '{' token # rbogl.c:82: error: conflicting types for `ary' # rbogl.c:72: error: previous declaration of `ary' # rbogl.c:83: warning: type defaults to `int' in declaration of `ary' # rbogl.c:83: error: conflicting types for `ary' # rbogl.c:82: error: previous declaration of `ary' # rbogl.c:83: warning: data definition has no type or storage class # rbogl.c:84: error: syntax error before "if" # rbogl.c:95: error: syntax error before "VALUE" # rbogl.c:95: warning: type defaults to `int' in declaration of `arg' # rbogl.c:95: warning: data definition has no type or storage class # rbogl.c:96: error: conflicting types for `cary' # rbogl.c:78: error: previous declaration of `cary' # rbogl.c:98: error: syntax error before '{' token # rbogl.c:100: error: conflicting types for `ary' # rbogl.c:83: error: previous declaration of `ary' # rbogl.c:101: warning: type defaults to `int' in declaration of `ary' # rbogl.c:101: error: conflicting types for `ary' # rbogl.c:100: error: previous declaration of `ary' # rbogl.c:101: warning: data definition has no type or storage class # rbogl.c:102: error: syntax error before "if" # rbogl.c:113: error: syntax error before "VALUE" # rbogl.c:113: warning: type defaults to `int' in declaration of `src' # rbogl.c:113: warning: data definition has no type or storage class # rbogl.c:114: error: syntax error before "ary" # rbogl.c:114: warning: type defaults to `int' in declaration of `ary' # rbogl.c:114: warning: data definition has no type or storage class # rbogl.c:118: warning: type defaults to `int' in declaration of `tmp_ary' # rbogl.c:118: error: initializer element is not constant # rbogl.c:118: warning: data definition has no type or storage class # rbogl.c:119: error: syntax error before "for" # rbogl.c:130: error: syntax error before "VALUE" # rbogl.c:130: warning: type defaults to `int' in declaration of `ary' # rbogl.c:130: warning: data definition has no type or storage class # rbogl.c:132: error: syntax error before '{' token # rbogl.c:135: error: syntax error before numeric constant # rbogl.c:136: warning: type defaults to `int' in declaration of `ary_c' # rbogl.c:136: error: conflicting types for `ary_c' # rbogl.c:134: error: previous declaration of `ary_c' # rbogl.c:136: warning: data definition has no type or storage class # rbogl.c:137: error: syntax error before "if" # rbogl.c:151: error: syntax error before "VALUE" # rbogl.c:151: warning: type defaults to `int' in declaration of `ary' # rbogl.c:151: warning: data definition has no type or storage class # rbogl.c:152: error: conflicting types for `cary' # rbogl.c:131: error: previous declaration of `cary' # rbogl.c:153: error: syntax error before '{' token # rbogl.c:155: error: conflicting types for `ary_c' # rbogl.c:136: error: previous declaration of `ary_c' # rbogl.c:156: error: syntax error before numeric constant # rbogl.c:157: warning: type defaults to `int' in declaration of `ary_c' # rbogl.c:157: error: conflicting types for `ary_c' # rbogl.c:155: error: previous declaration of `ary_c' # rbogl.c:157: warning: data definition has no type or storage class # rbogl.c:158: error: syntax error before "if" # rbogl.c:173: error: syntax error before "format" # rbogl.c: In function `glformat_size': # rbogl.c:175: error: `format' undeclared (first use in this function) # rbogl.c: At top level: # rbogl.c:209: error: syntax error before "type" # rbogl.c: In function `gltype_size': # rbogl.c:211: error: `type' undeclared (first use in this function) # rbogl.c: At top level: # rbogl.c:247: error: syntax error before "allocate_buffer_with_string" # rbogl.c:248: warning: return type defaults to `int' # rbogl.c: In function `allocate_buffer_with_string': # rbogl.c:249: warning: implicit declaration of function `rb_str_new' # rbogl.c:249: error: `NULL' undeclared (first use in this function) # rbogl.c: At top level: # rbogl.c:152: warning: array `cary' assumed to have one element # rake aborted! # Command failed with status (1): [cc -c -Wall -g -fno-strict-aliasing -O2 -...] # /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/ext/common/Rakefile:38 # (See full trace by running task with --trace) # rake aborted! # Command failed with status (1): [cd ext/common && rake] # /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/Rakefile:56 # (See full trace by running task with --trace) # # # Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0 for inspection. # Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.33.0/gem_make.out