=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for swi-prolog-packages-6.6.6nb2
for p in clib cpp odbc table xpce sgml RDF semweb http chr clpqr nlp ssl tipc pldoc plunit zlib R protobufs windows PDT utf8proc archive; do \
    if [ -r $p/Makefile ]; then make -C $p || exit 1; fi; \
        done
make[1]: Entering directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib'
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o error.o error.c
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o socket.o socket.c
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o nonblockio.o nonblockio.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o socket.so error.o socket.o nonblockio.o  
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o form.o form.c
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o cgi.o cgi.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o cgi.so error.o form.o cgi.o 
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o memfile.o memfile.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o memfile.so error.o memfile.o  
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o files.o files.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o files.so error.o files.o  
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o mime.o mime.c
(cd maildrop/rfc2045 && make)
make[2]: Entering directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib/maildrop/rfc2045'
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045.o rfc2045.c
rfc2045.c:732:6: warning: array subscript is of type 'char' [-Wchar-subscripts]
                *q=tolower(*q);
                   ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
rfc2045.c:748:6: warning: array subscript is of type 'char' [-Wchar-subscripts]
                *q=tolower(*q);
                   ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
2 warnings generated.
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045acchk.o rfc2045acchk.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045acprep.o rfc2045acprep.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045appendurl.o rfc2045appendurl.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045cdecode.o rfc2045cdecode.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045decode.o rfc2045decode.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045enomem.o rfc2045enomem.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045_base64encode.o rfc2045_base64encode.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045_fromfd.o rfc2045_fromfd.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045find.o rfc2045find.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045mkboundary.o rfc2045mkboundary.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045rewrite.o rfc2045rewrite.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045tryboundary.o rfc2045tryboundary.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -I./.. -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2045xdump.o rfc2045xdump.c
rm -f librfc2045.a
ar r librfc2045.a rfc2045.o rfc2045acchk.o rfc2045acprep.o rfc2045appendurl.o rfc2045cdecode.o rfc2045decode.o rfc2045enomem.o rfc2045_base64encode.o rfc2045_fromfd.o rfc2045find.o rfc2045mkboundary.o rfc2045rewrite.o rfc2045tryboundary.o rfc2045xdump.o
ar: creating librfc2045.a
ranlib librfc2045.a
make[2]: Leaving directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib/maildrop/rfc2045'
(cd maildrop/rfc822 && make)
make[2]: Entering directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib/maildrop/rfc822'
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc822.o rfc822.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc822_getaddr.o rfc822_getaddr.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc822_getaddrs.o rfc822_getaddrs.c
rfc822_getaddrs.c:14:3: warning: explicitly assigning value of variable of type 'char' to itself [-Wself-assign]
        c=c;
        ~^~
1 warning generated.
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc822_mkdate.o rfc822_mkdate.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc822_parsedt.o rfc822_parsedt.c
rfc822_parsedt.c:81:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (tolower(ary[m][j]) != tolower((*mon)[j]))
                            ^~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
rfc822_parsedt.c:81:30: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (tolower(ary[m][j]) != tolower((*mon)[j]))
                                                  ^~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
2 warnings generated.
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2047u.o rfc2047u.c
rfc2047u.c:16:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
static const char rcsid[]="$Id$";
                  ^
1 warning generated.
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o rfc2047.o rfc2047.c
rfc2047.c:15:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
static const char rcsid[]="$Id$";
                  ^
1 warning generated.
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o imapsubj.o imapsubj.c
clang -fno-strict-aliasing -pthread -fPIC -Wall -DHAVE_CONFIG_H -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o imaprefs.o imaprefs.c
rm -f librfc822.a
ar r librfc822.a rfc822.o rfc822_getaddr.o rfc822_getaddrs.o rfc822_mkdate.o rfc822_parsedt.o rfc2047u.o rfc2047.o imapsubj.o imaprefs.o
ar: creating librfc822.a
ranlib librfc822.a
make[2]: Leaving directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib/maildrop/rfc822'
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o mime.so error.o mime.o  maildrop/rfc2045/librfc2045.a maildrop/rfc822/librfc822.a
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o crypt.o crypt.c
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o md5.o md5.c
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o md5passwd.o md5passwd.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o crypt.so error.o crypt.o md5.o md5passwd.o  -lcrypt  
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o time.o time.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o time.so error.o time.o  
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o uid.o uid.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o uid.so uid.o 
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o unix.o unix.c
clang -shared -rdynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd  -o unix.so error.o unix.o 
clang -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../include -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc2045 -I/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/src/../packages/clib/maildrop/rfc822 -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -c -o uuid.o uuid.c
uuid.c:45:23: error: use of undeclared identifier 'UUID_MAKE_V1'
{ unsigned int mode = UUID_MAKE_V1;
                      ^
uuid.c:51:3: error: unknown type name 'uuid_rc_t'; did you mean 'uuid_t'?
  uuid_rc_t urc;
  ^~~~~~~~~
  uuid_t
/usr/include/sys/uuid.h:73:21: note: 'uuid_t' declared here
typedef struct uuid uuid_t;
                    ^
uuid.c:72:19: error: use of undeclared identifier 'UUID_MAKE_V1'
        { case 1: mode = UUID_MAKE_V1; break;
                         ^
uuid.c:73:19: error: use of undeclared identifier 'UUID_MAKE_MC'
          case 2: mode = UUID_MAKE_MC; break;
                         ^
uuid.c:74:19: error: use of undeclared identifier 'UUID_MAKE_V3'
          case 3: mode = UUID_MAKE_V3; break;
                         ^
uuid.c:75:19: error: use of undeclared identifier 'UUID_MAKE_V4'
          case 4: mode = UUID_MAKE_V4; break;
                         ^
uuid.c:76:19: error: use of undeclared identifier 'UUID_MAKE_V5'
          case 5: mode = UUID_MAKE_V5; break;
                         ^
uuid.c:101:17: error: use of undeclared identifier 'UUID_MAKE_V1'
          if ( mode == UUID_MAKE_V1 )
                       ^
uuid.c:102:13: error: use of undeclared identifier 'UUID_MAKE_V3'
            mode = UUID_MAKE_V3;
                   ^
uuid.c:139:14: error: use of undeclared identifier 'UUID_LEN_STR'
  { char buf[UUID_LEN_STR+1];
             ^
uuid.c:143:15: warning: implicit declaration of function 'uuid_export' is invalid in C99 [-Wimplicit-function-declaration]
    if ( (urc=uuid_export(uuid, UUID_FMT_STR, &ptr, &datalen)) != UUID_RC_OK )
              ^
uuid.c:143:33: error: use of undeclared identifier 'UUID_FMT_STR'
    if ( (urc=uuid_export(uuid, UUID_FMT_STR, &ptr, &datalen)) != UUID_RC_OK )
                                ^
uuid.c:143:67: error: use of undeclared identifier 'UUID_RC_OK'
    if ( (urc=uuid_export(uuid, UUID_FMT_STR, &ptr, &datalen)) != UUID_RC_OK )
                                                                  ^
uuid.c:144:47: warning: implicit declaration of function 'uuid_error' is invalid in C99 [-Wimplicit-function-declaration]
      return PL_warning("UUID: export: %s\n", uuid_error(urc));
                                              ^
uuid.c:147:14: error: use of undeclared identifier 'UUID_LEN_SIV'
  { char buf[UUID_LEN_SIV+1];
             ^
uuid.c:152:33: error: use of undeclared identifier 'UUID_FMT_SIV'
    if ( (urc=uuid_export(uuid, UUID_FMT_SIV, &ptr, &datalen)) != UUID_RC_OK )
                                ^
uuid.c:152:67: error: use of undeclared identifier 'UUID_RC_OK'
    if ( (urc=uuid_export(uuid, UUID_FMT_SIV, &ptr, &datalen)) != UUID_RC_OK )
                                                                  ^
uuid.c:162:3: warning: implicit declaration of function 'uuid_destroy' is invalid in C99 [-Wimplicit-function-declaration]
  uuid_destroy(uuid);
  ^
3 warnings and 15 errors generated.
<builtin>: recipe for target 'uuid.o' failed
make[1]: *** [uuid.o] Error 1
make[1]: Leaving directory '/data/scratch/lang/swi-prolog-packages/work/pl-6.6.6/packages/clib'
Makefile:81: recipe for target 'objects' failed
gmake: *** [objects] Error 1
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/lang/swi-prolog-packages
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/lang/swi-prolog-packages