Checking host C compiler... ...C compiler works. ______________________________________________________ !!!!!!!!!!!!!!! Warning !!!!!!!!!!!!!!!! The GNU Compiler Collection (GCC, including compilers for C, C++, Fortran and etc) is currently not built on macOS systems for this project. To build the project's necessary software on this system, we need to use your system's C compiler. Project's configuration will continue in 5 seconds. ______________________________________________________ Checking host Fortran compiler... ... Fortran Compiler works. ----------------------------- Project's local configuration ----------------------------- Below, some basic local settings will be requested to start building Maneage on this system (if they haven't been specified on the command-line). This includes the top-level directories that Maneage will use on your system. Most are only optional and you can simply press ENTER, without giving any value (in this case, Maneage will download the necessary components from pre-defined webpages). It is STRONGLY recommended to read the description above each question before answering it. --2020-06-28 01:16:27-- https://doi.org/10.5281/zenodo.3883409 Resolving doi.org (doi.org)... 104.26.8.237, 172.67.72.147, 104.26.9.237 Connecting to doi.org (doi.org)|104.26.8.237|:443... connected. HTTP request sent, awaiting response... 302 Location: https://zenodo.org/record/3883409 [following] --2020-06-28 01:16:27-- https://zenodo.org/record/3883409 Resolving zenodo.org (zenodo.org)... 188.184.117.155 Connecting to zenodo.org (zenodo.org)|188.184.117.155|:443... connected. HTTP request sent, awaiting response... 302 FOUND Location: https://zenodo.org/record/3910660 [following] --2020-06-28 01:16:28-- https://zenodo.org/record/3910660 Reusing existing connection to zenodo.org:443. HTTP request sent, awaiting response... 200 OK Length: 208640 (204K) [text/html] Saving to: ‘.build/software/zenodo-check.html’ 0K .......... .......... .......... .......... .......... 24% 335K 0s 50K .......... .......... .......... .......... .......... 49% 359K 0s 100K .......... .......... .......... .......... .......... 73% 697K 0s 150K .......... .......... .......... .......... .......... 98% 441K 0s 200K ... 100% 75,0K=0,5s 2020-06-28 01:16:30 (430 KB/s) - ‘.build/software/zenodo-check.html’ saved [208640/208640] Building necessary software (if necessary)... make: Nothing to be done for 'all'. tarball=libtirpc-1.2.6.tar.bz2 final=/BDIR/software/tarballs/$tarball; url=; exp_checksum="bcb6b5c062c1301aa1246ec93ae0a5c1d221b8421126d020863517cb814b43ed038fb6c0c2faf4e68ff133b69abefe4f4d42bfc870671da6c27ca941a30b155a"; if [ -f $final ]; then echo "/BDIR/software/tarballs/$tarball: already present in project."; else unchecked="$final.unchecked"; rm -f "$unchecked"; if [ -f /optional/path/$tarball ]; then cp /optional/path/$tarball "$unchecked"; else if [ x"$url" = x ]; then bservers="http://gitlab.com/maneage/tarballs-software/-/raw/master http://git.maneage.org/tarballs-software.git/plain http://akhlaghi.org/maneage-software"; tarballurl=https://zenodo.org/record/3910660/files/$tarball; else bservers="https://zenodo.org/record/3910660/files http://gitlab.com/maneage/tarballs-software/-/raw/master http://git.maneage.org/tarballs-software.git/plain http://akhlaghi.org/maneage-software "; tarballurl=$url/$tarball; fi; if [ -f /BDIR/software/installed/bin/wget ]; then downloader="wget --no-use-server-timestamps -O"; else downloader="/usr/local/bin/wget --no-use-server-timestamps -O"; fi; touch /BDIR/locks/download; ./reproduce/analysis/bash/download-multi-try "$downloader" /BDIR/locks/download $tarballurl "$unchecked" "$bservers"; fi; if [ x"$exp_checksum" = x"NO-CHECK-SUM" ]; then mv "$unchecked" "$final"; else if type sha512sum > /dev/null 2>/dev/null; then checksum=$(sha512sum "$unchecked" | awk '{print $1}'); if [ x"$checksum" = x"$exp_checksum" ]; then mv "$unchecked" "$final"; else echo "ERROR: Non-matching checksum for '$tarball'."; echo "Checksum should be: $exp_checksum"; echo "Checksum is: $checksum"; exit 1; fi; else mv "$unchecked" "$final"; fi; fi; fi if [ xno = xyes ] && [ "x static" = xstatic ]; then export LDFLAGS="$LDFLAGS -static"; fi; check=""; if [ x"$check" = x ]; then check="echo Skipping-check"; fi; cd /BDIR/software/build-tmp; rm -rf libtirpc-1.2.6; if [ x"$gbuild_tar" = x ]; then utarball=/BDIR/software/tarballs/$tarball; else utarball=$gbuild_tar; fi; csuffix=$(echo $utarball | sed -e's/\./ /g' | awk '{print $NF}'); if [ x$csuffix = xlz ]; then intarrm=1; intar=$(echo $utarball | sed -e's/.lz//'); lzip -c -d $utarball > $intar; else intarrm=0; intar=$utarball; fi; if tar xf $intar; then if [ x$intarrm = x1 ]; then rm $intar; fi; else echo; echo "Tar error"; exit 1; fi; cd libtirpc-1.2.6; if [ x"" = x ]; then confscript=./configure; else confscript=""; fi; if [ -f /BDIR/software/installed/bin/bash ]; then if [ -f "$confscript" ]; then sed -e's|#\! /bin/sh|#\! /BDIR/software/installed/bin/bash|' -e's|#\!/bin/sh|#\! /BDIR/software/installed/bin/bash|' $confscript > $confscript-tmp; mv $confscript-tmp $confscript; chmod +x $confscript; fi; shellop="SHELL=/BDIR/software/installed/bin/bash"; elif [ -f /bin/bash ]; then shellop="SHELL=/bin/bash"; else shellop="SHELL=/bin/sh"; fi; if [ -f "$confscript" ]; then if [ x"libtirpc-1.2.6" = x"zlib-1.2.11" ]; then configop="--prefix=/BDIR/software/installed"; else configop="$shellop --prefix=/BDIR/software/installed"; fi; fi; echo; echo "Using '$confscript' to configure:"; echo; echo "$confscript --disable-gssapi $configop"; echo; $confscript --disable-gssapi $configop; make "$shellop" V=1; $check; make "$shellop" install ; cd ..; rm -rf libtirpc-1.2.6 echo "libtirpc 1.2.6" > /BDIR/software/installed/version-info/proglib/libtirpc-1.2.6 /BDIR/software/tarballs/libtirpc-1.2.6.tar.bz2: already present in project. Using './configure' to configure: ./configure --disable-gssapi SHELL=/BDIR/software/installed/bin/bash --prefix=/BDIR/software/installed checking for a BSD-compatible install... /BDIR/software/installed/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /BDIR/software/installed/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for gcc... /BDIR/software/installed/bin/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 we are using the GNU C compiler... yes checking whether /BDIR/software/installed/bin/gcc accepts -g... yes checking for /BDIR/software/installed/bin/gcc option to accept ISO C89... none needed checking whether /BDIR/software/installed/bin/gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of /BDIR/software/installed/bin/gcc... gcc3 checking how to run the C preprocessor... /BDIR/software/installed/bin/gcc -E checking for grep that handles long lines and -e... /BDIR/software/installed/bin/grep checking for egrep... /BDIR/software/installed/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking gssapi/gssapi.h usability... yes checking gssapi/gssapi.h presence... yes checking for gssapi/gssapi.h... yes checking build system type... x86_64-apple-darwin17.7.0 checking host system type... x86_64-apple-darwin17.7.0 checking how to print strings... printf checking for a sed that does not truncate output... /BDIR/software/installed/bin/sed checking for fgrep... /BDIR/software/installed/bin/grep -F checking for ld used by /BDIR/software/installed/bin/gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /BDIR/software/installed/bin/nm -B checking the name lister (/BDIR/software/installed/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin17.7.0 file names to x86_64-apple-darwin17.7.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin17.7.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for objdump... no checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /BDIR/software/installed/bin/nm -B output from /BDIR/software/installed/bin/gcc object... ok checking for sysroot... no checking for a working dd... /BDIR/software/installed/bin/dd checking how to truncate binary pipes... /BDIR/software/installed/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... no checking for lipo... no checking for otool... no checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /BDIR/software/installed/bin/gcc supports -fno-rtti -fno-exceptions... yes checking for /BDIR/software/installed/bin/gcc option to produce PIC... -fno-common -DPIC checking if /BDIR/software/installed/bin/gcc PIC flag -fno-common -DPIC works... yes checking if /BDIR/software/installed/bin/gcc static flag -static works... no checking if /BDIR/software/installed/bin/gcc supports -c -o file.o... yes checking if /BDIR/software/installed/bin/gcc supports -c -o file.o... (cached) yes checking whether the /BDIR/software/installed/bin/gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin17.7.0 dyld 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 dirent.h that defines DIR... yes checking for library containing opendir... none required checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking features.h usability... no checking features.h presence... no checking for features.h... no checking gssapi/gssapi_ext.h usability... no checking gssapi/gssapi_ext.h presence... no checking for gssapi/gssapi_ext.h... no checking for pthread_create in -lpthread... yes checking for getrpcbyname... yes checking for getrpcbynumber... yes checking for setrpcent... yes checking for endrpcent... yes checking for getrpcent... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating doc/Makefile config.status: creating libtirpc.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6' make all-recursive make[2]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6' Making all in src make[3]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6/src' /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_none.lo -MD -MP -MF .deps/libtirpc_la-auth_none.Tpo -c -o libtirpc_la-auth_none.lo `test -f 'auth_none.c' || echo './'`auth_none.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_none.lo -MD -MP -MF .deps/libtirpc_la-auth_none.Tpo -c auth_none.c -fno-common -DPIC -o .libs/libtirpc_la-auth_none.o auth_none.c:81:9: error: unknown type name 'mutex_t' extern mutex_t authnone_lock; ^ auth_none.c:83:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&authnone_lock); ^ auth_none.c:87:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authnone_lock); ^ auth_none.c:103:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authnone_lock); ^ auth_none.c:113:9: error: unknown type name 'mutex_t' extern mutex_t authnone_lock; ^ auth_none.c:117:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&authnone_lock); ^ auth_none.c:123:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authnone_lock); ^ auth_none.c:166:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ auth_none.c:170:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ auth_none.c:180:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 7 warnings and 3 errors generated. make[3]: *** [Makefile:658: libtirpc_la-auth_none.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_unix.lo -MD -MP -MF .deps/libtirpc_la-auth_unix.Tpo -c -o libtirpc_la-auth_unix.lo `test -f 'auth_unix.c' || echo './'`auth_unix.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_unix.lo -MD -MP -MF .deps/libtirpc_la-auth_unix.Tpo -c auth_unix.c -fno-common -DPIC -o .libs/libtirpc_la-auth_unix.o auth_unix.c:408:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ auth_unix.c:412:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ auth_unix.c:422:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 2 warnings and 1 error generated. make[3]: *** [Makefile:665: libtirpc_la-auth_unix.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-authunix_prot.lo -MD -MP -MF .deps/libtirpc_la-authunix_prot.Tpo -c -o libtirpc_la-authunix_prot.lo `test -f 'authunix_prot.c' || echo './'`authunix_prot.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-authunix_prot.lo -MD -MP -MF .deps/libtirpc_la-authunix_prot.Tpo -c authunix_prot.c -fno-common -DPIC -o .libs/libtirpc_la-authunix_prot.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-authunix_prot.lo -MD -MP -MF .deps/libtirpc_la-authunix_prot.Tpo -c authunix_prot.c -o libtirpc_la-authunix_prot.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-authunix_prot.Tpo .deps/libtirpc_la-authunix_prot.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-binddynport.lo -MD -MP -MF .deps/libtirpc_la-binddynport.Tpo -c -o libtirpc_la-binddynport.lo `test -f 'binddynport.c' || echo './'`binddynport.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-binddynport.lo -MD -MP -MF .deps/libtirpc_la-binddynport.Tpo -c binddynport.c -fno-common -DPIC -o .libs/libtirpc_la-binddynport.o In file included from binddynport.c:41: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ binddynport.c:94:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&port_lock); ^ binddynport.c:137:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&port_lock); ^ 2 warnings and 1 error generated. make[3]: *** [Makefile:679: libtirpc_la-binddynport.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-bindresvport.lo -MD -MP -MF .deps/libtirpc_la-bindresvport.Tpo -c -o libtirpc_la-bindresvport.lo `test -f 'bindresvport.c' || echo './'`bindresvport.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-bindresvport.lo -MD -MP -MF .deps/libtirpc_la-bindresvport.Tpo -c bindresvport.c -fno-common -DPIC -o .libs/libtirpc_la-bindresvport.o In file included from bindresvport.c:49: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:686: libtirpc_la-bindresvport.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_bcast.lo -MD -MP -MF .deps/libtirpc_la-clnt_bcast.Tpo -c -o libtirpc_la-clnt_bcast.lo `test -f 'clnt_bcast.c' || echo './'`clnt_bcast.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_bcast.lo -MD -MP -MF .deps/libtirpc_la-clnt_bcast.Tpo -c clnt_bcast.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_bcast.o In file included from clnt_bcast.c:61: /usr/include/netdb.h:159:8: error: redefinition of 'rpcent' struct rpcent { ^ ../tirpc/rpc/rpcent.h:54:8: note: previous definition is here struct rpcent { ^ clnt_bcast.c:72:10: warning: 'POLLRDNORM' macro redefined [-Wmacro-redefined] # define POLLRDNORM 0x040 /* Normal data may be read. */ ^ /usr/include/sys/poll.h:71:9: note: previous definition is here #define POLLRDNORM 0x0040 /* non-OOB/URG data available */ ^ clnt_bcast.c:73:10: warning: 'POLLRDBAND' macro redefined [-Wmacro-redefined] # define POLLRDBAND 0x080 /* Priority data may be read. */ ^ /usr/include/sys/poll.h:73:9: note: previous definition is here #define POLLRDBAND 0x0080 /* OOB/Urgent readable data */ ^ 2 warnings and 1 error generated. make[3]: *** [Makefile:693: libtirpc_la-clnt_bcast.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_dg.lo -MD -MP -MF .deps/libtirpc_la-clnt_dg.Tpo -c -o libtirpc_la-clnt_dg.lo `test -f 'clnt_dg.c' || echo './'`clnt_dg.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_dg.lo -MD -MP -MF .deps/libtirpc_la-clnt_dg.Tpo -c clnt_dg.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_dg.o clnt_dg.c:91:8: error: unknown type name 'mutex_t' extern mutex_t clnt_fd_lock; ^ clnt_dg.c:92:8: error: unknown type name 'cond_t'; did you mean 'const'? static cond_t *dg_cv; ^~~~~~ const clnt_dg.c:92:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static cond_t *dg_cv; ~~~~~~~~~~~~~ ^ clnt_dg.c:160:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:161:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_dg.c:166:43: error: use of undeclared identifier 'cond_t'; did you mean 'const'? if ( (size_t) dtbsize > SIZE_MAX/sizeof(cond_t)) { ^~~~~~ const clnt_dg.c:166:42: error: reference to overloaded function could not be resolved; did you mean to call it? if ( (size_t) dtbsize > SIZE_MAX/sizeof(cond_t)) { ^~~~~~~~ clnt_dg.c:167:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:176:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:183:34: error: use of undeclared identifier 'cond_t'; did you mean 'const'? cv_allocsz = dtbsize * sizeof (cond_t); ^~~~~~ const clnt_dg.c:183:33: error: reference to overloaded function could not be resolved; did you mean to call it? cv_allocsz = dtbsize * sizeof (cond_t); ^~~~~~~~ clnt_dg.c:184:12: error: use of undeclared identifier 'cond_t'; did you mean 'const'? dg_cv = (cond_t *) mem_alloc(cv_allocsz); ^~~~~~ const clnt_dg.c:184:12: error: expected expression clnt_dg.c:185:17: error: use of undeclared identifier 'cond_t'; did you mean 'const'? if (dg_cv == (cond_t *) NULL) { ^~~~~~ const clnt_dg.c:185:17: error: expected expression clnt_dg.c:188:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:196:5: warning: implicit declaration of function 'cond_init' is invalid in C99 [-Wimplicit-function-declaration] cond_init(&dg_cv[i], 0, (void *) 0); ^ clnt_dg.c:200:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:327:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:328:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_dg.c:330:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&dg_cv[cu->cu_fd], &clnt_fd_lock); ^ clnt_dg.c:333:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:556:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:583:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:584:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_dg.c:586:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&dg_cv[cu->cu_fd], &clnt_fd_lock); ^ clnt_dg.c:589:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:591:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] cond_signal(&dg_cv[cu->cu_fd]); ^ clnt_dg.c:615:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:616:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_dg.c:618:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&dg_cv[cu->cu_fd], &clnt_fd_lock); ^ clnt_dg.c:621:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:625:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:629:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:635:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:641:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:655:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:675:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:738:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:741:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(cu->cu_fd, mask); ^ clnt_dg.c:98:2: note: expanded from macro 'release_fd_lock' cond_signal(&dg_cv[fd]); \ ^ clnt_dg.c:755:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:756:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_dg.c:758:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&dg_cv[cu_fd], &clnt_fd_lock); ^ clnt_dg.c:768:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_dg.c:770:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] cond_signal(&dg_cv[cu_fd]); ^ clnt_dg.c:777:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ clnt_dg.c:784:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_dg.c:785:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ clnt_dg.c:794:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 38 warnings and 11 errors generated. make[3]: *** [Makefile:700: libtirpc_la-clnt_dg.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_generic.lo -MD -MP -MF .deps/libtirpc_la-clnt_generic.Tpo -c -o libtirpc_la-clnt_generic.lo `test -f 'clnt_generic.c' || echo './'`clnt_generic.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_generic.lo -MD -MP -MF .deps/libtirpc_la-clnt_generic.Tpo -c clnt_generic.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_generic.o In file included from clnt_generic.c:41: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:707: libtirpc_la-clnt_generic.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_perror.lo -MD -MP -MF .deps/libtirpc_la-clnt_perror.Tpo -c -o libtirpc_la-clnt_perror.lo `test -f 'clnt_perror.c' || echo './'`clnt_perror.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_perror.lo -MD -MP -MF .deps/libtirpc_la-clnt_perror.Tpo -c clnt_perror.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_perror.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_perror.lo -MD -MP -MF .deps/libtirpc_la-clnt_perror.Tpo -c clnt_perror.c -o libtirpc_la-clnt_perror.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-clnt_perror.Tpo .deps/libtirpc_la-clnt_perror.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_raw.lo -MD -MP -MF .deps/libtirpc_la-clnt_raw.Tpo -c -o libtirpc_la-clnt_raw.lo `test -f 'clnt_raw.c' || echo './'`clnt_raw.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_raw.lo -MD -MP -MF .deps/libtirpc_la-clnt_raw.Tpo -c clnt_raw.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_raw.o clnt_raw.c:49:8: error: unknown type name 'mutex_t' extern mutex_t clntraw_lock; ^ clnt_raw.c:89:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clntraw_lock); ^ clnt_raw.c:94:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:129:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:152:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clntraw_lock); ^ clnt_raw.c:154:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:157:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:251:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clntraw_lock); ^ clnt_raw.c:254:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:257:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clntraw_lock); ^ clnt_raw.c:290:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ clnt_raw.c:294:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ clnt_raw.c:303:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 11 warnings and 2 errors generated. make[3]: *** [Makefile:721: libtirpc_la-clnt_raw.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_simple.lo -MD -MP -MF .deps/libtirpc_la-clnt_simple.Tpo -c -o libtirpc_la-clnt_simple.lo `test -f 'clnt_simple.c' || echo './'`clnt_simple.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_simple.lo -MD -MP -MF .deps/libtirpc_la-clnt_simple.Tpo -c clnt_simple.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_simple.o clnt_simple.c:103:9: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? extern thread_key_t rpc_call_key; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ clnt_simple.c:104:9: error: unknown type name 'mutex_t' extern mutex_t tsd_lock; ^ clnt_simple.c:106:22: error: use of undeclared identifier 'KEY_INITIALIZER' if (rpc_call_key == KEY_INITIALIZER) { ^ clnt_simple.c:107:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ clnt_simple.c:108:23: error: use of undeclared identifier 'KEY_INITIALIZER' if (rpc_call_key == KEY_INITIALIZER) ^ clnt_simple.c:109:4: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&rpc_call_key, rpc_call_destroy); ^ clnt_simple.c:110:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ clnt_simple.c:112:35: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] rcp = (struct rpc_call_private *)thr_getspecific(rpc_call_key); ^ clnt_simple.c:112:8: warning: cast to 'struct rpc_call_private *' from smaller integer type 'int' [-Wint-to-pointer-cast] rcp = (struct rpc_call_private *)thr_getspecific(rpc_call_key); ^ clnt_simple.c:120:3: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(rpc_call_key, (void *) rcp); ^ 6 warnings and 4 errors generated. make[3]: *** [Makefile:728: libtirpc_la-clnt_simple.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_vc.lo -MD -MP -MF .deps/libtirpc_la-clnt_vc.Tpo -c -o libtirpc_la-clnt_vc.lo `test -f 'clnt_vc.c' || echo './'`clnt_vc.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-clnt_vc.lo -MD -MP -MF .deps/libtirpc_la-clnt_vc.Tpo -c clnt_vc.c -fno-common -DPIC -o .libs/libtirpc_la-clnt_vc.o In file included from clnt_vc.c:68: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ clnt_vc.c:140:8: error: unknown type name 'mutex_t' extern mutex_t clnt_fd_lock; ^ clnt_vc.c:141:8: error: unknown type name 'cond_t'; did you mean 'const'? static cond_t *vc_cv; ^~~~~~ const clnt_vc.c:141:18: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static cond_t *vc_cv; ~~~~~~~~~~~~~ ^ clnt_vc.c:185:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&disrupt_lock); ^ clnt_vc.c:188:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&disrupt_lock); ^ clnt_vc.c:202:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:209:43: error: use of undeclared identifier 'cond_t'; did you mean 'const'? if ( (size_t) dtbsize > SIZE_MAX/sizeof(cond_t)) { ^~~~~~ const clnt_vc.c:209:42: error: reference to overloaded function could not be resolved; did you mean to call it? if ( (size_t) dtbsize > SIZE_MAX/sizeof(cond_t)) { ^~~~~~~~ clnt_vc.c:228:20: error: use of undeclared identifier 'cond_t'; did you mean 'const'? assert(vc_cv == (cond_t *) NULL); ^~~~~~ const /usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ clnt_vc.c:228:20: error: expected expression clnt_vc.c:229:34: error: use of undeclared identifier 'cond_t'; did you mean 'const'? cv_allocsz = dtbsize * sizeof (cond_t); ^~~~~~ const clnt_vc.c:229:33: error: reference to overloaded function could not be resolved; did you mean to call it? cv_allocsz = dtbsize * sizeof (cond_t); ^~~~~~~~ clnt_vc.c:230:12: error: use of undeclared identifier 'cond_t'; did you mean 'const'? vc_cv = (cond_t *) mem_alloc(cv_allocsz); ^~~~~~ const clnt_vc.c:230:12: error: expected expression clnt_vc.c:231:17: error: use of undeclared identifier 'cond_t'; did you mean 'const'? if (vc_cv == (cond_t *) NULL) { ^~~~~~ const clnt_vc.c:231:17: error: expected expression clnt_vc.c:243:5: warning: implicit declaration of function 'cond_init' is invalid in C99 [-Wimplicit-function-declaration] cond_init(&vc_cv[i], 0, (void *) 0); ^ clnt_vc.c:246:20: error: use of undeclared identifier 'cond_t'; did you mean 'const'? assert(vc_cv != (cond_t *) NULL); ^~~~~~ const /usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ clnt_vc.c:246:20: error: expected expression clnt_vc.c:369:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:370:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_vc.c:372:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&vc_cv[ct->ct_fd], &clnt_fd_lock); ^ clnt_vc.c:375:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_vc.c:398:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:402:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:406:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:413:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:427:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:434:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:467:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:503:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:504:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_vc.c:506:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&vc_cv[ct->ct_fd], &clnt_fd_lock); ^ clnt_vc.c:509:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_vc.c:511:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] cond_signal(&vc_cv[ct->ct_fd]); ^ clnt_vc.c:542:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:543:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_vc.c:545:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&vc_cv[ct->ct_fd], &clnt_fd_lock); ^ clnt_vc.c:548:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_vc.c:553:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:557:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:565:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:571:4: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:591:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:645:3: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:648:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] release_fd_lock(ct->ct_fd, mask); ^ clnt_vc.c:147:2: note: expanded from macro 'release_fd_lock' cond_signal(&vc_cv[fd]); \ ^ clnt_vc.c:667:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:668:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&clnt_fd_lock); ^ clnt_vc.c:670:3: warning: implicit declaration of function 'cond_wait' is invalid in C99 [-Wimplicit-function-declaration] cond_wait(&vc_cv[ct_fd], &clnt_fd_lock); ^ clnt_vc.c:683:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&clnt_fd_lock); ^ clnt_vc.c:685:2: warning: implicit declaration of function 'cond_signal' is invalid in C99 [-Wimplicit-function-declaration] cond_signal(&vc_cv[ct_fd]); ^ clnt_vc.c:769:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ clnt_vc.c:775:2: warning: implicit declaration of function 'thr_sigsetmask' is invalid in C99 [-Wimplicit-function-declaration] thr_sigsetmask(SIG_SETMASK, &newmask, &mask); ^ clnt_vc.c:776:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ clnt_vc.c:785:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 40 warnings and 16 errors generated. make[3]: *** [Makefile:735: libtirpc_la-clnt_vc.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_dtablesize.lo -MD -MP -MF .deps/libtirpc_la-rpc_dtablesize.Tpo -c -o libtirpc_la-rpc_dtablesize.lo `test -f 'rpc_dtablesize.c' || echo './'`rpc_dtablesize.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_dtablesize.lo -MD -MP -MF .deps/libtirpc_la-rpc_dtablesize.Tpo -c rpc_dtablesize.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_dtablesize.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_dtablesize.lo -MD -MP -MF .deps/libtirpc_la-rpc_dtablesize.Tpo -c rpc_dtablesize.c -o libtirpc_la-rpc_dtablesize.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpc_dtablesize.Tpo .deps/libtirpc_la-rpc_dtablesize.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getnetconfig.lo -MD -MP -MF .deps/libtirpc_la-getnetconfig.Tpo -c -o libtirpc_la-getnetconfig.lo `test -f 'getnetconfig.c' || echo './'`getnetconfig.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getnetconfig.lo -MD -MP -MF .deps/libtirpc_la-getnetconfig.Tpo -c getnetconfig.c -fno-common -DPIC -o .libs/libtirpc_la-getnetconfig.o getnetconfig.c:130:9: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? extern thread_key_t nc_key; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ getnetconfig.c:139:16: error: use of undeclared identifier 'KEY_INITIALIZER' if (nc_key == KEY_INITIALIZER) { ^ getnetconfig.c:141:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&nc_lock); ^ getnetconfig.c:142:17: error: use of undeclared identifier 'KEY_INITIALIZER' if (nc_key == KEY_INITIALIZER) ^ getnetconfig.c:143:12: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] error = thr_keycreate(&nc_key, free); ^ getnetconfig.c:144:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_lock); ^ getnetconfig.c:148:24: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] if ((nc_addr = (int *)thr_getspecific(nc_key)) == NULL) { ^ getnetconfig.c:148:17: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] if ((nc_addr = (int *)thr_getspecific(nc_key)) == NULL) { ^ getnetconfig.c:151:7: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] if (thr_setspecific(nc_key, (void *) nc_addr) != 0) { ^ getnetconfig.c:195:5: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&nc_db_lock); ^ getnetconfig.c:201:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:205:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:233:5: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&nc_db_lock); ^ getnetconfig.c:236:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:254:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:260:6: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:269:6: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:275:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:281:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:299:6: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:307:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:314:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:325:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:344:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:379:5: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&nc_db_lock); ^ getnetconfig.c:381:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:407:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:455:5: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&nc_db_lock); ^ getnetconfig.c:460:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:465:7: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ getnetconfig.c:469:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&nc_db_lock); ^ 28 warnings and 3 errors generated. make[3]: *** [Makefile:749: libtirpc_la-getnetconfig.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getnetpath.lo -MD -MP -MF .deps/libtirpc_la-getnetpath.Tpo -c -o libtirpc_la-getnetpath.lo `test -f 'getnetpath.c' || echo './'`getnetpath.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getnetpath.lo -MD -MP -MF .deps/libtirpc_la-getnetpath.Tpo -c getnetpath.c -fno-common -DPIC -o .libs/libtirpc_la-getnetpath.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getnetpath.lo -MD -MP -MF .deps/libtirpc_la-getnetpath.Tpo -c getnetpath.c -o libtirpc_la-getnetpath.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-getnetpath.Tpo .deps/libtirpc_la-getnetpath.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getrpcent.lo -MD -MP -MF .deps/libtirpc_la-getrpcent.Tpo -c -o libtirpc_la-getrpcent.lo `test -f 'getrpcent.c' || echo './'`getrpcent.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getrpcent.lo -MD -MP -MF .deps/libtirpc_la-getrpcent.Tpo -c getrpcent.c -fno-common -DPIC -o .libs/libtirpc_la-getrpcent.o In file included from getrpcent.c:48: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:763: libtirpc_la-getrpcent.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getrpcport.lo -MD -MP -MF .deps/libtirpc_la-getrpcport.Tpo -c -o libtirpc_la-getrpcport.lo `test -f 'getrpcport.c' || echo './'`getrpcport.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getrpcport.lo -MD -MP -MF .deps/libtirpc_la-getrpcport.Tpo -c getrpcport.c -fno-common -DPIC -o .libs/libtirpc_la-getrpcport.o In file included from getrpcport.c:42: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:770: libtirpc_la-getrpcport.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-mt_misc.lo -MD -MP -MF .deps/libtirpc_la-mt_misc.Tpo -c -o libtirpc_la-mt_misc.lo `test -f 'mt_misc.c' || echo './'`mt_misc.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-mt_misc.lo -MD -MP -MF .deps/libtirpc_la-mt_misc.Tpo -c mt_misc.c -fno-common -DPIC -o .libs/libtirpc_la-mt_misc.o mt_misc.c:82:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t clnt_broadcast_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:82:35: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t clnt_broadcast_key = KEY_INITIALIZER; ^ mt_misc.c:83:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t rpc_call_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:83:29: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t rpc_call_key = KEY_INITIALIZER; ^ mt_misc.c:84:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t tcp_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:84:24: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t tcp_key = KEY_INITIALIZER; ^ mt_misc.c:85:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t udp_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:85:24: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t udp_key = KEY_INITIALIZER; ^ mt_misc.c:86:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t nc_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:86:23: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t nc_key = KEY_INITIALIZER; ^ mt_misc.c:87:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t rce_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:87:24: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t rce_key = KEY_INITIALIZER; ^ mt_misc.c:88:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t rg_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:88:23: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t rg_key = KEY_INITIALIZER; ^ mt_misc.c:89:1: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? thread_key_t key_call_key = KEY_INITIALIZER; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ mt_misc.c:89:29: error: use of undeclared identifier 'KEY_INITIALIZER' thread_key_t key_call_key = KEY_INITIALIZER; ^ mt_misc.c:115:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ mt_misc.c:116:17: error: use of undeclared identifier 'KEY_INITIALIZER' if (rce_key == KEY_INITIALIZER) ^ mt_misc.c:117:3: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&rce_key, free); ^ mt_misc.c:118:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ mt_misc.c:120:37: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] rce_addr = (struct rpc_createerr *)thr_getspecific(rce_key); ^ mt_misc.c:125:7: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(rce_key, (void *) rce_addr) != 0) { ^ mt_misc.c:137:28: error: use of undeclared identifier 'KEY_INITIALIZER' if (clnt_broadcast_key != KEY_INITIALIZER) ^ mt_misc.c:139:22: error: use of undeclared identifier 'KEY_INITIALIZER' if (rpc_call_key != KEY_INITIALIZER) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 5 warnings and 20 errors generated. make[3]: *** [Makefile:777: libtirpc_la-mt_misc.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_clnt.lo -MD -MP -MF .deps/libtirpc_la-pmap_clnt.Tpo -c -o libtirpc_la-pmap_clnt.lo `test -f 'pmap_clnt.c' || echo './'`pmap_clnt.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_clnt.lo -MD -MP -MF .deps/libtirpc_la-pmap_clnt.Tpo -c pmap_clnt.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_clnt.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_clnt.lo -MD -MP -MF .deps/libtirpc_la-pmap_clnt.Tpo -c pmap_clnt.c -o libtirpc_la-pmap_clnt.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-pmap_clnt.Tpo .deps/libtirpc_la-pmap_clnt.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_getmaps.lo -MD -MP -MF .deps/libtirpc_la-pmap_getmaps.Tpo -c -o libtirpc_la-pmap_getmaps.lo `test -f 'pmap_getmaps.c' || echo './'`pmap_getmaps.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_getmaps.lo -MD -MP -MF .deps/libtirpc_la-pmap_getmaps.Tpo -c pmap_getmaps.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_getmaps.o In file included from pmap_getmaps.c:51: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:791: libtirpc_la-pmap_getmaps.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_getport.lo -MD -MP -MF .deps/libtirpc_la-pmap_getport.Tpo -c -o libtirpc_la-pmap_getport.lo `test -f 'pmap_getport.c' || echo './'`pmap_getport.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_getport.lo -MD -MP -MF .deps/libtirpc_la-pmap_getport.Tpo -c pmap_getport.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_getport.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_getport.lo -MD -MP -MF .deps/libtirpc_la-pmap_getport.Tpo -c pmap_getport.c -o libtirpc_la-pmap_getport.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-pmap_getport.Tpo .deps/libtirpc_la-pmap_getport.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot.Tpo -c -o libtirpc_la-pmap_prot.lo `test -f 'pmap_prot.c' || echo './'`pmap_prot.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot.Tpo -c pmap_prot.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_prot.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot.Tpo -c pmap_prot.c -o libtirpc_la-pmap_prot.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-pmap_prot.Tpo .deps/libtirpc_la-pmap_prot.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot2.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot2.Tpo -c -o libtirpc_la-pmap_prot2.lo `test -f 'pmap_prot2.c' || echo './'`pmap_prot2.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot2.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot2.Tpo -c pmap_prot2.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_prot2.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_prot2.lo -MD -MP -MF .deps/libtirpc_la-pmap_prot2.Tpo -c pmap_prot2.c -o libtirpc_la-pmap_prot2.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-pmap_prot2.Tpo .deps/libtirpc_la-pmap_prot2.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_rmt.lo -MD -MP -MF .deps/libtirpc_la-pmap_rmt.Tpo -c -o libtirpc_la-pmap_rmt.lo `test -f 'pmap_rmt.c' || echo './'`pmap_rmt.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_rmt.lo -MD -MP -MF .deps/libtirpc_la-pmap_rmt.Tpo -c pmap_rmt.c -fno-common -DPIC -o .libs/libtirpc_la-pmap_rmt.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-pmap_rmt.lo -MD -MP -MF .deps/libtirpc_la-pmap_rmt.Tpo -c pmap_rmt.c -o libtirpc_la-pmap_rmt.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-pmap_rmt.Tpo .deps/libtirpc_la-pmap_rmt.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_prot.lo -MD -MP -MF .deps/libtirpc_la-rpc_prot.Tpo -c -o libtirpc_la-rpc_prot.lo `test -f 'rpc_prot.c' || echo './'`rpc_prot.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_prot.lo -MD -MP -MF .deps/libtirpc_la-rpc_prot.Tpo -c rpc_prot.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_prot.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_prot.lo -MD -MP -MF .deps/libtirpc_la-rpc_prot.Tpo -c rpc_prot.c -o libtirpc_la-rpc_prot.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpc_prot.Tpo .deps/libtirpc_la-rpc_prot.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_commondata.lo -MD -MP -MF .deps/libtirpc_la-rpc_commondata.Tpo -c -o libtirpc_la-rpc_commondata.lo `test -f 'rpc_commondata.c' || echo './'`rpc_commondata.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_commondata.lo -MD -MP -MF .deps/libtirpc_la-rpc_commondata.Tpo -c rpc_commondata.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_commondata.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_commondata.lo -MD -MP -MF .deps/libtirpc_la-rpc_commondata.Tpo -c rpc_commondata.c -o libtirpc_la-rpc_commondata.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpc_commondata.Tpo .deps/libtirpc_la-rpc_commondata.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_callmsg.lo -MD -MP -MF .deps/libtirpc_la-rpc_callmsg.Tpo -c -o libtirpc_la-rpc_callmsg.lo `test -f 'rpc_callmsg.c' || echo './'`rpc_callmsg.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_callmsg.lo -MD -MP -MF .deps/libtirpc_la-rpc_callmsg.Tpo -c rpc_callmsg.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_callmsg.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_callmsg.lo -MD -MP -MF .deps/libtirpc_la-rpc_callmsg.Tpo -c rpc_callmsg.c -o libtirpc_la-rpc_callmsg.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpc_callmsg.Tpo .deps/libtirpc_la-rpc_callmsg.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_generic.lo -MD -MP -MF .deps/libtirpc_la-rpc_generic.Tpo -c -o libtirpc_la-rpc_generic.lo `test -f 'rpc_generic.c' || echo './'`rpc_generic.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_generic.lo -MD -MP -MF .deps/libtirpc_la-rpc_generic.Tpo -c rpc_generic.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_generic.o In file included from rpc_generic.c:51: /usr/include/netdb.h:159:8: error: redefinition of 'rpcent' struct rpcent { ^ ../tirpc/rpc/rpcent.h:54:8: note: previous definition is here struct rpcent { ^ rpc_generic.c:228:9: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? extern thread_key_t tcp_key, udp_key; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ rpc_generic.c:229:9: error: unknown type name 'mutex_t' extern mutex_t tsd_lock; ^ rpc_generic.c:231:17: error: use of undeclared identifier 'KEY_INITIALIZER' if (tcp_key == KEY_INITIALIZER) { ^ rpc_generic.c:232:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ rpc_generic.c:233:18: error: use of undeclared identifier 'KEY_INITIALIZER' if (tcp_key == KEY_INITIALIZER) ^ rpc_generic.c:234:4: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&tcp_key, free); ^ rpc_generic.c:235:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ rpc_generic.c:237:22: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] netid_tcp = (char *)thr_getspecific(tcp_key); ^ rpc_generic.c:237:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] netid_tcp = (char *)thr_getspecific(tcp_key); ^ rpc_generic.c:238:17: error: use of undeclared identifier 'KEY_INITIALIZER' if (udp_key == KEY_INITIALIZER) { ^ rpc_generic.c:239:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ rpc_generic.c:240:18: error: use of undeclared identifier 'KEY_INITIALIZER' if (udp_key == KEY_INITIALIZER) ^ rpc_generic.c:241:4: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&udp_key, free); ^ rpc_generic.c:242:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ rpc_generic.c:244:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] netid_udp = (char *)thr_getspecific(udp_key); ^ rpc_generic.c:258:6: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(tcp_key, ^ rpc_generic.c:264:6: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(udp_key, ^ rpc_generic.c:539:18: error: use of undeclared identifier 'SOL_IPV6' setsockopt(fd, SOL_IPV6, IPV6_V6ONLY, &val, sizeof(val)); ^ 11 warnings and 8 errors generated. make[3]: *** [Makefile:847: libtirpc_la-rpc_generic.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_soc.lo -MD -MP -MF .deps/libtirpc_la-rpc_soc.Tpo -c -o libtirpc_la-rpc_soc.lo `test -f 'rpc_soc.c' || echo './'`rpc_soc.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpc_soc.lo -MD -MP -MF .deps/libtirpc_la-rpc_soc.Tpo -c rpc_soc.c -fno-common -DPIC -o .libs/libtirpc_la-rpc_soc.o In file included from rpc_soc.c:57: /usr/include/netdb.h:159:8: error: redefinition of 'rpcent' struct rpcent { ^ ../tirpc/rpc/rpcent.h:54:8: note: previous definition is here struct rpcent { ^ rpc_soc.c:68:8: error: unknown type name 'mutex_t' extern mutex_t rpcsoc_lock; ^ rpc_soc.c:99:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&rpcsoc_lock); ^ rpc_soc.c:102:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&rpcsoc_lock); ^ rpc_soc.c:106:14: warning: unused variable 'have_cloexec' [-Wunused-variable] static int have_cloexec; ^ rpc_soc.c:133:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&rpcsoc_lock); /* pmap_getport is recursive */ ^ rpc_soc.c:160:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&rpcsoc_lock); ^ rpc_soc.c:172:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&rpcsoc_lock); ^ rpc_soc.c:469:8: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? extern thread_key_t clnt_broadcast_key; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ rpc_soc.c:486:40: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] clnt_broadcast_result = (resultproc_t)thr_getspecific(clnt_broadcast_key); ^ rpc_soc.c:486:26: warning: cast to 'resultproc_t' (aka 'int (*)(char *, ...)') from smaller integer type 'int' [-Wint-to-pointer-cast] clnt_broadcast_result = (resultproc_t)thr_getspecific(clnt_broadcast_key); ^ rpc_soc.c:505:9: error: unknown type name 'mutex_t' extern mutex_t tsd_lock; ^ rpc_soc.c:507:28: error: use of undeclared identifier 'KEY_INITIALIZER' if (clnt_broadcast_key == KEY_INITIALIZER) { ^ rpc_soc.c:508:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ rpc_soc.c:509:29: error: use of undeclared identifier 'KEY_INITIALIZER' if (clnt_broadcast_key == KEY_INITIALIZER) ^ rpc_soc.c:510:4: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&clnt_broadcast_key, free); ^ rpc_soc.c:511:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ rpc_soc.c:513:2: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(clnt_broadcast_key, (void *) eachresult); ^ 12 warnings and 6 errors generated. make[3]: *** [Makefile:854: libtirpc_la-rpc_soc.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_clnt.lo -MD -MP -MF .deps/libtirpc_la-rpcb_clnt.Tpo -c -o libtirpc_la-rpcb_clnt.lo `test -f 'rpcb_clnt.c' || echo './'`rpcb_clnt.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_clnt.lo -MD -MP -MF .deps/libtirpc_la-rpcb_clnt.Tpo -c rpcb_clnt.c -fno-common -DPIC -o .libs/libtirpc_la-rpcb_clnt.o In file included from rpcb_clnt.c:52: /usr/include/netdb.h:159:8: error: redefinition of 'rpcent' struct rpcent { ^ ../tirpc/rpc/rpcent.h:54:8: note: previous definition is here struct rpcent { ^ rpcb_clnt.c:138:8: error: unknown type name 'rwlock_t'; did you mean 'clock_t'? extern rwlock_t rpcbaddr_cache_lock; ^~~~~~~~ clock_t /usr/include/sys/_types/_clock_t.h:31:33: note: 'clock_t' declared here typedef __darwin_clock_t clock_t; ^ rpcb_clnt.c:220:2: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:253:2: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:304:2: warning: implicit declaration of function 'rwlock_rdlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_rdlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:316:4: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:327:2: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:333:3: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock(&rpcbaddr_cache_lock); ^ rpcb_clnt.c:472:9: error: unknown type name 'mutex_t' extern mutex_t loopnconf_lock; ^ rpcb_clnt.c:509:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&loopnconf_lock); ^ rpcb_clnt.c:520:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&loopnconf_lock); ^ rpcb_clnt.c:549:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&loopnconf_lock); ^ rpcb_clnt.c:557:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&loopnconf_lock); ^ 10 warnings and 3 errors generated. make[3]: *** [Makefile:861: libtirpc_la-rpcb_clnt.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_prot.lo -MD -MP -MF .deps/libtirpc_la-rpcb_prot.Tpo -c -o libtirpc_la-rpcb_prot.lo `test -f 'rpcb_prot.c' || echo './'`rpcb_prot.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_prot.lo -MD -MP -MF .deps/libtirpc_la-rpcb_prot.Tpo -c rpcb_prot.c -fno-common -DPIC -o .libs/libtirpc_la-rpcb_prot.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_prot.lo -MD -MP -MF .deps/libtirpc_la-rpcb_prot.Tpo -c rpcb_prot.c -o libtirpc_la-rpcb_prot.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpcb_prot.Tpo .deps/libtirpc_la-rpcb_prot.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_st_xdr.lo -MD -MP -MF .deps/libtirpc_la-rpcb_st_xdr.Tpo -c -o libtirpc_la-rpcb_st_xdr.lo `test -f 'rpcb_st_xdr.c' || echo './'`rpcb_st_xdr.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_st_xdr.lo -MD -MP -MF .deps/libtirpc_la-rpcb_st_xdr.Tpo -c rpcb_st_xdr.c -fno-common -DPIC -o .libs/libtirpc_la-rpcb_st_xdr.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcb_st_xdr.lo -MD -MP -MF .deps/libtirpc_la-rpcb_st_xdr.Tpo -c rpcb_st_xdr.c -o libtirpc_la-rpcb_st_xdr.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpcb_st_xdr.Tpo .deps/libtirpc_la-rpcb_st_xdr.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc.lo -MD -MP -MF .deps/libtirpc_la-svc.Tpo -c -o libtirpc_la-svc.lo `test -f 'svc.c' || echo './'`svc.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc.lo -MD -MP -MF .deps/libtirpc_la-svc.Tpo -c svc.c -fno-common -DPIC -o .libs/libtirpc_la-svc.o svc.c:78:8: error: unknown type name 'rwlock_t'; did you mean 'clock_t'? extern rwlock_t svc_lock; ^~~~~~~~ clock_t /usr/include/sys/_types/_clock_t.h:31:33: note: 'clock_t' declared here typedef __darwin_clock_t clock_t; ^ svc.c:79:8: error: unknown type name 'rwlock_t'; did you mean 'clock_t'? extern rwlock_t svc_fd_lock; ^~~~~~~~ clock_t /usr/include/sys/_types/_clock_t.h:31:33: note: 'clock_t' declared here typedef __darwin_clock_t clock_t; ^ svc.c:100:3: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock (&svc_fd_lock); ^ svc.c:142:3: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_fd_lock); ^ svc.c:172:5: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock (&svc_fd_lock); ^ svc.c:194:5: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_fd_lock); ^ svc.c:239:3: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock (&svc_lock); ^ svc.c:246:7: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_lock); ^ svc.c:254:7: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_lock); ^ svc.c:269:3: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_lock); ^ svc.c:294:3: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock (&svc_lock); ^ svc.c:310:3: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_lock); ^ svc.c:676:3: warning: implicit declaration of function 'rwlock_rdlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_rdlock (&svc_fd_lock); ^ svc.c:678:3: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock (&svc_fd_lock); ^ 12 warnings and 2 errors generated. make[3]: *** [Makefile:882: libtirpc_la-svc.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth.lo -MD -MP -MF .deps/libtirpc_la-svc_auth.Tpo -c -o libtirpc_la-svc_auth.lo `test -f 'svc_auth.c' || echo './'`svc_auth.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth.lo -MD -MP -MF .deps/libtirpc_la-svc_auth.Tpo -c svc_auth.c -fno-common -DPIC -o .libs/libtirpc_la-svc_auth.o svc_auth.c:96:9: error: unknown type name 'mutex_t' extern mutex_t authsvc_lock; ^ svc_auth.c:134:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&authsvc_lock); ^ svc_auth.c:140:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authsvc_lock); ^ svc_auth.c:144:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authsvc_lock); ^ svc_auth.c:176:9: error: unknown type name 'mutex_t' extern mutex_t authsvc_lock; ^ svc_auth.c:193:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&authsvc_lock); ^ svc_auth.c:197:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authsvc_lock); ^ svc_auth.c:205:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authsvc_lock); ^ svc_auth.c:212:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&authsvc_lock); ^ 7 warnings and 2 errors generated. make[3]: *** [Makefile:889: libtirpc_la-svc_auth.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_dg.lo -MD -MP -MF .deps/libtirpc_la-svc_dg.Tpo -c -o libtirpc_la-svc_dg.lo `test -f 'svc_dg.c' || echo './'`svc_dg.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_dg.lo -MD -MP -MF .deps/libtirpc_la-svc_dg.Tpo -c svc_dg.c -fno-common -DPIC -o .libs/libtirpc_la-svc_dg.o svc_dg.c:350:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ svc_dg.c:354:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ svc_dg.c:366:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ svc_dg.c:436:8: error: unknown type name 'mutex_t' extern mutex_t dupreq_lock; ^ svc_dg.c:454:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&dupreq_lock); ^ svc_dg.c:457:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:463:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:472:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:481:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:486:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:517:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&dupreq_lock); ^ svc_dg.c:531:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:540:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:547:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:584:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:605:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&dupreq_lock); ^ svc_dg.c:630:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:641:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&dupreq_lock); ^ svc_dg.c:655:25: error: use of undeclared identifier 'SOL_IP' (void) setsockopt(fd, SOL_IP, IP_PKTINFO, &val, sizeof(val)); ^ svc_dg.c:659:25: error: use of undeclared identifier 'SOL_IPV6' (void) setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val)); ^ svc_dg.c:659:35: error: use of undeclared identifier 'IPV6_RECVPKTINFO' (void) setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val)); ^ svc_dg.c:687:27: error: use of undeclared identifier 'SOL_IP' if (cmsg->cmsg_level != SOL_IP ^ svc_dg.c:701:27: error: use of undeclared identifier 'SOL_IPV6' if (cmsg->cmsg_level != SOL_IPV6 ^ svc_dg.c:702:26: error: use of undeclared identifier 'IPV6_PKTINFO' || cmsg->cmsg_type != IPV6_PKTINFO ^ 16 warnings and 8 errors generated. make[3]: *** [Makefile:896: libtirpc_la-svc_dg.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_unix.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_unix.Tpo -c -o libtirpc_la-svc_auth_unix.lo `test -f 'svc_auth_unix.c' || echo './'`svc_auth_unix.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_unix.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_unix.Tpo -c svc_auth_unix.c -fno-common -DPIC -o .libs/libtirpc_la-svc_auth_unix.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_unix.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_unix.Tpo -c svc_auth_unix.c -o libtirpc_la-svc_auth_unix.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-svc_auth_unix.Tpo .deps/libtirpc_la-svc_auth_unix.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_none.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_none.Tpo -c -o libtirpc_la-svc_auth_none.lo `test -f 'svc_auth_none.c' || echo './'`svc_auth_none.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_none.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_none.Tpo -c svc_auth_none.c -fno-common -DPIC -o .libs/libtirpc_la-svc_auth_none.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_auth_none.lo -MD -MP -MF .deps/libtirpc_la-svc_auth_none.Tpo -c svc_auth_none.c -o libtirpc_la-svc_auth_none.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-svc_auth_none.Tpo .deps/libtirpc_la-svc_auth_none.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_generic.lo -MD -MP -MF .deps/libtirpc_la-svc_generic.Tpo -c -o libtirpc_la-svc_generic.lo `test -f 'svc_generic.c' || echo './'`svc_generic.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_generic.lo -MD -MP -MF .deps/libtirpc_la-svc_generic.Tpo -c svc_generic.c -fno-common -DPIC -o .libs/libtirpc_la-svc_generic.o svc_generic.c:83:9: error: unknown type name 'mutex_t' extern mutex_t xprtlist_lock; ^ svc_generic.c:92:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&xprtlist_lock); ^ svc_generic.c:115:6: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&xprtlist_lock); ^ svc_generic.c:125:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&xprtlist_lock); ^ 3 warnings and 1 error generated. make[3]: *** [Makefile:917: libtirpc_la-svc_generic.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_raw.lo -MD -MP -MF .deps/libtirpc_la-svc_raw.Tpo -c -o libtirpc_la-svc_raw.lo `test -f 'svc_raw.c' || echo './'`svc_raw.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_raw.lo -MD -MP -MF .deps/libtirpc_la-svc_raw.Tpo -c svc_raw.c -fno-common -DPIC -o .libs/libtirpc_la-svc_raw.o svc_raw.c:61:8: error: unknown type name 'mutex_t' extern mutex_t svcraw_lock; ^ svc_raw.c:81:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&svcraw_lock); ^ svc_raw.c:86:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:92:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:95:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(ext, 0, sizeof (*ext)); ^ svc_raw.c:95:3: note: include the header or explicitly provide a declaration for 'memset' svc_raw.c:109:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:130:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&svcraw_lock); ^ svc_raw.c:133:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:136:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:156:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&svcraw_lock); ^ svc_raw.c:159:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:162:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:183:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&svcraw_lock); ^ svc_raw.c:186:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:189:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:203:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&svcraw_lock); ^ svc_raw.c:206:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:209:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&svcraw_lock); ^ svc_raw.c:239:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ svc_raw.c:243:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ svc_raw.c:255:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 19 warnings and 2 errors generated. make[3]: *** [Makefile:924: libtirpc_la-svc_raw.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_run.lo -MD -MP -MF .deps/libtirpc_la-svc_run.Tpo -c -o libtirpc_la-svc_run.lo `test -f 'svc_run.c' || echo './'`svc_run.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_run.lo -MD -MP -MF .deps/libtirpc_la-svc_run.Tpo -c svc_run.c -fno-common -DPIC -o .libs/libtirpc_la-svc_run.o svc_run.c:107:9: error: unknown type name 'rwlock_t'; did you mean 'clock_t'? extern rwlock_t svc_fd_lock; ^~~~~~~~ clock_t /usr/include/sys/_types/_clock_t.h:31:33: note: 'clock_t' declared here typedef __darwin_clock_t clock_t; ^ svc_run.c:109:2: warning: implicit declaration of function 'rwlock_wrlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_wrlock(&svc_fd_lock); ^ svc_run.c:113:2: warning: implicit declaration of function 'rwlock_unlock' is invalid in C99 [-Wimplicit-function-declaration] rwlock_unlock(&svc_fd_lock); ^ 2 warnings and 1 error generated. make[3]: *** [Makefile:931: libtirpc_la-svc_run.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_simple.lo -MD -MP -MF .deps/libtirpc_la-svc_simple.Tpo -c -o libtirpc_la-svc_simple.lo `test -f 'svc_simple.c' || echo './'`svc_simple.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_simple.lo -MD -MP -MF .deps/libtirpc_la-svc_simple.Tpo -c svc_simple.c -fno-common -DPIC -o .libs/libtirpc_la-svc_simple.o svc_simple.c:101:9: error: unknown type name 'mutex_t' extern mutex_t proglst_lock; ^ svc_simple.c:116:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&proglst_lock); ^ svc_simple.c:218:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ svc_simple.c:244:9: error: unknown type name 'mutex_t' extern mutex_t proglst_lock; ^ svc_simple.c:259:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&proglst_lock); ^ svc_simple.c:275:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ svc_simple.c:282:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ svc_simple.c:289:5: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ svc_simple.c:294:4: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ svc_simple.c:297:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&proglst_lock); ^ 8 warnings and 2 errors generated. make[3]: *** [Makefile:938: libtirpc_la-svc_simple.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_vc.lo -MD -MP -MF .deps/libtirpc_la-svc_vc.Tpo -c -o libtirpc_la-svc_vc.lo `test -f 'svc_vc.c' || echo './'`svc_vc.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-svc_vc.lo -MD -MP -MF .deps/libtirpc_la-svc_vc.Tpo -c svc_vc.c -fno-common -DPIC -o .libs/libtirpc_la-svc_vc.o svc_vc.c:66:8: error: unknown type name 'rwlock_t'; did you mean 'clock_t'? extern rwlock_t svc_fd_lock; ^~~~~~~~ clock_t /usr/include/sys/_types/_clock_t.h:31:33: note: 'clock_t' declared here typedef __darwin_clock_t clock_t; ^ svc_vc.c:732:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ svc_vc.c:736:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ svc_vc.c:748:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ svc_vc.c:757:9: error: unknown type name 'mutex_t' extern mutex_t ops_lock; ^ svc_vc.c:759:2: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&ops_lock); ^ svc_vc.c:774:2: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&ops_lock); ^ 4 warnings and 3 errors generated. make[3]: *** [Makefile:945: libtirpc_la-svc_vc.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getpeereid.lo -MD -MP -MF .deps/libtirpc_la-getpeereid.Tpo -c -o libtirpc_la-getpeereid.lo `test -f 'getpeereid.c' || echo './'`getpeereid.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getpeereid.lo -MD -MP -MF .deps/libtirpc_la-getpeereid.Tpo -c getpeereid.c -fno-common -DPIC -o .libs/libtirpc_la-getpeereid.o getpeereid.c:38:15: error: variable has incomplete type 'struct ucred' struct ucred uc; ^ getpeereid.c:38:9: note: forward declaration of 'struct ucred' struct ucred uc; ^ getpeereid.c:43:36: error: use of undeclared identifier 'SO_PEERCRED' error = getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &uclen); /* SCM_CREDENTIALS */ ^ 2 errors generated. make[3]: *** [Makefile:952: libtirpc_la-getpeereid.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_time.lo -MD -MP -MF .deps/libtirpc_la-auth_time.Tpo -c -o libtirpc_la-auth_time.lo `test -f 'auth_time.c' || echo './'`auth_time.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-auth_time.lo -MD -MP -MF .deps/libtirpc_la-auth_time.Tpo -c auth_time.c -fno-common -DPIC -o .libs/libtirpc_la-auth_time.o In file included from auth_time.c:42: In file included from ../tirpc/rpc/rpc.h:73: ../tirpc/rpc/rpcent.h:54:8: error: redefinition of 'rpcent' struct rpcent { ^ /usr/include/netdb.h:159:8: note: previous definition is here struct rpcent { ^ 1 error generated. make[3]: *** [Makefile:959: libtirpc_la-auth_time.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-debug.lo -MD -MP -MF .deps/libtirpc_la-debug.Tpo -c -o libtirpc_la-debug.lo `test -f 'debug.c' || echo './'`debug.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-debug.lo -MD -MP -MF .deps/libtirpc_la-debug.Tpo -c debug.c -fno-common -DPIC -o .libs/libtirpc_la-debug.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-debug.lo -MD -MP -MF .deps/libtirpc_la-debug.Tpo -c debug.c -o libtirpc_la-debug.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-debug.Tpo .deps/libtirpc_la-debug.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr.lo -MD -MP -MF .deps/libtirpc_la-xdr.Tpo -c -o libtirpc_la-xdr.lo `test -f 'xdr.c' || echo './'`xdr.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr.lo -MD -MP -MF .deps/libtirpc_la-xdr.Tpo -c xdr.c -fno-common -DPIC -o .libs/libtirpc_la-xdr.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr.lo -MD -MP -MF .deps/libtirpc_la-xdr.Tpo -c xdr.c -o libtirpc_la-xdr.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr.Tpo .deps/libtirpc_la-xdr.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_rec.lo -MD -MP -MF .deps/libtirpc_la-xdr_rec.Tpo -c -o libtirpc_la-xdr_rec.lo `test -f 'xdr_rec.c' || echo './'`xdr_rec.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_rec.lo -MD -MP -MF .deps/libtirpc_la-xdr_rec.Tpo -c xdr_rec.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_rec.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_rec.lo -MD -MP -MF .deps/libtirpc_la-xdr_rec.Tpo -c xdr_rec.c -o libtirpc_la-xdr_rec.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_rec.Tpo .deps/libtirpc_la-xdr_rec.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_array.lo -MD -MP -MF .deps/libtirpc_la-xdr_array.Tpo -c -o libtirpc_la-xdr_array.lo `test -f 'xdr_array.c' || echo './'`xdr_array.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_array.lo -MD -MP -MF .deps/libtirpc_la-xdr_array.Tpo -c xdr_array.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_array.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_array.lo -MD -MP -MF .deps/libtirpc_la-xdr_array.Tpo -c xdr_array.c -o libtirpc_la-xdr_array.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_array.Tpo .deps/libtirpc_la-xdr_array.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_float.lo -MD -MP -MF .deps/libtirpc_la-xdr_float.Tpo -c -o libtirpc_la-xdr_float.lo `test -f 'xdr_float.c' || echo './'`xdr_float.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_float.lo -MD -MP -MF .deps/libtirpc_la-xdr_float.Tpo -c xdr_float.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_float.o xdr_float.c:86:10: fatal error: 'endian.h' file not found #include ^~~~~~~~~~ 1 error generated. make[3]: *** [Makefile:1036: libtirpc_la-xdr_float.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_mem.lo -MD -MP -MF .deps/libtirpc_la-xdr_mem.Tpo -c -o libtirpc_la-xdr_mem.lo `test -f 'xdr_mem.c' || echo './'`xdr_mem.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_mem.lo -MD -MP -MF .deps/libtirpc_la-xdr_mem.Tpo -c xdr_mem.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_mem.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_mem.lo -MD -MP -MF .deps/libtirpc_la-xdr_mem.Tpo -c xdr_mem.c -o libtirpc_la-xdr_mem.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_mem.Tpo .deps/libtirpc_la-xdr_mem.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_reference.lo -MD -MP -MF .deps/libtirpc_la-xdr_reference.Tpo -c -o libtirpc_la-xdr_reference.lo `test -f 'xdr_reference.c' || echo './'`xdr_reference.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_reference.lo -MD -MP -MF .deps/libtirpc_la-xdr_reference.Tpo -c xdr_reference.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_reference.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_reference.lo -MD -MP -MF .deps/libtirpc_la-xdr_reference.Tpo -c xdr_reference.c -o libtirpc_la-xdr_reference.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_reference.Tpo .deps/libtirpc_la-xdr_reference.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_stdio.lo -MD -MP -MF .deps/libtirpc_la-xdr_stdio.Tpo -c -o libtirpc_la-xdr_stdio.lo `test -f 'xdr_stdio.c' || echo './'`xdr_stdio.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_stdio.lo -MD -MP -MF .deps/libtirpc_la-xdr_stdio.Tpo -c xdr_stdio.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_stdio.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_stdio.lo -MD -MP -MF .deps/libtirpc_la-xdr_stdio.Tpo -c xdr_stdio.c -o libtirpc_la-xdr_stdio.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_stdio.Tpo .deps/libtirpc_la-xdr_stdio.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_sizeof.lo -MD -MP -MF .deps/libtirpc_la-xdr_sizeof.Tpo -c -o libtirpc_la-xdr_sizeof.lo `test -f 'xdr_sizeof.c' || echo './'`xdr_sizeof.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_sizeof.lo -MD -MP -MF .deps/libtirpc_la-xdr_sizeof.Tpo -c xdr_sizeof.c -fno-common -DPIC -o .libs/libtirpc_la-xdr_sizeof.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-xdr_sizeof.lo -MD -MP -MF .deps/libtirpc_la-xdr_sizeof.Tpo -c xdr_sizeof.c -o libtirpc_la-xdr_sizeof.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-xdr_sizeof.Tpo .deps/libtirpc_la-xdr_sizeof.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-key_call.lo -MD -MP -MF .deps/libtirpc_la-key_call.Tpo -c -o libtirpc_la-key_call.lo `test -f 'key_call.c' || echo './'`key_call.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-key_call.lo -MD -MP -MF .deps/libtirpc_la-key_call.Tpo -c key_call.c -fno-common -DPIC -o .libs/libtirpc_la-key_call.o key_call.c:299:9: error: unknown type name 'thread_key_t'; did you mean 'pthread_key_t'? extern thread_key_t key_call_key; ^~~~~~~~~~~~ pthread_key_t /usr/include/sys/_pthread/_pthread_key_t.h:31:32: note: 'pthread_key_t' declared here typedef __darwin_pthread_key_t pthread_key_t; ^ key_call.c:300:9: error: unknown type name 'mutex_t' extern mutex_t tsd_lock; ^ key_call.c:306:3: warning: implicit declaration of function 'mutex_lock' is invalid in C99 [-Wimplicit-function-declaration] mutex_lock(&tsd_lock); ^ key_call.c:308:4: warning: implicit declaration of function 'thr_keycreate' is invalid in C99 [-Wimplicit-function-declaration] thr_keycreate(&key_call_key, key_call_destroy); ^ key_call.c:309:3: warning: implicit declaration of function 'mutex_unlock' is invalid in C99 [-Wimplicit-function-declaration] mutex_unlock(&tsd_lock); ^ key_call.c:311:35: warning: implicit declaration of function 'thr_getspecific' is invalid in C99 [-Wimplicit-function-declaration] kcp = (struct key_call_private *)thr_getspecific(key_call_key); ^ key_call.c:311:8: warning: cast to 'struct key_call_private *' from smaller integer type 'int' [-Wint-to-pointer-cast] kcp = (struct key_call_private *)thr_getspecific(key_call_key); ^ key_call.c:317:17: warning: implicit declaration of function 'thr_setspecific' is invalid in C99 [-Wimplicit-function-declaration] thr_setspecific(key_call_key, (void *) kcp); ^ 6 warnings and 2 errors generated. make[3]: *** [Makefile:1099: libtirpc_la-key_call.lo] Error 1 /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-key_prot_xdr.lo -MD -MP -MF .deps/libtirpc_la-key_prot_xdr.Tpo -c -o libtirpc_la-key_prot_xdr.lo `test -f 'key_prot_xdr.c' || echo './'`key_prot_xdr.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-key_prot_xdr.lo -MD -MP -MF .deps/libtirpc_la-key_prot_xdr.Tpo -c key_prot_xdr.c -fno-common -DPIC -o .libs/libtirpc_la-key_prot_xdr.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-key_prot_xdr.lo -MD -MP -MF .deps/libtirpc_la-key_prot_xdr.Tpo -c key_prot_xdr.c -o libtirpc_la-key_prot_xdr.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-key_prot_xdr.Tpo .deps/libtirpc_la-key_prot_xdr.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getpublickey.lo -MD -MP -MF .deps/libtirpc_la-getpublickey.Tpo -c -o libtirpc_la-getpublickey.lo `test -f 'getpublickey.c' || echo './'`getpublickey.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getpublickey.lo -MD -MP -MF .deps/libtirpc_la-getpublickey.Tpo -c getpublickey.c -fno-common -DPIC -o .libs/libtirpc_la-getpublickey.o getpublickey.c:169:30: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] return(__getpublickey_real(netname, publickey)); ^~~~~~~ 1 warning generated. libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-getpublickey.lo -MD -MP -MF .deps/libtirpc_la-getpublickey.Tpo -c getpublickey.c -o libtirpc_la-getpublickey.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-getpublickey.Tpo .deps/libtirpc_la-getpublickey.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netname.lo -MD -MP -MF .deps/libtirpc_la-netname.Tpo -c -o libtirpc_la-netname.lo `test -f 'netname.c' || echo './'`netname.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netname.lo -MD -MP -MF .deps/libtirpc_la-netname.Tpo -c netname.c -fno-common -DPIC -o .libs/libtirpc_la-netname.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netname.lo -MD -MP -MF .deps/libtirpc_la-netname.Tpo -c netname.c -o libtirpc_la-netname.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-netname.Tpo .deps/libtirpc_la-netname.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netnamer.lo -MD -MP -MF .deps/libtirpc_la-netnamer.Tpo -c -o libtirpc_la-netnamer.lo `test -f 'netnamer.c' || echo './'`netnamer.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netnamer.lo -MD -MP -MF .deps/libtirpc_la-netnamer.Tpo -c netnamer.c -fno-common -DPIC -o .libs/libtirpc_la-netnamer.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-netnamer.lo -MD -MP -MF .deps/libtirpc_la-netnamer.Tpo -c netnamer.c -o libtirpc_la-netnamer.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-netnamer.Tpo .deps/libtirpc_la-netnamer.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcdname.lo -MD -MP -MF .deps/libtirpc_la-rpcdname.Tpo -c -o libtirpc_la-rpcdname.lo `test -f 'rpcdname.c' || echo './'`rpcdname.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcdname.lo -MD -MP -MF .deps/libtirpc_la-rpcdname.Tpo -c rpcdname.c -fno-common -DPIC -o .libs/libtirpc_la-rpcdname.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rpcdname.lo -MD -MP -MF .deps/libtirpc_la-rpcdname.Tpo -c rpcdname.c -o libtirpc_la-rpcdname.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rpcdname.Tpo .deps/libtirpc_la-rpcdname.Plo /BDIR/software/installed/bin/bash ../libtool --tag=CC --mode=compile /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rtime.lo -MD -MP -MF .deps/libtirpc_la-rtime.Tpo -c -o libtirpc_la-rtime.lo `test -f 'rtime.c' || echo './'`rtime.c libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rtime.lo -MD -MP -MF .deps/libtirpc_la-rtime.Tpo -c rtime.c -fno-common -DPIC -o .libs/libtirpc_la-rtime.o libtool: compile: /BDIR/software/installed/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -I/BDIR/software/installed/include -g -O2 -MT libtirpc_la-rtime.lo -MD -MP -MF .deps/libtirpc_la-rtime.Tpo -c rtime.c -o libtirpc_la-rtime.o >/dev/null 2>&1 mv -f .deps/libtirpc_la-rtime.Tpo .deps/libtirpc_la-rtime.Plo make[3]: Target 'all' not remade because of errors. make[3]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6/src' Making all in man make[3]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6/man' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6/man' Making all in doc make[3]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6/doc' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6/doc' make[3]: Entering directory '/BDIR/software/build-tmp/libtirpc-1.2.6' make[3]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6' make[2]: *** [Makefile:517: all-recursive] Error 1 make[2]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6' make[1]: *** [Makefile:402: all] Error 2 make[1]: Leaving directory '/BDIR/software/build-tmp/libtirpc-1.2.6' make: *** [reproduce/software/make/high-level.mk:597: /BDIR/software/installed/version-info/proglib/libtirpc-1.2.6] Error 2 make: Target 'all' not remade because of errors.