[#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: [ ruby-Bugs-1107 ] Ruby does not compile on Red Hat Entreprise Linux 3.

From: Tanaka Akira <akr@...17n.org>
Date: 2004-11-25 08:39:47 UTC
List: ruby-core #3816
In article <Pine.GSO.4.61.0411250838140.6746@pjakkur.iar.se>,
  Johan Holmberg <holmberg@iar.se> writes:

> Maybe I should give some more details.
> On my FreeBSD I have the following situation with Ruby HEAD in CVS:
>
>      $ ~/apps/autoconf-2.52/bin/autoconf
>      $ ./configure
>      $
>      $ grep '^# Generated by' configure
>      $ # Generated by Autoconf 2.52.
>      $ grep SIZEOF_RLIM_T config.h
>      #define SIZEOF_RLIM_T                   <--- no value !!!
>      $
>      $  rm configure ; /usr/local/bin/autoconf && ./configure
>      $ grep '^# Generated by.*Autoconf' configure
>      # Generated by GNU Autoconf 2.53.
>      $ grep SIZEOF_RLIM_T config.h
>      #define SIZEOF_RLIM_T 8                 <--- a value !!!
>      $
>
> That was the direct reason I proposed a change in "configure.in" to 
> "AC_PREREQ(2.53)" yesterday.

I found a problem in AC_CHECK_SIZEOF invocation.

This patch should fix it.  I tested this with autoconf 2.52.

Index: configure.in
===================================================================
RCS file: /src/ruby/configure.in,v
retrieving revision 1.254
diff -u -p -r1.254 configure.in
--- configure.in	25 Nov 2004 01:58:31 -0000	1.254
+++ configure.in	25 Nov 2004 08:35:59 -0000
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT()
 
-AC_PREREQ(2.53)
+AC_PREREQ(2.50)
 
 AC_DEFUN(RUBY_MINGW32,
 [case "$host_os" in
@@ -410,6 +410,7 @@ AC_CHECK_SIZEOF(rlim_t, 0, [
   #ifdef HAVE_UNISTD_H
   # include <unistd.h>
   #endif
+  #include <stdio.h>
 ])
 
 dnl Checks for typedefs, structures, and compiler characteristics.
-- 
Tanaka Akira

In This Thread