| От | Tom Lane |
|---|---|
| Тема | Re: osx and thread safety? |
| Дата | |
| Msg-id | 29072.1092717005@sss.pgh.pa.us обсуждение |
| Ответ на | osx and thread safety? (Theodore Petrosky <tedpet5@yahoo.com>) |
| Список | pgsql-bugs |
Theodore Petrosky <tedpet5@yahoo.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
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера