Skip to content

Instantly share code, notes, and snippets.

@fire
Created December 28, 2014 21:01
Show Gist options
  • Save fire/09f36ac413383ad5f421 to your computer and use it in GitHub Desktop.
Save fire/09f36ac413383ad5f421 to your computer and use it in GitHub Desktop.
Smartos postgresxl #3
]$ make CFLAGS="-D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__"
gcc -D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__ -I../../../../src/include -I/opt/local/include/libxml2 -I/opt/local/include -c -o pgxcnode.o pgxcnode.c
In file included from ../../../../src/include/pgxc/execRemote.h:26:0,
from pgxcnode.c:41:
../../../../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 pgxcnode.c:41:
/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 pgxcnode.c:41:
/usr/include/dirent.h:68: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:68:3: note: previous definition of 'DIR' was here
/usr/include/dirent.h:101:13: error: expected ';', ',' or ')' before '*' token
<builtin>: recipe for target 'pgxcnode.o' failed
make: *** [pgxcnode.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment