Issue #5491 has been updated by The Written Word Inc.

File patch added


----------------------------------------
Bug #5491: build failure on Tru64 UNIX 5.1
http://redmine.ruby-lang.org/issues/5491

Author: The Written Word Inc
Status: Open
Priority: Normal
Assignee: 
Category: build
Target version: 1.9.2
ruby -v: UNKNOWN


Building 1.9.2 with latest svn revision at 33531 produces a build error because <c_except.h> defines leave and except:
  /* definitions of keywords and intrinsic function names */
  #ifndef __cplusplus
  #define try                    __builtin_try
  #endif
  #define except                 __builtin_except
  #define leave                  __builtin_leave
  #define finally                __builtin_finally

cc -ieee   -g  -I. -I.ext/include/alphaev67-osf5.1 -I./include -I. -DRUBY_EXPORT   -o compile.o -c compile.c
cc: Error: compile.c, line 504: In this statement, "YARVINSN___builtin_leave" is not declared. (undeclared)
        ADD_INSN(ret, iseq->compile_data->last_line, leave);
--------^
cc: Error: compile.c, line 3584: In this statement, "YARVINSN___builtin_leave" is not declared. (undeclared)
            ADD_INSN(ret, nd_line(node), leave);
------------^
cc: Error: compile.c, line 4273: In this statement, "YARVINSN___builtin_leave" is not declared. (undeclared)
                    ADD_INSN(ret, nd_line(node), leave);
--------------------^
gmake: *** [compile.o] Error 1


-- 
http://redmine.ruby-lang.org