While porting pgxc to OpenBSD for testing purposes, I found following defects:
1) EPROTO constant in gtm code. This constatnt seems absent in BSD, so i solved it by adding following line to src/include/port/openbsd.h:
#define EPROTO EIO
2) u_int8_t and similar constants not defined in pqcomm.c and others. Solved by adding
#include <sys/types.h> to src/include/pqcomm.h
3) BSD port system wants untarred distribution directorly name with version numper. Could you please consider making not simply "pgxc" dir inside of pgxc_vX.Y.Z.tgz but something like pgxc-X.Y.Z inside of pgxc-X.Y.Z.tgz for future releases.
4) src/pl/plpgsql does not want to compile at all because grammar has errors at least from point of view of OpenBSD's bison.
Solved this problem by taking code from postgresql-9.1.2.tgz which contains generated files.
Changes are trivial, so i do not post patches here. Thnks!
A patch would be welcome to solve that.
We have no buildfarms or environments to test OpenBSD directly.