Re: Missing /include/sys/stropts.h?
On Mar 12 08:07, Shawn Legrand wrote: I am trying to compile SWI-Prolog under CygWin and am receiving a message that stropts.h is missing from /include/sys. I checked and there is no such file there or in any directory off of root or in the CVS source tree. I placed a bug report with SWI-Prolog and received the following response: Hmm. This is part of the code to attach an xterm window to a background thread for the multi-threaded version, which is supposed to work if grantpt() exists (indicating there is support for pseudo terminals) and multi-threading support. [rest of bug response removed...] I can see from the configure script that grantpt() exists... You *are* aware that SWI-Prolog is part of the Cygwin net distro, aren't you? In the net distro, src/pl-xterm.c is patched (two `#ifndef __CYGWIN__''s. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Missing /include/sys/stropts.h?
I am trying to compile SWI-Prolog under CygWin and am receiving a message that stropts.h is missing from /include/sys. I checked and there is no such file there or in any directory off of root or in the CVS source tree. I placed a bug report with SWI-Prolog and received the following response: Hmm. This is part of the code to attach an xterm window to a background thread for the multi-threaded version, which is supposed to work if grantpt() exists (indicating there is support for pseudo terminals) and multi-threading support. [rest of bug response removed...] I can see from the configure script that grantpt() exists... Should the file stropts.h exist on CygWin? If not - could I copy it from a Unix system (such as a MAC BSD (OS X)) and put it in CygWin? Here is my cygcheck -s -v -r: Cygwin Win95/NT Configuration Diagnostics Current System Time: Fri Mar 12 07:52:11 2004 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Personal Communications c:\Program Files\Common Files\Adaptec Shared\System c:\Program Files\Personal Communications\ c:\Program Files\Microsoft SQL Server\80\Tools\BINN Output from C:\cygwin\bin\id.exe (nontsec) UID: 11530(SLEGRAND) GID: 10513(Domain Users) 10513(Domain Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 11530(SLEGRAND) GID: 10513(Domain Users) 0(root)544(Administrators) 545(Users) 1009(OLAP Administrators) 12384(DC_INTRANET) 12238(DCORP_ADMIN) 10513(Domain Users)11531(ecomm) 13171(FS5_USER)13769(IT Group) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:\cygwin\home\SLEGRAND' MAKE_MODE = `unix' PWD = `/home/SLEGRAND' USER = `SLEGRAND' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\slegrand\Application Data' CLIENTNAME = `Console' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `SANJZF8241' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVSROOT = `:pserver:[EMAIL PROTECTED]:/cvs/src' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\slegrand' HOSTNAME = `SANJZF8241' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\SANCDC012' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/X11R6/man:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/home/SLEGRAND/src/winsup/cygwin/include/sys' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PCOMM_ROOT = `C:\Program Files\Personal Communications\' PKG_CONFIG_PATH = `:/usr/X11R6/lib/pkgconfig' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0209' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SESSIONNAME = `Console' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\DOCUME~1\slegrand\LOCALS~1\Temp' TERM = `cygwin' TEXMF = `{/usr/share/lilypond/2.0.1,/usr/share/texmf}' TMP = `c:\DOCUME~1\slegrand\LOCALS~1\Temp' USERDNSDOMAIN = `ICWPDC-SD.ICWGRP.COM' USERDOMAIN = `ICWPDC-SD' USERNAME = `SLEGRAND' USERPROFILE = `C:\Documents and Settings\slegrand' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS 38138Mb 18% CP CS UN PA FC SLegrand d: cd N/AN/A C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode C:\cygwin\usr\X11R6\lib\X11\fonts
Missing /include/sys/stropts.h?
That of course should have been /usr/include/sys :( = Shawn Legrand Carpe Noctem! Carpe Diem! Hieros Gamos! [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Missing /include/sys/stropts.h?
-Original Message- From: cygwin-owner On Behalf Of Shawn Legrand Sent: 12 March 2004 16:08 Should the file stropts.h exist on CygWin? You already answered that one yourself: I checked and there is no such file there or in any directory off of root or in the CVS source tree. Anyway, you also asked: If not - could I copy it from a Unix system (such as a MAC BSD (OS X)) and put it in CygWin? That kind of game almost never works. Sure, the initial compilation will succeed, or at least it won't error out with a missing file, but since whatever library functions or OS features the header file describes don't actually exist on your system, it isn't going to help any: it'll probably all fall apart at the final link stage. BTW and FYI, here's the generic recipe for figuring out the answer to these sorts of question: stropts.h (a moment's googling shows me) is related to POSIX streams functionality. By searching for the keyword streams in the Posix spec at http://www.opengroup.org/onlinepubs/007904975/nframe.html I found a few of the functions involved were fattach, fdetach, putmsg, putpmsg. By searching in the cygwin api reference at http://cygwin.com/cygwin-api/cygwin-api.html I couldn't find any of those functions. So my deduction is that the POSIX streams functionality isn't implemented by cygwin and therefore it's no surprise the header isn't there. This also means that the program you are trying to compile depends on OS functionality that cygwin doesn't provide, and so porting it to cygwin will never be a simple configure'n'make. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Missing /include/sys/stropts.h? [gold star alert]
On Fri, Mar 12, 2004 at 05:19:35PM -, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Shawn Legrand Sent: 12 March 2004 16:08 Should the file stropts.h exist on CygWin? You already answered that one yourself: I checked and there is no such file there or in any directory off of root or in the CVS source tree. Anyway, you also asked: If not - could I copy it from a Unix system (such as a MAC BSD (OS X)) and put it in CygWin? That kind of game almost never works. Sure, the initial compilation will succeed, or at least it won't error out with a missing file, but since whatever library functions or OS features the header file describes don't actually exist on your system, it isn't going to help any: it'll probably all fall apart at the final link stage. BTW and FYI, here's the generic recipe for figuring out the answer to these sorts of question: stropts.h (a moment's googling shows me) is related to POSIX streams functionality. By searching for the keyword streams in the Posix spec at http://www.opengroup.org/onlinepubs/007904975/nframe.html I found a few of the functions involved were fattach, fdetach, putmsg, putpmsg. By searching in the cygwin api reference at http://cygwin.com/cygwin-api/cygwin-api.html I couldn't find any of those functions. So my deduction is that the POSIX streams functionality isn't implemented by cygwin and therefore it's no surprise the header isn't there. This also means that the program you are trying to compile depends on OS functionality that cygwin doesn't provide, and so porting it to cygwin will never be a simple configure'n'make. Can we get a gold star over here for exemplary use of reasoning powers? Thank you, Dave, for explaining how to think about problems like this. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Missing /include/sys/stropts.h? [gold star alert]
On Fri, 12 Mar 2004, Christopher Faylor wrote: On Fri, Mar 12, 2004 at 05:19:35PM -, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Shawn Legrand Sent: 12 March 2004 16:08 Should the file stropts.h exist on CygWin? You already answered that one yourself: I checked and there is no such file there or in any directory off of root or in the CVS source tree. Anyway, you also asked: If not - could I copy it from a Unix system (such as a MAC BSD (OS X)) and put it in CygWin? That kind of game almost never works. Sure, the initial compilation will succeed, or at least it won't error out with a missing file, but since whatever library functions or OS features the header file describes don't actually exist on your system, it isn't going to help any: it'll probably all fall apart at the final link stage. BTW and FYI, here's the generic recipe for figuring out the answer to these sorts of question: stropts.h (a moment's googling shows me) is related to POSIX streams functionality. By searching for the keyword streams in the Posix spec at http://www.opengroup.org/onlinepubs/007904975/nframe.html I found a few of the functions involved were fattach, fdetach, putmsg, putpmsg. By searching in the cygwin api reference at http://cygwin.com/cygwin-api/cygwin-api.html I couldn't find any of those functions. So my deduction is that the POSIX streams functionality isn't implemented by cygwin and therefore it's no surprise the header isn't there. This also means that the program you are trying to compile depends on OS functionality that cygwin doesn't provide, and so porting it to cygwin will never be a simple configure'n'make. Can we get a gold star over here for exemplary use of reasoning powers? Thank you, Dave, for explaining how to think about problems like this. cgf We sure can. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/