[MacPorts] #69168: pulseaudio @17.0_0: Undefined symbols "_AbsoluteToNanoseconds" (was: pulseaudio 14.2_1 < 17.0_0 fails to upgrade on mavericks)

MacPorts noreply at macports.org
Wed Jan 24 10:25:40 UTC 2024


#69168: pulseaudio @17.0_0: Undefined symbols "_AbsoluteToNanoseconds"
-------------------------+-----------------------
  Reporter:  tehcog      |      Owner:  Ionic
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  mavericks
      Port:  pulseaudio  |
-------------------------+-----------------------

Comment (by ryandesign):

 Hmm…

 {{{
 :info:build ../pulseaudio-17.0/src/pulsecore/core-rtclock.c:93:13:
 warning: 'AbsoluteToNanoseconds' is deprecated: first deprecated in OS X
 10.8 [-Wdeprecated-declarations]
 :info:build     nanos = AbsoluteToNanoseconds(*(AbsoluteTime *)
 &abs_time);
 :info:build             ^
 :info:build
 /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:93:1:
 note: 'AbsoluteToNanoseconds' has been explicitly marked deprecated here
 :info:build AbsoluteToNanoseconds(AbsoluteTime absoluteTime)
 __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA,
 __IPHONE_NA);
 :info:build ^
 :info:build 1 warning generated.
 }}}

 Ok, it's deprecated…

 {{{
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_AbsoluteToNanoseconds", referenced from:
 :info:build       _pa_rtclock_age in pulsecore_core-rtclock.c.o
 :info:build       _pa_rtclock_get in pulsecore_core-rtclock.c.o
 :info:build       _pa_rtclock_from_wallclock in pulsecore_core-rtclock.c.o
 :info:build       _pa_timeval_rtstore in pulsecore_core-rtclock.c.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 }}}

 …that shouldn't mean it's unavailable though. Then again, trying to use
 anything from Carbon is pretty suspect at this point.

 I see this interesting bit in the Portfile however that looks like it was
 intended to deal with this issue but I guess is no longer sufficient:

 {{{#!tcl
 if {${os.platform} eq "darwin" && ${os.major} < 13} {
     # _AbsoluteToNanoseconds
     configure.ldflags-append \
                     -framework CoreServices
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69168#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list