From: Tanaka Akira Date: 2012-06-21T19:49:52+09:00 Subject: [ruby-core:45751] Re: [ruby-trunk - Bug #6616] MinGW: cannot build extensions or run tests due changes in exec_arg? 2012/6/21 phasis68 (Heesob Park) : > > Issue #6616 has been updated by phasis68 (Heesob Park). > Also, I can see many warning during building. > > process.c: In function 'proc_exec_cmd': > process.c:1138:9: warning: passing argument 2 of 'execve' from incompatible pointer type > c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const*' but argument is of type 'char **' > process.c:1138:9: warning: passing argument 3 of 'execve' from incompatible pointer type > c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const*' but argument is of type 'char **' > process.c: In function 'rb_exec_async_signal_safe': > process.c:2876:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839) > process.c:2876:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type > process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *' > process.c: In function 'rb_spawn_process': > process.c:3502:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839) > process.c:3502:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type > process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *' > process.c:3502:5: warning: passing argument 2 of 'rb_run_exec_options_err' from incompatible pointer type > process.c:2839:1: note: expected 'struct rb_exec_arg *' but argument is of type 'struct rb_execarg *' > process.c:3532:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839) > process.c:3532:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type > process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *' This compile time message is very helpful. I hope r36165 fixes this issue. -- Tanaka Akira