+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=96 WRKLOG=/tmp/bulklog/nss-pgsql-1.5.0bnb1/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=96 WRKLOG=/tmp/bulklog/nss-pgsql-1.5.0bnb1/work.log => Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for nss-pgsql-1.5.0bnb1 cd . && autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.ac'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. cd . \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ /usr/bin/bash ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default-1 commands /opt/local/bin/gmake all-recursive gmake[1]: Entering directory '/home/pbulk/build/databases/nss-pgsql/work/libnss-pgsql-1.5.0-beta' Making all in src gmake[2]: Entering directory '/home/pbulk/build/databases/nss-pgsql/work/libnss-pgsql-1.5.0-beta/src' /usr/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/include -pipe -O2 -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -c interface.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/home/pbulk/build/databases/nss-pgsql/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -Wp,-MD,.deps/interface.pp -c interface.c -fPIC -DPIC -o .libs/interface.o interface.c:24:1: error: return type is an incomplete type _nss_pgsql_setpwent(void) ^ interface.c: In function '_nss_pgsql_setpwent': interface.c:26:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:26:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:26:27: note: each undeclared identifier is reported only once for each function it appears in interface.c:26:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:30:3: error: invalid use of undefined type 'enum nss_status' getent_prepare("allusers"); ^ interface.c:31:12: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) retval = NSS_STATUS_SUCCESS; ^ interface.c:35:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:39:1: error: return type is an incomplete type _nss_pgsql_endpwent(void) ^ interface.c: In function '_nss_pgsql_endpwent': interface.c:46:9: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) return NSS_STATUS_SUCCESS; ^ interface.c:46:2: warning: 'return' with a value, in function returning void return NSS_STATUS_SUCCESS; ^ interface.c: At top level: interface.c:50:1: error: return type is an incomplete type _nss_pgsql_getpwent_r(struct passwd *result, char *buffer, ^ interface.c: In function '_nss_pgsql_getpwent_r': interface.c:53:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:53:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:53:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:64:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getpwent(result, buffer, buflen, &lerrno); ^ interface.c:69:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:73:1: error: return type is an incomplete type _nss_pgsql_getpwnam_r(const char *pwnam, struct passwd *result, ^ interface.c: In function '_nss_pgsql_getpwnam_r': interface.c:76:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:76:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:76:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:81:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getpwnam(pwnam, result, buffer, buflen, &lerrno); ^ interface.c:87:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:91:1: error: return type is an incomplete type _nss_pgsql_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, ^ interface.c: In function '_nss_pgsql_getpwuid_r': interface.c:94:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:94:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:94:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:99:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getpwuid(uid, result, buffer, buflen, &lerrno); ^ interface.c:105:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:112:1: error: return type is an incomplete type _nss_pgsql_setgrent(void) ^ interface.c: In function '_nss_pgsql_setgrent': interface.c:114:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:114:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:114:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:118:3: error: invalid use of undefined type 'enum nss_status' getent_prepare("allgroups"); ^ interface.c:119:12: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) retval = NSS_STATUS_SUCCESS; ^ interface.c:123:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:127:1: error: return type is an incomplete type _nss_pgsql_endgrent(void) ^ interface.c: In function '_nss_pgsql_endgrent': interface.c:134:9: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) return NSS_STATUS_SUCCESS; ^ interface.c:134:2: warning: 'return' with a value, in function returning void return NSS_STATUS_SUCCESS; ^ interface.c: At top level: interface.c:138:1: error: return type is an incomplete type _nss_pgsql_getgrent_r(struct group *result, char *buffer, ^ interface.c: In function '_nss_pgsql_getgrent_r': interface.c:141:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:141:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:141:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:152:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getgrent(result, buffer, buflen, &lerrno); ^ interface.c:157:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:161:1: error: return type is an incomplete type _nss_pgsql_getgrnam_r(const char *grnam, struct group *result, ^ interface.c: In function '_nss_pgsql_getgrnam_r': interface.c:164:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:164:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:164:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:169:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getgrnam(grnam, result, buffer, buflen, &lerrno); ^ interface.c:175:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:179:1: error: return type is an incomplete type _nss_pgsql_getgrgid_r(uid_t gid, struct group *result, ^ interface.c: In function '_nss_pgsql_getgrgid_r': interface.c:182:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:182:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:182:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:187:3: error: invalid use of undefined type 'enum nss_status' retval = backend_getgrgid(gid, result, buffer, buflen, &lerrno); ^ interface.c:193:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:197:1: error: return type is an incomplete type _nss_pgsql_initgroups_dyn(const char *user, gid_t group, long int *start, ^ interface.c: In function '_nss_pgsql_initgroups_dyn': interface.c:201:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:201:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:201:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:209:30: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) retval = (numgroups > 0) ? NSS_STATUS_SUCCESS : NSS_STATUS_NOTFOUND; ^ interface.c:209:51: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) retval = (numgroups > 0) ? NSS_STATUS_SUCCESS : NSS_STATUS_NOTFOUND; ^ interface.c:215:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:222:1: error: return type is an incomplete type _nss_pgsql_setspent(void) ^ interface.c: In function '_nss_pgsql_setspent': interface.c:224:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:224:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:224:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:228:3: error: invalid use of undefined type 'enum nss_status' getent_prepare("shadow"); ^ interface.c:229:12: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) retval = NSS_STATUS_SUCCESS; ^ interface.c:233:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:237:1: error: return type is an incomplete type _nss_pgsql_endspent(void) ^ interface.c: In function '_nss_pgsql_endspent': interface.c:244:9: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) return NSS_STATUS_SUCCESS; ^ interface.c:244:2: warning: 'return' with a value, in function returning void return NSS_STATUS_SUCCESS; ^ interface.c: At top level: interface.c:249:23: warning: 'struct spwd' declared inside parameter list size_t buflen, int *errnop) ^ interface.c:249:23: warning: its scope is only this definition or declaration, which is probably not what you want interface.c:248:1: error: return type is an incomplete type _nss_pgsql_getspent_r(struct spwd *result, char *buffer, ^ interface.c: In function '_nss_pgsql_getspent_r': interface.c:251:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:251:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:251:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:268:2: warning: 'return' with a value, in function returning void return retval; ^ interface.c: At top level: interface.c:273:23: warning: 'struct spwd' declared inside parameter list char *buffer, size_t buflen, int *errnop) ^ interface.c:272:1: error: return type is an incomplete type _nss_pgsql_getspnam_r(const char *spnam, struct spwd *result, ^ interface.c: In function '_nss_pgsql_getspnam_r': interface.c:275:7: error: variable 'retval' has initializer but incomplete type enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:275:27: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:275:18: error: storage size of 'retval' isn't known enum nss_status retval = NSS_STATUS_UNAVAIL; ^ interface.c:286:2: warning: 'return' with a value, in function returning void return retval; ^ Makefile:271: recipe for target 'interface.lo' failed gmake[2]: *** [interface.lo] Error 1 gmake[2]: Leaving directory '/home/pbulk/build/databases/nss-pgsql/work/libnss-pgsql-1.5.0-beta/src' Makefile:161: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/databases/nss-pgsql/work/libnss-pgsql-1.5.0-beta' Makefile:311: recipe for target 'all-recursive-am' failed gmake: *** [all-recursive-am] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /workspace/pkgsrc-2017Q4-x86_64/databases/nss-pgsql *** Error code 1 Stop. bmake: stopped in /workspace/pkgsrc-2017Q4-x86_64/databases/nss-pgsql