[tlbuild] tl18 trials

Akira Kakuto kakuto at fuk.kindai.ac.jp
Tue Feb 27 22:47:25 CET 2018


Dear Mojca,

> Solaris build fails soon after "Testsuite summary for mpfr (TeX Live) 4.0.1":
>
> /opt/csw/bin/gcc-5.5 -fvisibility=hidden -Wimplicit -Wreturn-type
> -Wdeclaration-after-statement -Wno-unknown-pragmas -g -O2   -o unzzip
> zziplib-src/bins/unzzip.o zziplib-src/bins/unzzipcat-zip.o
> zziplib-src/bins/unzzipdir-zip.o libzzip.a
> /path/to/build/Work/libs/zlib/libz.a
> Undefined first referenced
>  symbol      in file
> strnlen                             zziplib-src/bins/unzzipcat-zip.o

I can add in __string.h in zziplib

#ifdef VAR_ONLY_DEFINED_IN_SOLARIS
size_t  strnlen(const char*  str, size_t  maxlen)
{
    char*  p = memchr(str, 0, maxlen);
    if (p == NULL)
        return maxlen;
    else
        return (p - str);
}
#endif

if you teach me VAR_ONLY_DEFINED_IN_SOLARIS

Best,
Akira



More information about the tlbuild mailing list