Well, I obviously picked a bad week to quit sniffing glue. I had modified
the wrong intern.h file!
Once I did that, I got further, but am now stuck with this:
opengl_wrap.cpp: In function VALUE FXGLViewer_readPixels(FXGLViewer*, int, int, int, int)': opengl_wrap.cpp:677: alloca’ undeclared (first use this function)
opengl_wrap.cpp:677: (Each undeclared identifier is reported only once
for each function it appears in.)
gmake: *** [opengl_wrap.o] Error 1
setup failed
‘system gmake’ failed
try ‘ruby install.rb --help’ for usage
opengl_wrap.cpp: In function `VALUE FXGLViewer_readPixels(FXGLViewer*, int,
int, int, int)':
opengl_wrap.cpp:677: `alloca' undeclared (first use this function)
opengl_wrap.cpp:677: (Each undeclared identifier is reported only once
for each function it appears in.)
Well, I obviously picked a bad week to quit sniffing glue. I had modified
the wrong intern.h file!
A good “Airplane” quote always helps to lift one’s spirits
Once I did that, I got further, but am now stuck with this:
opengl_wrap.cpp: In function VALUE FXGLViewer_readPixels(FXGLViewer*, int, int, int, int)': opengl_wrap.cpp:677: alloca’ undeclared (first use this function)
opengl_wrap.cpp:677: (Each undeclared identifier is reported only once
for each function it appears in.)
gmake: *** [opengl_wrap.o] Error 1
setup failed
‘system gmake’ failed
try ‘ruby install.rb --help’ for usage
I didn’t see this one mentioned in the docs
No, that’s a new one for me too. That line of opengl_wrap.cpp is making
use of the macro ALLOCA_N which is defined in “ruby.h”, but the macro
just turns around and calls the alloca() function (a semi-standard C
library function). And for some reason it hasn’t seen a declaration of
alloca() by that point in the compilation.
Let’s see, what would be good to know…
When it’s compiling this file (opengl_wrap.cpp) do you see
“-DHAVE_ALLOCA_H” in the compiler flags?