Maksim Khrapov | 21 Jan 20:52

trouble generating ri of Ruby 1.9 on Fedora Core 4

I'm trying to compile Ruby 1.9 on my web hosting provider's box running Fedora Core 4. It compiles just fine, but when I do "make install" and try to generate the docs, it chokes.

Here is the error message:
---------------------------------------------------------------------------------------------------------------------
No definition for rb_fiber_m_transfer
.
No definition for rb_fiber_alive_p
.
No definition for rb_fiber_s_current
.
file.c: mcmc......................................................................................................................................
vm_dump.c:
eval_safe.c:
time.c: c.........................................../home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:630:in `find_body': unmatched close parenthesis: /((?>\/\*.*?\*\/\s*))(?:static\s+)?VALUE\s+time_utc_offset (RegexpError)
\s*(\([^)]*\))\s*\{.*?^\}/mx      from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:619:in `handle_method'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:415:in `block in do_methods'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in `scan'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in `do_methods'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:195:in `scan'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:231:in `block in parse_files'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `each'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `parse_files'
from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:269:in `document'
from ./bin/rdoc:63:in `<main>'
make: *** [rdoc] Error 1
[2] openhost:~/ruby-1.9.0-0
---------------------------------------------------------------------------------------------------------------------

which shows that the culprit is time.c file. The funny thing is that generating docs for just this file by itself works OK:
----------------------------------------------------------------------------------------------------------------------
[1] openhost:~/ruby-1.9.0-0
$ ./miniruby  ./runruby.rb --extout=.ext  -- "./bin/rdoc" --all --ri --op ".ext/rdoc2" time.c

time.c: c..............................................................
Generating RI...

Files:   1
Classes: 1
Modules: 0
Methods: 62
Elapsed: 0.526s
[0] openhost:~/ruby-1.9.0-0
$
------------------------------------------------------------------------------------------------------------------

At home, on Fedora 8 box everything works fine.  Any help, please?

Thank you.

Max

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Konrad Meyer | 22 Jan 00:47

Re: trouble generating ri of Ruby 1.9 on Fedora Core 4

Quoth Maksim Khrapov:
> I'm trying to compile Ruby 1.9 on my web hosting provider's box running 
Fedora Core 4.
Perhaps this is why? FC4 is 2+ years old.

> It compiles just fine, but when I do "make install" and try to generate the 
docs, it chokes. 
> 
> Here is the error message:
> ---------------------------------------------------------------------------------------------------------------------
> No definition for rb_fiber_m_transfer
> ..
> No definition for rb_fiber_alive_p
> ..
> No definition for rb_fiber_s_current
> ..
> file.c: 
mcmc......................................................................................................................................
> vm_dump.c:
> eval_safe.c:
> time.c:

c.........................................../home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:630:in 
`find_body': unmatched close parenthesis: /((?>\/\*.*?\*\/\s*))
(?:static\s+)?VALUE\s+time_utc_offset (RegexpError)
> \s*(\([^)]*\))\s*\{.*?^\}/mx      
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:619:in 
`handle_method'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:415:in `block in 
do_methods'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in `scan'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in 
`do_methods'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:195:in `scan'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:231:in `block in 
parse_files'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `each'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `parse_files'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:269:in `document'
> from ./bin/rdoc:63:in `<main>'
> make: *** [rdoc] Error 1
> [2] openhost:~/ruby-1.9.0-0
> ---------------------------------------------------------------------------------------------------------------------
> 
> which shows that the culprit is time.c file. The funny thing is that 
generating docs for just this file by itself works OK:
> ----------------------------------------------------------------------------------------------------------------------
> [1] openhost:~/ruby-1.9.0-0
> 
$ ./miniruby  ./runruby.rb --extout=.ext  -- "./bin/rdoc" --all --ri --op ".ext/rdoc2" 
time.c
> 
> time.c: c..............................................................
> Generating RI...
> 
> Files:   1
> Classes: 1
> Modules: 0
> Methods: 62
> Elapsed: 0.526s
> [0] openhost:~/ruby-1.9.0-0
> $
> ------------------------------------------------------------------------------------------------------------------
> 
> At home, on Fedora 8 box everything works fine.  Any help, please?
> 
> Thank you.
> 
> Max

Install Fedora 8 on your server box.

--

-- 
Konrad Meyer <konrad <at> tylerc.org> http://konrad.sobertillnoon.com/
Ryan Davis | 23 Jan 09:06

Re: trouble generating ri of Ruby 1.9 on Fedora Core 4


On Jan 21, 2008, at 15:47 , Konrad Meyer wrote:

> Install Fedora 8 on your server box.

This is beyond unhelpful. It is antagonistic. If you can't offer  
assistance, refrain from writing at all.

Konrad Meyer | 23 Jan 09:38

Re: trouble generating ri of Ruby 1.9 on Fedora Core 4

Quoth Ryan Davis:
> 
> On Jan 21, 2008, at 15:47 , Konrad Meyer wrote:
> 
> > Install Fedora 8 on your server box.
> 
> This is beyond unhelpful. It is antagonistic. If you can't offer  
> assistance, refrain from writing at all.

On the contrary. Maybe you should stick to being helpful and quit flaming 
others?

Regards,
--

-- 
Konrad Meyer <konrad <at> tylerc.org> http://konrad.sobertillnoon.com/
Ryan Davis | 23 Jan 09:14

Re: trouble generating ri of Ruby 1.9 on Fedora Core 4


On Jan 21, 2008, at 11:54 , Maksim Khrapov wrote:

> I'm trying to compile Ruby 1.9 on my web hosting provider's box  
> running Fedora Core 4. It compiles just fine, but when I do "make  
> install" and try to generate the docs, it chokes.

What version of gcc? Also, do you have ulimits set or any other memory  
constraints?

If you're compiling from svn, what revision are you at?

> time.c: c.........................................../home/maksim/ 
> ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:630:in `find_body':  
> unmatched close parenthesis: /((?>\/\*.*?\*\/\s*))(?:static\s+)?VALUE 
> \s+time_utc_offset (RegexpError)
> \s*(\([^)]*\))\s*\{.*?^\}/mx      from /home/maksim/ruby-1.9.0-0/lib/ 
> rdoc/parsers/parse_c.rb:619:in `handle_method'

That's really specific... almost too specific, and from what I can see/ 
understand in the regexp, it looks balanced. I suspect you've got  
resource issues, but I'll hold judgement for more info.

One possibility is to install sans rdoc by doing 'sudo make install- 
nodoc'


Gmane