dbTalk Databases Forums  

[BUGS] osx and thread safety?

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] osx and thread safety? in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Theodore Petrosky
 
Posts: n/a

Default [BUGS] osx and thread safety? - 08-16-2004 , 09:11 PM






Can someone shed some light on the thread safety
switch. I am using PostgreSQL on mac os x. I have made
and installed from 7.2 through 8.0b. I now see this
feature of thread safety and I don't understand why I
would need it.

I have tried:

../configure --with-rendezvous --enable-thread-safety

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)
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libpq.3.2.dylib] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

this is os x 10.3.5 with gcc (GCC) 3.3

any ideas (If I don't know what it is, do I need it?)

Ted




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] osx and thread safety? - 08-16-2004 , 09:32 PM







You need threading if you need to do threads in your client
applications. Not sure why you get the link error though.

---------------------------------------------------------------------------

Theodore Petrosky wrote:
Quote:
Can someone shed some light on the thread safety
switch. I am using PostgreSQL on mac os x. I have made
and installed from 7.2 through 8.0b. I now see this
feature of thread safety and I don't understand why I
would need it.

I have tried:

./configure --with-rendezvous --enable-thread-safety

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)
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libpq.3.2.dylib] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

this is os x 10.3.5 with gcc (GCC) 3.3

any ideas (If I don't know what it is, do I need it?)

Ted




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] osx and thread safety? - 08-16-2004 , 11:31 PM



Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.