[tlbuild] build failure: chktex needs getopt
Vladimir Volovich
vvv at vsu.ru
Thu May 27 16:01:24 CEST 2010
Hi!
i've got a build failure on AIX and Solaris in chktex:
gmake[4]: Entering directory `/opt/home/vvv/src/texlive/source/Work/utils/chktex'
source='chktex-1.6.4/ChkTeX.c' object='ChkTeX.o' libtool=no \
DEPDIR=.deps depmode=none /opt/csw/bin/bash ../../../utils/chktex/../../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I../../../utils/chktex -xarch=v8 -O -c -o ChkTeX.o `test -f 'chktex-1.6.4/ChkTeX.c' || echo '../../../utils/chktex/'`chktex-1.6.4/ChkTeX.c
"../../../utils/chktex/chktex-1.6.4/ChkTeX.c", line 30: cannot find include file: "getopt.h"
"../../../utils/chktex/chktex-1.6.4/ChkTeX.c", line 185: warning: syntax error: empty declaration
"../../../utils/chktex/chktex-1.6.4/ChkTeX.c", line 743: incomplete struct/union/enum option: long_options
"../../../utils/chktex/chktex-1.6.4/ChkTeX.c", line 744: cannot do pointer arithmetic on operand of unknown size
"../../../utils/chktex/chktex-1.6.4/ChkTeX.c", line 744: cannot recover from previous errors
cc: acomp failed for ../../../utils/chktex/chktex-1.6.4/ChkTeX.c
gmake[4]: *** [ChkTeX.o] Error 2
which i solved by copying getopt.h, getopt.c and getopt1.c from the
Build/source/texk/kpathsea/ directory (and running "make getopt.o getopt1.o",
and adding getopt.o getopt1.o to the link command). but i see that they were
previously present in texk/bibtex8 and texk/bibtexu directories, and
later removed, probably to avoid duplication.
please do the right thing to ensure that chktex sees getopt.h and links
with getopt.o and getopt1.o.
Best,
v.
More information about the tlbuild
mailing list