New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling on Ruby 1.8.7 #5
Comments
|
Having |
|
Solution: Just remove |
|
Maybe there are also |
|
Ah ha! I have ruby 1.8.7 installed into |
|
Ah there is no |
|
And ruby never installs its header files directly under /usr/include unless wrongly configured. |
|
It appears |
|
This is a bug of the ruby-devel rpm. I'll bug report the issue when I feel like it. |
|
Confirmed. I renamed |
|
Just filed a bug report: https://bugzilla.redhat.com/show_bug.cgi?id=245446 Thanks for the report. I wouldn't notice the issue if it weren't for this. |
|
The URL I posted above was a wrong one. Follow this instead: https://bugzilla.redhat.com/show_bug.cgi?id=975660 |
g++ -I. -I. -I/opt/rubies/ruby-1.8.7-p371/lib/ruby/1.8/x86_64-linux -I. -DHAVE_RUBY_ENCODING_H -fPIC -g -O2 -c unf.cc In file included from unf.cc:5:0: /usr/include/ruby/encoding.h:101:68: error: expected identifier before numeric constant /usr/include/ruby/encoding.h:101:68: error: expected ‘,’ or ‘...’ before numeric constant /usr/include/ruby/encoding.h:101:73: error: expected constructor, destructor, or type conversion before ‘;’ token In file included from unf.cc:5:0: /usr/include/ruby/encoding.h:213:65: error: declaration of C function ‘long int rb_memsearch(const void*, long int, const void*, long int, rb_encoding*)’ conflicts with In file included from /opt/rubies/ruby-1.8.7-p371/lib/ruby/1.8/x86_64-linux/ruby.h:756:0, from unf.cc:3: /opt/rubies/ruby-1.8.7-p371/lib/ruby/1.8/x86_64-linux/intern.h:387:6: error: previous declaration ‘long int rb_memsearch(const void*, long int, const void*, long int)’ here make: *** [unf.o] Error 1It does successfully build on Ruby 1.9.3. I would be OK if unf_ext set
gemspec.required_ruby_versionto>= 1.9.1.The text was updated successfully, but these errors were encountered: