≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2166

Bug #2166: Wikitext fail to build under debian with rubinius

Kind bug
Product wikitext
When Created 2014-04-08T16:23:40Z, updated 2014-04-09T02:14:54Z
Status open
Reporter PascalTurbo
Tags no tags

Description

Hi There,

I'm trying to install wikitext under debian with rubinius as default ruby version.

But it fails with this error:

root@myruby:~/wiki_record_builder# gem install wikitext -v '4.1'
Building native extensions.  This could take a while...
ERROR:  Error installing wikitext:
        ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/rbx-head/bin/rbx extconf.rb
checking for ruby.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling ary.c
compiling wikitext_ragel.c
compiling parser.c
parser.c: In function ‘Wikitext_parser_parse’:
parser.c:2581:32: error: ‘RSTRING_EMBED_LEN_MAX’ undeclared (first use in this function)
parser.c:2581:32: note: each undeclared identifier is reported only once for each function it appears in
parser.c:2583:17: error: ‘struct RString’ has no member named ‘as’
parser.c:2584:17: error: ‘struct RString’ has no member named ‘as’
parser.c:2585:17: error: ‘struct RString’ has no member named ‘as’
make: *** [parser.o] Fehler 1

make failed, exit code 2

Gem files will remain installed in /usr/local/rvm/gems/rbx-head/gems/wikitext-4.1 for inspection.
Results logged to /usr/local/rvm/gems/rbx-head/extensions/x86_64-linux/2.1/wikitext-4.1/gem_make.out

Any idea where's the problem?

Comments

  1. Greg Hurrell 2014-04-09T02:14:54Z

    Since version 4.0, it only supports Ruby 2.0 and up.

    I suggest you try building 3.1 or older, which has conditional code which should work on multiple versions:

    https://github.com/wincent/wikitext/blob/3.1/ext/parser.c#L2588-L2602

    For comparison, here's the same code in the current release:

    https://github.com/wincent/wikitext/blob/4.1/ext/wikitext/parser.c#L2583-L2586

    (I decided to drop support for old versions from the latest branch in order to drop some legacy baggage; I don't have a lot of time for this project so want to keep the load light.)

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets