<div dir="ltr">what's wrong with PIE option btw?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="font-size:12.8px">С уважением,</span><br></div><div style="font-size:12.8px">Котляров Юрий</div><div>+7 965 823 3843<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Спорт Автоматика<br></div><div><font size="2" color="#0000ff"><a href="http://sportautomatics.ru" target="_blank">http://sportautomatics.ru</a><br></font></div><div><font size="2" color="#0000ff"><a href="https://www.facebook.com/sportautomatics" target="_blank">https://www.facebook.com/sportautomatics</a><br></font></div><div><a href="https://vk.com/sportautomatics" target="_blank"><font size="2" color="#0000ff">https://vk.com/sportautomatics</font></a></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-04-02 11:36 GMT-04:00 Max Romanov <span dir="ltr"><<a href="mailto:max.romanov@nginx.com" target="_blank">max.romanov@nginx.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>According to log from <a href="https://pastebin.com/8e1LcB2D" target="_blank">https://pastebin.com/<wbr>8e1LcB2D</a>, Unit configured using this command:</div><div><br></div><div># ./configure --prefix=/usr --state=/var/lib/unit --control=unix:/var/run/<wbr>control.unit.sock --pid=/var/run/unit.pid --log=/var/log/unit.log --tests --modules=/usr/lib/unit/<wbr>modules --cc-opt='-g -O2 -fdebug-prefix-map=/data/<wbr>builder/debuild/unit-0.7/pkg/<wbr>deb/debuild/unit-0.7=. -specs=/usr/share/dpkg/no-pie-<wbr>compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --ld-opt='-Wl,-Bsymbolic-<wbr>functions -specs=/usr/share/dpkg/no-pie-<wbr>link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie’</div><div><br></div><div>Avoid using ‘-pie’ in --ld-opt and Ruby shared library will be linked without errors.</div><div><br></div><div>Best regards,</div><div>Max Romanov</div><br><div><blockquote type="cite"><div><div class="h5"><div>On 1 Apr 2018, at 03:48 , Yury Kotlyarov <<a href="mailto:yury.kotlyarov@gmail.com" target="_blank">yury.kotlyarov@gmail.com</a>> wrote:</div><br class="m_-7166476946878376116Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr"><div><div class="m_-7166476946878376116gmail_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-<wbr>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/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':</div><div>(.text+0x20): undefined reference to `main'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_head_send_part':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:717: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:723: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:729: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_rack_result_body_<wbr>file_write':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:796: undefined reference to `nxt_file_open'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:806: undefined reference to `nxt_file_info'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:820: undefined reference to `nxt_file_read'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:830: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:846: undefined reference to `nxt_file_close'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:840: undefined reference to `nxt_file_close'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_rack_result_body_<wbr>each':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:861: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:408: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:413: undefined reference to `nxt_app_msg_read_size'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:454: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_add_env':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:530: undefined reference to `nxt_app_msg_read_str'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o:/root/projects/unit/src/<wbr>ruby/nxt_ruby.c:530: more undefined references to `nxt_app_msg_read_str' follow</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_read_request':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:515: undefined reference to `nxt_app_msg_read_size'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_write':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:603: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_rack_app_run':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:364: undefined reference to `nxt_app_msg_flush'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_rack_result_status':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:559: undefined reference to `nxt_sprintf'</div><div>build/src/ruby/nxt_ruby-ruby.<wbr>o: In function `nxt_ruby_head_send_part':</div><div>/root/projects/unit/src/ruby/<wbr>nxt_ruby.c:735: undefined reference to `nxt_app_msg_write_raw'</div><div>build/src/ruby/nxt_ruby_<wbr>stream_io-ruby.o: In function `nxt_ruby_stream_io_read':</div><div>/root/projects/unit/src/ruby/<wbr>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/" target="_blank">ruby.unit.so</a>' failed</div><div>make: *** [build/<a href="http://ruby.unit.so/" target="_blank">ruby.unit.so</a>] Error 1 </div><div><br></div><div>Full list at <a href="https://pastebin.com/8e1LcB2D" target="_blank">https://pastebin.com/8e1LcB2D</a></div><div><br></div><div>TIA,</div><div>Yury</div><div><br></div></div></div></div></div></div>
</div></div></div>
______________________________<wbr>_________________<br>unit mailing list<br><a href="mailto:unit@nginx.org" target="_blank">unit@nginx.org</a><br><a href="https://mailman.nginx.org/mailman/listinfo/unit" target="_blank">https://mailman.nginx.org/<wbr>mailman/listinfo/unit</a></div></blockquote></div><br></div><br>______________________________<wbr>_________________<br>
unit mailing list<br>
<a href="mailto:unit@nginx.org">unit@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/unit" rel="noreferrer" target="_blank">https://mailman.nginx.org/<wbr>mailman/listinfo/unit</a><br></blockquote></div><br></div>