Opened 5 months ago

Last modified 4 months ago

#72728 assigned defect

lazarus @4.2-0: Undefined AppKit symbols

Reported by: RobK88 Owned by: kamischi (Karl-Michael Schindler)
Priority: Normal Milestone:
Component: ports Version: 2.11.3
Keywords: snowleopard lion mountainlion mavericks yosemite elcapitan sierra highsierra mojave Cc: RobK88
Port: lazarus

Description

lazarus @4.2-0 no longer links on El Capitan -- undefined symbols

:info:build Undefined symbols for architecture x86_64:
:info:build   "_OBJC_CLASS_$_NSMenuToolbarItem", referenced from:
:info:build       _OBJC_CLASS_$_TCocoaToolBarItemMenu in cocoatoolbar.o
:info:build   "_OBJC_CLASS_$_NSSearchToolbarItem", referenced from:
:info:build       _OBJC_CLASS_$_TCocoaToolBarItemSearch in cocoatoolbar.o
:info:build   "_OBJC_CLASS_$_NSSharingServicePickerToolbarItem", referenced from:
:info:build       _OBJC_CLASS_$_TCocoaToolBarItemSharing in cocoatoolbar.o
:info:build   "_OBJC_CLASS_$_UNMutableNotificationContent", referenced from:
:info:build       anon in cocoawsextctrls.o
:info:build   "_OBJC_CLASS_$_UNNotificationRequest", referenced from:
:info:build       anon in cocoawsextctrls.o
:info:build   "_OBJC_CLASS_$_UNNotificationSound", referenced from:
:info:build       anon in cocoawsextctrls.o
:info:build   "_OBJC_CLASS_$_UNTimeIntervalNotificationTrigger", referenced from:
:info:build       anon in cocoawsextctrls.o
:info:build   "_OBJC_CLASS_$_UNUserNotificationCenter", referenced from:
:info:build       anon in cocoawsextctrls.o
:info:build   "_OBJC_METACLASS_$_NSMenuToolbarItem", referenced from:
:info:build       _OBJC_METACLASS_$_TCocoaToolBarItemMenu in cocoatoolbar.o
:info:build   "_OBJC_METACLASS_$_NSSearchToolbarItem", referenced from:
:info:build       _OBJC_METACLASS_$_TCocoaToolBarItemSearch in cocoatoolbar.o
:info:build   "_OBJC_METACLASS_$_NSSharingServicePickerToolbarItem", referenced from:
:info:build       _OBJC_METACLASS_$_TCocoaToolBarItemSharing in cocoatoolbar.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build An error occurred while linking 
:info:build Error: (9013) Error while linking
:info:build Fatal: (10026) There were 1 errors compiling module, stopping
:info:build Fatal: (1018) Compilation aborted
:info:build make[2]: *** [lazarus] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/lazarus-675e21bb/work/lazarus/ide'
:info:build make[1]: *** [bigide] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/lazarus-675e21bb/work/lazarus/ide'
:info:build make: *** [idebig] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/lazarus-675e21bb/work/lazarus'
:info:build Command failed:  cd "/opt/local/var/macports/build/lazarus-675e21bb/work/lazarus" && /usr/bin/make -w bigide OPT=-gl LCL_PLATFORM=cocoa 
:info:build Exit code: 2
:error:build Failed to build lazarus: command execution failed
:debug:build Error code: CHILDSTATUS 89470 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lazarus/lazarus/main.log for details.

Attachments (1)

main.log.bz2 (133.8 KB) - added by jmroot (Joshua Root) 5 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 months ago by RobK88

Cc: RobK88 added

Changed 5 months ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added

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

Cc: kamischi removed
Owner: set to kamischi
Status: newassigned

comment:3 Changed 4 months ago by RobK88

Same error on High Sierra...

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

Keywords: snowleopard lion mountainlion mavericks yosemite sierra highsierra mojave added
Summary: lazarus @4.2-0 no longer Builds (Links) on El Capitan -- Undefined symbolslazarus @4.2-0: Undefined AppKit symbols

We also see this on the buildbot on 10.14 and earlier. Looking at the first symbol, NSMenuToolbarItem, Apple says it was introduced in macOS 10.15.

comment:5 Changed 4 months ago by kamischi (Karl-Michael Schindler)

This issue seems to be related:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41133

I hope to derive a fix from it, but it may take some time. Also I do not have a 10.14 or earlier available, which makes checking a fix more elaborate.

MiSchi

Note: See TracTickets for help on using tickets.