[Python-Dev] shutting up tmpnam, tempnam, link warnings

Neil Schemenauer nas@python.ca
Fri, 24 Aug 2001 18:05:58 -0700

If you're using a recent version of GNU libc you know what I mean.  They
are annoying as hell and there seems to be no way to disable them
cleanly.  Here's a hack:

  cd /lib
  perl -pe 's/gnu\.warning\.(tempnam|tmpnam|tmpnam_r)/gnu.wanting.\1/g' \
    < libc-2.2.3.so > /tmp/libc-2.2.3.so
  cp -b /tmp/libc-2.2.3.so libc-2.2.3.so

No warranty implied. :-)