# JUCE9 new Opus and libwebp libraries leak symbols with -fvisibility=hidden

**URL:** <https://forum.juce.com/t/juce9-new-opus-and-libwebp-libraries-leak-symbols-with-fvisibility-hidden/70086>\
**Category:** General JUCE discussion\
**Created:** [December 4, 2026, 10:36am UTC](https://forum.juce.com/t/juce9-new-opus-and-libwebp-libraries-leak-symbols-with-fvisibility-hidden/70086 "2026-12-04T10:36:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pflugshaupt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pflugshaupt/32/13206_2.png) [@pflugshaupt](https://forum.juce.com/u/pflugshaupt)\
**Post date:** [December 4, 2026, 10:36am UTC](https://forum.juce.com/t/juce9-new-opus-and-libwebp-libraries-leak-symbols-with-fvisibility-hidden/70086/1 "2026-12-04T10:36:05Z")

</div>

These two libraries added in JUCE9 have symbol export settings that survive -fvisibility-hidden. All previous libraries don’t do that. I had to add extra steps to my setup to strip ~200 symbols from my binaries.

The problem comes from OPUS\_EXPORT and WEBP\_EXTERN. They both boil down to ` __attribute__ (((visibility("default")))` which is stronger than -fvisibility-hidden.  
In opusfile.h there is also a #pragma GCC visibility push(default) that applies `default` to everything.

This is bad because if the lookup ever goes wrong cross-binary, it creates a very hard to find problem. On macOS this is quite unlikely, Linux is more problematic, but IMHO the best practice is to only export absolutely required symbols in releases.
