Linker Error "ld: fatal: soname option (-h, --soname) is incompatible with building a dynamic executable" When Compiling glib on Solaris (Doc ID 1487118.1)

Last updated on MARCH 08, 2017

Applies to:

Solaris Operating System - Version 10 3/05 to 11.2 [Release 10.0 to 11.0]
Oracle Solaris Studio - Version Sun Studio 10 to 12.4 [Release 10.0 to 12]
Information in this document applies to any platform.

Symptoms

glib 2.32.x cannot be compiled on Solaris 10, error message is

Making all in tests
make[4]: Entering directory `/pmr_src/glib-2.32.0/glib/tests'
  CCLD private
ld: warning: soname option (-h, --soname) appears more than once, first setting taken
ld: fatal: soname option (-h, --soname) is incompatible with building a dynamic executable
ld: fatal: flags processing errors

 

Cause

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