Thread: Cannot compile Pg 9.0.2 with MinGW under Windows

Cannot compile Pg 9.0.2 with MinGW under Windows

From
Pavel Golub
Date:
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

--
With best wishes,
 Pavel                          mailto:pavel@gf.microolap.com
Attachment

Re: Cannot compile Pg 9.0.2 with MinGW under Windows

From
Andrew Dunstan
Date:

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


Re: Cannot compile Pg 9.0.2 with MinGW under Windows

From
Pavel Golub
Date:
Thanks, Andrew. I'll check my environment one more time.


You wrote:



AD> 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


AD> Your gcc doesn't look like others we have:

AD> You have:

AD>     gcc (GCC) 3.4.4 (msys special)
AD>     Copyright (C) 2004 Free Software Foundation, Inc.
AD>     This is free software; see the source for copying conditions. There
AD>     is NO
AD>     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
AD>     PURPOSE.

AD>     configure:3252: $? = 0
AD>     configure:3259: gcc -v >&5
AD>     Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs
AD>     Configured with: /home/cstrauss/build/gcc3/gcc-3.4.4/configure
AD>     --prefix=/usr --sysconfdir=/etc --localstatedir=/var
AD>     --infodir=/share/info --mandir=/share/man --libexecdir=/lib
AD>     --enable-languages=c,c++ --disable-nls --enable-threads=posix
AD>     --enable-sjlj-exceptions --enable-hash-synchronization
AD>     --enable-libstdcxx-debug --with-newlib
AD>     Thread model: posix



AD> Buildfarm narwhal has:

AD>     gcc.exe (GCC) 3.4.2 (mingw-special)
AD>     Copyright (C) 2004 Free Software Foundation, Inc.
AD>     This is free software; see the source for copying conditions. There is NO
AD>     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AD>     configure:3252: $? = 0
AD>     configure:3259: gcc -v>&5
AD>     Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
AD>     Configured with: ../gcc/configure --with-gcc --with-gnu-ld
AD> --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
AD> --enable-threads --disable-nls
AD> --enable-languages=c,c++,f77,ada,objc,java
AD> --disable-win32-registry --disable-shared --enable-sjlj-exceptions
AD> --enable-libgcj --disable-java-awt --without-x
AD> --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter
AD> --enable-hash-synchronization --enable-libstdcxx-debug
AD>     Thread model: win32
AD>     gcc version 3.4.2 (mingw-special)





AD> Buildfarm frogmouth has:

AD>     gcc.exe (GCC) 4.5.0
AD>     Copyright (C) 2010 Free Software Foundation, Inc.
AD>     This is free software; see the source for copying conditions. There is NO
AD>     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AD>     configure:3252: $? = 0
AD>     configure:3259: gcc -v>&5
AD>     Using built-in specs.
AD>     COLLECT_GCC=c:\mingw\bin\gcc.exe
AD>    
AD> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe
AD>     Target: mingw32
AD>     Configured with: ../gcc-4.5.0/configure
AD> --enable-languages=c,c++,ada,fortran,objc,obj-c++
AD> --disable-sjlj-exceptions --with-dwarf2 --enable-shared
AD> --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug
AD> --enable-version-specific-runtime-libs --disable-werror --build=mingw32 --prefix=/mingw
AD>     Thread model: win32


AD>     gcc version 4.5.0 (GCC)




AD> cheers

AD> andrew



-- 
With best wishes,Pavel                          mailto:pavel@gf.microolap.com