Re: problem with compiling beta3 on mingw32+WinXP

Lists: pgsql-hackers
From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: problem with compiling beta3 on mingw32+WinXP
Date: 2011-07-25 11:14:45
Message-ID: CAOWY8=ZfPjER+tpPcThaoM=4gGgDrHE145tftxe5N21Vopmz-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi.

When i try to compile postgresql-beta3 on mingw32 ./configure pass ok,
but there is error when i do "make":

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -I../../src/port
-DFRONTEND -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../
../src/include/port/win32" -c -o crypt.o crypt.c
In file included from crypt.c:44:0:
../../src/include/c.h:284:2: error: #error must have a working 64-bit integer da
tatype
In file included from ../../src/include/c.h:851:0,
from crypt.c:44:
../../src/include/port.h:390:0: warning: "fseeko" redefined
../../src/include/pg_config_os.h:228:0: note: this is the location of the previo
us definition
../../src/include/port.h:391:0: warning: "ftello" redefined
../../src/include/pg_config_os.h:229:0: note: this is the location of the previo
us definition
make[2]: *** [crypt.o] Error 1
make[2]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src/port'
make[1]: *** [all-port-recurse] Error 2
make[1]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src'
make: *** [all-src-recurse] Error 2

Make version 3.81.
Status file included.
What is wrong ?

------------
pasman

Attachment Content-Type Size
config.log.zip application/zip 23.3 KB

From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with compiling beta3 on mingw32+WinXP
Date: 2011-07-25 18:56:52
Message-ID: CAOWY8=Z5uQknN3d79MqBu9svDSiv3_F6zZdndwXiu3gycjyZDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

After googling i found that mingw's gcc works with 64 bit integers.
But printf is incompatible :( . Possible workaround: include
inttypes.h , define macros and convert printf strings:

printf("%" LL,(long long)10000000000)

2011/7/25, pasman pasmański <pasman(dot)p(at)gmail(dot)com>:
> Hi.
>
> When i try to compile postgresql-beta3 on mingw32 ./configure pass ok,
> but there is error when i do "make":
>
>
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv
> -I../../src/port
> -DFRONTEND -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND
> "-I../
> ../src/include/port/win32" -c -o crypt.o crypt.c
> In file included from crypt.c:44:0:
> ../../src/include/c.h:284:2: error: #error must have a working 64-bit
> integer da
> tatype
> In file included from ../../src/include/c.h:851:0,
> from crypt.c:44:
> ../../src/include/port.h:390:0: warning: "fseeko" redefined
> ../../src/include/pg_config_os.h:228:0: note: this is the location of the
> previo
> us definition
> ../../src/include/port.h:391:0: warning: "ftello" redefined
> ../../src/include/pg_config_os.h:229:0: note: this is the location of the
> previo
> us definition
> make[2]: *** [crypt.o] Error 1
> make[2]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src/port'
> make[1]: *** [all-port-recurse] Error 2
> make[1]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src'
> make: *** [all-src-recurse] Error 2
>
> Make version 3.81.
> Status file included.
> What is wrong ?
>
>
> ------------
> pasman
>

--
------------
pasman


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with compiling beta3 on mingw32+WinXP
Date: 2011-07-25 19:18:11
Message-ID: 4E2DC173.3050003@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 07/25/2011 02:56 PM, pasman pasmański wrote:
> After googling i found that mingw's gcc works with 64 bit integers.
> But printf is incompatible :( . Possible workaround: include
> inttypes.h , define macros and convert printf strings:
>
> printf("%" LL,(long long)10000000000)

Postgres builds under mingw and runs perfectly well on 32 bit Windows
XP. See
<http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=frogmouth&dt=2011-07-25%2006%3A30%3A01>
for example.

(Also, please avoid top-posting).

cheers

andrew


From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with compiling beta3 on mingw32+WinXP
Date: 2011-07-26 17:46:03
Message-ID: CAOWY8=Yih=8BjaXqdHEw_zr4DrHHxUWebFQ9th7vQjdndcaecQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

After reinstalling mingw is ok.

2011/7/25, pasman pasmański <pasman(dot)p(at)gmail(dot)com>:
> After googling i found that mingw's gcc works with 64 bit integers.
> But printf is incompatible :( . Possible workaround: include
> inttypes.h , define macros and convert printf strings:
>
> printf("%" LL,(long long)10000000000)
>
> 2011/7/25, pasman pasmański <pasman(dot)p(at)gmail(dot)com>:
>> Hi.
>>
>> When i try to compile postgresql-beta3 on mingw32 ./configure pass ok,
>> but there is error when i do "make":
>>
>>
>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
>> -Wdeclaration-after-statement
>> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv
>> -I../../src/port
>> -DFRONTEND -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND
>> "-I../
>> ../src/include/port/win32" -c -o crypt.o crypt.c
>> In file included from crypt.c:44:0:
>> ../../src/include/c.h:284:2: error: #error must have a working 64-bit
>> integer da
>> tatype
>> In file included from ../../src/include/c.h:851:0,
>> from crypt.c:44:
>> ../../src/include/port.h:390:0: warning: "fseeko" redefined
>> ../../src/include/pg_config_os.h:228:0: note: this is the location of the
>> previo
>> us definition
>> ../../src/include/port.h:391:0: warning: "ftello" redefined
>> ../../src/include/pg_config_os.h:229:0: note: this is the location of the
>> previo
>> us definition
>> make[2]: *** [crypt.o] Error 1
>> make[2]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src/port'
>> make[1]: *** [all-port-recurse] Error 2
>> make[1]: Leaving directory `/home/rosinkr1/postgresql-9.1beta3/src'
>> make: *** [all-src-recurse] Error 2
>>
>> Make version 3.81.
>> Status file included.
>> What is wrong ?
>>
>>
>> ------------
>> pasman
>>
>
>
> --
> ------------
> pasman
>

--
------------
pasman