Opened 9 months ago

Last modified 8 months ago

#67983 new defect

spice-server fails due to undefined CLOCK_THREAD_CPUTIME_ID

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: mascguy (Christopher Nielsen), catap (Kirill A. Korinsky)
Port: spice-server

Description (last modified by barracuda156)

display-channel.cpp: In constructor 'DisplayChannel::DisplayChannel(RedsState*, QXLInstance*, SpiceCoreInterfaceInternal*, Dispatcher*, int, int, GArray*, uint32_t)':
display-channel.cpp:2216:39: error: 'CLOCK_THREAD_CPUTIME_ID' was not declared in this scope
 2216 |     stat_init(&priv->add_stat, "add", CLOCK_THREAD_CPUTIME_ID);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~

On buildbots also: https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/144698/steps/install-port/logs/stdio

UPD. We need some other fix, since PR that I have referred will not help here: https://github.com/macports/macports-legacy-support/pull/58

Change History (3)

comment:1 Changed 9 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 9 months ago by mascguy (Christopher Nielsen)

Cc: mascguy catap added

Kirill's actively working on adding support for CLOCK_THREAD_CPUTIME_ID to legacy-support, via the following PR:

PR 64 - Implement CLOCK_THREAD_CPUTIME_ID via thread_info

comment:3 in reply to:  2 Changed 8 months ago by mascguy (Christopher Nielsen)

Replying to mascguy:

Kirill's actively working on adding support for CLOCK_THREAD_CPUTIME_ID to legacy-support, via the following PR:

PR 64 - Implement CLOCK_THREAD_CPUTIME_ID via thread_info

Sergey, can you retest with legacy-support-devel, now that Kirill's PR has been merged/released?

Note: See TracTickets for help on using tickets.