The  dynamic library loader didn't find the `rb_sys_fail_str` definition, because it was defined after the usage.

I put the lines up and worked.