Re: Thread code not vpath-safe

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Thread code not vpath-safe
Дата
Msg-id 20040426172732.GC28317@dcc.uchile.cl
обсуждение исходный текст
Ответ на Thread code not vpath-safe  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: Thread code not vpath-safe  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Mon, Apr 26, 2004 at 01:15:13PM -0400, Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > The thread testing program is not nice to a vpath build.  I see this
> > error:

> > (Basically what I'm doing is create an empty directory, cd to it and
> > then call ../sourcedir/configure --enable-thread-safety)
> 
> I tried and couldn't get it to fail.

Whoa, seems I'm the irreproducible-bug-reporter now :-(

> Do you have this line at the bottom of configure.in:
> 
>     if ! $srcdir/src/tools/thread/thread_test >&5

Yes:

if ! $srcdir/src/tools/thread/thread_test >&5
then    rm -f $srcdir/src/Makefile.global       echo "no"       echo       $srcdir/src/tools/thread/thread_test
echo      AC_MSG_ERROR([Thread test program failed.  Your platform is not thread-safe.])
 
fi


I tried it with:

mkdir /tmp/thr
cd /tmp/thr
~/CVS/pgsql/source/00orig/configure --enable-thread-safety

[lots of output, and then:]
checking for gmake... gmake
checking thread safety of required library functions... Makefile:13: ../../../src/Makefile.global: No such file or
directory
gmake: *** No rule to make target `../../../src/Makefile.global'.  Stop.
configure: error: Can not clean thread test directory.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No necesitamos banderas
No reconocemos fronteras"                  (Jorge González)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Usability, MySQL, Postgresql.org, gborg, contrib, etc.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: FW: getting a crash during initdb