Re: Cannot compile Pg 9.0.2 with MinGW under Windows - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Cannot compile Pg 9.0.2 with MinGW under Windows
Date
Msg-id 4D13CCC8.2040702@dunslane.net
Whole thread Raw
In response to Cannot compile Pg 9.0.2 with MinGW under Windows  (Pavel Golub <pavel@microolap.com>)
Responses Re: Cannot compile Pg 9.0.2 with MinGW under Windows
List pgsql-hackers

On 12/23/2010 07:11 AM, Pavel Golub wrote:
> Hello, Pgsql-bugs.
>
> Tried to use MinGw under windows to build client libraries at least.
> However failed on "./configure --withou-zlib" stage.
>
> Please find attached log file, stdout and stderr outputs.
>
> The main problem here I suppose is
> "configure: WARNING:<someheader>.h: present but cannot be compiled"
>
> Please five me advice on this.
> Thanks in advance


Your gcc doesn't look like others we have:

You have:
   gcc (GCC) 3.4.4 (msys special)   Copyright (C) 2004 Free Software Foundation, Inc.   This is free software; see the
sourcefor copying conditions.  There   is NO   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
   configure:3252: $? = 0   configure:3259: gcc -v >&5   Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs
Configuredwith: /home/cstrauss/build/gcc3/gcc-3.4.4/configure   --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--infodir=/share/info--mandir=/share/man --libexecdir=/lib   --enable-languages=c,c++ --disable-nls
--enable-threads=posix  --enable-sjlj-exceptions --enable-hash-synchronization   --enable-libstdcxx-debug --with-newlib
 Thread model: posix
 



Buildfarm narwhal has:
   gcc.exe (GCC) 3.4.2 (mingw-special)   Copyright (C) 2004 Free Software Foundation, Inc.   This is free software; see
thesource for copying conditions.  There is NO   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
   configure:3252: $? = 0   configure:3259: gcc -v>&5   Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32
--prefix=/mingw--enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--disable-shared--enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug--enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug   Thread model: win32
 gcc version 3.4.2 (mingw-special)
 





Buildfarm frogmouth has:
   gcc.exe (GCC) 4.5.0   Copyright (C) 2010 Free Software Foundation, Inc.   This is free software; see the source for
copyingconditions.  There is NO   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
   configure:3252: $? = 0   configure:3259: gcc -v>&5   Using built-in specs.   COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe  Target: mingw32   Configured with:
../gcc-4.5.0/configure--enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2
--enable-shared--enable-libgomp --disable-win32-registry --enable-libstdcxx-debug
--enable-version-specific-runtime-libs--disable-werror --build=mingw32 --prefix=/mingw   Thread model: win32
 

   gcc version 4.5.0 (GCC)




cheers

andrew


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Streaming replication as a separate permissions
Next
From: Tom Lane
Date:
Subject: Re: Streaming replication as a separate permissions