Project

General

Profile

Actions

Bug #13573

closed

Compilation on Mac OS X 10.5.8 fails because of missing _fgetattrlist

Added by takashiyoshi (Takashi Yoshi) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [universal.powerpc64-darwin9.0]
[ruby-core:81228]

Description

When compiling Ruby 2.3.x and 2.4.x on Mac OS X 10.5.8, compilation fails with:

linking miniruby
Undefined symbols for architecture ppc:
  "_fgetattrlist", referenced from:
      _glob_helper in dir.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
Undefined symbols for architecture ppc64:
  "_fgetattrlist", referenced from:
      _glob_helper in dir.o
ld: symbol(s) not found for architecture ppc64
collect2: ld returned 1 exit status

The issue is similar to #11054.
The fgetattrlist function is missing on Mac OS X 10.5.8

Applying the attached patch fixes the problem and then Ruby 2.4.1 builds successfully.


Files

ruby24-fgetattrlist.diff (1.11 KB) ruby24-fgetattrlist.diff takashiyoshi (Takashi Yoshi), 05/18/2017 07:23 PM

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #11054: ruby won't build on OS X 10.5 — fgetattrlist() not availableClosedActions

Updated by shyouhei (Shyouhei Urabe) almost 7 years ago

I think Ruby 2.4.x on Mac 10.5.x is not a supported combination. The proposed patch seems fine though. I no longer own a PPC Mac so cannot test it.

Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • Is duplicate of Bug #11054: ruby won't build on OS X 10.5 — fgetattrlist() not available added

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • Status changed from Open to Closed
  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Backport r57248.

Updated by usa (Usaku NAKAMURA) over 6 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED

ruby_2_3 r59223 merged revision(s) 57248.

Updated by nagachika (Tomoyuki Chikanaga) over 6 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_4 r59294 merged revision(s) 57248.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0