jconway / plr

PL/R - R Procedural Language for PostgreSQL
http://www.joeconway.com
90 stars 41 forks source link

Postgres 9.3 support #6

Closed mosesonline closed 10 years ago

mosesonline commented 10 years ago

Will there be a Postgres 9.3 support, maybe also for windows 64-bit?

jconway commented 10 years ago

As far as I know, the current development tip in github works fine with 9.3. I will package up an official release as soon as I get a chance, including hopefully a precompiled windows dll (64 and 32 bit).

marcionicolau commented 10 years ago

Hi @jconway, I'm trying to compile the last version o plr from github for PostgreSQL 9.3 but I got this error...

cc -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -arch x86_64 -I"." -I"-I/Library/Frameworks/R.framework/Resources/include" -I/Library/Frameworks/R.framework/Resources/include -I. -I. -I/usr/local/Cellar/postgresql/9.3.0/include/server -I/usr/local/Cellar/postgresql/9.3.0/include/internal -I/usr/include/libxml2 -DPKGLIBDIR=\"/usr/local/Cellar/postgresql/9.3.0/lib\" -DDLSUFFIX=\".so\" -DR_HOME_DEFAULT=\"/Library/Frameworks/R.framework/Resources\" -c -o plr.o plr.c plr.c: In function ‘plr_trigger_handler’: plr.c:676: warning: implicit declaration of function ‘HeapTupleHeaderSetDatumLength’ plr.c:676: warning: implicit declaration of function ‘HeapTupleHeaderSetTypeId’ plr.c:676: warning: implicit declaration of function ‘HeapTupleHeaderSetTypMod’ plr.c: In function ‘compile_plr_function’: plr.c:801: warning: implicit declaration of function ‘GETSTRUCT’ plr.c:801: warning: cast to pointer from integer of different size plr.c:837: warning: implicit declaration of function ‘HeapTupleHeaderGetXmin’ plr.c: In function ‘do_compile’: plr.c:902: warning: cast to pointer from integer of different size plr.c:968: warning: cast to pointer from integer of different size plr.c:1001: warning: cast to pointer from integer of different size plr.c:1163: warning: cast to pointer from integer of different size plr.c: In function ‘plr_convertargs’: plr.c:1522: warning: implicit declaration of function ‘HeapTupleHeaderGetTypeId’ plr.c:1522: warning: implicit declaration of function ‘HeapTupleHeaderGetTypMod’ plr.c:1522: warning: implicit declaration of function ‘HeapTupleHeaderGetDatumLength’ plr.c: In function ‘getNamespaceOidFromFunctionOid’: plr.c:1718: warning: cast to pointer from integer of different size plr.c:1728: warning: cast to pointer from integer of different size plr.c:1739: warning: cast to pointer from integer of different size

pg_backend_support.c pg_backend_support.c: In function ‘get_lib_pathstr’: pg_backend_support.c:199: warning: implicit declaration of function ‘GETSTRUCT’ pg_backend_support.c:199: warning: cast to pointer from integer of different size pg_backend_support.c:211: warning: cast to pointer from integer of different size pg_backend_support.c:222: warning: cast to pointer from integer of different size

pg_userfuncs.c: In function ‘plr_array_create’: pg_userfuncs.c:249: warning: implicit declaration of function ‘GETSTRUCT’ pg_userfuncs.c:249: warning: cast to pointer from integer of different size pg_userfuncs.c:254: warning: cast to pointer from integer of different size

Undefined symbols: "_HeapTupleHeaderSetTypMod", referenced from: _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o "_HeapTupleHeaderGetXmin", referenced from: _compile_plr_function in plr.o _do_compile in plr.o "_HeapTupleHeaderGetDatumLength", referenced from: _plr_convertargs in plr.o "_HeapTupleHeaderGetTypMod", referenced from: _plr_convertargs in plr.o "_HeapTupleHeaderSetTypeId", referenced from: _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o "_HeapTupleHeaderSetDatumLength", referenced from: _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o _plr_trigger_handler in plr.o "_GETSTRUCT", referenced from: _compile_plr_function in plr.o _do_compile in plr.o _do_compile in plr.o _do_compile in plr.o _do_compile in plr.o _getNamespaceOidFromFunctionOid in plr.o _getNamespaceOidFromFunctionOid in plr.o _getNamespaceOidFromFunctionOid in plr.o _get_lib_pathstr in pg_backend_support.o _get_lib_pathstr in pg_backend_support.o _get_lib_pathstr in pg_backend_support.o _plr_array_create in pg_userfuncs.o _plr_array_create in pg_userfuncs.o "_HeapTupleHeaderGetTypeId", referenced from: _plr_convertargs in plr.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *\ [plr.so] Error 1

Thanks in advance

jconway commented 10 years ago

On 10/01/2013 05:08 PM, Marcio Nicolau wrote:

Hi @jconway https://github.com/jconway, I'm trying to compile the last version o plr from github for PostgreSQL 9.3 but I got this error...

plr.c:676: warning: implicit declaration of function ‘HeapTupleHeaderSetDatumLength’

That looks like the results you get with the last PL/R release against 9.3. Are you sure you are using the development tip from github rather than the last release tag?

Joe

Joe Conway credativ LLC: http://www.credativ.us Linux, PostgreSQL, and general Open Source Training, Service, Consulting, & 24x7 Support