[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: Core dump with latest Ruby from CVS

From: Ryan Davis <ryand-ruby@...>
Date: 2004-11-15 09:08:32 UTC
List: ruby-core #3735
On Nov 15, 2004, at 12:12 AM, Yukihiro Matsumoto wrote:

> I couldn't reproduce the problem on Linux.  Does anybody have any
> additional information?

on osx/darwin, process.c revision 1.119 causes a linker error in 
miniruby. Rolling back to 1.118 fixes this problem:

> <507> rm process.o
> <508> make
> gcc -g -O2 -pipe -fno-common   -I. -I.  -c process.c
> ar rcu libruby_HEAD-static.a array.o ascii.o bignum.o class.o compar.o 
> dir.o dln.o enum.o error.o euc_jp.o eval.o file.o gc.o hash.o inits.o 
> io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o 
> prec.o random.o range.o re.o regcomp.o regenc.o regerror.o regexec.o 
> reggnu.o regparse.o ruby.o signal.o sjis.o sprintf.o st.o string.o 
> struct.o time.o utf8.o util.o variable.o version.o  dmyext.o
> gcc main.o libruby_HEAD-static.a -ldl -lobjc   -o miniruby -g -O2 
> -pipe -fno-common
> ld: Undefined symbols:
> _NUM2RLIM
> _RLIM2NUM
> <512> cvs up -r 1.118 process.c

and everything builds after that. On FreeBSD, slightly different output:

> <536> gmake
> gcc main.o libruby-head-static.a -lcrypt -lm   -o miniruby -g -O2    
> -rdynamic
> libruby-head-static.a(process.o): In function `proc_getrlimit':
> /usr/home/ryand/Work/cvs/ruby-lang/ruby/process.c:1981: undefined 
> reference to `RLIM2NUM'
> /usr/home/ryand/Work/cvs/ruby-lang/ruby/process.c:1981: undefined 
> reference to `RLIM2NUM'
> libruby-head-static.a(process.o): In function `proc_setrlimit':
> /usr/home/ryand/Work/cvs/ruby-lang/ruby/process.c:2020: undefined 
> reference to `NUM2RLIM'
> /usr/home/ryand/Work/cvs/ruby-lang/ruby/process.c:2022: undefined 
> reference to `NUM2RLIM'
> gmake: *** [miniruby] Error 1
> <537> cvs up -r 1.118 process.c; gmake
> P process.c
> gcc -g -O2   -I. -I.  -c process.c
> ar rcu libruby-head-static.a array.o ascii.o bignum.o class.o compar.o 
> dir.o dln.o enum.o error.o euc_jp.o eval.o file.o gc.o hash.o inits.o 
> io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o 
> prec.o random.o range.o re.o regcomp.o regenc.o regerror.o regexec.o 
> reggnu.o regparse.o ruby.o signal.o sjis.o sprintf.o st.o string.o 
> struct.o time.o utf8.o util.o variable.o version.o  dmyext.o
> gcc main.o libruby-head-static.a -lcrypt -lm   -o miniruby -g -O2    
> -rdynamic
> ...

after that, both of them pass 'make test'.


In This Thread