Opened 19 months ago

Last modified 7 months ago

#65896 assigned defect

emacs fails to compile on old Mac <= 10.7

Reported by: rmottola (Riccardo) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: tiger leopard snowleopard lion Cc: cooljeanius (Eric Gallager), catap (Kirill A. Korinsky)
Port: emacs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Emacs fails to compile on 10.7 because of this error:

:info:build nsterm.m:8391:8: error: use of undeclared identifier 'child'
:info:build   if ([child respondsToSelector:@selector(setAccessibilitySubrole:)])
:info:build        ^

The code looks for a non existing ivar, checking source code, emacs fixed it with this commit:

https://github.com/emacs-mirror/emacs/commit/96ec2ac7d0bdb6b1193217b35f7d74d79b7c2033

we might have a backport patch for it. It does not apply cleanly, but it contains the fix for that part.

Another build issue remains:

nsmenu.m:644:48: error: use of undeclared identifier 'NSTextAlignmentRight'
    [[[NSTextTab alloc] initWithTextAlignment: NSTextAlignmentRight

And here I am at loss,

NSTextAlignmentRight

is valid, not something recent, what else is missing?

Change History (6)

comment:1 Changed 19 months ago by rmottola (Riccardo)

Keywords: gtk lion added
Port: emacs added

comment:2 Changed 19 months ago by jmroot (Joshua Root)

Owner: set to drkp
Status: newassigned

comment:3 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: catap added
Description: modified (diff)
Keywords: tiger leopard snowleopard added; gtk removed

You didn't attach a main.log file or tell us what version of emacs you were using.

The commit you mentioned appears to contain fixes for both issues you reported and was included in emacs 29.1 which is the version in MacPorts now so please retry with that version.

comment:5 Changed 7 months ago by rmottola (Riccardo)

Just built on 10.7 just fine.

Will try 10.6 soon.

comment:6 Changed 7 months ago by rmottola (Riccardo)

I tried 10.6. On 64bit it built fine. On 32bit it failed. I opened this bug separately: https://trac.macports.org/ticket/68382

Did somebody try on 10.4 and 10.5 ?

Note: See TracTickets for help on using tickets.