[tlbuild] [mp-implementors] metapost-1.200: getline clash

Taco Hoekwater taco at elvenkind.com
Sun May 17 17:56:54 CEST 2009


Hi Gabriele,

gabriele balducci wrote:
> 
> Just installed metapost-1.200 and found the following problem: getline
> definition in tangleboot.p (and in all files derived from it) clashes
> with getline definition in stdio.h.
> 
> I do not know if it's me building in the wrong way. As a matter of fact,
> renaming the getline defined in the metapost files to something
> different fixes everything for me.

It looks like this is because POSIX 2008's getline() is now exported
by default in the newer glibc versions (as of 2.9.90, apparently).

I am forwarding this to the texlive builders list, because the problem
will no doubt pop up soon on more platforms, and I am not the right
person to fix this issue (tangleboot.p is one of the original files
by Knuth).

Interesting fact: metapost does not need tangleboot.p at all, it
is only built because the metapost build process is a subset of
texlive's build process, and turning off that particular bit off
is quite hard. After the failed run of build.sh, you should be able
to go to the 'build' directory and run 'make -k' manually. It
should succeed, with 'mpost' in <build>/texk/web2c afterwards.

Best wishes,
Taco

> I'm on gnu-linux:
> 
> ==> kernel:
> myhost:19>uname -a
> Linux dschgrazlin2.units.it 2.6.29.3 #1 SMP Wed May 13 12:38:18 CEST
> 2009 i686 GNU/Linux
> 
> ==> compiler:
> myhost:20>gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with:
> /home/balducci/tmp/install-us-d/gcc.d/gcc-4.4.0/configure
> --prefix=/usr/local/gcc-4.4.0 --enable-shared --enable-threads=posix
> --enable-__cxa_atexit --enable-c99 --enable-long-long
> --enable-clocale=gnu --disable-libstdcxx-pch
> --enable-languages=c,c++,objc,fortran,java
> Thread model: posix
> gcc version 4.4.0 (GCC) 
> 
> ==> libc:
> myhost:21>/lib/libc.so.6
> GNU C Library stable release version 2.10.1, by Roland McGrath et al.
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> Compiled by GNU CC version 4.2.4.
> Compiled on a Linux >>2.6.29.3<< system on 2009-05-15.
> Available extensions:
>         crypt add-on version 2.1 by Michael Glad and others
>         GNU Libidn by Simon Josefsson
>         Native POSIX Threads Library by Ulrich Drepper et al
>         BIND-8.2.3-T5B
>         software FPU emulation by Richard Henderson, Jakub Jelinek and
>         others
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/libc/bugs.html>.
> 
> 
> 
> thanks for maintaining metapost and making it available
> ciao
> gabriele
> 



More information about the tlbuild mailing list