Tetex issue and fix

William Immendorf will.immendorf at gmail.com
Thu Aug 6 18:53:00 PDT 2009


On Fri, Aug 7, 2009 at 1:30 AM, William
Immendorf<will.immendorf at gmail.com> wrote:
> When I was building Tetex first time through, midway through, I came
> to a grinding halt with these error messages:
>
> gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c tangleboot.c -o
> tangleboot.o
> In file included from tangleboot.c:94:
> tangleboot.h:34: error: conflicting types for âgetlineâ
> /usr/include/stdio.h:651: note: previous declaration of âgetlineâ was here
> tangleboot.c:2175: error: conflicting types for âgetlineâ
> /usr/include/stdio.h:651: note: previous declaration of âgetlineâ was here
> make[2]: *** [tangleboot.o] Error 1
> make[2]: Leaving directory `/sources/tetex-src-3.0/texk/web2c'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/sources/tetex-src-3.0/texk'
> make: *** [all] Error 1
>
> And a "AHA!!" moment came into my head: Tetex has a conflict with
> Glibc 2.10.1, with getline (I've seen this before with kenel 2.6.27.7
> and binutils), and I got this sed to fix it:
>
> sed -i 's/getline/get_line/' texk/web2c/tangleboot.*
The sed worked, but later, it mocked me:

srcdir=. /bin/sh ./web2c/convert tangleboot
syntax error: Last token = 289 (!), error buffer = `_',
        last id = `get' (parameterless procedure).
./web2c/convert: conversion of tangleboot.p failed, moving dregs:
./web2c/convert:   mv tangleboot.c tangleboot.h /tmp
make[2]: *** [tangleboot.c] Error 1
make[2]: Leaving directory `/sources/tetex-src-3.0/texk/web2c'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/sources/tetex-src-3.0/texk'
make: *** [all] Error 1

Anyone have a fix?

William



More information about the blfs-dev mailing list