My Oracle Support Banner

On OEL or RHEL Linux OS, Oracle Database Libraries can not link with Solaris Studio compiler due to gcc attribute __weakref__ and gives an error as undefined reference to ‘__gthrw_pthread_cancel’ (Doc ID 1588487.1)

Last updated on FEBRUARY 28, 2019

Applies to:

Oracle Solaris Studio - Version 12.3 and later
Linux x86
Software Versions:
Solaris Studio 12.3
Linux 2.6.32-279.el6……..
Gcc 4.4.6
Oracle client lib 11.2.0


Oracle Database ( OCCI ) libraries using studio 12.3 on RHEL 6 and gcc 4.4.6, can not link. It gives unresolved linker error such as undefined reference to ‘__gthrw_pthread_cancel’


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.