[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

[ ruby-Patches-5774 ] numeric.c fails to build on 64-bit platforms (Fedora Core 5 x86_64 gcc 4.1.1)

From: <noreply@...>
Date: 2006-09-16 19:20:27 UTC
List: ruby-core #8885
Patches item #5774, was opened at 2006-09-16 12:19
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5774&group_id=426

Category: Ruby1.9
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Thom (dath)
Assigned to: Nobody (None)
Summary: numeric.c fails to build on 64-bit platforms (Fedora Core 5 x86_64 gcc 4.1.1)

Initial Comment:
numeric.c revision 1.144 produces the following compilation error on Fedora Core 5 x86_64 (with gcc 4.1.1):

gcc -g -O2  -I. -I.  -DRUBY_EXPORT  -c numeric.c
numeric.c: In function ‘fix_mul’:
numeric.c:1995: error: ‘N’ undeclared (first use in this function)
numeric.c:1995: error: (Each undeclared identifier is reported only once
numeric.c:1995: error: for each function it appears in.)
numeric.c:1995: warning: integer overflow in expression
numeric.c:1995: warning: integer overflow in expression
make: *** [numeric.o] Error 1

I'm attaching a trivial patch that fixes this issue. . .

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5774&group_id=426

In This Thread

Prev Next