Skip site navigation (1) Skip section navigation (2)

Re: osx and thread safety?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Theodore Petrosky <tedpet5(at)yahoo(dot)com>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: osx and thread safety?
Date: 2004-08-17 04:30:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Theodore Petrosky <tedpet5(at)yahoo(dot)com> writes:
> I get these errors:

> ld: common symbols not allowed with MH_DYLIB output
> format with the -multi_module option
> fe-secure.o definition of common _thread_in_send (size
> 4)

Some googling turns up the fact that OS X does not like uninitialized
global variables in dynamic libraries.  There are a couple of
workarounds but the easiest one seems to be to initialize the variable.
I added "= 0" to the definition of thread_in_send and the problem
went away.

It's possible that this would create issues on platforms where
type pthread_key_t is neither integral nor a pointer type.  Does
anyone know of such?

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: PostgreSQL Bugs ListDate: 2004-08-17 07:20:15
Subject: BUG #1219: pgxs does not work fully
Previous:From: Bruce MomjianDate: 2004-08-17 02:31:06
Subject: Re: osx and thread safety?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group