[tlbuild] Bug in libpng affecting Solaris 10

Apostolos Syropoulos asyropoulos at gmail.com
Sat Jan 13 17:36:10 CET 2018


​Hello,

In order to solve the libpng problem I tried to compile using

 CONFIG_SHELL=/bin/bash CC="gcc64 -D_XOPEN_SOURCE=600  -std=gnu99"
CXX="g++64 -std=c++11" ./Build --host=x86_64-pc-solaris2.11 \
 --build=x86_64-pc-solaris2.11  -enable-luajittex  --enable-mfluajit
--enable-xindy  CLISP=$clisp_builddir/clisp
​
​Compilation proceeded with no problem. But then it stoped ​
​
​when compiling zziplib. The problem is that​
​ ​
strcasecmp​
​ is in strings.h. The following patch solves this problem:

​--- libs/zziplib/zziplib-src/zzip/stat.c.old  2018-01-13
17:11:21.723023684 +0000
+++ libs/zziplib/zziplib-src/zzip/stat.c      2018-01-13 17:11:55.991064980
+0000
@@ -16,7 +16,7 @@
 #include <zzip/lib.h>           /* exported... */
 #include <zzip/file.h>
 #include <string.h>
-#if defined(_AIX)
+#if defined(_AIX) || defined(__sun)
 #include <strings.h> /* for strcasecmp */
 #endif
 #include <sys/stat.h>


​Now there is a problem with ​


g++64 -std=c++11 -D_REENTRANT  -DU_HAVE_ELF_H=1 -DU_ENABLE_DYLOAD=0
-DU_HAVE_ATOMIC=1 -DU_HAVE_STRTOD_L=0
-I/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common
"-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION  -O2 -W -Wall -pedantic -Wpointer-arith
-Wwrite-strings -Wno-long-long    -c   -o udatamem.ao
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/udatamem.cpp
gcc64 -D_XOPEN_SOURCE=600 -std=gnu99 -D_REENTRANT  -DU_HAVE_ELF_H=1
-DU_ENABLE_DYLOAD=0 -DU_HAVE_ATOMIC=1 -DU_HAVE_STRTOD_L=0
-I/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common
"-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION  -O2 -Wall -pedantic -Wshadow -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings    -c   -o umapfile.ao
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/umapfile.c
In file included from
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/unicode/utypes.h:38:0,
                 from
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/unicode/putil.h:29,
                 from
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/umapfile.c:24:
/container/source/texlive/source/Work/libs/icu/../../../libs/icu/icu-src/source/common/unicode/umachine.h:343:13:
error: unknown type name ‘char16_t’
     typedef char16_t UChar;
             ^

I have also tried   CC="gcc64 -D_XOPEN_SOURCE=600  -std=gnu11" but it is
not working.
Any ideas?

A.S.



-- 
Apostolos Syropoulos
Xanthi, GREECE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20180113/23eecc43/attachment.html>


More information about the tlbuild mailing list