[tlbuild] Cannot compile xdvik

Apostolos Syropoulos asyropoulos at gmail.com
Mon Feb 24 20:28:06 CET 2025


Hello,

I have tried to build TeXLive on OpenIndiana but I failed with the
following error:


gcc -DHAVE_CONFIG_H -I. -I../../../texk/xdvik  -I../../../texk/xdvik/gui
-DPS_GS -I/container/texlive/source/Work/texk
-I/container/texlive/source/texk
-I/container/texlive/source/Work/libs/freetype2/freetype2    -Wimplicit
-Wreturn-type -g -O2 -MT encodings.o -MD -MP -MF $depbase.Tpo -c -o
encodings.o ../../../texk/xdvik/encodings.c &&\
mv -f $depbase.Tpo $depbase.Po
../../../texk/xdvik/encodings.c: In function 'cjk2unicode':
../../../texk/xdvik/encodings.c:3059:32: error: passing argument 2 of
'iconv' from incompatible pointer type [-Wincompatible-pointer-types]
 3059 |     if (iconv(m_iconv_gb_ucs4, (iconv_char_pptrT)&from_ptr, &from,
&to_ptr, &to) == (size_t)(-1)) {
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                char **
In file included from ../../../texk/xdvik/encodings.c:70:
/usr/include/iconv.h:47:32: note: expected 'const char ** restrict' but
argument is of type 'char **'
   47 | extern size_t   iconv(iconv_t, const char **_RESTRICT_KYWD,
      |                                ^

I would appreciate it if someone could help me to resolve this problem.
A.S.

-- 
Apostolos Syropoulos
Xanthi, GREECE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20250224/0119acbb/attachment.htm>


More information about the tlbuild mailing list.