Opened 13 months ago

Closed 9 months ago

#68439 closed defect (fixed)

spice-server: error: visibility does not match previous declaration

Reported by: mascguy (Christopher Nielsen) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard mountainlion mavericks elcapitan sierra highsierra mojave Cc: kupietools (Michael E. Kupietz), nrezmerski
Port: spice-server

Description

Haven't determined the cause yet - perhaps slightly different behaviour across Clang versions, for visibility-related pragmas? - but errors are occurring for a mix of older macOS releases:

inputs-channel.cpp:467:1: error: visibility does not match previous declaration
SPICE_GNUC_VISIBLE int spice_server_kbd_leds(SpiceKbdInstance *sin, int leds)
^
./utils.h:28:44: note: expanded from macro 'SPICE_GNUC_VISIBLE'
#define SPICE_GNUC_VISIBLE __attribute__ ((visibility ("default")))
                                           ^
./push-visibility.h:19:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
1 error generated.

Change History (4)

comment:1 Changed 12 months ago by kupietools (Michael E. Kupietz)

Seeing this also, although different errors:

--->  Building spice-server
Error: Failed to build spice-server: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_spice-server/spice-server/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port spice-server failed

The mentioned main.log is enormous and searching for errors in it didn't reveal anything immediately useful.

Version 1, edited 12 months ago by kupietools (Michael E. Kupietz) (previous) (next) (diff)

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

Cc: kupietools nrezmerski added
Keywords: snowleopard mountainlion mavericks elcapitan sierra highsierra mojave added
Summary: spice-server: build failures for 10.6, 10.8, 10.9, and 10.11 to 10.14spice-server: error: visibility does not match previous declaration

Has duplicate #68671.

Report it to the developers. They'll release a fixed version. Then we can update to it.

comment:3 Changed 12 months ago by kupietools (Michael E. Kupietz)

For benefit of people arriving here from search engines in the future: issue now opened with spice-server developers at https://gitlab.freedesktop.org/spice/spice/-/issues/84. I think this ticket can probably be closed.

Last edited 12 months ago by kupietools (Michael E. Kupietz) (previous) (diff)

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 3ec79463c804856818375888300cf5b1d07641a3/macports-ports (master):

spice-server: Fix build with older clangs

Closes: #68439

Note: See TracTickets for help on using tickets.