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

Re: BUG #3728: pthread autoconf hangs

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: heasley <heas(at)shrubbery(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3728: pthread autoconf hangs
Date: 2007-11-08 10:04:01
Message-ID: 4732DF11.2030904@sun.com (view raw or flat)
Thread:
Lists: pgsql-bugs
heasley napsal(a):
> The following bug has been logged online:
> 
> Bug reference:      3728
> Logged by:          heasley
> Email address:      heas(at)shrubbery(dot)net
> PostgreSQL version: 8.1.10
> Operating system:   sparc-sun-solaris2.9 gcc-4.1.1
> Description:        pthread autoconf hangs
> Details: 
> 
> If the autoconf script ends-up with a CFLAGS that includes pthreads knobs,
> for example -DREENTRANT, it will try to find pthread_join() without linking
> in libpthread (ie: without gcc -pthread). The result is a conftest that
> hangs because it has some half-baked stub for (among others)
> pthread_create() that does nothing and thus it spins waiting for the
> thread{1,2}_done variables to be set by a threads that do not exist.
> 
> squashing the result of the first check in config/acx_pthread.m4 allows it
> find the proper results.
> 
> Sorry, I do not know the proper fix given all the platforms that need to
> coexist.

Please, can you provide ./configure cmd line and CFLAGS and other related 
setting? Also some error output could help. Another question is gcc 4.1 is not 
in Solaris 9. How did you install this version?


		Zdenek


In response to

Responses

pgsql-bugs by date

Next:From: Andrius GlozeckasDate: 2007-11-08 11:23:39
Subject: BUG #3729: Query doesn't return the right answer
Previous:From: Tom LaneDate: 2007-11-07 23:04:13
Subject: Re: Planner problems in 8.2.4 and 8.2.5 (was: Possible planner bug/regression introduced in 8.2.5)

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