From: Matt England <mengland@mengland.net>
To: pgsql-ports@postgresql.org
To: mingw-users@lists.sourceforge.net
Cc: mengland@mengland.net
Subject: How to build thread-safe postgresql 8.x on mingw?
Date: Mon, 06 Mar 2006 10:14:33 -0600
Message-ID: <6.1.2.0.2.20060306100540.04612f08@127.0.0.1> (raw)
(I'm cross-posting this to pgsql-ports and mingw-users; I hope that's ok.)
Summary:
I'm trying to get posgresql-base-8.1.3 to build on my mingw/msys (1.0.11
system; uname -a below) using "thread safety."
Am I going to need something like
<http://sources.redhat.com/pthreads-win32/; to accomplish this task? Is
this *only* alternative; are there any options?
(I don't yet know about how I'm going to distribute this software, ie, how
the library relationships will work b/w pthreads-win32 and postgresql, but
I'll figure it out or report back here if I can't. Any tips/pointers are
welcome. I plan to follow LGPL to the letter if I do this.)
Details:
$ ./configure --enable-thread-safety --prefix=/cgrid/local/postgresql
--without-zlib
[...]
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
checking for the pthreads library -lpthreadGC2... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
configure: error: pthread.h not found, required for --enable-thread-safety
$ uname -a
MINGW32_NT-5.1 MATTS-LAPTOP 1.0.11(0.46/3/2) 2004-04-30 18:55 i686 unknown
I found:
http://sources.redhat.com/pthreads-win32/
as per:
http://sourceforge.net/mailarchive/message.php?msg_id=11243465
-Matt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: mengland@mengland.net, mingw-users@lists.sourceforge.net
Subject: Re: How to build thread-safe postgresql 8.x on mingw?
In-Reply-To: <6.1.2.0.2.20060306100540.04612f08@127.0.0.1>
References: <6.1.2.0.2.20060306100540.04612f08@127.0.0.1>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox