glib_stubs: avoid GLib g_free macro redefinition error - #779
Conversation
glib 2.78+ defines g_free as an object-size checking macro. open-vm-tools overrides g_free(), leading to preprocessor expansion inside the function signature and breaking the build. Undefine the macro before defining the stub. Upstream-Status: Pending Signed-off-by: Khem Raj <raj.khem@gmail.com>
While here, fix build with recent glib versions [1] Obtained from: vmware/open-vm-tools#779 [1] Sponsored by: Rubicon Communications, LLC ("Netgate")
While here, fix build with recent glib versions [1] Obtained from: vmware/open-vm-tools#779 [1] Sponsored by: Rubicon Communications, LLC ("Netgate")
While here, fix build with recent glib versions [1] Obtained from: vmware/open-vm-tools#779 [1] Sponsored by: Rubicon Communications, LLC ("Netgate")
🛑 Legal Compliance Check FailedHi @kraj, thank you for your contribution! To merge this Pull Request, you must sign our CLA. Note: Even if you signed off your commits locally (using 1. Read the Document: Click here to read the CLA ⏳ Processing Schedule: |
|
Hi @kraj, 🔄 System Migration: Compliance VerifiedWe have migrated this repository to a new automated compliance system. 🛑 Troubleshooting (If Blocked): Option 1 (Command Line): Push an empty commit. Option 2 (Web UI): Simply Close and immediately Reopen this Pull Request using the buttons at the bottom of the page. |
glib 2.78+ defines g_free as an object-size checking macro. open-vm-tools overrides g_free(), leading to preprocessor expansion inside the function signature and breaking the build.
Undefine the macro before defining the stub.
Upstream-Status: Pending