<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">According to log from <a href="https://pastebin.com/8e1LcB2D" class="">https://pastebin.com/8e1LcB2D</a>, Unit configured using this command:</div><div class=""><br class=""></div><div class=""># ./configure --prefix=/usr --state=/var/lib/unit --control=unix:/var/run/control.unit.sock --pid=/var/run/unit.pid --log=/var/log/unit.log --tests --modules=/usr/lib/unit/modules --cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/unit-0.7/pkg/deb/debuild/unit-0.7=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --ld-opt='-Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie’</div><div class=""><br class=""></div><div class="">Avoid using ‘-pie’ in --ld-opt and Ruby shared library will be linked without errors.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Max Romanov</div><br class=""><div><blockquote type="cite" class=""><div class="">On 1 Apr 2018, at 03:48 , Yury Kotlyarov <<a href="mailto:yury.kotlyarov@gmail.com" class="">yury.kotlyarov@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hey again,</div><div class=""><br class=""></div><div class="">the previous issue with the ruby was fixed by rebuilding ruby with shared:</div><div class=""><br class=""></div><div class="">RUBY_CONFIGURE_OPTS=--enable-shared rbenv install 2.5.0</div><div class=""><br class=""></div><div class="">But I still can't build ruby module:</div><div class=""><br class=""></div><div class=""># make all</div><div class=""><br class=""></div><div class="">Gives:</div><div class=""><br class=""></div><div class="">/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':</div><div class="">(.text+0x20): undefined reference to `main'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:717: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:723: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:729: undefined reference to `nxt_app_msg_write_raw'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_body_file_write':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:796: undefined reference to `nxt_file_open'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:806: undefined reference to `nxt_file_info'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:820: undefined reference to `nxt_file_read'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:830: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:846: undefined reference to `nxt_file_close'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:840: undefined reference to `nxt_file_close'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_body_each':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:861: undefined reference to `nxt_app_msg_write_raw'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:408: undefined reference to `nxt_app_msg_read_str'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:413: undefined reference to `nxt_app_msg_read_size'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:454: undefined reference to `nxt_app_msg_read_str'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div class="">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 class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:515: undefined reference to `nxt_app_msg_read_size'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_write':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_app_run':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:364: undefined reference to `nxt_app_msg_flush'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_status':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:559: undefined reference to `nxt_sprintf'</div><div class="">build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby.c:735: undefined reference to `nxt_app_msg_write_raw'</div><div class="">build/src/ruby/nxt_ruby_stream_io-ruby.o: In function `nxt_ruby_stream_io_read':</div><div class="">/root/projects/unit/src/ruby/nxt_ruby_stream_io.c:205: undefined reference to `nxt_app_msg_read_raw'</div><div class="">collect2: error: ld returned 1 exit status</div><div class="">build/Makefile:1458: recipe for target 'build/<a href="http://ruby.unit.so/" class="">ruby.unit.so</a>' failed</div><div class="">make: *** [build/<a href="http://ruby.unit.so/" class="">ruby.unit.so</a>] Error 1 </div><div class=""><br class=""></div><div class="">Full list at <a href="https://pastebin.com/8e1LcB2D" class="">https://pastebin.com/8e1LcB2D</a></div><div class=""><br class=""></div><div class="">TIA,</div><div class="">Yury</div><div class=""><br class=""></div></div></div></div></div></div>
</div>
_______________________________________________<br class="">unit mailing list<br class=""><a href="mailto:unit@nginx.org" class="">unit@nginx.org</a><br class="">https://mailman.nginx.org/mailman/listinfo/unit</div></blockquote></div><br class=""></body></html>