dbTalk Databases Forums  

[BUGS] Freebsd410 and postgresql803: src/port compile error

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


Discuss [BUGS] Freebsd410 and postgresql803: src/port compile error in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-05-2005 , 07:51 AM






Hi,

I have an error when postgresql 803 compile with flag :

../configure --prefix=/usr/local/postgres --enable-thread-safety

....
gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
initdb.o -L../../../src/port -lpgport -L../../../src/interfaces/libpq
-lpq -L../../../src/port -Wl,-R/usr/local/postgres/lib -lpgport -lz
-lreadline -lcrypt -lcompat -lm -lutil -o initdb
.../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_sigmask'
.../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
.../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'
....

Possible help me ?

Regards
Rmkml

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

Reply With Quote
  #2  
Old   
Jim C. Nasby
 
Posts: n/a

Default Re: [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-14-2005 , 02:44 PM






I believe that thread safety isn't supported on *BSD. I know that
there's issues with building in python support if python was compiled
with threads enabled.

On Fri, Aug 05, 2005 at 02:47:27PM +0200, rmkml wrote:
Quote:
Hi,

I have an error when postgresql 803 compile with flag :

./configure --prefix=/usr/local/postgres --enable-thread-safety

...
gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
initdb.o -L../../../src/port -lpgport -L../../../src/interfaces/libpq
-lpq -L../../../src/port -Wl,-R/usr/local/postgres/lib -lpgport -lz
-lreadline -lcrypt -lcompat -lm -lutil -o initdb
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_sigmask'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'
...

Possible help me ?

Regards
Rmkml

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

--
Jim C. Nasby, Sr. Engineer jnasby (AT) pervasive (DOT) com
Pervasive Software http://pervasive.com 512-569-9461

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


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

Default Re: [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-15-2005 , 12:51 AM



Jim C. Nasby wrote:
Quote:
I believe that thread safety isn't supported on *BSD. I know that
there's issues with building in python support if python was compiled
with threads enabled.

On Fri, Aug 05, 2005 at 02:47:27PM +0200, rmkml wrote:
Hi,

I have an error when postgresql 803 compile with flag :

./configure --prefix=/usr/local/postgres --enable-thread-safety

...
gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
initdb.o -L../../../src/port -lpgport -L../../../src/interfaces/libpq
-lpq -L../../../src/port -Wl,-R/usr/local/postgres/lib -lpgport -lz
-lreadline -lcrypt -lcompat -lm -lutil -o initdb
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_sigmask'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'
No, I think it should work. If it passes the thread tests in configure,
it should compile. I am unsure why it is failing.

--
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 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


Reply With Quote
  #4  
Old   
Darcy Buskermolen
 
Posts: n/a

Default Re: [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-15-2005 , 12:37 PM



On Sunday 14 August 2005 21:30, Bruce Momjian wrote:
Quote:
Jim C. Nasby wrote:
I believe that thread safety isn't supported on *BSD. I know that
there's issues with building in python support if python was compiled
with threads enabled.

On Fri, Aug 05, 2005 at 02:47:27PM +0200, rmkml wrote:
Hi,

I have an error when postgresql 803 compile with flag :

./configure --prefix=/usr/local/postgres --enable-thread-safety

...
gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
initdb.o -L../../../src/port -lpgport -L../../../src/interfaces/libpq
-lpq -L../../../src/port -Wl,-R/usr/local/postgres/lib -lpgport -lz
-lreadline -lcrypt -lcompat -lm -lutil -o initdb
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_sigmask'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'

No, I think it should work. If it passes the thread tests in configure,
it should compile. I am unsure why it is failing.
it's missing a link to the threading libs -pthread


--
Darcy Buskermolen
Wavefire Technologies Corp.

http://www.wavefire.com
ph: 250.717.0200
fx: 250.763.1759

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


Reply With Quote
  #5  
Old   
Jim C. Nasby
 
Posts: n/a

Default Re: [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-15-2005 , 07:04 PM



On Mon, Aug 15, 2005 at 10:34:59AM -0700, Darcy Buskermolen wrote:
Quote:
On Sunday 14 August 2005 21:30, Bruce Momjian wrote:
Jim C. Nasby wrote:
I believe that thread safety isn't supported on *BSD. I know that
there's issues with building in python support if python was compiled
with threads enabled.

On Fri, Aug 05, 2005 at 02:47:27PM +0200, rmkml wrote:
Hi,

I have an error when postgresql 803 compile with flag :

./configure --prefix=/usr/local/postgres --enable-thread-safety

...
gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
initdb.o -L../../../src/port -lpgport -L../../../src/interfaces/libpq
-lpq -L../../../src/port -Wl,-R/usr/local/postgres/lib -lpgport -lz
-lreadline -lcrypt -lcompat -lm -lutil -o initdb
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_sigmask'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'

No, I think it should work. If it passes the thread tests in configure,
it should compile. I am unsure why it is failing.

it's missing a link to the threading libs -pthread
http://lnk.nu/pgbuildfarm.org/3ks.pl

Note that the build before (without --enable-thread-safety) at least
made it through configure.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby (AT) pervasive (DOT) com
Pervasive Software http://pervasive.com 512-569-9461

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


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

Default Re: [BUGS] Freebsd410 and postgresql803: src/port compile error - 08-15-2005 , 07:41 PM



Jim C. Nasby wrote:
Quote:
it's missing a link to the threading libs -pthread

http://lnk.nu/pgbuildfarm.org/3ks.pl

Note that the build before (without --enable-thread-safety) at least
made it through configure.
Well, configure never completed:

checking thread safety of required library functions... no onfigure: error:
*** Thread test program failed. Your platform is not thread-safe.
*** Check the file 'config.log'for the exact reason.
***
*** You can use the configure option --enable-thread-safety-force
*** to force threads to be enabled. However, you must then run
*** the program in src/tools/thread and add locking function calls
*** to your applications to guarantee thread safety.

because the configure thread test failed.

--
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 4: 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.