Public bug reported:

GStaticMutex is deprecated (a long time) [1][2]

gcc-9 with Werror detectas and breaks on this as an error nowadays:

fileLogger.c: In function ‘FileLoggerLog’:
fileLogger.c:351:13: error: Deprecated pre-processor symbol [-Werror]
  351 |    g_static_mutex_lock(&logger->lock);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~ 

sysLogger.c: In function ‘SysLoggerUnref’:
sysLogger.c:108:13: error: Deprecated pre-processor symbol [-Werror]
  108 |    g_static_mutex_lock(&gSysLoggerLock);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Upstream is close to v11, but the github content has nothing yet :-/.
This should be mostly a global search and replace with some extra thought on 
the places the locks are initialized.

[1]: 
https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-static-mutex-lock
[2]: https://developer.gnome.org/glib/stable/glib-Threads.html#g-mutex-lock

** Affects: open-vm-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842301

Title:
  FTBFS in Eoan due to gcc9 "Deprecated pre-processor symbol" on
  GStaticMutex

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1842301/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to