Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de)
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <cygwin@cygwin.com>, <jjarvie@newsguy.com>
Subject: RE: autoconf error with /dev/ptmx
Date: Fri, 20 Jul 2001 17:49:27 +0400
Message-ID: <001b01c11122$caf998c0$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <013d01c11121$24cd1ea0$806410ac@local>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006


>
> > I've got a strange problem compiling stunnel-3.15
> >
> > configure calls the following checks:
> >
> > AC_CHECK_FILE("/dev/ptmx", AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX))
> > AC_CHECK_FILE("/dev/ptc", AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC))
> >
> > The first check succeeds(!) and the second fails.
>
> That's because cygwin has a virtual /dev/ptmx and no /dev/ptc. You are
> getting the correct results.
>

Yes, the check breaks on cygwin. May be, replacing it with AC_TRY_RUN a
pogram that contains

open("/dev/ptmx", O_RDWR)

would be a better idea (and it will have the same implication on cross
compiling).

> > ls -al /dev gives:
> >
> > total 0
> > srwxrwxrwx    1 Administ None           15 Jun 19  2000 log
> > crw-rw-rw-    1 Everyone Everyone  19,   0 Jul 20  2001 null
>

Somebody has created them but cygwin does not use these files.

-andrej


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

