public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* autoconf error with /dev/ptmx
@ 2001-07-20  6:32 jjarvie
  2001-07-20  6:34 ` Robert Collins
  2001-07-20  6:43 ` Corinna Vinschen
  0 siblings, 2 replies; 8+ messages in thread
From: jjarvie @ 2001-07-20  6:32 UTC (permalink / raw)
  To: cygwin

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.

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

To fix this all I have to do is delete the HAVE_DEV_PTMX define in Makefile
but I would like to know what is going on.

Thanks for any ideas

John Jarvie


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: autoconf error with /dev/ptmx
  2001-07-20  6:32 autoconf error with /dev/ptmx jjarvie
@ 2001-07-20  6:34 ` Robert Collins
  2001-07-20  6:49   ` Andrej Borsenkow
  2001-07-20  6:43 ` Corinna Vinschen
  1 sibling, 1 reply; 8+ messages in thread
From: Robert Collins @ 2001-07-20  6:34 UTC (permalink / raw)
  To: cygwin, jjarvie

----- Original Message -----
From: <jjarvie@newsguy.com>
To: <cygwin@cygwin.com>
Sent: Friday, July 20, 2001 11:32 PM
Subject: autoconf error with /dev/ptmx


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

> 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

This is irrelevant :-/. Sorry.

Rob

> To fix this all I have to do is delete the HAVE_DEV_PTMX define in
Makefile
> but I would like to know what is going on.
>
> Thanks for any ideas
>
> John Jarvie
>
>
> --
> 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/
>
>


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: autoconf error with /dev/ptmx
  2001-07-20  6:32 autoconf error with /dev/ptmx jjarvie
  2001-07-20  6:34 ` Robert Collins
@ 2001-07-20  6:43 ` Corinna Vinschen
  1 sibling, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2001-07-20  6:43 UTC (permalink / raw)
  To: cygwin

On Fri, Jul 20, 2001 at 06:32:34AM -0700, jjarvie@newsguy.com wrote:
> 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.
> 
> 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
> 
> To fix this all I have to do is delete the HAVE_DEV_PTMX define in Makefile
> but I would like to know what is going on.

http://cygwin.com/cygwin-ug-net/using-specialnames.html

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: autoconf error with /dev/ptmx
  2001-07-20  6:34 ` Robert Collins
@ 2001-07-20  6:49   ` Andrej Borsenkow
  0 siblings, 0 replies; 8+ messages in thread
From: Andrej Borsenkow @ 2001-07-20  6:49 UTC (permalink / raw)
  To: cygwin, jjarvie

>
> > 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: autoconf error with /dev/ptmx
@ 2001-07-20  7:34 John Jarvie
  0 siblings, 0 replies; 8+ messages in thread
From: John Jarvie @ 2001-07-20  7:34 UTC (permalink / raw)
  To: cygwin

Thanks for the help, I'll create a cygwin diff and submit it to the stunnel
project.

Best regards

John Jarvie


>Date: Fri, 20 Jul 2001 16:25:23 +0200
>From: Corinna Vinschen <cygwin@cygwin.com>
>To: cygwin@cygwin.com
>Subject: Re: autoconf error with /dev/ptmx
>
>On Fri, Jul 20, 2001 at 06:58:57AM -0700, jjarvie@newsguy.com wrote:
>> Robert, Corinna , Andrej
>> 
>> Thanks for the replies which explain what's going on.  
>> 
>> If I leave the PTMX define in the compile fails on 
>> 
>#ifndef __CYGWIN__
>>     if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
>>         sockerror("ioctl I_PUSH ptem");
>>     if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
>>         sockerror("ioctl I_PUSH ldterm");
>>     if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
>>         sockerror("ioctl I_PUSH ttcompat");
>#endif
>
>I_PUSH has no meaning for Cygwin.
>
>Corinna
>
>-- 
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Developer                                mailto:cygwin@cygwin.com
>Red Hat, Inc.
>
>--
>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/
>


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: autoconf error with /dev/ptmx
  2001-07-20  7:00 jjarvie
  2001-07-20  7:21 ` Andrej Borsenkow
@ 2001-07-20  7:25 ` Corinna Vinschen
  1 sibling, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2001-07-20  7:25 UTC (permalink / raw)
  To: cygwin

On Fri, Jul 20, 2001 at 06:58:57AM -0700, jjarvie@newsguy.com wrote:
> Robert, Corinna , Andrej
> 
> Thanks for the replies which explain what's going on.  
> 
> If I leave the PTMX define in the compile fails on 
> 
#ifndef __CYGWIN__
>     if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
>         sockerror("ioctl I_PUSH ptem");
>     if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
>         sockerror("ioctl I_PUSH ldterm");
>     if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
>         sockerror("ioctl I_PUSH ttcompat");
#endif

I_PUSH has no meaning for Cygwin.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: autoconf error with /dev/ptmx
  2001-07-20  7:00 jjarvie
@ 2001-07-20  7:21 ` Andrej Borsenkow
  2001-07-20  7:25 ` Corinna Vinschen
  1 sibling, 0 replies; 8+ messages in thread
From: Andrej Borsenkow @ 2001-07-20  7:21 UTC (permalink / raw)
  To: jjarvie, cygwin

> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [ mailto:cygwin-owner@sources.redhat.com]On Behalf Of jjarvie@newsguy.com
> Sent: Friday, July 20, 2001 5:59 PM
> To: cygwin@cygwin.com
> Subject: RE: autoconf error with /dev/ptmx
>
>
> Robert, Corinna , Andrej
>
> Thanks for the replies which explain what's going on.
>
> If I leave the PTMX define in the compile fails on
>
>     if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
>         sockerror("ioctl I_PUSH ptem");
>     if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
>         sockerror("ioctl I_PUSH ldterm");
>     if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
>         sockerror("ioctl I_PUSH ttcompat");
>
> I_PUSH is not defined, on Linux this is in
>
> /usr/include/bits/stropts.h
>

What has it to do with Linux? You need enclose it either in #ifndef
__CYGWIN__ or #ifdef I_PUSH.

-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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: autoconf error with /dev/ptmx
@ 2001-07-20  7:00 jjarvie
  2001-07-20  7:21 ` Andrej Borsenkow
  2001-07-20  7:25 ` Corinna Vinschen
  0 siblings, 2 replies; 8+ messages in thread
From: jjarvie @ 2001-07-20  7:00 UTC (permalink / raw)
  To: cygwin

Robert, Corinna , Andrej

Thanks for the replies which explain what's going on.  

If I leave the PTMX define in the compile fails on 

    if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
        sockerror("ioctl I_PUSH ptem");
    if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
        sockerror("ioctl I_PUSH ldterm");
    if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
        sockerror("ioctl I_PUSH ttcompat");

I_PUSH is not defined, on Linux this is in 

/usr/include/bits/stropts.h

Thanks for the help

John Jarvie





At Fri, 20 Jul 2001 17:49:27 +0400, you wrote
>
>>
>> > 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))
>


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-07-20  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20  6:32 autoconf error with /dev/ptmx jjarvie
2001-07-20  6:34 ` Robert Collins
2001-07-20  6:49   ` Andrej Borsenkow
2001-07-20  6:43 ` Corinna Vinschen
2001-07-20  7:00 jjarvie
2001-07-20  7:21 ` Andrej Borsenkow
2001-07-20  7:25 ` Corinna Vinschen
2001-07-20  7:34 John Jarvie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).