Skip to content

Instantly share code, notes, and snippets.

@fire
Created December 28, 2014 21:25
Show Gist options
  • Save fire/74e67c0141e72a73b239 to your computer and use it in GitHub Desktop.
Save fire/74e67c0141e72a73b239 to your computer and use it in GitHub Desktop.
Smartos Postgresxl #4
[admin@web01 /home/admin/postgres-xl/src/backend/pgxc/pool]$ make CFLAGS="-DXOPEN_SOURCE_EXTENDED"
gcc -DXOPEN_SOURCE_EXTENDED -I../../../../src/include -I/opt/local/include/libxml2 -I/opt/local/include -c -o execRemote.o execRemote.c
In file included from ../../../../src/include/pgxc/execRemote.h:26:0,
from execRemote.c:38:
../../../../src/include/pgxc/planner.h:224:13: error: storage class specified for parameter 'pgxc_query_contains_utility'
../../../../src/include/pgxc/planner.h:226:13: error: storage class specified for parameter 'pgxc_shippability_walker'
../../../../src/include/pgxc/planner.h:227:13: error: storage class specified for parameter 'pgxc_test_shippability_reason'
In file included from /usr/include/dirent.h:38:0,
from ../../../../src/include/storage/fd.h:41,
from ../../../../src/include/utils/resowner.h:22,
from ../../../../src/include/utils/portal.h:56,
from ../../../../src/include/tcop/pquery.h:23,
from ../../../../src/include/pgxc/execRemote.h:36,
from execRemote.c:38:
/usr/include/sys/dirent.h:49:3: error: storage class specified for parameter 'dirent_t'
/usr/include/sys/dirent.h:74:3: error: storage class specified for parameter 'dirent64_t'
/usr/include/sys/dirent.h:116:9: error: expected declaration specifiers or '...' before '#pragma'
In file included from ../../../../src/include/storage/fd.h:41:0,
from ../../../../src/include/utils/resowner.h:22,
from ../../../../src/include/utils/portal.h:56,
from ../../../../src/include/tcop/pquery.h:23,
from ../../../../src/include/pgxc/execRemote.h:36,
from execRemote.c:38:
/usr/include/dirent.h:58:3: error: storage class specified for parameter 'DIR'
/usr/include/dirent.h:88:9: error: expected declaration specifiers or '...' before '#pragma'
/usr/include/dirent.h:101:8: error: storage class specified for parameter 'DIR'
/usr/include/dirent.h:101:8: error: conflicting types for 'DIR'
/usr/include/dirent.h:58:3: note: previous definition of 'DIR' was here
/usr/include/dirent.h:101:13: error: expected ';', ',' or ')' before '*' token
<builtin>: recipe for target 'execRemote.o' failed
make: *** [execRemote.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment