[tex-live] afm2pl vs glibc glitch
François Charette
firmicus at ankabut.net
Tue Jun 9 23:06:36 CEST 2009
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'
gcc -DHAVE_CONFIG_H -I. -I../../../texk/afm2pl
-I/var/abs/local/texlive-2009/texlive-bin/source/Work/texk
-I/var/abs/local/texlive-2009/texlive-bin/source/texk -DKPATHSEA
-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.
Best,
FC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afm2pl_getline.patch
Type: text/x-patch
Size: 1690 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20090609/c3084f64/attachment.bin>
More information about the tex-live
mailing list