cyga / www_fdw

fdw extension for postgres
http://wiki.postgresql.org/wiki/WWW_FDW
123 stars 21 forks source link

Compiling error using Postgresql 9.3 #2

Closed johnmichaelbradley closed 10 years ago

johnmichaelbradley commented 11 years ago

After installing Postgresql 9.3 on an Ubuntu 12.04 server (using the packages from postgresql.org's repository), I receive the following errors upon running make (after running make clean, export USE_PGXS=1):

src/serialize_quals.c: In function ‘serialize_node_with_children_callback_json’:
src/serialize_quals.c:92:2: error: expected expression before ‘do’

This error is thrown in several locations in serialize_quals.c where d(...) is called. I confirmed that I can downgrade to Postgresql 9.2 and successfully recompile www_fdw for it. Any thoughts?

cyga commented 11 years ago

d() - macros. Looks like it was changed in new version. You can:

johnmichaelbradley commented 10 years ago

Commenting out the offending lines in serialize_quals.c and www_fdw.c did the trick for me.

cyga commented 10 years ago

finally fixed macro definition.