Comment 4 for bug 22290

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 24 Sep 2005 01:58:25 +0200
From: Matthias Klose <email address hidden>
To: Ryan Murray <email address hidden>, <email address hidden>
Subject: Re: Bug#329715: gcc-4.0_4.0.1-9(powerpc/unstable): fails to build without deprecated BSD
 ptys

Ryan Murray writes:
> A full build log can be found at:
> http://buildd.debian.org/build.php?arch=powerpc&pkg=gcc-4.0&ver=4.0.1-9
>
> /dev/pty* are only used with BSD style ptys. Linux 2.6 has named them
> as CONFIG_LEGACY_PTYS, to be removed at some point. Instead of looking for
> the old /dev/pty*, you should instead attempt to open a pty, and then close it,
> as this will also catch the case where /dev/pty* exists, but the support does
> not exist in the kernel.
>
> You could also look for a mounted /dev/pts filesystem and a valid /dev/ptmx,
> but I think opening a pty with the libC functions is probably best...

well, on m68k, a mounted /dev/pts didn't help. Could you provide such
a test?

    Matthias