[MacPorts] #62624: ruby30 fails to build on macOS 11.2.3

MacPorts noreply at macports.org
Sat Apr 3 16:56:04 UTC 2021


#62624: ruby30 fails to build on macOS 11.2.3
----------------------------+--------------------
 Reporter:  josephsacco     |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.6.4
 Keywords:  ruby,  Big Sur  |       Port:  ruby30
----------------------------+--------------------
 Platform:
    iMac Late 2015 4 GHz Quad-Core intel Core i7,   macOS Big Sur 11.2.3

 Problems occur when compiling {{{bigdecimail.c}}}.

 {{{
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby30/ruby30/work/ruby-3.0.0/ext/bigdecimal'
 compiling bigdecimal.c
 In file included from bigdecimal.c:13:
 ./bigdecimal.h:122:1: error: redefinition of 'rb_array_const_ptr'
 rb_array_const_ptr(VALUE a)
 ^
 ../.././include/ruby/internal/core/rarray.h:184:1: note: previous
 definition is here
 rb_array_const_ptr(VALUE a)
 ^
 In file included from bigdecimal.c:13:
 ./bigdecimal.h:139:1: error: static declaration of 'rb_sym2str' follows
 non-static declaration
 rb_sym2str(VALUE sym)
 ^
 ../.././include/ruby/internal/symbol.h:63:7: note: previous declaration is
 here
 VALUE rb_sym2str(VALUE);
       ^
 bigdecimal.c:108:1: error: static declaration of 'rb_rational_num' follows
 non-static declaration
 rb_rational_num(VALUE rat)
 ^
 ../.././include/ruby/internal/intern/rational.h:39:7: note: previous
 declaration is here
 VALUE rb_rational_num(VALUE rat);
       ^
 bigdecimal.c:120:1: error: static declaration of 'rb_rational_den' follows
 non-static declaration
 rb_rational_den(VALUE rat)
 ^
 ../.././include/ruby/internal/intern/rational.h:40:7: note: previous
 declaration is here
 VALUE rb_rational_den(VALUE rat);
       ^
 bigdecimal.c:132:1: error: static declaration of 'rb_complex_real' follows
 non-static declaration
 rb_complex_real(VALUE cmp)
 ^
 ../.././include/ruby/internal/intern/complex.h:38:7: note: previous
 declaration is here
 VALUE rb_complex_real(VALUE z);
       ^
 bigdecimal.c:144:1: error: static declaration of 'rb_complex_imag' follows
 non-static declaration
 rb_complex_imag(VALUE cmp)
 ^
 ../.././include/ruby/internal/intern/complex.h:39:7: note: previous
 declaration is here
 VALUE rb_complex_imag(VALUE z);
       ^
 6 errors generated.
 make[2]: *** [bigdecimal.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62624>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list