_GLIBCXX_USE_WEAK_REF needs to be defined to 0 to fix build error. Tested on hppa2.0w-hp-hpux11.11.
Dave -- John David Anglin dave.ang...@bell.net
2016-01-23 John David Anglin <dang...@gcc.gnu.org> PR libstdc++/69446 * config/os/hpux/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define. Index: config/os/hpux/os_defines.h =================================================================== --- config/os/hpux/os_defines.h (revision 232766) +++ config/os/hpux/os_defines.h (working copy) @@ -99,6 +99,9 @@ to null pointers when weak symbol support is on. */ #define _GLIBCXX_GTHREAD_USE_WEAK 0 +// No support for referencing weak symbols without a definition. +#define _GLIBCXX_USE_WEAK_REF 0 + // The strtold function is obsolete and not C99 conformant on PA HP-UX. // It returns plus or minus _LDBL_MAX instead of plus or minus HUGE_VALL // if the correct value would cause overflow. It doesn't handle "inf",