Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63571 closed defect (fixed)

ruby30 doesn't compile on Lion

Reported by: lemzwerg (Werner Lemberg) Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Lion Cc:
Port: ruby30

Description

I get exactly the same error as the MacPorts build bot on Lion, see

https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/67080/steps/install-port

The latest version of ccache needs this port...

Change History (6)

comment:1 Changed 3 years ago by lemzwerg (Werner Lemberg)

Owner: set to kimuraw
Status: newassigned

comment:2 Changed 3 years ago by kimuraw (kimura wataru)

migit be related to #57986

comment:3 Changed 3 years ago by lemzwerg (Werner Lemberg)

But the same build bot compiles ruby 2.6 without problems, doesn't it?

comment:4 Changed 3 years ago by kimura wataru <kimuraw@…>

Resolution: fixed
Status: assignedclosed

In 6f9214d6682931089858c6efd9fb7591471eab52/macports-ports (master):

lang/ruby30: fix build error on MacOSX 10.7 Lion

fix build error "use of undeclared identifier 'kSecRandomDefault'".

some old versions of SDKs(such as 10.7) do not import <Security/SecRandom.h> in <Security/Security.h>.
this problem will be fixed at ruby-3.0.3, next release of ruby-3.0.

https://github.com/ruby/ruby/commit/bf089d786a7ee1fa8c972e10bb31b23ba30a1438#diff-32cd45cbdc2d400fa3c2d0f7889e737f7837404a0bf31692c9e7ef014cfba568

Closes: #63571

comment:5 Changed 3 years ago by kimuraw (kimura wataru)

I fixed this error at "ruby30 @3.0.2_2".

try sudo port selfupdate && sudo port install ruby30 on your Lion Mac.

comment:6 Changed 3 years ago by lemzwerg (Werner Lemberg)

It works now, thanks!

Note: See TracTickets for help on using tickets.