build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed
Yury Kotlyarov
yury.kotlyarov at gmail.com
Sun Apr 1 00:48:22 UTC 2018
Hey again,
the previous issue with the ruby was fixed by rebuilding ruby with shared:
RUBY_CONFIGURE_OPTS=--enable-shared rbenv install 2.5.0
But I still can't build ruby module:
# make all
Gives:
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':
/root/projects/unit/src/ruby/nxt_ruby.c:717: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:723: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:729: undefined reference to
`nxt_app_msg_write_raw'
build/src/ruby/nxt_ruby-ruby.o: In function
`nxt_ruby_rack_result_body_file_write':
/root/projects/unit/src/ruby/nxt_ruby.c:796: undefined reference to
`nxt_file_open'
/root/projects/unit/src/ruby/nxt_ruby.c:806: undefined reference to
`nxt_file_info'
/root/projects/unit/src/ruby/nxt_ruby.c:820: undefined reference to
`nxt_file_read'
/root/projects/unit/src/ruby/nxt_ruby.c:830: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:846: undefined reference to
`nxt_file_close'
/root/projects/unit/src/ruby/nxt_ruby.c:840: undefined reference to
`nxt_file_close'
build/src/ruby/nxt_ruby-ruby.o: In function
`nxt_ruby_rack_result_body_each':
/root/projects/unit/src/ruby/nxt_ruby.c:861: undefined reference to
`nxt_app_msg_write_raw'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':
/root/projects/unit/src/ruby/nxt_ruby.c:408: undefined reference to
`nxt_app_msg_read_str'
/root/projects/unit/src/ruby/nxt_ruby.c:413: undefined reference to
`nxt_app_msg_read_size'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':
/root/projects/unit/src/ruby/nxt_ruby.c:454: undefined reference to
`nxt_app_msg_read_str'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_add_env':
/root/projects/unit/src/ruby/nxt_ruby.c:530: undefined reference to
`nxt_app_msg_read_str'
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
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_read_request':
/root/projects/unit/src/ruby/nxt_ruby.c:515: undefined reference to
`nxt_app_msg_read_size'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_write':
/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to
`nxt_app_msg_write_raw'
/root/projects/unit/src/ruby/nxt_ruby.c:603: undefined reference to
`nxt_app_msg_write_raw'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_app_run':
/root/projects/unit/src/ruby/nxt_ruby.c:364: undefined reference to
`nxt_app_msg_flush'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_rack_result_status':
/root/projects/unit/src/ruby/nxt_ruby.c:559: undefined reference to
`nxt_sprintf'
build/src/ruby/nxt_ruby-ruby.o: In function `nxt_ruby_head_send_part':
/root/projects/unit/src/ruby/nxt_ruby.c:735: undefined reference to
`nxt_app_msg_write_raw'
build/src/ruby/nxt_ruby_stream_io-ruby.o: In function
`nxt_ruby_stream_io_read':
/root/projects/unit/src/ruby/nxt_ruby_stream_io.c:205: undefined reference
to `nxt_app_msg_read_raw'
collect2: error: ld returned 1 exit status
build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed
make: *** [build/ruby.unit.so] Error 1
Full list at https://pastebin.com/8e1LcB2D
TIA,
Yury
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20180331/2ec9fe66/attachment.html>
More information about the unit
mailing list