[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>

Hi,

18 messages 2005/06/16
[#5220] Re: Segmentation fault in timeout.rb — Eric Hodel <drbrain@...7.net> 2005/06/16

[#5221] Re: Segmentation fault in timeout.rb — Michel Pastor <K@...> 2005/06/16

On Fri, 17 Jun 2005 05:03:18 +0900

[#5223] Re: Segmentation fault in timeout.rb — nobu.nokada@... 2005/06/17

Hi,

[#5296] Subversion — Shugo Maeda <shugo@...>

Hi,

64 messages 2005/06/30
[#5297] Re: Subversion — Curt Hibbs <curt@...> 2005/06/30

Shugo Maeda wrote:

[#5298] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Curt Hibbs wrote:

[#5301] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5304] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Austin Ziegler wrote:

[#5305] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5307] Re: Subversion — mathew <meta@...> 2005/06/30

Austin Ziegler wrote:

[#5308] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, mathew <meta@pobox.com> wrote:

[#5311] Re: Subversion — mathew <meta@...> 2005/07/01

Austin Ziegler wrote:

[#5323] Re: Subversion — Austin Ziegler <halostatue@...> 2005/07/01

On 7/1/05, mathew <meta@pobox.com> wrote:

[#5325] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/07/01

Austin Ziegler wrote:

Re: Cannot build HEAD on OS X 10.4.1

From: Eric Hodel <drbrain@...7.net>
Date: 2005-06-10 02:29:48 UTC
List: ruby-core #5183
On 09 Jun 2005, at 19:12, nobuyoshi nakada wrote:

> Hi,
>
> At Fri, 10 Jun 2005 10:35:20 +0900,
> nobuyoshi nakada wrote in [ruby-core:05181]:
>
>>> Somehow the rb_fd_init macro is conflicting with the definition of
>>> rb_fd_init in eval.c.
>>>
>>> intern.h has:
>>>
>>> #ifdef NFDBITS
>>> #else
>>> #define rb_fd_init(f)   FD_ZERO(f)
>>>
>>> eval.c has:
>>>
>>> #ifdef NFDBITS
>>> void
>>> rb_fd_init(fds)
>>>
>>
>> Why is NFDBITS defined in intern.h but not in eval.c?
>>
>
> Sorry, it was inverted and point taken now.  But fd_set should be
> defined there, at the previous typedef line in intern.h.  However,
> NFDBITS isn't defined yet?

Ah! intern.h gets included (via ruby.h) before sys/types.h.

The following patch fixes things:

Index: intern.h
===================================================================
RCS file: /src/ruby/intern.h,v
retrieving revision 1.169
diff -u -r1.169 intern.h
--- intern.h    3 Jun 2005 14:23:14 -0000       1.169
+++ intern.h    10 Jun 2005 02:27:56 -0000
@@ -145,6 +145,9 @@
  NORETURN(void rb_error_frozen _((const char*)));
  void rb_check_frozen _((VALUE));
  /* eval.c */
+
+#include <sys/types.h>
+
  #ifdef NFDBITS
  typedef struct {
      int maxfd;


-- 
Eric Hodel - drbrain@segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04


In This Thread