While building texinfo-4.13 on Solaris 2.6:
  ...
  gmake[2]: Entering directory `/opt/build/china/texinfo-4.13/info'
  source='makedoc.c' object='makedoc.o' libtool=no \
  DEPDIR=.deps depmode=none /bin/ksh ../build-aux/depcomp \
  cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../gnulib/lib -I../gnulib/lib 
-DLOCALEDIR=\"/usr/local/share/locale\" -DINFODIR=\"/usr/local/share/info\" 
-DINFODIR2=\"/usr/local/share/info\" -g -c makedoc.c
  cc  -g   -o makedoc makedoc.o ../lib/libtxi.a ../gnulib/lib/libgnu.a -lcurses 
 
  ild: (undefined symbol) mbsinit -- referenced in the text segment of makedoc.o
  ild: (undefined symbol) mbrtowc -- referenced in the text segment of makedoc.o
  gmake[2]: *** [makedoc] Error 5

Neither Solaris 2.6, HP-UX 10.20, nor HP-UX 11.00 have mbsinit() or
mbrtowc(). info/info.h #include's "mbiter.h" which it probably should
not on these platforms. If I modify info/info.h from:
  #include "string.h"
  #include "mbiter.h"
  #include "mbchar.h"
to:
  #include "string.h"
  #if HAVE_MBRTOWC
  # include "mbiter.h"
  # include "mbchar.h"
  #endif
then info/makedoc compiles. But then info/display.c does not. Gnulib's
lib/trim.c wraps usage of mbi_iterator_t in "#if HAVE_MBRTOWC" but
info/display.c seems to assume wchar support is available. Seems
find_diff() in info/display.c needs to compensate for lack of
HAVE_MBRTOWC.

-- 
albert chin ([EMAIL PROTECTED])


Reply via email to