newgem installation problems with Ruby 1.9

8 views
Skip to first unread message

Thomas Preymesser

unread,
Feb 11, 2009, 1:18:38 PM2/11/09
to New Gem Generator
Hello,
i tried to install newgem with Ruby 1.9 and got the following errors:

$ sudo gem install newgem
[sudo] password for tp:
Building native extensions. This could take a while...
ERROR: Error installing newgem:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install newgem
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
D_FILE_OFFSET_BITS=64 -fPIC -O3 -g -Wall -Wno-parentheses -O2 -o
redcloth_attributes.o -c redcloth_attributes.c
ext/redcloth_scan/redcloth_attributes.c.rl: In function
‘redcloth_attribute_parser’:
ext/redcloth_scan/redcloth_attributes.c:619: warning: ‘eof’ may be
used uninitialized in this function
ext/redcloth_scan/redcloth_attributes.c.rl:27: note: ‘eof’ was
declared here
ext/redcloth_scan/redcloth_attributes.c.rl:27: warning: ‘bck’ may be
used uninitialized in this function
ext/redcloth_scan/redcloth_attributes.c.rl:27: warning: ‘reg’ may be
used uninitialized in this function
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
D_FILE_OFFSET_BITS=64 -fPIC -O3 -g -Wall -Wno-parentheses -O2 -o
redcloth_inline.o -c redcloth_inline.c
ext/redcloth_scan/redcloth_inline.c.rl: In function ‘redcloth_inline’:
ext/redcloth_scan/redcloth_inline.c.rl:119: warning: unused variable
‘buf’
ext/redcloth_scan/redcloth_inline.c.rl:118: warning: unused variable
‘opts’
ext/redcloth_scan/redcloth_inline.c.rl:115: warning: unused variable
‘orig_pe’
ext/redcloth_scan/redcloth_inline.c:10447: warning: ‘eof’ may be used
uninitialized in this function
ext/redcloth_scan/redcloth_inline.c.rl:114: note: ‘eof’ was declared
here
ext/redcloth_scan/redcloth_inline.c.rl:114: warning: ‘reg’ may be used
uninitialized in this function
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
D_FILE_OFFSET_BITS=64 -fPIC -O3 -g -Wall -Wno-parentheses -O2 -o
redcloth_scan.o -c redcloth_scan.c
ext/redcloth_scan/redcloth_scan.c.rl: In function
‘redcloth_transform’:
ext/redcloth_scan/redcloth_scan.c.rl:268: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:268: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:268: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:268: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:282: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:282: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:281: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:281: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:281: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:281: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:282: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:282: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:308: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:308: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:308: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl:308: error: ‘struct RArray’ has
no member named ‘len’
ext/redcloth_scan/redcloth_scan.c.rl: In function ‘redcloth_html_esc’:
ext/redcloth_scan/redcloth_scan.c.rl:98: warning: ‘return’ with no
value, in function returning non-void
ext/redcloth_scan/redcloth_scan.c.rl: In function
‘redcloth_latex_esc’:
ext/redcloth_scan/redcloth_scan.c.rl:157: warning: ‘return’ with no
value, in function returning non-void
ext/redcloth_scan/redcloth_scan.c.rl: In function ‘redcloth_to’:
ext/redcloth_scan/redcloth_scan.c.rl:205: warning: unused variable
‘len’
ext/redcloth_scan/redcloth_scan.c.rl:204: warning: unused variable ‘p’
ext/redcloth_scan/redcloth_scan.c.rl:204: warning: unused variable
‘pe’
make: *** [redcloth_scan.o] Error 1


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/
RedCloth-4.1.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/RedCloth-4.1.1/
ext/redcloth_scan/gem_make.out
Reply all
Reply to author
Forward
0 new messages