This is with DEFAULT_VERSIONS+=pgsql=11 in make.conf and blocks making it the default. src/cluster.c:591:29: error: use of undeclared identifier 'ACL_KIND_FOREIGN_SERVER'; did you mean 'OBJECT_FOREIGN_SERVER'? aclcheck_error(aclresult, ACL_KIND_FOREIGN_SERVER, cluster->name); ^~~~~~~~~~~~~~~~~~~~~~~ OBJECT_FOREIGN_SERVER /usr/local/include/postgresql/server/nodes/parsenodes.h:1655:2: note: 'OBJECT_FOREIGN_SERVER' declared here OBJECT_FOREIGN_SERVER, ^ src/cluster.c:660:29: error: use of undeclared identifier 'ACL_KIND_FOREIGN_SERVER'; did you mean 'OBJECT_FOREIGN_SERVER'? aclcheck_error(aclresult, ACL_KIND_FOREIGN_SERVER, foreign_server->servername); ^~~~~~~~~~~~~~~~~~~~~~~ OBJECT_FOREIGN_SERVER /usr/local/include/postgresql/server/nodes/parsenodes.h:1655:2: note: 'OBJECT_FOREIGN_SERVER' declared here OBJECT_FOREIGN_SERVER, ^ 2 errors generated. http://package18.nyi.freebsd.org/data/120amd64-default-PR239514/2019-07-29_20h41m52s/logs/postgresql-plproxy-2.8_2.log If there is no way to fix this properly, a possible fallback solution would be to restrict the port to older PostgreSQL version via something like USES=pgsql:9.5-
Fixed in r509088. Thanks!