Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 759364 Details for
Bug 829357
sys-auth/libnss-pgsql-1.5.0_beta-r1 - backend.c: error: NSS_STATUS_SUCCESS undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
sys-auth:libnss-pgsql-1.5.0_beta-r1:20211216-164629.log
sys-auth:libnss-pgsql-1.5.0_beta-r1:20211216-164629.log (text/plain), 53.31 KB, created by
Toralf Förster
on 2021-12-16 17:30:30 UTC
(
hide
)
Description:
sys-auth:libnss-pgsql-1.5.0_beta-r1:20211216-164629.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2021-12-16 17:30:30 UTC
Size:
53.31 KB
patch
obsolete
> * Package: sys-auth/libnss-pgsql-1.5.0_beta-r1 > * Repository: gentoo > * Maintainer: pgsql-bugs@gentoo.org > * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking libnss-pgsql-1.5.0-beta.tgz to /var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work >>>> Source unpacked in /var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work >>>> Preparing source in /var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta ... > * Applying libnss-pgsql-1.5.0_beta-gentoo.patch ... > [ ok ] > * Running eautoreconf in '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta' ... > * Running 'libtoolize --install --copy --force --automake' ... > [ ok ] > * Running 'aclocal' ... > [ ok ] > * Running 'autoconf --force' ... > [ ok ] > * Running 'autoheader' ... > [ ok ] > * Running 'automake --add-missing --copy --force-missing' ... > [ ok ] > * Running elibtoolize in: libnss-pgsql-1.5.0-beta/ > * Running elibtoolize in: libnss-pgsql-1.5.0-beta/autoconf/ > * Applying portage/1.2.0 patch ... > * Applying sed/1.5.6 patch ... > * Applying as-needed/2.4.3 patch ... > * Applying static-flags/2.4.6 patch ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta ... > * econf: updating libnss-pgsql-1.5.0-beta/config.sub with /usr/share/gnuconfig/config.sub > * econf: updating libnss-pgsql-1.5.0-beta/config.guess with /usr/share/gnuconfig/config.guess > * econf: updating libnss-pgsql-1.5.0-beta/autoconf/config.sub with /usr/share/gnuconfig/config.sub > * econf: updating libnss-pgsql-1.5.0-beta/autoconf/config.guess with /usr/share/gnuconfig/config.guess >./configure --prefix=/usr --build=x86_64-gentoo-linux-musl --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libnss-pgsql-1.5.0_beta-r1 --htmldir=/usr/share/doc/libnss-pgsql-1.5.0_beta-r1/html --with-sysroot=/ --libdir=/usr/lib >checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a race-free mkdir -p... /bin/mkdir -p >checking for gawk... gawk >checking whether make sets $(MAKE)... yes >checking whether make supports nested variables... yes >checking for x86_64-gentoo-linux-musl-gcc... x86_64-gentoo-linux-musl-gcc >checking whether the C compiler works... yes >checking for C compiler default output file name... a.out >checking for suffix of executables... >checking whether we are cross compiling... no >checking for suffix of object files... o >checking whether the compiler supports GNU C... yes >checking whether x86_64-gentoo-linux-musl-gcc accepts -g... yes >checking for x86_64-gentoo-linux-musl-gcc option to enable C11 features... none needed >checking whether x86_64-gentoo-linux-musl-gcc understands -c and -o together... yes >checking whether make supports the include directive... yes (GNU style) >checking dependency style of x86_64-gentoo-linux-musl-gcc... none >checking for gawk... (cached) gawk >checking whether ln -s works... yes >checking whether make sets $(MAKE)... (cached) yes >checking how to run the C preprocessor... x86_64-gentoo-linux-musl-gcc -E >checking build system type... x86_64-gentoo-linux-musl >checking host system type... x86_64-gentoo-linux-musl >checking how to print strings... printf >checking for a sed that does not truncate output... /bin/sed >checking for grep that handles long lines and -e... /bin/grep >checking for egrep... /bin/grep -E >checking for fgrep... /bin/grep -F >checking for ld used by x86_64-gentoo-linux-musl-gcc... /usr/x86_64-gentoo-linux-musl/bin/ld >checking if the linker (/usr/x86_64-gentoo-linux-musl/bin/ld) is GNU ld... yes >checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-gentoo-linux-musl-nm -B >checking the name lister (/usr/bin/x86_64-gentoo-linux-musl-nm -B) interface... BSD nm >checking the maximum length of command line arguments... 98304 >checking how to convert x86_64-gentoo-linux-musl file names to x86_64-gentoo-linux-musl format... func_convert_file_noop >checking how to convert x86_64-gentoo-linux-musl file names to toolchain format... func_convert_file_noop >checking for /usr/x86_64-gentoo-linux-musl/bin/ld option to reload object files... -r >checking for x86_64-gentoo-linux-musl-objdump... x86_64-gentoo-linux-musl-objdump >checking how to recognize dependent libraries... pass_all >checking for x86_64-gentoo-linux-musl-dlltool... no >checking for dlltool... no >checking how to associate runtime and link libraries... printf %s\n >checking for x86_64-gentoo-linux-musl-ar... x86_64-gentoo-linux-musl-ar >checking for archiver @FILE support... @ >checking for x86_64-gentoo-linux-musl-strip... x86_64-gentoo-linux-musl-strip >checking for x86_64-gentoo-linux-musl-ranlib... x86_64-gentoo-linux-musl-ranlib >checking command to parse /usr/bin/x86_64-gentoo-linux-musl-nm -B output from x86_64-gentoo-linux-musl-gcc object... ok >checking for sysroot... / >checking for a working dd... /bin/dd >checking how to truncate binary pipes... /bin/dd bs=4096 count=1 >checking for x86_64-gentoo-linux-musl-mt... no >checking for mt... mt >checking if mt is a manifest tool... no >checking for stdio.h... yes >checking for stdlib.h... yes >checking for string.h... yes >checking for inttypes.h... yes >checking for stdint.h... yes >checking for strings.h... yes >checking for sys/stat.h... yes >checking for sys/types.h... yes >checking for unistd.h... yes >checking for dlfcn.h... yes >checking for objdir... .libs >checking if x86_64-gentoo-linux-musl-gcc supports -fno-rtti -fno-exceptions... no >checking for x86_64-gentoo-linux-musl-gcc option to produce PIC... -fPIC -DPIC >checking if x86_64-gentoo-linux-musl-gcc PIC flag -fPIC -DPIC works... yes >checking if x86_64-gentoo-linux-musl-gcc static flag -static works... yes >checking if x86_64-gentoo-linux-musl-gcc supports -c -o file.o... yes >checking if x86_64-gentoo-linux-musl-gcc supports -c -o file.o... (cached) yes >checking whether the x86_64-gentoo-linux-musl-gcc linker (/usr/x86_64-gentoo-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes >checking whether -lc should be explicitly linked in... no >checking dynamic linker characteristics... GNU/Linux ld.so >checking how to hardcode library paths into programs... immediate >checking whether stripping libraries is possible... yes >checking if libtool supports shared libraries... yes >checking whether to build shared libraries... yes >checking whether to build static libraries... yes >checking for PQsetdbLogin in -lpq... yes >checking for egrep... (cached) /bin/grep -E >checking for stdlib.h... (cached) yes >checking for string.h... (cached) yes >checking for unistd.h... (cached) yes >checking for nss.h... no >checking for an ANSI C-conforming const... yes >checking for uid_t in sys/types.h... yes >checking for inline... inline >checking for size_t... yes >checking for GNU libc compatible malloc... yes >checking for GNU libc compatible realloc... yes >checking for vprintf... yes >checking for atexit... yes >checking for strstr... yes >checking that generated files are newer than configure... done >configure: creating ./config.status >config.status: creating Makefile >config.status: creating doc/Makefile >config.status: creating src/Makefile >config.status: creating config.h >config.status: executing depfiles commands >config.status: executing libtool commands >>>> Source configured. >>>> Compiling source in /var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta ... >make -j4 >make all-recursive >make[1]: Entering directory '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta' >Making all in src >make[2]: Entering directory '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta/src' >/bin/sh ../libtool --tag=CC --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c -o interface.lo interface.c >/bin/sh ../libtool --tag=CC --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c -o config.lo config.c >/bin/sh ../libtool --tag=CC --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c -o backend.lo backend.c >/bin/sh ../libtool --tag=CC --mode=compile x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c -o util.lo util.c >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c util.c -fPIC -DPIC -o .libs/util.o >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c config.c -fPIC -DPIC -o .libs/config.o >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c backend.c -fPIC -DPIC -o .libs/backend.o >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c interface.c -fPIC -DPIC -o .libs/interface.o >backend.c:148:24: error: return type is an incomplete type > 148 | inline enum nss_status getent_prepare(const char *what) > | ^~~~~~~~~~~~~~ >backend.c:148:24: error: conflicting types for 'getent_prepare'; have 'void(const char *)' >In file included from backend.c:13: >nss-pgsql.h:35:17: note: previous declaration of 'getent_prepare' with type 'enum nss_status(const char *)' > 35 | enum nss_status getent_prepare(const char *what); > | ^~~~~~~~~~~~~~ >backend.c: In function 'getent_prepare': >backend.c:173:24: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 173 | return NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >backend.c:173:24: note: each undeclared identifier is reported only once for each function it appears in >backend.c:173:24: warning: 'return' with a value, in function returning void >backend.c:148:24: note: declared here > 148 | inline enum nss_status getent_prepare(const char *what) > | ^~~~~~~~~~~~~~ >backend.c:175:24: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 175 | return NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >backend.c:175:24: warning: 'return' with a value, in function returning void >backend.c:148:24: note: declared here > 148 | inline enum nss_status getent_prepare(const char *what) > | ^~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:208:1: error: return type is an incomplete type > 208 | copy_attr_colnum(PGresult *res, int attrib_number, char **valptr, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'copy_attr_colnum': >backend.c:216:16: warning: implicit declaration of function 'copy_attr_string' [-Wimplicit-function-declaration] > 216 | return copy_attr_string(sptr, valptr, buffer, buflen, errnop); > | ^~~~~~~~~~~~~~~~ >backend.c:216:16: warning: 'return' with a value, in function returning void > 216 | return copy_attr_string(sptr, valptr, buffer, buflen, errnop); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >backend.c:208:1: note: declared here > 208 | copy_attr_colnum(PGresult *res, int attrib_number, char **valptr, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:224:1: error: return type is an incomplete type > 224 | copy_attr_string(char *sptr, char **valptr, > | ^~~~~~~~~~~~~~~~ >backend.c:224:1: warning: conflicting types for 'copy_attr_string'; have 'void(char *, char **, char **, size_t *, int *)' {aka 'void(char *, char **, char **, long unsigned int *, int *)'} >backend.c:216:16: note: previous implicit declaration of 'copy_attr_string' with type 'void(char *, char **, char **, size_t *, int *)' {aka 'void(char *, char **, char **, long unsigned int *, int *)'} > 216 | return copy_attr_string(sptr, valptr, buffer, buflen, errnop); > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'copy_attr_string': >backend.c:233:24: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 233 | return NSS_STATUS_TRYAGAIN; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:233:24: warning: 'return' with a value, in function returning void >backend.c:224:1: note: declared here > 224 | copy_attr_string(char *sptr, char **valptr, > | ^~~~~~~~~~~~~~~~ >backend.c:243:16: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 243 | return NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >backend.c:243:16: warning: 'return' with a value, in function returning void >backend.c:224:1: note: declared here > 224 | copy_attr_string(char *sptr, char **valptr, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:249:17: error: return type is an incomplete type > 249 | enum nss_status getgroupmem(gid_t gid, > | ^~~~~~~~~~~ >backend.c: In function 'getgroupmem': >backend.c:257:14: error: variable 'status' has initializer but incomplete type > 257 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >backend.c:257:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 257 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:257:25: error: storage size of 'status' isn't known > 257 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:264:26: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 264 | status = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >backend.c:281:26: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 281 | status = NSS_STATUS_TRYAGAIN; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:299:30: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 299 | if(status != NSS_STATUS_SUCCESS) goto BAIL_OUT; > | ^~~~~~~~~~~~~~~~~~ >backend.c:313:16: warning: 'return' with a value, in function returning void > 313 | return status; > | ^~~~~~ >backend.c:249:17: note: declared here > 249 | enum nss_status getgroupmem(gid_t gid, > | ^~~~~~~~~~~ >backend.c: At top level: >backend.c:319:17: error: return type is an incomplete type > 319 | enum nss_status getgroupmemfromquery(PGresult *res, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~ >backend.c: In function 'getgroupmemfromquery': >backend.c:331:14: error: variable 'status' has initializer but incomplete type > 331 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:24:1: error: return type is an incomplete type > 24 | _nss_pgsql_setpwent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_setpwent': >interface.c:26:14: error: variable 'retval' has initializer but incomplete type > 26 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:331:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 331 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:331:25: error: storage size of 'status' isn't known > 331 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c:26:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 26 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:26:34: note: each undeclared identifier is reported only once for each function it appears in >interface.c:26:25: error: storage size of 'retval' isn't known > 26 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:30:17: error: invalid use of undefined type 'enum nss_status' > 30 | getent_prepare("allusers"); > | ^~~~~~~~~~~~~~ >backend.c:337:26: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 337 | status = NSS_STATUS_TRYAGAIN; > | ^~~~~~~~~~~~~~~~~~~ >interface.c:31:26: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 31 | retval = NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >interface.c:35:16: warning: 'return' with a value, in function returning void > 35 | return retval; > | ^~~~~~ >interface.c:24:1: note: declared here > 24 | _nss_pgsql_setpwent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:39:1: error: return type is an incomplete type > 39 | _nss_pgsql_endpwent(void) > | ^~~~~~~~~~~~~~~~~~~ >backend.c:390:30: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 390 | if(status != NSS_STATUS_SUCCESS) goto BAIL_OUT; > | ^~~~~~~~~~~~~~~~~~ >backend.c:404:16: warning: 'return' with a value, in function returning void > 404 | return status; > | ^~~~~~ >backend.c:319:17: note: declared here > 319 | enum nss_status getgroupmemfromquery(PGresult *res, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:410:17: error: return type is an incomplete type > 410 | enum nss_status res2grp(PGresult *res, > | ^~~~~~~ >backend.c: In function 'res2grp': >backend.c:415:14: error: variable 'status' has initializer but incomplete type > 415 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c: In function '_nss_pgsql_endpwent': >interface.c:46:16: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 46 | return NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >interface.c:46:16: warning: 'return' with a value, in function returning void >interface.c:39:1: note: declared here > 39 | _nss_pgsql_endpwent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:50:1: error: return type is an incomplete type > 50 | _nss_pgsql_getpwent_r(struct passwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getpwent_r': >interface.c:53:14: error: variable 'retval' has initializer but incomplete type > 53 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:415:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 415 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:415:25: error: storage size of 'status' isn't known > 415 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c:53:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 53 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:53:25: error: storage size of 'retval' isn't known > 53 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:64:26: error: invalid use of undefined type 'enum nss_status' > 64 | retval = backend_getpwent(result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:69:16: warning: 'return' with a value, in function returning void > 69 | return retval; > | ^~~~~~ >interface.c:50:1: note: declared here > 50 | _nss_pgsql_getpwent_r(struct passwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:73:1: error: return type is an incomplete type > 73 | _nss_pgsql_getpwnam_r(const char *pwnam, struct passwd *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getpwnam_r': >interface.c:76:14: error: variable 'retval' has initializer but incomplete type > 76 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:427:22: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 427 | if(status != NSS_STATUS_SUCCESS) goto BAIL_OUT; > | ^~~~~~~~~~~~~~~~~~ >backend.c:458:16: warning: 'return' with a value, in function returning void > 458 | return status; > | ^~~~~~ >backend.c:410:17: note: declared here > 410 | enum nss_status res2grp(PGresult *res, > | ^~~~~~~ >backend.c: At top level: >backend.c:464:17: error: return type is an incomplete type > 464 | enum nss_status res2pwd(PGresult *res, struct passwd *result, > | ^~~~~~~ >backend.c: In function 'res2pwd': >backend.c:468:14: error: variable 'status' has initializer but incomplete type > 468 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:76:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 76 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:76:25: error: storage size of 'retval' isn't known > 76 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:81:26: error: invalid use of undefined type 'enum nss_status' > 81 | retval = backend_getpwnam(pwnam, result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:87:16: warning: 'return' with a value, in function returning void > 87 | return retval; > | ^~~~~~ >interface.c:73:1: note: declared here > 73 | _nss_pgsql_getpwnam_r(const char *pwnam, struct passwd *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:91:1: error: return type is an incomplete type > 91 | _nss_pgsql_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getpwuid_r': >interface.c:94:14: error: variable 'retval' has initializer but incomplete type > 94 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:468:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 468 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:468:25: error: storage size of 'status' isn't known > 468 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c:94:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 94 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:94:25: error: storage size of 'retval' isn't known > 94 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:99:26: error: invalid use of undefined type 'enum nss_status' > 99 | retval = backend_getpwuid(uid, result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:105:16: warning: 'return' with a value, in function returning void > 105 | return retval; > | ^~~~~~ >interface.c:91:1: note: declared here > 91 | _nss_pgsql_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:112:1: error: return type is an incomplete type > 112 | _nss_pgsql_setgrent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_setgrent': >interface.c:114:14: error: variable 'retval' has initializer but incomplete type > 114 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:477:22: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 477 | if(status != NSS_STATUS_SUCCESS) goto BAIL_OUT; > | ^~~~~~~~~~~~~~~~~~ >interface.c:114:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 114 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:114:25: error: storage size of 'retval' isn't known > 114 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:118:17: error: invalid use of undefined type 'enum nss_status' > 118 | getent_prepare("allgroups"); > | ^~~~~~~~~~~~~~ >backend.c:505:16: warning: 'return' with a value, in function returning void > 505 | return status; > | ^~~~~~ >backend.c:464:17: note: declared here > 464 | enum nss_status res2pwd(PGresult *res, struct passwd *result, > | ^~~~~~~ >backend.c: At top level: >backend.c:582:17: error: return type is an incomplete type > 582 | enum nss_status backend_getgrent(struct group *result, > | ^~~~~~~~~~~~~~~~ >backend.c:582:17: error: conflicting types for 'backend_getgrent'; have 'void(struct group *, char *, size_t, int *)' {aka 'void(struct group *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:42:17: note: previous declaration of 'backend_getgrent' with type 'enum nss_status(struct group *, char *, size_t, int *)' {aka 'enum nss_status(struct group *, char *, long unsigned int, int *)'} > 42 | enum nss_status backend_getgrent(struct group *result, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getgrent': >backend.c:588:14: error: variable 'status' has initializer but incomplete type > 588 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:119:26: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 119 | retval = NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >interface.c:123:16: warning: 'return' with a value, in function returning void > 123 | return retval; > | ^~~~~~ >interface.c:112:1: note: declared here > 112 | _nss_pgsql_setgrent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:127:1: error: return type is an incomplete type > 127 | _nss_pgsql_endgrent(void) > | ^~~~~~~~~~~~~~~~~~~ >backend.c:588:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 588 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_endgrent': >interface.c:134:16: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 134 | return NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >interface.c:134:16: warning: 'return' with a value, in function returning void >backend.c:588:25: error: storage size of 'status' isn't known > 588 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c:127:1: note: declared here > 127 | _nss_pgsql_endgrent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:138:1: error: return type is an incomplete type > 138 | _nss_pgsql_getgrent_r(struct group *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getgrent_r': >interface.c:141:14: error: variable 'retval' has initializer but incomplete type > 141 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >interface.c:141:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 141 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:141:25: error: storage size of 'retval' isn't known > 141 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:152:26: error: invalid use of undefined type 'enum nss_status' > 152 | retval = backend_getgrent(result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:157:16: warning: 'return' with a value, in function returning void > 157 | return retval; > | ^~~~~~ >interface.c:138:1: note: declared here > 138 | _nss_pgsql_getgrent_r(struct group *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:161:1: error: return type is an incomplete type > 161 | _nss_pgsql_getgrnam_r(const char *grnam, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getgrnam_r': >backend.c:596:23: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 596 | if (status == NSS_STATUS_TRYAGAIN && *errnop == ERANGE) { > | ^~~~~~~~~~~~~~~~~~~ >interface.c:164:14: error: variable 'retval' has initializer but incomplete type > 164 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:600:16: warning: 'return' with a value, in function returning void > 600 | return status; > | ^~~~~~ >backend.c:582:17: note: declared here > 582 | enum nss_status backend_getgrent(struct group *result, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:606:17: error: return type is an incomplete type > 606 | enum nss_status backend_getpwent(struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c:606:17: error: conflicting types for 'backend_getpwent'; have 'void(struct passwd *, char *, size_t, int *)' {aka 'void(struct passwd *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:38:17: note: previous declaration of 'backend_getpwent' with type 'enum nss_status(struct passwd *, char *, size_t, int *)' {aka 'enum nss_status(struct passwd *, char *, long unsigned int, int *)'} > 38 | enum nss_status backend_getpwent(struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getpwent': >backend.c:612:14: error: variable 'status' has initializer but incomplete type > 612 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:164:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 164 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:164:25: error: storage size of 'retval' isn't known > 164 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:169:26: error: invalid use of undefined type 'enum nss_status' > 169 | retval = backend_getgrnam(grnam, result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:175:16: warning: 'return' with a value, in function returning void > 175 | return retval; > | ^~~~~~ >interface.c:161:1: note: declared here > 161 | _nss_pgsql_getgrnam_r(const char *grnam, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:179:1: error: return type is an incomplete type > 179 | _nss_pgsql_getgrgid_r(uid_t gid, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getgrgid_r': >interface.c:182:14: error: variable 'retval' has initializer but incomplete type > 182 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:612:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 612 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:612:25: error: storage size of 'status' isn't known > 612 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c:182:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 182 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:182:25: error: storage size of 'retval' isn't known > 182 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:187:26: error: invalid use of undefined type 'enum nss_status' > 187 | retval = backend_getgrgid(gid, result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:193:16: warning: 'return' with a value, in function returning void > 193 | return retval; > | ^~~~~~ >interface.c:179:1: note: declared here > 179 | _nss_pgsql_getgrgid_r(uid_t gid, struct group *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:197:1: error: return type is an incomplete type > 197 | _nss_pgsql_initgroups_dyn(const char *user, gid_t group, long int *start, > | ^~~~~~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_initgroups_dyn': >interface.c:201:14: error: variable 'retval' has initializer but incomplete type > 201 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:618:23: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 618 | if (status == NSS_STATUS_TRYAGAIN && *errnop == ERANGE) { > | ^~~~~~~~~~~~~~~~~~~ >backend.c:623:16: warning: 'return' with a value, in function returning void > 623 | return status; > | ^~~~~~ >backend.c:606:17: note: declared here > 606 | enum nss_status backend_getpwent(struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:629:17: error: return type is an incomplete type > 629 | enum nss_status backend_getpwnam(const char *name, struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c:629:17: error: conflicting types for 'backend_getpwnam'; have 'void(const char *, struct passwd *, char *, size_t, int *)' {aka 'void(const char *, struct passwd *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:61:17: note: previous declaration of 'backend_getpwnam' with type 'enum nss_status(const char *, struct passwd *, char *, size_t, int *)' {aka 'enum nss_status(const char *, struct passwd *, char *, long unsigned int, int *)'} > 61 | enum nss_status backend_getpwnam(const char *name, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getpwnam': >backend.c:634:14: error: variable 'status' has initializer but incomplete type > 634 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:201:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 201 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:201:25: error: storage size of 'retval' isn't known > 201 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c util.c -o util.o >/dev/null 2>&1 >interface.c:209:44: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 209 | retval = (numgroups > 0) ? NSS_STATUS_SUCCESS : NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~ >backend.c:634:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 634 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:634:25: error: storage size of 'status' isn't known > 634 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:645:16: warning: 'return' with a value, in function returning void > 645 | return status; > | ^~~~~~ >backend.c:629:17: note: declared here > 629 | enum nss_status backend_getpwnam(const char *name, struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >interface.c:209:65: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 209 | retval = (numgroups > 0) ? NSS_STATUS_SUCCESS : NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ > >backend.c:651:17: error: return type is an incomplete type > 651 | enum nss_status backend_getpwuid(uid_t uid, struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c:651:17: error: conflicting types for 'backend_getpwuid'; have 'void(uid_t, struct passwd *, char *, size_t, int *)' {aka 'void(unsigned int, struct passwd *, char *, long unsigned int, int *)'} >interface.c:215:16: warning: 'return' with a value, in function returning void > 215 | return retval; > | ^~~~~~ >In file included from backend.c:13: >nss-pgsql.h:46:17: note: previous declaration of 'backend_getpwuid' with type 'enum nss_status(uid_t, struct passwd *, char *, size_t, int *)' {aka 'enum nss_status(unsigned int, struct passwd *, char *, long unsigned int, int *)'} > 46 | enum nss_status backend_getpwuid(uid_t uid, > | ^~~~~~~~~~~~~~~~ >interface.c:197:1: note: declared here > 197 | _nss_pgsql_initgroups_dyn(const char *user, gid_t group, long int *start, > | ^~~~~~~~~~~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getpwuid': >interface.c: At top level: >interface.c:222:1: error: return type is an incomplete type > 222 | _nss_pgsql_setspent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_setspent': >interface.c:224:14: error: variable 'retval' has initializer but incomplete type > 224 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:657:14: error: variable 'status' has initializer but incomplete type > 657 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:224:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 224 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:224:25: error: storage size of 'retval' isn't known > 224 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:228:17: error: invalid use of undefined type 'enum nss_status' > 228 | getent_prepare("shadow"); > | ^~~~~~~~~~~~~~ >interface.c:229:26: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 229 | retval = NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >backend.c:657:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 657 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >interface.c:233:16: warning: 'return' with a value, in function returning void > 233 | return retval; > | ^~~~~~ >interface.c:222:1: note: declared here > 222 | _nss_pgsql_setspent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:237:1: error: return type is an incomplete type > 237 | _nss_pgsql_endspent(void) > | ^~~~~~~~~~~~~~~~~~~ >backend.c:657:25: error: storage size of 'status' isn't known > 657 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >interface.c: In function '_nss_pgsql_endspent': >interface.c:244:16: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 244 | return NSS_STATUS_SUCCESS; > | ^~~~~~~~~~~~~~~~~~ >interface.c:244:16: warning: 'return' with a value, in function returning void >interface.c:237:1: note: declared here > 237 | _nss_pgsql_endspent(void) > | ^~~~~~~~~~~~~~~~~~~ >interface.c: At top level: >interface.c:248:1: error: return type is an incomplete type > 248 | _nss_pgsql_getspent_r(struct spwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getspent_r': >interface.c:251:14: error: variable 'retval' has initializer but incomplete type > 251 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:662:26: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 662 | status = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:251:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 251 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:251:25: error: storage size of 'retval' isn't known > 251 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:262:26: error: invalid use of undefined type 'enum nss_status' > 262 | retval = backend_getspent(result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:268:16: warning: 'return' with a value, in function returning void > 268 | return retval; > | ^~~~~~ >interface.c:248:1: note: declared here > 248 | _nss_pgsql_getspent_r(struct spwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~~~~~~ >backend.c:674:16: warning: 'return' with a value, in function returning void > 674 | return status; > | ^~~~~~ >interface.c: At top level: >interface.c:272:1: error: return type is an incomplete type > 272 | _nss_pgsql_getspnam_r(const char *spnam, struct spwd *result, > | ^~~~~~~~~~~~~~~~~~~~~ >interface.c: In function '_nss_pgsql_getspnam_r': >interface.c:275:14: error: variable 'retval' has initializer but incomplete type > 275 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~ >backend.c:651:17: note: declared here > 651 | enum nss_status backend_getpwuid(uid_t uid, struct passwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:680:17: error: return type is an incomplete type > 680 | enum nss_status backend_getgrnam(const char *name, > | ^~~~~~~~~~~~~~~~ >backend.c:680:17: error: conflicting types for 'backend_getgrnam'; have 'void(const char *, struct group *, char *, size_t, int *)' {aka 'void(const char *, struct group *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:56:17: note: previous declaration of 'backend_getgrnam' with type 'enum nss_status(const char *, struct group *, char *, size_t, int *)' {aka 'enum nss_status(const char *, struct group *, char *, long unsigned int, int *)'} > 56 | enum nss_status backend_getgrnam(const char *name, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getgrnam': >backend.c:688:14: error: variable 'status' has initializer but incomplete type > 688 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >interface.c:275:34: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 275 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >interface.c:275:25: error: storage size of 'retval' isn't known > 275 | enum nss_status retval = NSS_STATUS_UNAVAIL; > | ^~~~~~ >interface.c:280:26: error: invalid use of undefined type 'enum nss_status' > 280 | retval = backend_getspnam(spnam, result, buffer, buflen, &lerrno); > | ^~~~~~~~~~~~~~~~ >interface.c:286:16: warning: 'return' with a value, in function returning void > 286 | return retval; > | ^~~~~~ >interface.c:272:1: note: declared here > 272 | _nss_pgsql_getspnam_r(const char *spnam, struct spwd *result, > | ^~~~~~~~~~~~~~~~~~~~~ >backend.c:688:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 688 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:688:25: error: storage size of 'status' isn't known > 688 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:699:16: warning: 'return' with a value, in function returning void > 699 | return status; > | ^~~~~~ >backend.c:680:17: note: declared here > 680 | enum nss_status backend_getgrnam(const char *name, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:706:17: error: return type is an incomplete type > 706 | enum nss_status backend_getgrgid(gid_t gid, > | ^~~~~~~~~~~~~~~~ >backend.c:706:17: error: conflicting types for 'backend_getgrgid'; have 'void(gid_t, struct group *, char *, size_t, int *)' {aka 'void(unsigned int, struct group *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:51:17: note: previous declaration of 'backend_getgrgid' with type 'enum nss_status(gid_t, struct group *, char *, size_t, int *)' {aka 'enum nss_status(unsigned int, struct group *, char *, long unsigned int, int *)'} > 51 | enum nss_status backend_getgrgid(gid_t gid, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getgrgid': >backend.c:715:14: error: variable 'status' has initializer but incomplete type > 715 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >backend.c:715:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 715 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >make[2]: *** [Makefile:435: interface.lo] Error 1 >make[2]: *** Waiting for unfinished jobs.... >backend.c:715:25: error: storage size of 'status' isn't known > 715 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:721:26: error: 'NSS_STATUS_UNAVAIL' undeclared (first use in this function) > 721 | status = NSS_STATUS_UNAVAIL; > | ^~~~~~~~~~~~~~~~~~ >backend.c:731:16: warning: 'return' with a value, in function returning void > 731 | return status; > | ^~~~~~ >backend.c:706:17: note: declared here > 706 | enum nss_status backend_getgrgid(gid_t gid, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:784:17: error: return type is an incomplete type > 784 | enum nss_status res2shadow(PGresult *res, struct spwd *result, > | ^~~~~~~~~~ >backend.c: In function 'res2shadow': >backend.c:787:14: error: variable 'status' has initializer but incomplete type > 787 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >backend.c:787:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 787 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:787:25: error: storage size of 'status' isn't known > 787 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:795:22: error: 'NSS_STATUS_SUCCESS' undeclared (first use in this function) > 795 | if(status != NSS_STATUS_SUCCESS) goto BAIL_OUT; > | ^~~~~~~~~~~~~~~~~~ >backend.c:821:16: warning: 'return' with a value, in function returning void > 821 | return status; > | ^~~~~~ >backend.c:784:17: note: declared here > 784 | enum nss_status res2shadow(PGresult *res, struct spwd *result, > | ^~~~~~~~~~ >backend.c: At top level: >backend.c:827:17: error: return type is an incomplete type > 827 | enum nss_status backend_getspent(struct spwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~ >backend.c:827:17: error: conflicting types for 'backend_getspent'; have 'void(struct spwd *, char *, size_t, int *)' {aka 'void(struct spwd *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:74:17: note: previous declaration of 'backend_getspent' with type 'enum nss_status(struct spwd *, char *, size_t, int *)' {aka 'enum nss_status(struct spwd *, char *, long unsigned int, int *)'} > 74 | enum nss_status backend_getspent(struct spwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getspent': >backend.c:831:14: error: variable 'status' has initializer but incomplete type > 831 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >backend.c:831:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 831 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:831:25: error: storage size of 'status' isn't known > 831 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:837:23: error: 'NSS_STATUS_TRYAGAIN' undeclared (first use in this function) > 837 | if (status == NSS_STATUS_TRYAGAIN && *errnop == ERANGE) { > | ^~~~~~~~~~~~~~~~~~~ >backend.c:842:16: warning: 'return' with a value, in function returning void > 842 | return status; > | ^~~~~~ >backend.c:827:17: note: declared here > 827 | enum nss_status backend_getspent(struct spwd *result, char *buffer, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:848:17: error: return type is an incomplete type > 848 | enum nss_status backend_getspnam(const char *name, struct spwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c:848:17: error: conflicting types for 'backend_getspnam'; have 'void(const char *, struct spwd *, char *, size_t, int *)' {aka 'void(const char *, struct spwd *, char *, long unsigned int, int *)'} >In file included from backend.c:13: >nss-pgsql.h:79:17: note: previous declaration of 'backend_getspnam' with type 'enum nss_status(const char *, struct spwd *, char *, size_t, int *)' {aka 'enum nss_status(const char *, struct spwd *, char *, long unsigned int, int *)'} > 79 | enum nss_status backend_getspnam(const char *name, > | ^~~~~~~~~~~~~~~~ >backend.c: In function 'backend_getspnam': >backend.c:853:14: error: variable 'status' has initializer but incomplete type > 853 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~ >backend.c:853:34: error: 'NSS_STATUS_NOTFOUND' undeclared (first use in this function) > 853 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~~~~~~~~~~~~~~ >backend.c:853:25: error: storage size of 'status' isn't known > 853 | enum nss_status status = NSS_STATUS_NOTFOUND; > | ^~~~~~ >backend.c:864:16: warning: 'return' with a value, in function returning void > 864 | return status; > | ^~~~~~ >backend.c:848:17: note: declared here > 848 | enum nss_status backend_getspnam(const char *name, struct spwd *result, > | ^~~~~~~~~~~~~~~~ >backend.c: At top level: >backend.c:166:30: warning: '_conn' is static but used in inline function 'getent_prepare' which is not static > 166 | res = PQexec(_conn, stmt); > | ^~~~~ >backend.c:164:40: warning: '_conn' is static but used in inline function 'getent_prepare' which is not static > 164 | PQclear(PQexec(_conn, "BEGIN TRANSACTION")); > | ^~~~~ >backend.c:163:22: warning: '_transaction' is static but used in inline function 'getent_prepare' which is not static > 163 | if (!_transaction++) { > | ^~~~~~~~~~~~ >backend.c:161:30: warning: '_shadowconn' is static but used in inline function 'getent_prepare' which is not static > 161 | res = PQexec(_shadowconn, stmt); > | ^~~~~~~~~~~ >backend.c:159:40: warning: '_shadowconn' is static but used in inline function 'getent_prepare' which is not static > 159 | PQclear(PQexec(_shadowconn, "BEGIN TRANSACTION")); > | ^~~~~~~~~~~ >backend.c:158:22: warning: '_shadowtransaction' is static but used in inline function 'getent_prepare' which is not static > 158 | if (!_shadowtransaction++) { > | ^~~~~~~~~~~~~~~~~~ >make[2]: *** [Makefile:435: backend.lo] Error 1 >libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -c config.c -o config.o >/dev/null 2>&1 >make[2]: Leaving directory '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta/src' >make[1]: *** [Makefile:403: all-recursive] Error 1 >make[1]: Leaving directory '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta' >make: *** [Makefile:335: all] Error 2 > * ERROR: sys-auth/libnss-pgsql-1.5.0_beta-r1::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=sys-auth/libnss-pgsql-1.5.0_beta-r1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=sys-auth/libnss-pgsql-1.5.0_beta-r1::gentoo'`. > * The complete build log is located at '/var/log/portage/sys-auth:libnss-pgsql-1.5.0_beta-r1:20211216-164629.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/temp/environment'. > * Working directory: '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta' > * S: '/var/tmp/portage/sys-auth/libnss-pgsql-1.5.0_beta-r1/work/libnss-pgsql-1.5.0-beta' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 829357
:
759359
|
759360
|
759361
|
759362
|
759363
| 759364 |
759365