------- Comment #1 from dje at gcc dot gnu dot org 2007-03-20 21:43 ------- Compiling with -pthread adds -D_THREAD_SAFE to the defined macros, which causes different header files to be included. Prior to GCC 4.3, this appears to cause a non-unique name to be chosen for the global constructor in the file. When compiling with -pthread, the first global object seen is:
struct thread_credentials { uint flags; cred_ext_t cred; int reserved[9]; } thread_creds_t; in /usr/include/sys/thread.h -- dje at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dje at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-03-20 21:43:31 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282