From: | Andre Mikulec <andre_mikulec(at)hotmail(dot)com> |
---|---|
To: | "pgsql-in-general(at)postgresql(dot)org" <pgsql-in-general(at)postgresql(dot)org> |
Subject: | pl/r extension trying to compile with mingw64 |
Date: | 2016-04-06 06:23:31 |
Message-ID: | CO2PR03MB2407748D842805160450B6A59C9F0@CO2PR03MB2407.namprd03.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-in-general |
All,
I am following up on this issue here.
https://github.com/postgres-plr/plr/issues/4
I am trying to compile the PostgreSQL extension pl/r using mingw64.
I am always getting this message: " #error "DLSUFFIX must be defined"
I investigated and found outthe case seems that this variable DLSUFFIX is
set in Makefile.global bu I only have a Makefile.global.in
Am I missing a step. Is there something else I need to do, be?
The postrgreSQL code is in
C:\Users\AnonymousUser\postgresql-9.5.1
I had succufully compiled PostgreSQL earlier in the day.
The comilation took about 30 minutes.
from 'make', error messages are below.
Thank you,
Andre Mikulec
Andre_Mikulec(at)Hotmail(dot)com
MSYS
AnonymousUser(at)ANONYMOUSX /c/Users/AnonymousUser/postgresql-9.5.1/contrib/plr
$ make
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-
after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno
-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -I/c/Users/AnonymousUs
er/Desktop/R-3.2.4/include -I. -I. -I../../src/include -I./src/include/port/win3
2 -DEXEC_BACKEND "-I../../src/include/port/win32" -c -o pg_backend_support.o p
g_backend_support.c
In file included from ../../src/include/postgres.h:47:0,
from plr.h:38,
from pg_backend_support.c:33:
../../src/include/c.h:299:33: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'uint128'
pg_backend_support.c:296:2: error: #error "DLSUFFIX must be defined to compile t
his file."
pg_backend_support.c: In function 'expand_dynamic_library_name':
pg_backend_support.c:333:37: error: 'DLSUFFIX' undeclared (first use in this fun
ction)
pg_backend_support.c:333:37: note: each undeclared identifier is reported only o
nce for each function it appears in
make: *** [pg_backend_support.o] Error 1
DOS SHELL
C:\Users\AnonymousUser\postgresql-9.5.1\contrib\plr>make
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -Ic:/Users/AnonymousUser/Desktop/R-3.2.4/include -I. -I. -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../../src/include/port/win32" -c -o pg_backend_support.o pg_backend_support.c
In file included from ../../src/include/postgres.h:47:0,
from plr.h:38,
from pg_backend_support.c:33:
../../src/include/c.h:299:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint128'
pg_backend_support.c:296:2: error: #error "DLSUFFIX must be defined to compile this file."
pg_backend_support.c: In function 'expand_dynamic_library_name':
pg_backend_support.c:333:37: error: 'DLSUFFIX' undeclared (first use in this function)
pg_backend_support.c:333:37: note: each undeclared identifier is reported only once for each function it appears in
make: *** [pg_backend_support.o] Error 1
C:\Users\AnonymousUser\postgresql-9.5.1\contrib\plr>
Thank your,
Andre Mikulec
Andre_Mikulec(at)Hotmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Srihari Sriraman | 2016-04-21 16:36:39 | On the building of a PostgreSQL cluster |
Previous Message | Harsh Singh | 2016-03-30 14:14:05 | Re: Any process to Initialize the Postgresql DB [postgresql-9.2.4-1-linux-x64.run] with root [super] user on Linux/RHEL 7.x : |