[tex-live] afm2pl vs glibc glitch

François Charette firmicus at ankabut.net
Wed Jun 10 13:25:37 CEST 2009

Siep Kroonenberg a écrit :
> On Tue, Jun 09, 2009 at 11:06:36PM +0200, François Charette wrote:
>> Hello everyone,
>> I have rsynced the current sources of TeX Live earlier today, and I can
>> already say that I am very pleased with the improvements made to the
>> configure and make process.
>> I have encountered a minor glitch during compilation of afm2pl, which
>> I'd like to report here:
>> make[4]: Entering directory
>> `/mnt/data/abslocal/texlive-2009/texlive-bin/source/Work/texk/afm2pl'
>> The problem is that my system has glibc version 2.10.1, which has the
>> function getline defined in stdio.h
>> The solution is very simply to rename getline to something else (like
>> get_line) in afm2pl.c. A patch is attached.
>> Best,
>> FC
> Patch committed, r. 13694


But I should have checked further before sending that patch.

Here is a more comprehensive one, which applies to:


This time I renamed getline to _getline, because get_line is also
defined in texk/ttf2pk/newobj.{c,h}

I also note that the problem is more elegantly circumvented in
texk/web2c/cpascal.h (lines 276-282):

/* Apparently POSIX 2008 has getline and glibc 2.9.90 exports it.
   tangle, weave, et al. use that symbol; try to define it away so
   something that a standard won't usurp.  */
#ifdef getline
#undef getline
#define getline web2c_getline


PS: Next time I'll use the tlbuild list for similar issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getline.patch
Type: text/x-patch
Size: 6749 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20090610/d409fd54/attachment.bin>

More information about the tex-live mailing list