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

Karl Berry karl at freefriends.org
Mon May 18 01:46:25 CEST 2009


    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).

Damn POSIX.  Damn glibc.

It seems mft, *tangle (apparently including luatangle), and *weave are
the programs which end up with a getline (get_line in the Pascal web
world).  I tried to fix it as follows.  It still compiles for me, but I
don't have any access to a system running such a newly
broken^H^H^H^H^H^Himproved setup, so can you please try it?

Thanks,
Karl

--- cpascal.h   (revision 13193)
+++ cpascal.h   (working copy)
@@ -272,6 +272,15 @@
 #undef getname
 #define getname vms_getname
 #endif
+
+/* 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
+#endif
+#define getline web2c_getline
+
 ^L
 /* Declarations for the routines we provide ourselves in lib/.  */



More information about the tlbuild mailing list