unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Build error of 5.1.0 due to RString
@ 2016-11-07 17:13 Olivier FAURAX
  2016-11-07 20:39 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier FAURAX @ 2016-11-07 17:13 UTC (permalink / raw)
  To: unicorn-public

Hello,

I'm new to Ruby & Unicorn, and I get a build error trying to compile 
unicorn 5.1.0.

It is about a RString that has not some members, so perhaps an API has 
been modified somewhere.
I tried with unicorn 5.2.0, and I get the same error.

Thanks in advance
Olivier

$ uname -a
Linux git.example.com 3.16.0-76-generic #98~14.04.1-Ubuntu SMP Fri Jun 
24 17:04:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ ruby --version
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]

$ gem install unicorn -v '5.1.0' -i vendor/bundle/ruby/2.1.0 --verbose
GET https://api.rubygems.org/specs.4.8.gz
200 OK
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=unicorn
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=raindrops
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=kgio
200 OK
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/.CHANGELOG.old
...
[long list of unicorn-5.1.0 files]
...
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/unicorn.gemspec
Building native extensions.  This could take a while...
/opt/bitnami/ruby/bin/ruby extconf.rb
checking for SIZEOF_OFF_T in ruby.h... yes
checking for SIZEOF_SIZE_T in ruby.h... yes
checking for SIZEOF_LONG in ruby.h... yes
checking for rb_str_set_len() in ruby.h... no
checking for rb_hash_clear() in ruby.h... no
checking for gmtime_r() in time.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling httpdate.c
compiling unicorn_http.c
In file included from unicorn_http.rl:8:0:
ext_help.h: In function ‘rb_18_str_set_len’:
ext_help.h:18:15: error: ‘struct RString’ has no member named ‘len’
    RSTRING(str)->len = len;
                ^
ext_help.h:19:15: error: ‘struct RString’ has no member named ‘ptr’
    RSTRING(str)->ptr[len] = '\0';
                ^
make: *** [unicorn_http.o] Error 1
ERROR:  Error installing unicorn:
         ERROR: Failed to build gem native extension.

     Building has failed. See above output for more information on the 
failure.
make failed, exit code 2

Gem files will remain installed in 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0 
for inspection.
Results logged to 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unicorn-5.1.0/gem_make.out

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-08  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 17:13 Build error of 5.1.0 due to RString Olivier FAURAX
2016-11-07 20:39 ` Eric Wong
2016-11-08  8:56   ` Olivier FAURAX
2016-11-08  9:43     ` Build error of 5.1.0 due to RString Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).