From yury.kotlyarov at gmail.com Sun Apr 1 00:48:22 2018 From: yury.kotlyarov at gmail.com (Yury Kotlyarov) Date: Sat, 31 Mar 2018 17:48:22 -0700 Subject: build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed Message-ID: 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: From max.romanov at nginx.com Mon Apr 2 15:36:07 2018 From: max.romanov at nginx.com (Max Romanov) Date: Mon, 2 Apr 2018 18:36:07 +0300 Subject: build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed In-Reply-To: References: Message-ID: According to log from https://pastebin.com/8e1LcB2D , Unit configured using this command: # ./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? Avoid using ?-pie? in --ld-opt and Ruby shared library will be linked without errors. Best regards, Max Romanov > On 1 Apr 2018, at 03:48 , Yury Kotlyarov wrote: > > 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 > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit -------------- next part -------------- An HTML attachment was scrubbed... URL: From yury.kotlyarov at gmail.com Mon Apr 2 16:03:46 2018 From: yury.kotlyarov at gmail.com (Yury Kotlyarov) Date: Mon, 2 Apr 2018 12:03:46 -0400 Subject: The module to run "ruby" is not found among the available application modules Message-ID: Hey, compiled and installed without any errors. I see the module: ls -l /usr/lib/unit/modules/ total 140 -rwxr-xr-x 1 root root 139296 Apr 2 17:51 ruby.unit.so But when I try to: curl -X PUT -d @config/nginx-unit.json --unix-socket /run/control.unit.sock http://localhost log: Apr 2 18:01:54 Ubuntu-1710-artful-64-minimal unit: discovery: [alert] 3243#3243 dlopen("/usr/lib/unit/modules/ruby.unit.so"), failed: "libruby.so.2.5: cannot open shared object file: No such file or directory" -------------- next part -------------- An HTML attachment was scrubbed... URL: From yury.kotlyarov at gmail.com Mon Apr 2 16:27:47 2018 From: yury.kotlyarov at gmail.com (Yury Kotlyarov) Date: Mon, 2 Apr 2018 12:27:47 -0400 Subject: build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed In-Reply-To: References: Message-ID: what's wrong with PIE option btw? ? ?????????, ???????? ???? +7 965 823 3843 ????? ?????????? http://sportautomatics.ru https://www.facebook.com/sportautomatics https://vk.com/sportautomatics 2018-04-02 11:36 GMT-04:00 Max Romanov : > According to log from https://pastebin.com/8e1LcB2D, Unit configured > using this command: > > # ./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? > > Avoid using ?-pie? in --ld-opt and Ruby shared library will be linked > without errors. > > Best regards, > Max Romanov > > On 1 Apr 2018, at 03:48 , Yury Kotlyarov wrote: > > 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 > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit > > > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From max.romanov at nginx.com Mon Apr 2 16:30:17 2018 From: max.romanov at nginx.com (Max Romanov) Date: Mon, 2 Apr 2018 19:30:17 +0300 Subject: The module to run "ruby" is not found among the available application modules In-Reply-To: References: Message-ID: > On 2 Apr 2018, at 19:03 , Yury Kotlyarov wrote: > > Hey, > > compiled and installed without any errors. Nice to hear this! > I see the module: > > ls -l /usr/lib/unit/modules/ > total 140 > -rwxr-xr-x 1 root root 139296 Apr 2 17:51 ruby.unit.so > > But when I try to: > > curl -X PUT -d @config/nginx-unit.json --unix-socket /run/control.unit.sock http://localhost > > log: > > Apr 2 18:01:54 Ubuntu-1710-artful-64-minimal unit: discovery: [alert] 3243#3243 dlopen("/usr/lib/unit/modules/ruby.unit.so "), failed: "libruby.so.2.5: cannot open shared object file: No such file or directory? From previous https://pastebin.com/8e1LcB2D output I can see Ruby library used from '/root/.rbenv/versions/2.5.0?. However, discover process and applications started as non-root and unable to access to libraries. Consider to install Ruby 2.5.0 into /usr/local or any other shared location. If this does not help, please share: 1. the configure command line parameters and output; 2. the make command line parameters and output; 3. the output of 'ldd /usr/lib/unit/modules/ruby.unit.so' Best regards, Max Romanov > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor at sysoev.ru Mon Apr 2 16:42:30 2018 From: igor at sysoev.ru (Igor Sysoev) Date: Mon, 2 Apr 2018 19:42:30 +0300 Subject: build/Makefile:1458: recipe for target 'build/ruby.unit.so' failed In-Reply-To: References: Message-ID: <40B91E80-B097-4C7B-B4C3-51D08FC5367E@sysoev.ru> > On 2 Apr 2018, at 19:27, Yury Kotlyarov wrote: > > what's wrong with PIE option btw? PIE creates executable binary instead of shared library (ruby.unit.so). This is a reason why linker links crt1.o (executable start function) and tries to find main() function which presents in executable binaries: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start': (.text+0x20): undefined reference to `main' -- Igor Sysoev http://nginx.com > > ? ?????????, > ???????? ???? > +7 965 823 3843 > > ????? ?????????? > http://sportautomatics.ru > https://www.facebook.com/sportautomatics > https://vk.com/sportautomatics > > 2018-04-02 11:36 GMT-04:00 Max Romanov : > According to log from https://pastebin.com/8e1LcB2D, Unit configured using this command: > > # ./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? > > Avoid using ?-pie? in --ld-opt and Ruby shared library will be linked without errors. > > Best regards, > Max Romanov > >> On 1 Apr 2018, at 03:48 , Yury Kotlyarov wrote: >> >> 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 >> >> _______________________________________________ >> unit mailing list >> unit at nginx.org >> https://mailman.nginx.org/mailman/listinfo/unit > > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit From vbart at nginx.com Thu Apr 12 18:32:43 2018 From: vbart at nginx.com (Valentin V. Bartenev) Date: Thu, 12 Apr 2018 21:32:43 +0300 Subject: Unit 1.0 release Message-ID: <2395251.zZ1ZT6kCZc@vbart-workstation> Hello, I'm happy to congratulate you on International Day of Human Space Flight and glad to announce the release of NGINX Unit 1.0. Changes with Unit 1.0 12 Apr 2018 *) Change: configuration object moved into "/config/" path. *) Feature: basic access logging. *) Bugfix: 503 error occurred if Go application did not write response header or body. *) Bugfix: Ruby applications that use encoding conversions might not work. *) Bugfix: various stability issues. With this release Unit ends its beta period. If you wish to know more about the project and our plans, please read the announcement blog post: - https://www.nginx.com/blog/nginx-unit-1-0-released/ wbr, Valentin V. Bartenev From vbart at nginx.com Thu Apr 26 16:43:36 2018 From: vbart at nginx.com (Valentin V. Bartenev) Date: Thu, 26 Apr 2018 19:43:36 +0300 Subject: Unit 1.1 release Message-ID: <1531220.gqxVzBzOIg@vbart-workstation> Hello, I'm glad to announce a new release of NGINX Unit. This is mostly a bugfix release with stability and compatibility improvements. Changes with Unit 1.1 26 Apr 2018 *) Bugfix: Python applications that use the write() callable did not work. *) Bugfix: virtual environments created with Python 3.3 or above might not have worked. *) Bugfix: the request.Read() function in Go applications did not produce EOF when the whole body was read. *) Bugfix: a segmentation fault might have occurred while access log reopening. *) Bugfix: in parsing of IPv6 control socket addresses. *) Bugfix: loading of application modules was broken on OpenBSD. *) Bugfix: a segmentation fault might have occurred when there were two modules with the same type and version; the bug had appeared in 1.0. *) Bugfix: alerts "freed pointer points to non-freeble page" might have appeared in log on 32-bit platforms. A half of these issues were reported on GitHub by our users. Thank you all for helping us make Unit better. If you have encountered a problem with Unit or have any ideas for improvements, please feel free to share here: - Mailing list: http://mailman.nginx.org/mailman/listinfo/unit - GitHub: https://github.com/nginx/unit/issues wbr, Valentin V. Bartenev