Building Thread-Safe on OS X

Started by Keary Suskaalmost 22 years ago4 messagesgeneral
Jump to latest
#1Keary Suska
hierophant@pcisys.net

I followed the directions in the /src/tools/thread directory, ran the test
program, which said everything was OK and recommended another setting, which
I added to the template/reconfigured/recompiled. Both the test program and
readme mentioned thread-specific compiler directives but didn't say which or
what values, so I didn't add any.

Can I assume that I have a thread-safe libpq, or is there something I am
missing?

TIA,

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

#2Bruce Momjian
bruce@momjian.us
In reply to: Keary Suska (#1)
Re: Building Thread-Safe on OS X

Keary Suska wrote:

I followed the directions in the /src/tools/thread directory, ran the test
program, which said everything was OK and recommended another setting, which
I added to the template/reconfigured/recompiled. Both the test program and
readme mentioned thread-specific compiler directives but didn't say which or
what values, so I didn't add any.

Can I assume that I have a thread-safe libpq, or is there something I am
missing?

Sorry, you need to add --enable-thread-safety to the configure run. In
7.5, you still need the flag, but all the testing is done automatically.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.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
#3Keary Suska
hierophant@pcisys.net
In reply to: Bruce Momjian (#2)
Re: Building Thread-Safe on OS X

on 6/2/04 1:53 PM, pgman@candle.pha.pa.us purportedly said:

Keary Suska wrote:

I followed the directions in the /src/tools/thread directory, ran the test
program, which said everything was OK and recommended another setting, which
I added to the template/reconfigured/recompiled. Both the test program and
readme mentioned thread-specific compiler directives but didn't say which or
what values, so I didn't add any.

Can I assume that I have a thread-safe libpq, or is there something I am
missing?

Sorry, you need to add --enable-thread-safety to the configure run. In
7.5, you still need the flag, but all the testing is done automatically.

I did that--the only direction I didn't follow (because I wasn't sure what
was needed) was the following:
"add any THREAD_CPPFLAGS and THREAD_LIBS defines to your
template/${port} file"

Do you think I'm OK then?

Best,

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

#4Bruce Momjian
bruce@momjian.us
In reply to: Keary Suska (#3)
Re: Building Thread-Safe on OS X

Keary Suska wrote:

on 6/2/04 1:53 PM, pgman@candle.pha.pa.us purportedly said:

Keary Suska wrote:

I followed the directions in the /src/tools/thread directory, ran the test
program, which said everything was OK and recommended another setting, which
I added to the template/reconfigured/recompiled. Both the test program and
readme mentioned thread-specific compiler directives but didn't say which or
what values, so I didn't add any.

Can I assume that I have a thread-safe libpq, or is there something I am
missing?

Sorry, you need to add --enable-thread-safety to the configure run. In
7.5, you still need the flag, but all the testing is done automatically.

I did that--the only direction I didn't follow (because I wasn't sure what
was needed) was the following:
"add any THREAD_CPPFLAGS and THREAD_LIBS defines to your
template/${port} file"

Do you think I'm OK then?

If the test program ran OK with no flag, you should be OK.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.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