[tex-k] compile error of ptex with new libkpathsea 2009

Karl Berry karl at freefriends.org
Sat Dec 19 23:40:59 CET 2009

    > /home/hille/ptex-bin-3.1.10+0.04b/tetex-src-3.0/texk/web2c/ptex-src-3.1.10/tex2.c:3476:
    > undefined reference to `kpse_make_tex_discard_errors'

I speculate that a different (old) types.h is being read in the tex*.c
compilations, because otherwise the identifier
kpse_make_tex_discard_errors would not have survived to link time.
Mixture of old and new objects?  Add -save-temps to the tex2.c gcc line
and see what types.h file the .i file is reading.  gcc -E -dD has also
helped in debugging such issues (it gives you the preprocessor output
with all the #define's intact).

Hope this helps.

More information about the tex-k mailing list