Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#64349 closed defect (fixed)

ruby31: error: use of undeclared identifier 'MAP_ANONYMOUS'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: ruby31

Description

https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/166925/steps/install-port/logs/stdio

gc.c:11141:88: error: use of undeclared identifier 'MAP_ANONYMOUS'
        char *ptr = mmap(NULL, alignment + size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
                                                                                       ^
1 error generated.

On old systems, MAP_ANONYMOUS was called MAP_ANON. If the developers don't want to add support for this, the legacy support portgroup could be used.

Change History (5)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

I've reported it to the developers: https://bugs.ruby-lang.org/issues/18556

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

thanks ryandesign, I'll apply the upstream fix.

https://github.com/ruby/ruby/pull/5506/files

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

Resolution: fixed
Status: assignedclosed

In 5583fcf2e1f851bb5c3b48ff4d92df26e70969f8/macports-ports (master):

lang/ruby31: fix build error on older macOS, such as 10.10

closes: #64349

  • fix build error "use of undeclared identifier 'MAP_ANONYMOUS'" on older macOS
  • fix "upgrade" error at destroot of bundled gem that contains c-extension, such as rbs or debug
    • extconf.rb generates different Makefile from the Makefile at "install"

comment:4 Changed 2 years ago by evanmiller (Evan Miller)

This issue should be re-opened. See failing build:

https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/175231

It appears that this commit:

[fd327becf635c772aef1b1a2e3531e6afffe1dba/macports-ports]

deleted the patch, which apparently was not merged in time for 3.1.1.

Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

See #64957.

Note: See TracTickets for help on using tickets.