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 OCTOBER 27, 2013

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’


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms