<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hey again,</div><div><br></div><div>the previous issue with the ruby was fixed by rebuilding ruby with shared:</div><div><br></div><div>RUBY_CONFIGURE_OPTS=--enable-shared rbenv install 2.5.0</div><div><br></div><div>But I still can't build ruby module:</div><div><br></div><div># make all</div><div><br></div><div>Gives:</div><div><br></div><div>/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':</div><div>(.text+0x20): undefined reference to `main'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:717: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:723: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:729: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_body_file_write':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:796: undefined reference to `nxt_file_open'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:806: undefined reference to `nxt_file_info'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:820: undefined reference to `nxt_file_read'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:830: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:846: undefined reference to `nxt_file_close'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:840: undefined reference to `nxt_file_close'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_body_each':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:861: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:408: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:413: undefined reference to `nxt_app_msg_read_size'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:454: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.o:/root/projects/unit/src/ruby/nxt_ruby.c:530: more undefined references to `nxt_app_msg_read_str' follow</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:515: undefined reference to `nxt_app_msg_read_size'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_write':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_app_run':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:364: undefined reference to `nxt_app_msg_flush'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_status':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:559: undefined reference to `nxt_sprintf'</div><div>build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':</div><div>/root/projects/unit/src/ruby/nxt_ruby.c:735: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby_stream_io-ruby.o: In function `nxt_ruby_stream_io_read':</div><div>/root/projects/unit/src/ruby/nxt_ruby_stream_io.c:205: undefined reference to `nxt_app_msg_read_raw'</div><div>collect2: error: ld returned 1 exit status</div><div>build/Makefile:1458: recipe for target 'build/<a href="http://ruby.unit.so">ruby.unit.so</a>' failed</div><div>make: *** [build/<a href="http://ruby.unit.so">ruby.unit.so</a>] Error 1 </div><div><br></div><div>Full list at <a href="https://pastebin.com/8e1LcB2D">https://pastebin.com/8e1LcB2D</a></div><div><br></div><div>TIA,</div><div>Yury</div><div><br></div></div></div></div></div></div>
</div>