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

Hilmar Preuße hille42 at web.de
Sun Dec 20 18:33:48 CET 2009


On 19.12.09 Karl Berry (karl at freefriends.org) wrote:

Hi,

> > /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?
> 
I guess you're right: the source package uses a stripped version of
teTeX 3.0 (using kpathsea4), reads the header files from this library
but finally tries to link to the system-kpathsea5 lib. No wonder,
that this fails....

> Add -save-temps to the tex2.c gcc line and see what types.h file
> the .i file is reading.
> 
# 1 "../../kpathsea/types.h" 1
# 26 "../../kpathsea/types.h"

, which is the header file from teTeX 3.0, i.e. kpathsea4.

I guess we have to port ptex to kpathsea5 if this is even necessary.

H.
-- 
Excusing bad programming is a shooting offence, no matter _what_ the
circumstances.
		-- Linus Torvalds, to the linux-kernel list
  http://www.hilmar-preusse.de.vu/


More information about the tex-k mailing list