Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Xiaobo Gu
Hi, I have a talk with MinGW developer, because I am not so familiar with the UNIX configure and build system, can you help to resolve the problem please. jon_y: XiaoboGu: try actually reading config.log 20:18 jon_y: look for winsock2.h in it 20:18 jon_y: you should find it, along with the

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Xiaobo Gu
On Thu, Jan 27, 2011 at 9:14 PM, Xiaobo Gu guxiaobo1...@gmail.com wrote: On Thu, Jan 27, 2011 at 8:56 PM, Xiaobo Gu guxiaobo1...@gmail.com wrote: On Thu, Jan 27, 2011 at 8:51 PM, Andrew Dunstan and...@dunslane.net wrote: On 01/27/2011 07:41 AM, Xiaobo Gu wrote: On Thu, Jan 27, 2011 at 8:37

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Robert Haas
On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Gu guxiaobo1...@gmail.com wrote: 20:25 jon_y: please contact psql and ask for a list of accept() implementations checked It looks like we check each argument and the return type for a couple of possibilities: argument 1 can be int or unsigned int

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Andrew Dunstan
On 01/27/2011 08:51 AM, Robert Haas wrote: On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Guguxiaobo1...@gmail.com wrote: 20:25jon_y: please contact psql and ask for a list of accept() implementations checked It looks like we check each argument and the return type for a couple of possibilities:

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Xiaobo Gu
On Thu, Jan 27, 2011 at 10:01 PM, Andrew Dunstan and...@dunslane.net wrote: On 01/27/2011 08:51 AM, Robert Haas wrote: On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Guguxiaobo1...@gmail.com  wrote: 20:25jon_y: please contact psql and ask for a list of accept() implementations checked It looks

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Andrew Dunstan
On 01/27/2011 09:19 AM, Xiaobo Gu wrote: On Thu, Jan 27, 2011 at 10:01 PM, Andrew Dunstanand...@dunslane.net wrote: On 01/27/2011 08:51 AM, Robert Haas wrote: On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Guguxiaobo1...@gmail.comwrote: 20:25jon_y: please contact psql and ask for a list of

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Xiaobo Gu
On Thu, Jan 27, 2011 at 10:44 PM, Xiaobo Gu guxiaobo1...@gmail.com wrote: On Thu, Jan 27, 2011 at 9:32 PM, Andrew Dunstan and...@dunslane.net wrote: On 01/27/2011 07:56 AM, Xiaobo Gu wrote: Clearly there is a problem, or configure would have worked. You need to answer the question I asked

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-27 Thread Andrew Dunstan
On 01/27/2011 09:55 AM, Xiaobo Gu wrote: The above combinition does not pass, another question, Because I just want to build the client side of PostgreSQL, can I ignore this error and let the configure pass You can try, but I at least am only interested in getting the whole package to

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-25 Thread Xiaobo Gu
Hi, I have successfully built 32bit PostgreSQL 9.0.2 using 32bit GCC 4.5.0 and MinGW packaged by tdm64-gcc-4.5.1 from http://tdm-gcc.tdragon.net/download. But for 64bit there is only 4.5.1 GCC, which is not stable now, and the configure script does not pass. $ configure --without-zlib checking

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-25 Thread Xiaobo Gu
I also tried 64bit 4.5.2 GCC shipped with Rtools, the same error checking types of arguments for accept()... configure: error: could not determin e argument types On Tue, Jan 25, 2011 at 7:03 PM, Xiaobo Gu guxiaobo1...@gmail.com wrote: Hi, I have successfully built 32bit PostgreSQL 9.0.2

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-25 Thread Andrew Dunstan
On 01/25/2011 06:40 AM, Xiaobo Gu wrote: I also tried 64bit 4.5.2 GCC shipped with Rtools, the same error checking types of arguments for accept()... configure: error: could not determin e argument types I don't have this setup, soi I can't debug it. Neither does anyone else I know of. I

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-25 Thread Andrew Dunstan
On 01/25/2011 09:15 AM, Xiaobo Gu wrote: Hi Andrew, The config.log is as following So what is the declaration of accept at d:/amber/devtool/rtools/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/winsock2.h:1035:37: ? cheers andrew -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-24 Thread Andrew Dunstan
On 01/23/2011 11:11 PM, Xiaobo Gu wrote: Yes, I want it working on 64 bit Windows Server 2003 R2 and 64 bit Windows 7 home basic. Which version of 32bit MinGW do you use, I use the one shipped with Rtools212.exe which is downloaded from http://www.murdoch-sutherland.com/Rtools, and there is

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-24 Thread Xiaobo Gu
Hi, According to http://www.pgbuildfarm.org/cgi-bin/show_status.pl, only GCC 3.4.2 and 4.5.0 have successfully build PostgreSQL,and only under 32 bit Windows environment, and I guess from http://archives.postgresql.org/pgsql-hackers/2010-12/msg02073.php that you mean we should only the above two

[HACKERS] 答复: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread XiaoboGu
Hi I am not so familiar with the PostgreSQL development team, but using a MinGW compatible client side is important to us, so I'd like to start doing it myself if any of you experts can help. Cheers Xiaobo Gu -邮件原件- 发件人: Andrew Dunstan [mailto:and...@dunslane.net] 发送时间: 2011年1月21日

[HACKERS] Re: 答复: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread Xiaobo Gu
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

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread Andrew Dunstan
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

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread Xiaobo Gu
Yes, I want it working on 64 bit Windows Server 2003 R2 and 64 bit Windows 7 home basic. Which version of 32bit MinGW do you use, I use the one shipped with Rtools212.exe which is downloaded from http://www.murdoch-sutherland.com/Rtools, and there is no chmod. xiaobo gu 2011/1/24 Andrew

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread Xiaobo Gu
Hi, I download the lastest 32bit MinGW from sourceforge, and found there are *NIX like tools such as chmod and ls in the MinGW\msys\1.0\bin directory. But the make process does not success, This test is done on my 32bit Windows XP SP3 Here are the messages: D:\devproj\postgresql-9.0.2sh

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-23 Thread Xiaobo Gu
And there are two versions of gcc installed on my WinXP PRO SP3, 3.4.4 is the one used to the above test D:\devproj\postgresql-9.0.2gcc -v Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs Configured with: /home/cstrauss/build/gcc3/gcc-3.4.4/configure --prefix=/usr --s ysconfdir=/etc

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-21 Thread Magnus Hagander
On Fri, Jan 21, 2011 at 04:06, Andrew Dunstan and...@dunslane.net wrote: On 01/20/2011 09:52 PM, Robert Haas wrote: On Thu, Jan 20, 2011 at 10:17 AM, XiaoboGuguxiaobo1...@gmail.com  wrote: Hi,        We are using R to work with 64bit PostgreSQL client libraries, and to avoid compiler

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-21 Thread Andrew Dunstan
On 01/21/2011 05:24 AM, Magnus Hagander wrote: That advice needs to be taken with a grain or two of salt. First, while you probably should not use Cygwin postgres as a production server, it is still the best way to run psql on Windows that I know of. And second, the stuff Yeah, I agree for

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-21 Thread Magnus Hagander
On Fri, Jan 21, 2011 at 16:24, Andrew Dunstan and...@dunslane.net wrote: On 01/21/2011 05:24 AM, Magnus Hagander wrote: That advice needs to be taken with a grain or two of salt. First, while you probably should not use Cygwin postgres as a production server, it is still the best way to

[HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-20 Thread XiaoboGu
Hi, We are using R to work with 64bit PostgreSQL client libraries, and to avoid compiler compatibility issues the R development community suggest using the same compiler for both the main application and dlls. So do you have any experience to build libpq.dll using MinGW 64 bit. Thanks.

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-20 Thread Robert Haas
On Thu, Jan 20, 2011 at 10:17 AM, XiaoboGu guxiaobo1...@gmail.com wrote: Hi,        We are using R to work with 64bit PostgreSQL client libraries, and to avoid compiler compatibility issues the R development community suggest using the same compiler for both the main application and dlls. So

Re: [HACKERS] Is there a way to build PostgreSQL client libraries with MinGW

2011-01-20 Thread Andrew Dunstan
On 01/20/2011 09:52 PM, Robert Haas wrote: On Thu, Jan 20, 2011 at 10:17 AM, XiaoboGuguxiaobo1...@gmail.com wrote: Hi, We are using R to work with 64bit PostgreSQL client libraries, and to avoid compiler compatibility issues the R development community suggest using the same compiler