compilation de postgresql 9.3.1 sur Windows (64 bits)

From: Marie-Claude QUIDOZ <Marie-Claude(dot)QUIDOZ(at)cefe(dot)cnrs(dot)fr>
To: "pgsql-fr-generale(at)postgresql(dot)org" <pgsql-fr-generale(at)postgresql(dot)org>
Subject: compilation de postgresql 9.3.1 sur Windows (64 bits)
Date: 2013-11-18 17:51:11
Message-ID: E751A9C68C7D3049B0ECF2B2432694D102F2254D7CB3@ZZMAIL.newcefe.newage.fr
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale


Bonjour

Je souhaiterai compiler la version de postgresql-9.3.1 pour pouvoir ensuite compiler et tester deux FDW qui m'intéressent (sqlite_fdw et et www_fdw). J'ai suivi la doc faite dans postgresql mais j'ai du rater quelque chose car ca ne marche pas. Je vous mets le fichier de trace du configure.

S vous avez un conseil à me donner ...

A+

MCQ

Remarque : j'ai installe MInGW avec l'installer disponible ici http://sourceforge.net/projects/mingw/files/

$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i686-pc-msys

1
$ make
make -C src all
make[1]: Entering directory `/home/quidoz/postgresql-9.3.1/src'
make -C common all
make[2]: Entering directory `/home/quidoz/postgresql-9.3.1/src/common'
make -C ../backend submake-errcodes
make[3]: Entering directory `/home/quidoz/postgresql-9.3.1/src/backend'
make[3]: Nothing to be done for `submake-errcodes'.
make[3]: Leaving directory `/home/quidoz/postgresql-9.3.1/src/backend'
make[2]: Leaving directory `/home/quidoz/postgresql-9.3.1/src/common'
make -C port all
make[2]: Entering directory `/home/quidoz/postgresql-9.3.1/src/port'
make -C ../backend submake-errcodes
make[3]: Entering directory `/home/quidoz/postgresql-9.3.1/src/backend'
make[3]: Nothing to be done for `submake-errcodes'.
make[3]: Leaving directory `/home/quidoz/postgresql-9.3.1/src/backend'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statemen
-Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasi
g -fwrapv -fexcess-precision=standard -I../../src/port -DFRONTEND -I../../src/i
clude -I./src/include/port/win32 -DEXEC_BACKEND "-I../../src/include/port/win3
" -c -o dirmod.o dirmod.c
In file included from ../../src/include/c.h:1019:0,
from ../../src/include/postgres_fe.h:25,
from dirmod.c:21:
../../src/include/port.h:316:0: warning: "stat" redefined [enabled by default]
#define stat(a,b) pgwin32_safestat(a,b)
^
In file included from ../../src/include/port.h:313:0,
from ../../src/include/c.h:1019,
from ../../src/include/postgres_fe.h:25,
from dirmod.c:21:
c:\program_files\mingw\include\sys\stat.h:300:0: note: this is the location of
he previous definition
#define stat _stat
^
dirmod.c: In function 'rmtree':
dirmod.c:489:3: warning: passing argument 2 of 'pgwin32_safestat' from incompat
ble pointer type [enabled by default]
if (lstat(pathbuf, &statbuf) != 0)
^
In file included from ../../src/include/c.h:1019:0,
from ../../src/include/postgres_fe.h:25,
from dirmod.c:21:
../../src/include/port.h:314:12: note: expected 'struct _stat64i32 *' but argum
nt is of type 'struct stat *'
extern int pgwin32_safestat(const char *path, struct stat * buf);
^
dirmod.c: At top level:
dirmod.c:564:1: error: conflicting types for 'pgwin32_safestat'
pgwin32_safestat(const char *path, struct stat * buf)
^
In file included from ../../src/include/c.h:1019:0,
from ../../src/include/postgres_fe.h:25,
from dirmod.c:21:
../../src/include/port.h:314:12: note: previous declaration of 'pgwin32_safesta
' was here
extern int pgwin32_safestat(const char *path, struct stat * buf);
^
dirmod.c: In function 'pgwin32_safestat':
dirmod.c:569:2: warning: implicit declaration of function 'stat' [-Wimplicit-fu
ction-declaration]
r = stat(path, buf);
^
make[2]: *** [dirmod.o] Error 1
make[2]: Leaving directory `/home/quidoz/postgresql-9.3.1/src/port'
make[1]: *** [all-port-recurse] Error 2
make[1]: Leaving directory `/home/quidoz/postgresql-9.3.1/src'
make: *** [all-src-recurse] Error 2

-----------------------------
Marie-Claude QUIDOZ
CEFE / CNRS
1919, Route de Mende
34293 Montpellier Cedex 5
Tel : 04 67 61 32 39
Marie-Claude(dot)Quidoz(at)cefe(dot)cnrs(dot)fr<mailto:Marie-Claude(dot)Quidoz(at)cefe(dot)cnrs(dot)fr>

Attachment Content-Type Size
trace_configure application/octet-stream 12.2 KB
unknown_filename text/plain 76 bytes

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Daniel Verite 2013-11-18 19:08:53 Re: compilation de postgresql 9.3.1 sur Windows (64 bits)
Previous Message damien 2013-11-13 07:46:54 Appel à Orateurs pour le FOSDEM 2014