libarchive: build fails on Solaris 11.4
The static function b64_encode
conflicts with a similar function in <string.h>
causing cmake to fail compilation.
/usr/include/string.h:
extern ssize_t b64_encode(char *_RESTRICT_KYWD outbuf, size_t outbufsz,
const void *_RESTRICT_KYWD inbuf, size_t inbufsz, const char *alpha,
uint64_t flags);
Also, cmake fails to link on Solaris 11.4 due to undefined symbol makedev:
[ 92%] Linking CXX executable ../bin/ctest
Undefined first referenced
symbol in file
makedev ../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_pack_dev.c.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
*** Error code 1
It doesn't appear to include <sys/mkdev.h>
to get the correct definitions.
(cmake 3.14.0)