current directory: /Users/chesterbr/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/texplay-a7055d39aee3/ext/texplay
/Users/chesterbr/.rbenv/versions/3.0.0/bin/ruby -I /Users/chesterbr/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210110-20519-w59fcz.rb extconf.rb
creating Makefile
current directory: /Users/chesterbr/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/texplay-a7055d39aee3/ext/texplay
make "DESTDIR=" clean
current directory: /Users/chesterbr/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/bundler/gems/texplay-a7055d39aee3/ext/texplay
make "DESTDIR="
compiling actions.c
In file included from actions.c:1:
./texplay.h:32:3: error: expected identifier
false, true
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/stdbool.h:17:15: note: expanded from macro 'false'
#define false 0
^
In file included from actions.c:1:
./texplay.h:32:10: error: expected identifier
false, true
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/stdbool.h:16:14: note: expanded from macro 'true'
#define true 1
^
In file included from actions.c:1:
./texplay.h:33:2: error: expected ';' after enum
} bool;
^
;
./texplay.h:31:1: warning: typedef requires a name [-Wmissing-declarations]
typedef enum e_bool {
^~~~~~~
./texplay.h:33:3: warning: declaration does not declare anything [-Wmissing-declarations]
} bool;
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/stdbool.h:15:14: note: expanded from macro 'bool'
#define bool _Bool
^~~~~
actions.c:57:40: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(has_optional_hash_arg(hash_arg, "thickness"))
^~~~~~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:58:53: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
thickness = NUM2INT(get_from_hash(hash_arg, "thickness"));
^~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:60:40: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(has_optional_hash_arg(hash_arg, "trace") && primary) {
^~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:61:50: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE trace_hash = get_from_hash(hash_arg, "trace");
^~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:69:44: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(has_optional_hash_arg(trace_hash, "until_color")) {
^~~~~~~~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:70:45: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE c = get_from_hash(trace_hash, "until_color");
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:74:49: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
else if(has_optional_hash_arg(trace_hash, "while_color")) {
^~~~~~~~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:75:45: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE c = get_from_hash(trace_hash, "while_color");
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:118:42: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
set_hash_value(hash_arg, "fill", Qtrue);
^~~~~~
./utils.h:57:41: note: passing argument to parameter 'sym' here
VALUE set_hash_value(VALUE hash, char * sym, VALUE val);
^
actions.c:146:42: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
set_hash_value(hash_arg, "fill", Qtrue);
^~~~~~
./utils.h:57:41: note: passing argument to parameter 'sym' here
VALUE set_hash_value(VALUE hash, char * sym, VALUE val);
^
actions.c:171:34: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
set_hash_value(hash_arg, "fill", Qtrue);
^~~~~~
./utils.h:57:41: note: passing argument to parameter 'sym' here
VALUE set_hash_value(VALUE hash, char * sym, VALUE val);
^
actions.c:235:42: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "closed")) || RTEST(get_from_hash(hash_arg, "close"))) {
^~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:235:86: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "closed")) || RTEST(get_from_hash(hash_arg, "close"))) {
^~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:249:27: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
num_point_pairs = RARRAY_LEN(points);
~ ^~~~~~~~~~~~~~~~~~
/Users/chesterbr/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/internal/core/rarray.h:52:36: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN rb_array_len
^
actions.c:264:46: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
num_point_pairs = RARRAY_LEN(points) / 2;
~ ~~~~~~~~~~~~~~~~~~~^~~
actions.c:302:42: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "thickness"))) {
^~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:303:57: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
thickness = NUM2INT(get_from_hash(hash_arg, "thickness"));
^~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:312:42: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "start_angle"))) {
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:313:53: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
angle = NUM2INT(get_from_hash(hash_arg, "start_angle")) / 360.0 * 2 * PI;
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:354:42: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "fill")) || RTEST(get_from_hash(hash_arg, "filled"))) {
^~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:354:84: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "fill")) || RTEST(get_from_hash(hash_arg, "filled"))) {
^~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:358:40: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
delete_from_hash(hash_arg, "thickness");
^~~~~~~~~~~
./utils.h:60:43: note: passing argument to parameter 'sym' here
VALUE delete_from_hash(VALUE hash, char * sym);
^
actions.c:360:47: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
else if(RTEST(get_from_hash(hash_arg, "thickness"))) {
^~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:361:57: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
thickness = NUM2INT(get_from_hash(hash_arg, "thickness"));
^~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:409:42: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "fill")) || RTEST(get_from_hash(hash_arg, "filled"))) {
^~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:409:84: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "fill")) || RTEST(get_from_hash(hash_arg, "filled"))) {
^~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:414:40: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
delete_from_hash(hash_arg, "thickness");
^~~~~~~~~~~
./utils.h:60:43: note: passing argument to parameter 'sym' here
VALUE delete_from_hash(VALUE hash, char * sym);
^
actions.c:630:51: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE try_image = get_from_hash(hash_arg, "texture");
^~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:818:42: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "closed")) || RTEST(get_from_hash(hash_arg, "close"))) {
^~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:818:86: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "closed")) || RTEST(get_from_hash(hash_arg, "close"))) {
^~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:826:42: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(RTEST(get_from_hash(hash_arg, "sample_size"))) {
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:827:47: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE c = get_from_hash(hash_arg, "sample_size");
^~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:839:27: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
num_point_pairs = RARRAY_LEN(points);
~ ^~~~~~~~~~~~~~~~~~
/Users/chesterbr/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/internal/core/rarray.h:52:36: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN rb_array_len
^
actions.c:853:46: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
num_point_pairs = RARRAY_LEN(points) / 2;
~ ~~~~~~~~~~~~~~~~~~~^~~
actions.c:963:40: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
if(has_optional_hash_arg(hash_arg, "chroma_key")) {
^~~~~~~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:964:43: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
VALUE c = get_from_hash(hash_arg, "chroma_key");
^~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
actions.c:968:45: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
else if(has_optional_hash_arg(hash_arg, "chroma_key_not")) {
^~~~~~~~~~~~~~~~
./utils.h:66:47: note: passing argument to parameter 'sym' here
bool has_optional_hash_arg(VALUE hash, char * sym);
^
actions.c:969:70: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
chromakey = convert_rb_color_to_rgba(get_from_hash(hash_arg, "chroma_key_not"));
^~~~~~~~~~~~~~~~
./utils.h:54:40: note: passing argument to parameter 'sym' here
VALUE get_from_hash(VALUE hash, char * sym);
^
40 warnings and 3 errors generated.
make: *** [actions.o] Error 1
make failed, exit code 2
0.4.3 fails like in #30 (can't find
glut.h), 0.4.4-pre (building directly from default branch in GitHub) has some different errors (see below).Installing freeglut via Homebrew (as suggested here) doesn't change either.
Details
Texplay versions: 0.4.3 and 0.4.4-pre (from source)
Ruby version: 3.0.0
macOS version: 11.1 (20C69)
0.4.3 error log
0.4.4-pre error log