https://bugs.gentoo.org/show_bug.cgi?id=270779 Ported from the texlive-core patch. Index: src/texk/web2c/cpascal.h =================================================================== --- src.orig/texk/web2c/cpascal.h +++ src/texk/web2c/cpascal.h @@ -14,6 +14,7 @@ /* We must include this first, to resolve many C issues. */ #include "config.h" +#define getline pdftex_getline /* We only use getopt in the applications, not in web2c itself. */ #include