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

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