Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2AD0B1336FA7 for ; Sun, 23 Jan 2011 23:45:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 54541-03 for ; Mon, 24 Jan 2011 03:45:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.122]) by mail.postgresql.org (Postfix) with ESMTP id 3C9971336B42 for ; Sun, 23 Jan 2011 23:45:28 -0400 (AST) X-Authority-Analysis: v=1.1 cv=3jtQBdTzPyV+fq4oCU/u8ZPrJJGN11HvhaDVxyWhycI= c=1 sm=0 a=APM51ILC8rIA:10 a=_l4uJm6h9gAA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=l7Y9EBvAAAAA:8 a=u7cktpNz9a3eWQO3PFoA:9 a=Xl6Vncoji0vtJ29FHn4A:7 a=NIaDbjdnlNSgQPIs_WxkKWscA_MA:4 a=mFyHDrcPJccA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:43332] helo=[192.168.10.104]) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id FD/CA-02631-8D5FC3D4; Mon, 24 Jan 2011 03:45:28 +0000 Message-ID: <4D3CF5D7.1030107@dunslane.net> Date: Sun, 23 Jan 2011 22:45:27 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: Xiaobo Gu CC: Magnus Hagander , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW References: <001b01cbb8b5$3ba547b0$b2efd710$@com> <4D38F81E.9050508@dunslane.net> <4D39A53E.2040005@dunslane.net> <001201cbbb0e$6edc2ad0$4c948070$@com> In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/2268 X-Sequence-Number: 180105 On 01/23/2011 10:09 PM, Xiaobo Gu wrote: > Here is my plan, > 1. To make the configurate script pass: > Currently MinGW does not provide chmod, but on Windows I think this > can be ignored now, we all use Admin > users to do the work. > 2. To make a pg-client Makefile target, can you help wich which c > files should be compiled and linked into dlls and lib file. > Why do you need to do this? Postgres can be built as is today on Mingw. Not just the client libraries, the whole server too. It does not need to be an Adminstrative user, and you should by no means assume that the user building Postgres will be an administrator, nor that the user running Postgres will be. My 32 bit Mingw certainly understands chmod. There are machines doing this every day, several times a day. See - frogmouth and narwhal are examples. We've had working Mingw builds for quite a few years now. The only issue is building 64bit binaries. So get the build working for 32bit, then try switching to the 64bit compiler and see what breaks. If all you need is the client library, build with no zlib or any other third party libraries. cheers andrew