[tex-live] afm2pl vs glibc glitch
firmicus at ankabut.net
Tue Jun 9 23:06:36 CEST 2009
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: Entering directory
gcc -DHAVE_CONFIG_H -I. -I../../../texk/afm2pl
-march=i686 -mtune=generic -O2 -pipe -MT afm2pl.o -MD -MP -MF
.deps/afm2pl.Tpo -c -o afm2pl.o ../../../texk/afm2pl/afm2pl.c
../../../texk/afm2pl/afm2pl.c:348: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1690 bytes
Desc: not available
More information about the tex-live