https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63650
--- Comment #3 from Richard PALO <richard at netbsd dot org> --- I initially replied that there was an error in my original, please correct the first three lines to: #ifndef HIDDEN #define HIDDEN __attribute__((visibility("hidden"))) #endif