Re: Did anyone even try?

2002-12-16 Thread Christopher Faylor
Of course I tried.  I run gcc -mno-cygwin test cases before I release the
software.

On Sun, Dec 15, 2002 at 11:58:07PM -0800, Jim wrote:
I have XP, links is not the problem...

I have mingw installed, this is not the problem...

I included such a simple example, yes, I broke down and subscribed to
[EMAIL PROTECTED]'s mailing list, wonder if they'll be any more willing
to listen

You are one message away from being blocked from sending any email to
cygwin-apps at all.  The fact that you didn't feel like subscribing to
the proper mailing list doesn't mean that you get to send email to an
improper one.

Given that you consistently can't figure out which mailing list to use
and you can't figure out how to send a proper bug report, I'm rather
confident that you are experiencing a cockpit error.  Feel free to prove
me wrong by providing useful details (cygcheck output would be nice).
But not in cygwin-apps.

cgf



emacs 21.2-11 available

2002-12-16 Thread Joe Buehler
New GNU emacs package files are available at:

http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11-src.tar.bz2
http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11.tar.bz2
http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-el/emacs-el-21.2-11.tar.bz2
http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-X11/emacs-X11-21.2-11.tar.bz2

Changes:

- recompiled all LISP files (-9 did, but -10 did not, and that may have caused
  problems for a couple users)
- optimized size of unexec()'d emacs binary for better fork() performance

Joe Buehler




Re: emacs 21.2-11 available

2002-12-16 Thread Pavel Tsekov
 New GNU emacs package files are available at:
 
 http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11-src.tar.bz2
 http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11.tar.bz2

http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-el/emacs-el-21.2-11.tar.bz2

http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-X11/emacs-X11-21.2-11.tar.bz2

Uploaded.

 Changes:
 
 - recompiled all LISP files (-9 did, but -10 did not, and that may have
 caused
problems for a couple users)

I removed 21.2-10 based on that fact. I've changed the setup.hint files to
reflect the change i.e. :

curr: 21.2-11
prev: 21.2-9

Hope I didn't make something very stupid.

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




Re: emacs 21.2-11 available

2002-12-16 Thread Christopher Faylor
On Tue, Dec 17, 2002 at 12:05:29AM +0100, Pavel Tsekov wrote:
 New GNU emacs package files are available at:
 
 http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11-src.tar.bz2
 http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-21.2-11.tar.bz2

http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-el/emacs-el-21.2-11.tar.bz2

http://68.98.180.124:3000/cygwin/emacs-21.2-11/emacs-X11/emacs-X11-21.2-11.tar.bz2

Uploaded.

 Changes:
 
 - recompiled all LISP files (-9 did, but -10 did not, and that may have
 caused
problems for a couple users)

I removed 21.2-10 based on that fact. I've changed the setup.hint files to
reflect the change i.e. :

curr: 21.2-11
prev: 21.2-9

Hope I didn't make something very stupid.

There is no reason to add specific prev/curr fields to setup.hint.  The version
sorting algorithm handles this automatically.

cgf



Re: Xwinclip

2002-12-16 Thread Keith D. Tyler
John Buttery was recently quoted as saying...
   For the record, in case the xwinclip developers know something about
 the different Windows versions that would halp them debug, I've been
 using xwinclip in a NT 4.0 Workstation SP6a environment for a long time
 with zero, and I mean not even one, problems.  Maybe there's something
 about that version it likes?=20

I use Windows 2K SP2, but I heaviliy use a proprietary product which does
not do normal cut and paste (from what I can tell, I don't know the
details) because of the special conditions of the objects being handled.
That is my prime suspect for my xwinclip problems.

Kdt



ctrl-c with X11 fwd'ing

2002-12-16 Thread Matthew Bailey
I need to use X11 forwarding to help display my programs remotely from
work.  But, when using X11 forwarding, the ctrl-c command kills all ssh
connections I have, and I must start my jobs all over again.

Is there any way for me to get around this?  Any config files I can edit
to stop this from happening?

Matthew

 _\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_\|/_
| James M. Bailey   Phone: 662-325-9519   |
| Systems and Network Administration  |
| [EMAIL PROTECTED]   http://WWW.ERC.MsState.Edu/~jmb   |
|Mississippi State University ERC |
|_|




Re: ctrl-c with X11 fwd'ing

2002-12-16 Thread Igor Pechtchanski
On Mon, 16 Dec 2002, Matthew Bailey wrote:

 I need to use X11 forwarding to help display my programs remotely from
 work.  But, when using X11 forwarding, the ctrl-c command kills all ssh
 connections I have, and I must start my jobs all over again.

 Is there any way for me to get around this?  Any config files I can edit
 to stop this from happening?

 Matthew

Try adding 'tty' to your CYGWIN environment variable.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune




Re: Windows Manager

2002-12-16 Thread Martín De Marchi
Thanks Harold and Cary for the answers.

I have other questions...

Can I launch the remote program from a cygwin shell (cygwin.bat)
or a dos shell  (not a XWindows session, startxwin.bat) ?
I try it in both ways and the message program: cannot connect to X sever
is showed...
There is any way for configure the X and launch the remote programs from
a dos shell?

Thanks! Martín.


Cary Jamison wrote:

 I believe Harold was referring to the first part of your question, only.

 To use a remote font server, use -fp.  An example is in the FAQ (though not obvious 
to find) -

 http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-solaris-fonts

 Cary

 Harold L Hunt II [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]...
  Martin,
 
  You cannot.  Not yet, at least.
 
  We are getting closer to having this feature.  Follow the mailing list
  or the announcement mailing list for notification of when a release is
  made.
 
  Harold
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Martín De Marchi
  Sent: Thursday, December 12, 2002 1:20 PM
  To: [EMAIL PROTECTED]
  Subject: Windows Manager
 
 
  Hello!
 
  For default, when I execute the startxwin.bat file, the twm windows
  manager is loaded... How I can configure X to use the windows of my
  Windows system?
  I have any problems of fonts visualisation...
  How I can configure X so that use the server of
  fonts of the remote system?
 
  Thanks! Martín.
 
 




Re: Xwinclip

2002-12-16 Thread John Buttery
* Keith D. Tyler [EMAIL PROTECTED] [2002-12-16 13:55:52 -0500]:
 ...but I heaviliy use a proprietary product which does not do normal
 cut and paste (from what I can tell, I don't know the details) because
 of the special conditions of the objects being handled.

  Yes, yes, we all use Windows, what's your point?  :)

  (Sorry, couldn't resist. :p) 

-- 

 John Buttery
 (Web page temporarily unavailable)




msg04506/pgp0.pgp
Description: PGP signature


Re: Minor additions to winbase.h and ntdll.def

2002-12-16 Thread Earnie Boyd
Hartmut Honisch wrote:

Winbase.h
- Changed NMPWAIT_WAIT_FOREVER constant from (-1) to 0x (like in

Why?


Microsoft's header file)
- Added LOGON32_LOGON_NETWORK


 ntdll.def:
 - Added Nt-/ZwConnectPort, Nt-/ZwOpenEvent,
 Nt-/ZwRequestWaitReplyPort,
 Nt-/ZwWaitForSingleObject

Looking at Microsoft's header files and making changes to w32api is not 
allowed.  You'll have to find the MSDN documentation and provide the 
references.

Earnie.



Re: Minor additions to winbase.h and ntdll.def

2002-12-16 Thread Earnie Boyd
Hartmut Honisch wrote:

Winbase.h
- Changed NMPWAIT_WAIT_FOREVER constant from (-1) to 0x (like in


Why?



I have a piece of own code that passes NMPWAIT_WAIT_FOREVER as a parameter
to CallNamedPipe. The compiler gave me a warning because the function
prototype expected a DWORD value which by definition cannot be negative. So
it's obviously a (minor) bug in cygwin's header files, which I thought the
cygwin folks might be interested in to fix.



They just happen to be used in Cygwin and just happen to be CVSed in the 
winsup/w32api directory, but the MinGW team maintain them.



Looking at Microsoft's header files and making changes to w32api is not
allowed.



Technically, I didn't do it that way. I just mentioned that to avoid
discussions like that one, since cygwin's headers shouldn't differ from
Microsoft's headers regarding the value of numeric constants.



Such differences help provide defense to copyright enfringement claims.




You'll have to find the MSDN documentation and provide the
references.



There are no references in MSDN that show the numeric value of that
constant - at least I can't find any. So I wonder how (-1) got there in the
first place.



Then, your patch can't be accepted.  The foremost prerequisite for 
changes to the w32api is the documentation that warrants the change. 
Here is an example of a proper bug report.

quote
Bugs item #653761, was opened at 2002-12-14 17:19
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=102435aid=653761group_id=2435

Category: w32api
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dimitri Papadopoulos (dimitri_at)
Assigned to: Earnie Boyd (earnie)
Summary: missing CPLPAGE_*

Initial Comment:
Header cplext.h defines only:
CPLPAGE_MOUSE_BUTTONS 1
CPLPAGE_MOUSE_PTRMOTION 2
CPLPAGE_KEYBOARD_SPEED 1

The following are missing from w32api:
CPLPAGE_MOUSE_WHEEL
CPLPAGE_DISPLAY_BACKGROUND

Reference:
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/propsheethandlers.asp#cpl 

/quote

Dimitri could have supplied a patch but the information and 
documentation reference are still needed.

Earnie.



security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Pierre A. Humblet
Corinna,

Here are the changes to security.cc and sec_acl.cc to use 
well_known_creator_xxx_sid.
They seem to work fine on NT4.

There is peculiar effect: if a directory was created e.g. 427 by
a ntsec user with uid != gid and a file is created in the directory by
a Windows user with gid == uid, the file will inherit permissions 447.
 
I have a question: there is code in setacl (new line 139) to merge non-default
ACE's with previous default ACEs.
As the acl was sorted, I don't see how that code can ever be exercised. 
Should we try to merge default ACEs with non-default ones? I am not sure it's 
worth it.

Pierre 


2002/12/16  Pierre Humblet  [EMAIL PROTECTED]

* security.cc (alloc_sd): Change inheritance rules: on new directories add
inherit only ACEs for creator_owner, creator_group and everyone. Preserve
all inheritances through chmod and chown calls. Modify implementation of 
uid == gid case by introducing isownergroup, to simplify inheritance code. 
Do not initialize owner_sid and group_sid and stop using psd.
* sec_acl.cc (search_ace): Make id == -1, instead of  0, special.
(setacl): Use well_known_creator for default owner and group.
(getacl): Recognize well_known_creator for default owner and group.
(acl_worker): Improve errno settings and streamline nontsec case.
Index: security.cc
===
RCS file: /cvs/src/src/winsup/cygwin/security.cc,v
retrieving revision 1.129
diff -u -p -r1.129 security.cc
--- security.cc 14 Dec 2002 16:57:25 -  1.129
+++ security.cc 15 Dec 2002 20:47:18 -
@@ -1,4 +1,4 @@
-/* security.cc: NT security functions
+ /* security.cc: NT security functions
 
Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
 
@@ -1548,7 +1548,7 @@ alloc_sd (__uid32_t uid, __gid32_t gid, 
 debug_printf (GetSecurityDescriptorGroup %E);
 
   /* Get SID of owner. */
-  cygsid owner_sid (NO_SID);
+  cygsid owner_sid;
   /* Check for current user first */
   if (uid == myself-uid)
 owner_sid = cygheap-user.sid ();
@@ -1562,7 +1562,7 @@ alloc_sd (__uid32_t uid, __gid32_t gid, 
   owner_sid.debug_print (alloc_sd: owner SID =);
 
   /* Get SID of new group. */
-  cygsid group_sid (NO_SID);
+  cygsid group_sid;
   /* Check for current user first */
   if (gid == myself-gid)
 group_sid = cygheap-user.groups.pgsid;
@@ -1577,7 +1577,6 @@ alloc_sd (__uid32_t uid, __gid32_t gid, 
 
   /* Initialize local security descriptor. */
   SECURITY_DESCRIPTOR sd;
-  PSECURITY_DESCRIPTOR psd = NULL;
   if (!InitializeSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION))
 {
   __seterrno ();
@@ -1674,59 +1673,48 @@ alloc_sd (__uid32_t uid, __gid32_t gid, 
 
   /* Add owner and group permissions if SIDs are equal
  and construct deny attributes for group and owner. */
-  DWORD group_deny;
-  if (owner_sid == group_sid)
-{
-  owner_allow |= group_allow;
-  group_allow = group_deny = 0L;
-}
-  else
-{
-  group_deny = ~group_allow  other_allow;
-  group_deny = ~(STANDARD_RIGHTS_READ
- | FILE_READ_ATTRIBUTES | FILE_READ_EA);
-}
+  BOOL isownergroup;
+  if ((isownergroup = (owner_sid == group_sid)))
+owner_allow |= group_allow;
+
   DWORD owner_deny = ~owner_allow  (group_allow | other_allow);
   owner_deny = ~(STANDARD_RIGHTS_READ
  | FILE_READ_ATTRIBUTES | FILE_READ_EA
  | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA);
-
-  /* Construct appropriate inherit attribute. */
-  DWORD inherit = (attribute  S_IFDIR) ? SUB_CONTAINERS_AND_OBJECTS_INHERIT
-   : NO_INHERITANCE;
+
+  DWORD group_deny = ~group_allow  other_allow;
+  group_deny = ~(STANDARD_RIGHTS_READ
+ | FILE_READ_ATTRIBUTES | FILE_READ_EA);
 
   /* Set deny ACE for owner. */
   if (owner_deny
!add_access_denied_ace (acl, ace_off++, owner_deny,
-owner_sid, acl_len, inherit))
+owner_sid, acl_len, NO_INHERITANCE))
 return NULL;
   /* Set deny ACE for group here to respect the canonical order,
  if this does not impact owner */
-  if (group_deny  !(owner_allow  group_deny))
-{
-  if (!add_access_denied_ace (acl, ace_off++, group_deny,
-group_sid, acl_len, inherit))
-   return NULL;
-  group_deny = 0;
-}
+  if (group_deny  !(group_deny  owner_allow)  !isownergroup
+   !add_access_denied_ace (acl, ace_off++, group_deny,
+group_sid, acl_len, NO_INHERITANCE))
+return NULL;
   /* Set allow ACE for owner. */
   if (!add_access_allowed_ace (acl, ace_off++, owner_allow,
-  owner_sid, acl_len, inherit))
+  owner_sid, acl_len, NO_INHERITANCE))
 return NULL;
   /* Set deny ACE for group, if still needed. */
-  if (group_deny
+  if (group_deny  

Re: security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Corinna Vinschen
Hi Pierre,

On Mon, Dec 16, 2002 at 10:31:16AM -0500, Pierre A. Humblet wrote:
 I have a question: there is code in setacl (new line 139) to merge non-default
 ACE's with previous default ACEs.
 As the acl was sorted, I don't see how that code can ever be exercised. 
 Should we try to merge default ACEs with non-default ones? I am not sure it's 
 worth it.

the answer is yes.

The incoming acls are Sun acls.  They could look like this:

   ...
   user:foo:rw-
   ...
   default:user:foo:rw-

That is a sorted acl, right?  When converting this into a Windows ACL
I'd like to see this as just one ACL, having the correct permissions
*plus* the inheritance attribute.  I don't see how that's incorrect?!?

Corinna



Re: security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Pierre A. Humblet
Corinna Vinschen wrote:
 
 Hi Pierre,
 
 On Mon, Dec 16, 2002 at 10:31:16AM -0500, Pierre A. Humblet wrote:
  I have a question: there is code in setacl (new line 139) to merge non-default
  ACE's with previous default ACEs.
  As the acl was sorted, I don't see how that code can ever be exercised.
  Should we try to merge default ACEs with non-default ones? I am not sure it's
  worth it.
 
 the answer is yes.
 
 The incoming acls are Sun acls.  They could look like this:
 
...
user:foo:rw-
...
default:user:foo:rw-
 
 That is a sorted acl, right?  When converting this into a Windows ACL
 I'd like to see this as just one ACL, having the correct permissions
 *plus* the inheritance attribute.  I don't see how that's incorrect?!?
 

It's correct, and it's apparently being done already (see below).
But frankly I don't understand why it happens!
The default is merged with a previous non-default.
I only see Cygwin code to merge a non-default with a previous default.

Pierre

/ mkdir abcd
/ setfacl -s u::rwx,g::rwx,o::rwx,u:testuser:r--,d:u:testuser:r-- abcd
/ getfacl abcd
# file: abcd
# owner: PHumblet
# group: Clearusers
user::rwx
user:testuser:r--
group::rwx
mask:rwx
other:rwx
default:user:testuser:r--
default:mask:rwx
/ cacls abcd
e:\abcd DOMAIN\PHumblet:F 
PHumblet\testuser:(OI)(CI)(special access:)
  READ_CONTROL
  SYNCHRONIZE
  FILE_GENERIC_READ
  FILE_READ_DATA
  FILE_READ_EA
  FILE_READ_ATTRIBUTES
 
DOMAIN\Clearusers:F 
Everyone:F 


 Corinna



Re: security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Pierre A. Humblet
Pierre A. Humblet wrote:

 But frankly I don't understand why it happens!

OK, I do now. The code is looking forward to entries that
are not yet processed.

Pierre



Re: security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Pierre A. Humblet
 Pierre A. Humblet wrote:
 
  But frankly I don't understand why it happens!
 
 OK, I do now. The code is looking forward to entries that
 are not yet processed.

... and thus it may merge entries for the current owner and
for the default owner (creator_owner). Ditto for groups.
That's not good, I need to take care of these special cases.

Pierre



Re: security.cc and sec_acl.cc (ntsec, inheritance and sec_acl)

2002-12-16 Thread Corinna Vinschen
On Mon, Dec 16, 2002 at 01:26:31PM -0500, Pierre A. Humblet wrote:
 ... and thus it may merge entries for the current owner and
 for the default owner (creator_owner). Ditto for groups.

What?  How should it?  It only merges entries with the same uid/gid
and with the same type (USER/GROUP).  It won't never merge a user
with the creator_owner entry.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: [PATCH] to_slave pipe is full fix

2002-12-16 Thread Steve O
On Mon, Dec 16, 2002 at 10:51:14PM -0500, Christopher Faylor wrote:
 One more question, though.  In accept_input, shouldn't ret be set to
 something besides 1 when there is an error writing to pipe?

True.  I hadn't been considering the error case. 
I've attached a patch for this.  It's not terribly pretty. 

 I wonder if there is some other way to do this other than pulling
 everything out of the read ahead buffer and then putting it back on
 failure.  I guess it doesn't matter since this is an edge condition.

There's some things that could be done such as moving the get_readahead
later, but I agree, no point in adding complexity for this case. 

 Hmm.  I wonder if the WaitForSingleObject (input_mutex,...) is enough to
 make this code thread safe. 

I think so, but it may be more protection than you need.  OTOH, the
readahead buffer could probably use some more protection on the filling
side.

-steve

Index: cygwin/fhandler.h
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler.h,v
retrieving revision 1.149
diff -u -p -r1.149 fhandler.h
--- cygwin/fhandler.h   14 Dec 2002 04:01:32 -  1.149
+++ cygwin/fhandler.h   17 Dec 2002 06:28:09 -
@@ -123,7 +123,8 @@ enum line_edit_status
   line_edit_signalled = -1,
   line_edit_ok = 0,
   line_edit_input_done = 1,
-  line_edit_error = 2
+  line_edit_error = 2,
+  line_edit_pipe_full = 3
 };
 
 enum bg_check_types
Index: cygwin/fhandler_termios.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler_termios.cc,v
retrieving revision 1.36
diff -u -p -r1.36 fhandler_termios.cc
--- cygwin/fhandler_termios.cc  17 Dec 2002 03:49:34 -  1.36
+++ cygwin/fhandler_termios.cc  17 Dec 2002 06:28:10 -
@@ -326,9 +326,10 @@ fhandler_termios::line_edit (const char 
   put_readahead (c);
   if (!iscanon || always_accept || input_done)
{
- if (!accept_input ()) 
+ int status = accept_input ();
+ if (status != 1) 
{
- ret = line_edit_error;
+ ret = status ? line_edit_error : line_edit_pipe_full;
  eat_readahead (1);
  break;
}
Index: cygwin/fhandler_tty.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler_tty.cc,v
retrieving revision 1.83
diff -u -p -r1.83 fhandler_tty.cc
--- cygwin/fhandler_tty.cc  17 Dec 2002 03:49:34 -  1.83
+++ cygwin/fhandler_tty.cc  17 Dec 2002 06:28:12 -
@@ -169,6 +169,7 @@ fhandler_pty_master::accept_input ()
{
  debug_printf (error writing to pipe %E);
  get_ttyp ()-read_retval = -1;
+ ret = -1;
}
   else
{
@@ -1077,11 +1078,17 @@ fhandler_pty_master::close ()
 int
 fhandler_pty_master::write (const void *ptr, size_t len)
 {
-  size_t i;
+  int i;
   char *p = (char *) ptr;
-  for (i=0; ilen; i++)
-if (line_edit (p++, 1) == line_edit_error)
+  for (i=0; i  (int) len; i++)
+{
+  line_edit_status status = line_edit (p++, 1);
+  if (status == line_edit_ok || status == line_edit_input_done)
+   continue;
+  if (status != line_edit_pipe_full)
+   i = -1;
   break;
+}
   return i;
 }
 



Re: [ANNOUNCEMENT] Updated: groff-1.18.1-1

2002-12-16 Thread Roman Belenov
Christopher Faylor [EMAIL PROTECTED] writes:

 I've made a new version of groff available for download.  This is a
 refresh from the GNU web site, so it has whatever fixes are in this
 version.

Just installed it; on my system it generates Escape codes in formatted
pages and man displays them literally (less'ing produced pages does
the same). Reverting to 1.17.2-1 fixes the problem (it uses backspaces
for formatting to ascii).

-- 
With regards, Roman.


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




Re: [ANNOUNCEMENT] Updated: groff-1.18.1-1

2002-12-16 Thread Roland Schwingel
Roman Belenov wrote.
  Christopher Faylor [EMAIL PROTECTED] writes:

  I've made a new version of groff available for download.  This is a
  refresh from the GNU web site, so it has whatever fixes are in this
  version.

 Just installed it; on my system it generates Escape codes in formatted
 pages and man displays them literally (less'ing produced pages does
 the same). Reverting to 1.17.2-1 fixes the problem (it uses backspaces
 for formatting to ascii).
Hi ...

I am having the same problems here...

Roland


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




RE: Individual vs. list-only replies (Was Re: Force bash to start as administrator)

2002-12-16 Thread Pavel Rozenboim
Just another 2 cents on the issue.

I'm using MS Outlook with MS Exchange Server. Whenever I press reply on any
message from this list, Outlook tryes to send the reply to sender only. It
happens for everyone except messages from Christopher Faylor. It never
happened for me on other mailing lists I participate. It looks that other
mailing list set Reply-To header on every mail they deliver. 

Does anyone have a suggestion how Outlook can be configured to reply to the
list instead of replying to sender?

Pavel.

 -Original Message-
 From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]]
 Sent: Thu, December 12, 2002 2:21 AM
 To: [EMAIL PROTECTED]
 Subject: Individual vs. list-only replies (Was Re: Force bash to start
 as administrator)
 
 
 I don't wish to prolong this thread any more than necessary, 
 so this will
 be my last post on the subject.  Please note that no part of 
 this message
 is intended as an insult (just covering my bases here).
 
 On Wed, 11 Dec 2002, Andrew DeFaria wrote:
 
  Igor Pechtchanski wrote:
 
   On Wed, 11 Dec 2002, Andrew DeFaria wrote:
  
   Please don't email me directly - keep it on the list!
  
   My mailer (pine) replies to the sender and Cc's to the list unless
   there's a Reply-To. Many people aren't subscribed to the list, and
   thus would prefer the mail sent directly to them. It is nigh
   impossible to keep track of individual preferences, so it helps to
   provide a Reply-To header if you want the response to go 
 to the list.
   I'm modifying this particular message to go to the list 
 only, but in
   the future, as a courtesy to people replying to your 
 messages, please
   set a Reply-To header to indicate your preference.
 
  Ah and there's the rub. I had previously set Reply-To but I use the
  gname gateway to news. And when I set Reply-To this breaks the gname
  gateway and I cannot post though it.
 
  IMHO, mail lists are mail lists and if you wish to follow the action
  then you participate. You state that many people aren't 
 subscribed to
  the list. As you (and I) do not know how many people are 
 not subscribed
  vs. how many people are subscribed it's fair to say that 
 many people are
  subscribed to the list to and do not need additional email. 
 So one could
  go either way - either always mail back to the list and cc 
 the poster or
  always mail back to the list and not cc the poster. Who's 
 to say who is
  more correct? I think, givein that mail lists are supposed to be
  participtory in nature things should be kept on the list 
 and if people
  are interested then they will come to the list for answers 
 and subscribe.
 
 Andrew,
 
 I would like to point out that most people on this list are 
 busy people,
 and that the most convenient way to reply is the one that 
 takes the least
 effort on their part.  The message that started this 
 discussion used the
 default behavior of pine (reply to author, cc to list - I hit 
 reply, write
 the message, and press send), whereas for this message I 
 actually had to
 explicitly remove your name from the To: line and move the cygwin list
 from Cc: to To:.  I'm only doing this to prove the point now, and will
 most probably not do so in the future.
 
  Otherwise I will simply set up a filter to ignore all email 
 from you :-) !
 
 This is certainly your choice.
 
  Again, I don't appreciate getting email that's a copy of 
 what I'll be
  reading on the list shortly anyway.
 
 As I mentioned before, the standard way to deal with this (on 
 any mailing
 list) is to use a Reply-To header.  Since your method for reading and
 posting to this list is non-standard (namely, the gmane newsgroup) and
 incompatible with Reply-To, you would need to seek alternate 
 solutions.
 Perhaps someone else using gmane to access mailing lists can 
 be of help.
   Igor
 P.S. Also note that, even with your current setup, you can 
 get a double
 copy only if someone replies to a message that you posted.
 
 -- 
   http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_  [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
 '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 Water molecules expand as they grow warmer (C) Popular 
 Science, Oct'02, p.51
 
 
 --
 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/




RE: Individual vs. list-only replies (Was Re: Force bash to startas administrator)

2002-12-16 Thread Robert Collins
On Mon, 2002-12-16 at 21:18, Pavel Rozenboim wrote:
 Does anyone have a suggestion how Outlook can be configured to reply to the
 list instead of replying to sender?

Uhmm reply-to-all. Or write a macro (and ideally, GPL it :]) .

Rob
-- 
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---



signature.asc
Description: This is a digitally signed message part


Re: How did I get it?

2002-12-16 Thread Robert Collins
On Sat, 2002-12-14 at 23:19, Michael Schaap wrote:


 
 And this could indeed be a virus or worm.  There is at least one that 
 includes cygwin1.dll:
 
 http://vil.mcafee.com/dispVirus.asp?virus_k=99529
 
 I'd certainly check your PC carefully for viruses, if I were you.

I wonder if they included the source :}.

Rob
-- 
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---



signature.asc
Description: This is a digitally signed message part


how to use cygwin_attach_handle_to_fd?

2002-12-16 Thread Harshavardhana Adiga
Title: Message



Hi,
I am new to cygwin.I 
am creating a windows named pipe using the normal windows 
api.

In the cygwin 
documetation it is said that select call works for file descriptors,handles 
etc.Can I able to pass this handle directly to a select 
call?
if no can I use 
cygwin_attach_handle_to_fd() provided by cygwin to convert it to a file 
descriptor?
If yes what is the 
first parameter i need to pass to this method?
Further can i be 
able to use the descriptor returned by this method in a select 
call?

Alternatly,is there 
any way in which i can implement named pipes in cygwin(like 
fifo's)?
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


using select for named pipes

2002-12-16 Thread Harshavardhana Adiga
Title: Message



Hi,
I am new to cygwin.I 
am creating a windows named pipe using the normal windows 
api.

In the cygwin 
documetation it is said that select call works for file descriptors,handles 
etc.Can I able to pass this handle directly to a select 
call?
if no can I use 
cygwin_attach_handle_to_fd() provided by cygwin to convert it to a file 
descriptor?
If yes what is the 
first parameter i need to pass to this method?
Further can i be 
able to use the descriptor returned by this method in a select 
call?

Alternatly,is there 
any way in which i can implement named pipes in cygwin(like 
fifo's)?
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


c problem

2002-12-16 Thread mohit batra
hi 

 i am trying to run a c program in cygwin howevr when
i run the program the printf statements output is not
shown on screen .

also i want to know what is the extension that must be
given to c++ file in order to compile with c++ .
whwn i tried to compile with C or c++ or .cpp
extensions it gave error that it cannot find
iostream.h file .


bye 


=
Mohit batra

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Cygwin License ( Query )

2002-12-16 Thread Sajad Bashir Qadri
Title: Message




Hi,  We have a software that 
runs on Windows platform .The software is a commercial one. And at its backend 
we want to use PostgreSQL. Since the application will be running on windows 
platform we need to bundle cygwin withit 
, to use postgreSQL. The software will not be running on cygwin shell and 
will not even use any of the standard cygwin tools like - gcc, gas,ld. 
 Dowe need a 
commercial cygwin license or 'proprietary-use license' for such a use of cygwin? 
If yes pls send me the terms for this license. I will be 
very thankful to u,if u can reply this soon.

thanks 
sajad
**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


gawk : Input file remaining locked after program termination

2002-12-16 Thread Capiez Lionel
Hi,

I have a gawk program that parses a file and spawns (as needed) an external
(non-gawk) program through the 'system(...)' built-in function. If the
external program remains active after gawk's termination, the file that was
used as the input to gawk remains locked and can not be modified.

Here is a code snippet the reproduces the issue :
(Put both files in a dir. where you have a few .txt files)

File foo.sh :
-
ls *.txt  foobar
gawk -f bar.awk foobar foobar.tmp
mv foobar.tmp foobar

File bar.awk :
---
{
print $1  OK;
system(notepad  $1  ); 
}   


Running foo.sh produced the following output :
mv: cannot create regular file `foobar': Permission denied

And, as a side-effect, the 'foobar' file is deleted. 

Would someone know whether this is a gawk issue ? a cygwin issue ? a port of
gawk to cygwin issue ? or my missing something ?

As a side note, I tried to change the system call to 
system (nohup  $1  /dev/null )
but to no avail.

Thanks in advance for your help. 
Lionel

--
Lionel Capiez
Ingénieur de développement
[EMAIL PROTECTED]
Tél. : 04 72 80 72 28
-
PROSODIE Lyon  - Direction des Moyens Informatiques
81, bd du Parc d'Artillerie  69007 Lyon
Tél. : 04 72 80 72 80 / Fax : 04.72.80.72.66
http://www.prosodie.com


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




Re: c problem

2002-12-16 Thread Max Bowsher
mohit batra [EMAIL PROTECTED] wrote:

  i am trying to run a c program in cygwin howevr when
 i run the program the printf statements output is not
 shown on screen .
 
 also i want to know what is the extension that must be
 given to c++ file in order to compile with c++ .
 whwn i tried to compile with C or c++ or .cpp
 extensions it gave error that it cannot find
 iostream.h file .

Both problems above sound like user error.

I strongly suggest you read:
http://cygwin.com/bugs.html
and:
http://www.tuxedo.org/~esr/faqs/smart-questions.html


Max.


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




problem with building the gcc-mingw-3.2-20020817-1

2002-12-16 Thread James Michael DuPont
Dear list,
I have tried to build the newest mingw from source,
after looking at the source package from the net installer, it seems to
be precompiled, and not contain any needed support files.

There was no readme in the package, so next i will search the mailling
list, but here is what I needed to build at least the unpacking
makefile :

I stole the autoconf tools from the gcc install, and ran automake,
you will find the added files here 
http://introspector.sourceforge.net/cygwin/added-gcc-mingw-3.2-20020817-1.tgz
(37k)

Here are the contents :
config.cache
config.guess
config.log --- yes you dont need this
config.status
config.sub
configure
install-sh
Makefile
missing
mkinstalldirs

mike

=
James Michael DuPont
http://introspector.sourceforge.net/

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Giving up trying to get Cygwin OpenSSH3.5 to work on Win2000 Pro SP3

2002-12-16 Thread Emilio A Icaza
Max,

As per your instructions, mounts are now:
D:\Cygwin\bin on /usr/bin type system (binmode)
D:\Cygwin\lib on /usr/lib type system (binmode)
D:\Cygwin on / type system (binmode)
c: on /cygdrive/c type user (textmode,noumount)
d: on /cygdrive/d type user (textmode,noumount)
e: on /cygdrive/e type user (textmode,noumount)
g: on /cygdrive/g type user (textmode,noumount)
h: on /cygdrive/h type user (textmode,noumount)

I then created the sshd2 service and then started it.
Here are the logs generated by the server and localhost client:

(See attached file: localhost.txt)(See attached file: sshd2.log)

Emilio


localhost.txt
Description: Binary data


sshd2.log
Description: Binary data
--
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/


building the gcc-3.2-3 bootstrap fails on libstdc++-v3

2002-12-16 Thread James Michael DuPont
As promised, I have started to check the releases
of cygwin by bootstrapping them.
This one got pretty far, all the way to libstdc++-v3.

The error is :
../../../../include/getopt.h:115: declaration of C function `int
getopt()'
   conflicts with
/usr/include/sys/unistd.h:125: previous declaration `int getopt(int,
char*   const*, const char*)' here

Please note that the make boostrap does not work with gcc 3.2-3

Thanks,
mike

--
make[2]: Entering directory
`/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'

/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/src/gcc-3.2-3/i686-pc-cygwin/gcc/xgcc -shared-libgcc
-B/usr/src/gcc-3.2-3/i686-pc-cygwin/gcc/ -nostdinc++ 
-L/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src
-L/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src/.libs
-
B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/
-isystem /usr/local/i686-pc-cygwin/include
-I../../../../libstdc++-v3/../gcc -I../../../../libs
tdc++-v3/../include
-I/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin
-I/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include
-I../../../../libstdc++-v3/libsupc++   -g -O2 -fno-implicit-templates 
-Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections
-g-c ../../../../libstdc++-v3
/libsupc++/pure.cc
/usr/src/gcc-3.2-3/i686-pc-cygwin/gcc/xgcc -shared-libgcc
-B/usr/src/gcc-3.2-3/i686-pc-cygwin/gcc/ -nostdinc++
-L/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src
-L/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src/.libs
-B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -
isystem /usr/local/i686-pc-cygwin/include
-I../../../../libstdc++-v3/../gcc -I../../../../libstdc++-v3/../include
-I/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin
-I/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include
-I../../../../libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics
-show-location=once -ffunction-sections -fdata-sections -g -c
../../../../libstdc++-v3/libsupc++/pure.cc -o pure.o
cc1plus: warning: -ffunction-sections may affect debugging on some
targets
In file included from /usr/include/unistd.h:8,
 from ../../../../libstdc++-v3/libsupc++/pure.cc:34:
../../../../include/getopt.h:115: declaration of C function `int
getopt()'
   conflicts with
/usr/include/sys/unistd.h:125: previous declaration `int getopt(int,
char*   const*, const char*)' here
make[4]: *** [pure.lo] Error 1
make[4]: Leaving directory
`/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/libsupc++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/usr/src/gcc-3.2-3/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/usr/src/gcc-3.2-3/i686-pc-cygwin'
make: *** [bootstrap] Error 2

=
James Michael DuPont
http://introspector.sourceforge.net/

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




ntsec Question

2002-12-16 Thread ext-Elaine.Andrews
I have a user who wants to be able to use ssh without inputted a password. I have 
installed and got this running successfully. However, now there is a problem with 
security as anybody who logs into his laptop/desktop would be able to login to 
numerous UNIX servers without inputting a password. I have started to look at ntsec 
and have configured this to a semi-working state. My question to you is when they 
login to cygwin I want to be able to get them to input their NT username and password 
to allow them in. Looking at the shortcut it runs D:\Cygwin\cygwin.bat and lets them 
straight into the users home directory. When running login it's asks for a username 
and then lets them in straight away.

i.e. login: elandrew
Fanfare!!!
You are successfully logged in to this server !!!

elandrew@IM LOAN PC01 ~

My /etc/passwd is as follows

elandrew@IM LOAN PC01 ~
$ cat /etc/passwd
Administrator::500:513:U-IM LOAN 
PC01\Administrator,S-1-5-21-1472800135-602877700-1070557309-500:/home/Administrator:/bin/bash
elandrew::48906:10513:Andrews 
Elaine,U-NMP\elandrew,S-1-5-21-2120241691-1808037704-1542789818-38906:/home/elandrew:/bin/bash

elandrew@IM LOAN PC01 ~

2 questions

1. How can I force a password when running the login script.
2. How can I always force a username and password when logging into the cygwin window.

I hope these questions are not too obvious - any help would be greatly appreciated.

Regards
Elaine Andrews




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




Re: More pipe (and other) improvements in snapshot

2002-12-16 Thread Pavel Holejsovsky
20021214 snapshot seems to work ok, my testcase below does not fail any 
more. Thanks!

Pavel

[EMAIL PROTECTED] wrote:
On Sat, Dec 14, 2002 at 12:37:43AM -0500, Christopher Faylor wrote:


On Sat, Dec 14, 2002 at 12:27:44AM -0500, Christopher Faylor wrote:


On Fri, Dec 13, 2002 at 03:48:28PM +0100, Pavel Holejsovsky wrote:


[EMAIL PROTECTED] wrote:


Christopher Faylor wrote:


On Thu, Dec 12, 2002 at 07:32:16AM -0500, Norman Vine wrote:


Any 'tips' as to how to best debug this appreciated 

- Attach to the hung process with gdb and see where it is hung.

- Provide cygcheck output.

- Run under strace and see if you can infer where hangs or problems
are occurring.


The hung process (sed) is actually not hung, but connected to stdin 
instead of file. The root cause is that when config.status is processed 
by bash, then sometimes `` construct forgets all output, causing 
different generated file names to be empty, thus connecting sed to stdin 
instead of some file. Following command line reproduces the bug for me:

while true; do test `echo foo` = foo || echo failed; done

When this command is run inside bash, then failed lines appear quite 
regularly. The bug is reproducible only with /bin/bash, /bin/sh works 
reliably.

I meant to test the above before I made some more changes to cygwin
to attempt to avoid data loss but I didn't get around to it.

So, there is a snapshot up there which may or may not solve the problem.
The above command doesn't die for me now, so I guess that's something.

I'll check the prevous snapshot tomorrow to see if it actually fails for
me.  I've been a little sick for a couple of weeks now and attempting to
stay with my work on real job in the day and cygwin at night scenario
is not working too well.

In the meantime, please try the current snapshot.  It is probably
slightly (but possibly unoticeably) slower but it should be very much
less likely to lose data in a pipe.

The latest snapshot also has some new inline assembly functions courtesy
of some cygwin-developers (Gary R.  Van Sickle and Thomas Pfaff) which
might cause a little bit of a boost, too.


Nevermind.  I just tried the current snapshot on my NT4 machien and it
puked all over the place.

I'll fix it tomorrow.  Please avoid this snapshot until then.



This should be fixed now.  Please try the latest snapshot.

Corinna also tracked down some thinkos in my handling of text mode
reads which are fixed in this snapshot.  Thanks, Corinna.

cgf

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




Re: how to use cygwin_attach_handle_to_fd?

2002-12-16 Thread Christopher Faylor
Please check out the project web page for links to available information
and ports:  http://cygwin.com/ .

If you don't see what you need there, then the cygwin mailing list is
the best place to make observations or get questions answered.
Information on the mailing list is available at the project web page.

For your convenience, I've reset the Reply-To: address to point to the
cygwin mailing list.  I've also Cc'ed this reply there.

On Mon, Dec 16, 2002 at 02:52:03PM +0530, Harshavardhana Adiga wrote:
Hi,
I am new to cygwin.I am creating a windows named pipe using the normal
windows api.
In the cygwin documetation it is said that select call works for file
descriptors,handles etc.Can I able to pass this handle directly to a
select call?
if no can I use cygwin_attach_handle_to_fd() provided by cygwin to
convert it to a file descriptorthis?
If yes what is the first parameter i need to pass to this method?
Further can i be able to use the descriptor returned by this method in a
select call?
 
Alternatly,is there any way in which i can implement named pipes in
cygwin(like fifo's)?

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




RE: Individual vs. list-only replies (Was Re: Force bash to start as administrator)

2002-12-16 Thread Randall R Schulz
Hi,

In Eudora CTRL-R replies and shift modifies the to originator / to all 
recipients mode. There is an application-wide option to control which 
reply mode goes with CTRL-R and which with CTRL-SHIFT-R.

Randall Schulz
Mountain View, CA USA


At 02:19 2002-12-16, Robert Collins wrote:
On Mon, 2002-12-16 at 21:18, Pavel Rozenboim wrote:
 Does anyone have a suggestion how Outlook can be configured to reply to the
 list instead of replying to sender?

Uhmm reply-to-all. Or write a macro (and ideally, GPL it :]) .

Rob



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




Re: building the gcc-3.2-3 bootstrap fails on libstdc++-v3

2002-12-16 Thread Christopher Faylor
On Mon, Dec 16, 2002 at 03:26:27AM -0800, James Michael DuPont wrote:
As promised, I have started to check the releases
of cygwin by bootstrapping them.
This one got pretty far, all the way to libstdc++-v3.

The error is :
../../../../include/getopt.h:115: declaration of C function `int
getopt()'
   conflicts with
/usr/include/sys/unistd.h:125: previous declaration `int getopt(int,
char*   const*, const char*)' here

In case it isn't clear, I *do not care* about this problem. I am able to
build gcc myself with no problem.  I *don't care* if it doesn't work for
you since the fix is so completely trivial.

If you want to suggest a fix that goes beyond making the obvious change
to ../include/getopt.h, then send it to the gcc mailing list.
Otherwise, these reports are just noise here.

You've got a functional gcc compiler use it.  If you want to build it yourself,
then fix the source and move on.

How many times do I have to say this???

cgf

Please note that the make boostrap does not work with gcc 3.2-3

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




RE: ntsec Question

2002-12-16 Thread Vince Hoffman
I think your confusion here comes from thinking that Cygwin controls the
user login. Windows handles the login process. To change which user is
logged in you will need to either log off windows then log the new user on,
or use ssh 
 Running cygwin.bat does not do anything than start an interactive bash
shell in the logged on users home directory, it does not call login or
perform any checking of the user beyond looking at the output of `id -un`
and changing your working directory to your home directory (well actualy
/etc/profile does that but lets not confuse things ;) 
All security is handled by windows. If you set a mode of say 700 froma
bash/tcsh/ksh prompt, its no different than going into windows security
settings for that file from explorer and telling it to only allow your (or a
selected user) access.

In summary you effectively log on to cygwin, when you log on to windows.
Loging in by cygwin  ssh/rsh/telnet is equivalent to logging on to
windows. starting a shell via cygwin.bat or any variation (shortcut to bash
--login -i, rxvt -e bash --login -i, etc etc) is not loging in to cygwin. 

blimey thats the longest email i've written in weeks. :) 


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: 16 December 2002 15:31
 To: [EMAIL PROTECTED]
 Subject: ntsec Question
 
 
 I have a user who wants to be able to use ssh without 
 inputted a password. I have installed and got this running 
 successfully. However, now there is a problem with security 
 as anybody who logs into his laptop/desktop would be able to 
 login to numerous UNIX servers without inputting a password. 
 I have started to look at ntsec and have configured this to a 
 semi-working state. My question to you is when they login to 
 cygwin I want to be able to get them to input their NT 
 username and password to allow them in. Looking at the 
 shortcut it runs D:\Cygwin\cygwin.bat and lets them straight 
 into the users home directory. When running login it's asks 
 for a username and then lets them in straight away.
 
 i.e. login: elandrew
 Fanfare!!!
 You are successfully logged in to this server !!!
 
 elandrew@IM LOAN PC01 ~
 
 My /etc/passwd is as follows
 
 elandrew@IM LOAN PC01 ~
 $ cat /etc/passwd
 Administrator::500:513:U-IM LOAN 
 PC01\Administrator,S-1-5-21-1472800135-602877700-1070557309-50
 0:/home/Administrator:/bin/bash
 elandrew::48906:10513:Andrews 
 Elaine,U-NMP\elandrew,S-1-5-21-2120241691-1808037704-154278981
 8-38906:/home/elandrew:/bin/bash
 
 elandrew@IM LOAN PC01 ~
 
 2 questions
 
 1. How can I force a password when running the login script.
 2. How can I always force a username and password when 
 logging into the cygwin window.
 
 I hope these questions are not too obvious - any help would 
 be greatly appreciated.
 
 Regards
 Elaine Andrews
 
 
 
 
 --
 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/




RE: Cygwin Network Programming Problem

2002-12-16 Thread Parker, Ron
 -Original Message-
 From: Elfyn McBratney [mailto:[EMAIL PROTECTED]]

snip

 I tried your source, looks o.k. at first glance, and it works 
 perfectly. I tried to reproduce your problem, about 10 times, 
 and I always got:
 
   Hello, world!
 
   Connection closed

snip

I did have the latest DLL, but apparently needed a reboot.  The server still
issues an accept: No children message after each connect, but now
continues working.  This is better, but I would like to understand why I see
this message.  To me, it looks like an error of either my own cygwin's
making.

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




RE: Did anyone even try?

2002-12-16 Thread [EMAIL PROTECTED]
Yes, I did try your example and I did have the same problem on
one machine.  Did you read my reply to your email?  I suggested 
a solution that worked for me on the machine I had the trouble 
with (in case Chris's suggestion wasn't the obvious fix for you).

Larry  

Original Message:
-
From: Jim [EMAIL PROTECTED]
Date: Sun, 15 Dec 2002 23:58:07 -0800
To: [EMAIL PROTECTED]
Subject: Did anyone even try?



I have XP, links is not the problem...

I have mingw installed, this is not the problem...

I included such a simple example, yes, I broke down and subscribed to
[EMAIL PROTECTED]'s mailing list, wonder if they'll be any more willing to
listen



mail2web - Check your email from the web at
http://mail2web.com/ .



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




Re: Problems downloading and installing the basic package

2002-12-16 Thread Igor Pechtchanski
On Sun, 15 Dec 2002, Dmitry Epstein wrote:

 [CDROM installation part snipped]

 This is discouraged, although im not quite sure why, but it can be a
 pain if you need to un-install.  About the cygdrive prefix this is just
 default and you can change where and how you access your windows drives
 by using the `mount' command.  For example typeing this at the bash
 shell you can mount your C: drive as /sys:
 
$ mkdir /sys
$ mount -s C:\\ /sys

 OK, suppose I installed Cygwin in D:\cygwin.  Can I somehow make D:\ the
 root directory?

The root directory is usually the one you installed Cygwin into.  You
could probably play games with mounts, making D:\ your /, and mounting
D:\cygwin\{bin|lib|usr|etc|something else I may have forgotten} under
/{bin|lib|usr|etc|et al}, but it might not be worth the trouble, and if
you keep any perl scripts in those directories, you'd still not see the
correct paths in ActivePerl.

 Not quite sure what the problem you've got with ActivePerl so you'll
 need to give the people on the list an insight.

 The problem is this: suppose I have a Perl script in a directory somewhere,
 and that directory is in my search path.  If I just type the name of the
 script, the shell will find it, read the shebang line, and try to pass the
 script to Perl.  When it does that it gives Perl the full path to the file,
 which in Cygwin parlance starts with /cygdrive/...  Active Perl, being a
 Windows application, doesn't understand that and says that it can't open
 the file.  I have asked about this before, but no one could suggest
 anything other than installing Cygwin in the root directory of a drive.

Why not use Cygwin perl?  Cygwin comes with a perfectly nice perl 5.8,
which works at least as well as ActiveState's perl.  You could even
associate Cygwin's perl with .pl files in Explorer, to completely replace
ActivePerl.
Igor

 Thanks,
 Dmitry

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




RE: Cygwin License ( Query )

2002-12-16 Thread [EMAIL PROTECTED]
I think http://cygwin.com/licensing.html should answer your basic 
questions. 

Larry

Original Message:
-
From: Sajad Bashir Qadri [EMAIL PROTECTED]
Date: Mon, 16 Dec 2002 19:35:05 +0530
To: [EMAIL PROTECTED]
Subject: Cygwin License ( Query )


Hi, 
We have a software that runs on Windows platform .The software is a
commercial one. And at its backend we want to use PostgreSQL. Since the
application will be running on windows platform we need to bundle cygwin
with it , to use postgreSQL. The software will not be running on cygwin
shell and will not even use any of the standard cygwin tools like - gcc,
gas,ld. 
Do we need a commercial cygwin license or 'proprietary-use license'
for such a use of cygwin? If yes pls send me the terms for this license.
I will be very thankful to u,if u can reply this soon.
 
thanks 
sajad



mail2web - Check your email from the web at
http://mail2web.com/ .



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




Re: c problem

2002-12-16 Thread [EMAIL PROTECTED]
Quite true, although the second problem looks like the 
age-old problem of the user not using the right compiler
(g++) for the right job (C++).  But it would be nice not
to have to use my extensive mind-reading skills to devine
the problem and provde an answer. ;-)

Larry

Original Message:
-
From: Max Bowsher [EMAIL PROTECTED]
Date: Mon, 16 Dec 2002 14:40:50 -
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: c problem


mohit batra [EMAIL PROTECTED] wrote:

  i am trying to run a c program in cygwin howevr when
 i run the program the printf statements output is not
 shown on screen .
 
 also i want to know what is the extension that must be
 given to c++ file in order to compile with c++ .
 whwn i tried to compile with C or c++ or .cpp
 extensions it gave error that it cannot find
 iostream.h file .

Both problems above sound like user error.

I strongly suggest you read:
http://cygwin.com/bugs.html
and:
http://www.tuxedo.org/~esr/faqs/smart-questions.html


Max.


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



mail2web - Check your email from the web at
http://mail2web.com/ .



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




Re: c problem

2002-12-16 Thread Igor Pechtchanski
On Mon, 16 Dec 2002, Max Bowsher wrote:

 mohit batra mohit2kin at yahoo.com wrote:

   i am trying to run a c program in cygwin howevr when
  i run the program the printf statements output is not
  shown on screen .
 
  also i want to know what is the extension that must be
  given to c++ file in order to compile with c++ .
  whwn i tried to compile with C or c++ or .cpp
  extensions it gave error that it cannot find
  iostream.h file .

 Both problems above sound like user error.

 I strongly suggest you read:
 http://cygwin.com/bugs.html
 and:
 http://www.tuxedo.org/~esr/faqs/smart-questions.html

The second one actually sounds like a Read the manual error.  IIRC, gcc
3.2 is much stricter about C++ standards, and requires the use of
namespaces instead of header files.  Thus, #include iostream should
work.  This is a generic C++ issue, however, and is off-topic to this
list.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




RE: ntsec Question

2002-12-16 Thread [EMAIL PROTECTED]
This summary sounds good to me and should go a long way towards
helping Elaine sort out the issues here.  I would like to point 
out as well that it seems the system in question is apparently 
not current in terms of Cygwin software as well (or at least the 
password file is not).  I'd recommend rerunning setup and updating
the system in question.  Before doing so, remove /etc/passwd and 
/etc/group to make sure these files get regenerated and with the 
correct (i.e. current) format.

Larry

Original Message:
-
From: Vince Hoffman [EMAIL PROTECTED]
Date: Mon, 16 Dec 2002 16:03:41 -
To: [EMAIL PROTECTED]
Subject: RE: ntsec Question


I think your confusion here comes from thinking that Cygwin controls the
user login. Windows handles the login process. To change which user is
logged in you will need to either log off windows then log the new user on,
or use ssh 
 Running cygwin.bat does not do anything than start an interactive bash
shell in the logged on users home directory, it does not call login or
perform any checking of the user beyond looking at the output of `id -un`
and changing your working directory to your home directory (well actualy
/etc/profile does that but lets not confuse things ;) 
All security is handled by windows. If you set a mode of say 700 froma
bash/tcsh/ksh prompt, its no different than going into windows security
settings for that file from explorer and telling it to only allow your (or a
selected user) access.

In summary you effectively log on to cygwin, when you log on to windows.
Loging in by cygwin  ssh/rsh/telnet is equivalent to logging on to
windows. starting a shell via cygwin.bat or any variation (shortcut to bash
--login -i, rxvt -e bash --login -i, etc etc) is not loging in to cygwin. 

blimey thats the longest email i've written in weeks. :) 


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: 16 December 2002 15:31
 To: [EMAIL PROTECTED]
 Subject: ntsec Question
 
 
 I have a user who wants to be able to use ssh without 
 inputted a password. I have installed and got this running 
 successfully. However, now there is a problem with security 
 as anybody who logs into his laptop/desktop would be able to 
 login to numerous UNIX servers without inputting a password. 
 I have started to look at ntsec and have configured this to a 
 semi-working state. My question to you is when they login to 
 cygwin I want to be able to get them to input their NT 
 username and password to allow them in. Looking at the 
 shortcut it runs D:\Cygwin\cygwin.bat and lets them straight 
 into the users home directory. When running login it's asks 
 for a username and then lets them in straight away.
 
 i.e. login: elandrew
 Fanfare!!!
 You are successfully logged in to this server !!!
 
 elandrew@IM LOAN PC01 ~
 
 My /etc/passwd is as follows
 
 elandrew@IM LOAN PC01 ~
 $ cat /etc/passwd
 Administrator::500:513:U-IM LOAN 
 PC01\Administrator,S-1-5-21-1472800135-602877700-1070557309-50
 0:/home/Administrator:/bin/bash
 elandrew::48906:10513:Andrews 
 Elaine,U-NMP\elandrew,S-1-5-21-2120241691-1808037704-154278981
 8-38906:/home/elandrew:/bin/bash
 
 elandrew@IM LOAN PC01 ~
 
 2 questions
 
 1. How can I force a password when running the login script.
 2. How can I always force a username and password when 
 logging into the cygwin window.
 
 I hope these questions are not too obvious - any help would 
 be greatly appreciated.
 
 Regards
 Elaine Andrews
 
 
 
 
 --
 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/



mail2web - Check your email from the web at
http://mail2web.com/ .



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




[ANNOUNCEMENT] cmake-1.4.7-1

2002-12-16 Thread Bill Hoffman

CMake 1.4.7-1 is now available on Cygwin mirrors.

CMake is a cross-platform, open-source make system. CMake is used to control the 
software compilation process using simple platform and compiler independent 
configuration files. CMake generates native makefiles and workspaces that can be used 
in the compiler environment of your choice. CMake is quite sophisticated: it is 
possible to support complex environments requiring system configuration, pre-processor 
generation, code generation, and template instantiation. 

See www.cmake.org for more information.

Bill Hoffman 
Cygwin CMake maintainer





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




Re: [ANNOUNCEMENT] Updated: groff-1.18.1-1

2002-12-16 Thread Christopher Faylor
On Mon, Dec 16, 2002 at 12:38:14PM +0300, Roman Belenov wrote:
Christopher Faylor [EMAIL PROTECTED] writes:

 I've made a new version of groff available for download.  This is a
 refresh from the GNU web site, so it has whatever fixes are in this
 version.

Just installed it; on my system it generates Escape codes in formatted
pages and man displays them literally (less'ing produced pages does
the same). Reverting to 1.17.2-1 fixes the problem (it uses backspaces
for formatting to ascii).

export MANPAGER='less -R'

cgf

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




Building a specific version of Cygwin

2002-12-16 Thread Tran, Jantz C
Hi,

Is there any way I can get the source to specific versions of the Cygwin
source (via CVS or otherwise). I'm primarily interested in being able to
build 1.3.1 and 1.3.9. Thanks in advance.

-Jantz

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




Re: Building a specific version of Cygwin

2002-12-16 Thread Igor Pechtchanski
On Mon, 16 Dec 2002, Tran, Jantz C wrote:

 Hi,

 Is there any way I can get the source to specific versions of the Cygwin
 source (via CVS or otherwise). I'm primarily interested in being able to
 build 1.3.1 and 1.3.9. Thanks in advance.
 -Jantz

Some (unfortunately, not all) of the releases are tagged in CVS.  As far
as I can see, there are tags for both of those you need.  A cvs log
would have shown that to you.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




Re: Building a specific version of Cygwin

2002-12-16 Thread Corinna Vinschen
On Mon, Dec 16, 2002 at 09:12:50AM -0800, Tran, Jantz C wrote:
 Is there any way I can get the source to specific versions of the Cygwin
 source (via CVS or otherwise).

Other than using the CVS tags?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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/




Re: Building a specific version of cygwin

2002-12-16 Thread Christopher Faylor
On Mon, Dec 16, 2002 at 12:29:55PM -0500, Igor Pechtchanski wrote:
On Mon, 16 Dec 2002, Tran, Jantz C wrote:
Is there any way I can get the source to specific versions of the
Cygwin source (via CVS or otherwise).  I'm primarily interested in
being able to build 1.3.1 and 1.3.9.  Thanks in advance.

Some (unfortunately, not all) of the releases are tagged in CVS.  As
far as I can see, there are tags for both of those you need.  A cvs
log would have shown that to you.

The releases are tagged for my benefit when I make a release.  I make no
effort to ensure that any tag you see in CVS actually reflects the same
numbered cygwin release.  Also, since newlib and other components aren't
tagged, it isn't possible to recreate a release exactly.

As has been frequently mentioned, with a couple of very minor
exceptions, cygwin releases are always backwards compatible.  So, 1.3.18
DLLs should be able to handle executables built with 1.1.1.

cgf

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




Re: IBM Java 13 + JNI + Cygwin fails

2002-12-16 Thread Shankar Unni

Frank Traenkle wrote:

Calling a DLL under Cygwin from IBM Java13 via JNI fails if the DLL depends
on cygwin1.dll.


That may be because the JNI loader looks for its libraries along the 
path defined by the Java property java.library.path.

Do a System.out.println(System.getProperty(java.library.path)); just 
before your System.loadLibrary() and see what you get.

I'm not sure what yours is getting set to. Normally, when you start a 
Java program from the (Windows) command line, java.library.path is set 
to your %PATH%, but if some or something has changed in within the 
program, you may need to fix it up.
--
Shankar




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



htdig

2002-12-16 Thread Stuardo Rodriguez
Hi ppl:

  I'm new to the list and to cgywin. I started with it because a client wants 
out aplication to run in a Windows PC... What i need is apache, postgresql 
and htdig

  I downloaded apache, and postgresql.. but i didn't find where to get 
htdig... Do i need to download the src and compile it? or is there another 
way to get it?

Thanks

StR

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




free ATMEL 8051 c cross compilers - SDCC ..... any more ???

2002-12-16 Thread Karthik Bala Guru
Dear Cygwin Community,
We r @ present using the KEIL Cross compiler 
for ATMEL 8051 in Windowz platform. 
I came across SDCC that supports ATMEL in Windows
platform . Is there any other Free cross 
cross compilers for ATMEL 8051 in windowz ??

It must be free or much less than that of the
KEIL cross compiler ?

Could SDCC provide the very near functionality
that of the KEIL cross compiler ?? Normally, the
freely available utils lack support and 
functionality . what about SDCC ?? 

Do reply . !!

Though Linux is the King , at times Windows
needs to b tasted t to feel the difference !!

Thanx in advance,
karthik bala guru
[EMAIL PROTECTED]
[EMAIL PROTECTED]


Missed your favourite TV serial last night? Try the new, Yahoo! TV.
   visit http://in.tv.yahoo.com

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




Re: gawk : Input file remaining locked after program termination

2002-12-16 Thread Peter S Tillier
- Original Message -
From: Capiez Lionel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 1:26 PM
Subject: gawk : Input file remaining locked after program termination


 Hi,

 I have a gawk program that parses a file and spawns (as needed) an
external
 (non-gawk) program through the 'system(...)' built-in function. If the
 external program remains active after gawk's termination, the file
that was
 used as the input to gawk remains locked and can not be modified.

 Here is a code snippet the reproduces the issue :
 (Put both files in a dir. where you have a few .txt files)

 File foo.sh :
 -
 ls *.txt  foobar
 gawk -f bar.awk foobar foobar.tmp
 mv foobar.tmp foobar

 File bar.awk :
 ---
 {
 print $1  OK;
 system(notepad  $1  );

This will attempt to spawn a copy of notepad for every line in the file
foobar in background and then returns the command's status.  In other
words gawk will not wait for the notepad command to complete before
moving to the next line in foobar and next instance of a notepad
process.
So there could be a number of incomplete notepad instances running, one
of which is trying to access foobar.tmp when the mv command is being
executed.  This may be causing the effect that you describe.

This did not happen when I tried your exact commands on my system.

 }


 Running foo.sh produced the following output :
 mv: cannot create regular file `foobar': Permission denied


This did not happen when I tried your exact commands on my system.

 And, as a side-effect, the 'foobar' file is deleted.


This did not happen when I tried your exact commands on my system.

 Would someone know whether this is a gawk issue ? a cygwin issue ? a
port of
 gawk to cygwin issue ? or my missing something ?


I don't think that this is a gawk issue - it may be your set up.
Which version of Cygwin are you using?

 As a side note, I tried to change the system call to
 system (nohup  $1  /dev/null )
 but to no avail.

 Thanks in advance for your help.
 Lionel


A few comments re: your gawk program.  This will fail if any of the
files have spaces in their names, because you are using $1 as the
name of the file to pass to notepad.  It would be more sensible to
use $0 and to quote it when passing it to notepad, i.e.:

system (notepad \ $0\ )

Oh, and awk isn't perl, so you don't need to end lines with ;

HTH
Peter
--
Peter S Tillier
Who needs perl when you can write dc and sokoban in sed?


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: [ANN] Re: cyg-wrapper.sh

2002-12-16 Thread Matt Armstrong
Luc Hermitte [EMAIL PROTECTED] writes:

 Hello Matt,

 * On Tue, Dec 10, 2002 at 09:38:02AM -0700, Matt Armstrong
 * [EMAIL PROTECTED] wrote:
 Luc, you might consider adding an option to unset the PWD environment
 variable (or convert it to a Windows path).

 That's done. I haven't done any test with perforce, so, let me know.

 The two new options are:
 --cyg-PWD-clear   : to unset PWD 
 --cyg-PWD-convert : to convert PWD to its DOS (short) form.

 I was considering to handle other environment variables, but I
 didn't see any good candidate -- ie. environment variables specific
 to bash or cygwin that win32 native applications may also use.

SHELL.

Today I discovered the NT port of emacs uses SHELL if set, so it
ends up getting its shell set to /usr/bin/zsh.  Emacs looks for
c:\usr\bin\zsh.exe, but it is really c:\cygwin\usr\bin\zsh.exe.

The solution was to clear the SHELL env var, since I didn't want emacs
using my cygwin shell.

HOME is also probably a good idea to convert into DOS form.

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




Re: htdig

2002-12-16 Thread Elfyn McBratney
Hi,

You will need to download the source distribution of htdig and compile
it yourself. You can get the source from http://htdig.org/where.html.
Hint on installing:

  $ cd /tmp
  $ wget http://www.htdig.org/files/htdig-3.1.6.tar.gz
  $ tar zxf htdig-3.1.6.tar.gz
  $ ./configure --prefix=/usr/local/htdig
  $ make
  $ make install

Elfyn
[EMAIL PROTECTED]


--- Stuardo Rodriguez [EMAIL PROTECTED] wrote:
Hi ppl:

  I'm new to the list and to cgywin. I started with it because a client wants 
out aplication to run in a Windows PC... What i need is apache, postgresql 
and htdig

  I downloaded apache, and postgresql.. but i didn't find where to get 
htdig... Do i need to download the src and compile it? or is there another 
way to get it?

Thanks

StR

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

_
www.smokeJet.com - Free UK Internet Services

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP  more! http://www.everyone.net/selectmail?campaign=tag

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




unable to allocate heap

2002-12-16 Thread Rolf Campbell
During a lengthy build of some proprietary software today, I received
this error:

c:\cygwin\bin\sh.exe: *** unable to allocate heap, heap_chunk_size 0,
Win32 error 0
make[1]: Leaving directory
`d:/nodeloadbuild/Incremental/p4/release1.0/main/node/pload'
c:\cygwin\bin\make: *** [pload] Error 2
c:\cygwin\bin\make: Leaving directory
`d:/nodeloadbuild/Incremental/p4/release1.0/main/node'

I have been unable to reproduce this problem (running it again worked
fine).

I was wondering if anybody could help me understand what it means.  Is
it running out of memory?  Is this a cygwin problem?

The maching doing the build is running 1.3.17.

-Rolf Campbell
Software Designer
Tropic Networks

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




LFTP: Cygwin and setupterm

2002-12-16 Thread Frédéric L. W. Meunier
Anybody know what's wrong ? I tried to compile LFTP 2.6.3 with
ncurses 5.2-8 and got the following:

/cygdrive/g/Linux/lftp/src/lftp_tinfo.cc: In function `void init_terminfo()':
/cygdrive/g/Linux/lftp/src/lftp_tinfo.cc:50: implicit declaration of function `int 
setupterm(...)'

There's the following in lftp_tinfo.cc:

#if defined(HAVE_TIGETSTR)
static bool terminfo_ok = true;
static void init_terminfo()
{
   static bool initted = false;
   if(initted) return;
   initted = true;

   int errret=0;
   if(setupterm(NULL, 1, errret) == ERR)
  terminfo_ok = false;
}
#endif

The same error someone reported some time ago with 2.6.2:

http://www.mail-archive.com/lftp@uniyar.ac.ru/msg00888.html

I also e-mailed the lftp-devel mailing-list.

-- 
0@pervalidus.{net, {dyndns.}org}


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




Re: LFTP: Cygwin and setupterm

2002-12-16 Thread Larry Hall (RFK Partners, Inc)
At 11:03 PM 12/16/2002, Frédéric L. W. Meunier wrote:
Anybody know what's wrong ? I tried to compile LFTP 2.6.3 with
ncurses 5.2-8 and got the following:

/cygdrive/g/Linux/lftp/src/lftp_tinfo.cc: In function `void init_terminfo()':
/cygdrive/g/Linux/lftp/src/lftp_tinfo.cc:50: implicit declaration of function `int 
setupterm(...)'

There's the following in lftp_tinfo.cc:

#if defined(HAVE_TIGETSTR)
static bool terminfo_ok = true;
static void init_terminfo()
{
static bool initted = false;
if(initted) return;
initted = true;

int errret=0;
if(setupterm(NULL, 1, errret) == ERR)
   terminfo_ok = false;
}
#endif

The same error someone reported some time ago with 2.6.2:

http://www.mail-archive.com/lftp@uniyar.ac.ru/msg00888.html

I also e-mailed the lftp-devel mailing-list.



This is a trick question, right?  I mean, you know how to search for a 
prototype in the system include directories don't you?  I'm assuming 
that you have a real question here but I can't figure out what it is.
Can you enlighten us/me?

BTW, the answer to Joe's question that you reference above is No, 
setupterm() is not supposed to be part of libc (libcygwin.a).





Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




RE: LFTP: Cygwin and setupterm

2002-12-16 Thread Frédéric L. W. Meunier
On Mon, 16 Dec 2002, [EMAIL PROTECTED] wrote:

 The setupterm() function lives in the ncurses package
 (/usr/include/ncurses/term.h). The problem happens in the if pre-processor
 clause on line 26 of lftp_tinfo.cc. I got around that by changing the order
 and switching an if to an elif statement like this:

 #if defined(__CYGWIN__)
 # include ncurses/term.h
 # include curses.h
 #elif defined(HAVE_CURSES_H)
 # include curses.h
 # if defined(HAVE_TERM_H)
 #  include term.h
 # endif
 #elif defined(HAVE_NCURSES_CURSES_H)
 #include ncurses/curses.h
 # if defined(HAVE_NCURSES_TERM_H)
 #  include ncurses/term.h
 # endif
 #endif

 May not have been the right thing to do but got past that
 problem. Now I got a `undefined reference to `_WinMain@16''
 error, probably because I dont have libsup++ installed
 though.

I don't have libsupc++. I'm using the latest gcc2.

I think the right fix was to make the /usr/include/term.h
symlink, which for some reason:

1- Isn't in ncurses 5.2-8
or
2- Is removed when you uninstall libtermcap

-- 
0@pervalidus.{net, {dyndns.}org}


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




RE: LFTP: Cygwin and setupterm

2002-12-16 Thread Frédéric L. W. Meunier
On Mon, 16 Dec 2002, [EMAIL PROTECTED] wrote:

 May not have been the right thing to do but got past that
 problem.

Actually I think you and Larry are right. What would happen if
I had /usr/include/termcap.h from libtermcap and not ncurses ?
I don't think LFTP or anything should mix headers.

I have the same setup on Linux. No libtermcap (it's a symlink
to libncurses), though I made the /usr/include/termcap.h
symlink. It's probably right to have the symlink if libtermcap
isn't installed.

-- 
0@pervalidus.{net, {dyndns.}org}


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




Re: LFTP: cygwin and setupterm

2002-12-16 Thread Christopher Faylor
On Tue, Dec 17, 2002 at 02:12:54AM -0300, Fr?d?ric L. W. Meunier wrote:
On Mon, 16 Dec 2002, [EMAIL PROTECTED] wrote:
 The setupterm() function lives in the ncurses package
 (/usr/include/ncurses/term.h). The problem happens in the if pre-processor
 clause on line 26 of lftp_tinfo.cc. I got around that by changing the order
 and switching an if to an elif statement like this:

 #if defined(__CYGWIN__)
 # include ncurses/term.h
 # include curses.h
 #elif defined(HAVE_CURSES_H)
 # include curses.h
 # if defined(HAVE_TERM_H)
 #  include term.h
 # endif
 #elif defined(HAVE_NCURSES_CURSES_H)
 #include ncurses/curses.h
 # if defined(HAVE_NCURSES_TERM_H)
 #  include ncurses/term.h
 # endif
 #endif

 May not have been the right thing to do but got past that
 problem. Now I got a `undefined reference to `_WinMain@16''
 error, probably because I dont have libsup++ installed
 though.

I don't have libsupc++. I'm using the latest gcc2.

I think the right fix was to make the /usr/include/term.h
symlink, which for some reason:

1- Isn't in ncurses 5.2-8
or
2- Is removed when you uninstall libtermcap

Why is there a separate Cygwin definition there at at all?  It seems
like everything should be handled by HAVE_NCURSES_CURSES_H and
HAVE_NCURSES_TERM_H.  Either that or the #if for the HAVE_NCURSES_TERM_H
should be moved outside of the if for HAVE_NCURSES_CURSES_H.

Btw, I just checked and uninstalling the termcap package (assuming
this is what you mean) does not install /usr/include/term.h.  That's
not a file which is included in the termcap distribution.

cgf

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




Upgrading Less (I think) breaks BitKeeper?

2002-12-16 Thread Javier
Hi all!!

I've just done my weekly update cygwin and associated thingies
routine.
Today I had a fairly hefty go:

less-378
cpio-2.5-1
patch-2.5.8-2
groff-1.18.1-1
gcc-mingw-20020817-3
gdb-20021215-1

and after updating, I set to changing my web site, and when I issued a
simple bk citool (to check in changes), I get this popup:

Couldn' t load library H:/cygwin/lib/reg1.0/tclreg83.dll This library
or a dependent library could not be found in library path while
executing
load H:/cygwin/lib/reg1.0/tclreg83.dll registry
  (package ifneeded script)
invoked from within
package require registry
  (procedure getConfig line 131)
  invoked from within
getConfig ci
  (procedure citool line 4)
  invoked from within
citool

  (file h:/archiv~/bitkee~1/citool line 4063)


Am I the only one seeing this?

Is there a way to solve it? Or, alternatively, what changes should I
undo (ie, packages to get to previous version) to get bk working
again??

(also, installing the latest Bitkeeper Package didn't help, either)

Thanks a lot for all and any pointers..

Javier


--
«Work like you don't need the money.
  Dance like nobody's watching.
 Love like you've never been hurt.»





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




subsrcibe

2002-12-16 Thread Nugroho Nursuwito
subscribe

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




Re: Gcc 3.2 -mno-cygwin

2002-12-16 Thread Christopher Faylor
On Mon, Dec 16, 2002 at 09:07:57PM -0800, Paul G. wrote:
 Redirecting this, too. 
  
 On Sun, Dec 15, 2002 at 03:18:00PM -0800, Paul G. wrote: 
 Well, if your Win32 system doesn't support links (NT4 shortcuts), this 
 isn't really surprising. 
  
 Did you actually read this email or were you just scanning for keywords 
 like the word link? 

Heh, nice bait...but I won't bite...seems like you're not in a good
mood right now...

Funny how your email does that to me.

To recap and elucidate:

1) This is not a shortcut problem.  If it was the mailing list would be
flooded with complaints.

2) setup.exe produces old-style cygwin shortcuts.

3) The user is allowed to assume that -mno-cygwin works fine.  It should
be working much better in gcc 3.2 than it ever has before.

4) You offered faulty advice when you the correct advice was to install
the gcc-mingw package.  Please don't go on the you know that, I know that
riff when you never even suggested that.

5) Please do not suggest using other packages as a way to solve cygwin
problems.

6) workaround: A temporary kluge used to bypass, mask or otherwise avoid
a bug or misfeature in some system.
When something is not working you can't claim a workaround.

That's it for me.
cgf

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




Re: LFTP: cygwin and setupterm

2002-12-16 Thread Christopher Faylor
On Tue, Dec 17, 2002 at 12:37:45AM -0500, [EMAIL PROTECTED] wrote:
Just checked on both of my servers, they symlink /usr/include/term.h with
ncurses/term.h, running RedHat 6.1 and 8.0. Should cygwin/ncurses do the
same?

  The QNX proprietary term_* functions have been deprecated in favor of
  ncurses. ncurses is a set of terminal-independent routines for painting
  screens and handling input events..

  .The file /usr/include/term.h is now an ncurses header file; you'll
  find the old term.h in /usr/include/sys/term.h. An error message is
  displayed if you combine the old term_* and ncurses header files.

Since the code clearly checks for the situation of finding the needed headers
in /usr/include/ncurses, I don't see any reason why this package should be
used as a justification for adding a symlink.

Btw, I put the below __CYGWIN__ mention in because it still complained even
when when it was passed the sufficient defines in CPPFLAGS and CXXFLAGS
before running configure.

Usually when I see things like HAVE_NCURSES_CURSES_H, it suggests to me
that the author of the source code is correctly attempting to set things
up in a general, non-system-specific way and is testing for various
capabilities and oddities of the operating environment.  System-specific
checks like #ifdef ultrix in source quickly become unmanageable.
That's why HAVE_NCURSES_CURSES_H is nice.

There's no reason why it couldn't work in this scenario.  Of course, if it
complained maybe all you need to do is rebuke it sternly.

cgf

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




Re: LFTP: Cygwin and setupterm

2002-12-16 Thread Frédéric L. W. Meunier
On Mon, 16 Dec 2002, Larry Hall (RFK Partners, Inc) wrote:

 At 11:03 PM 12/16/2002, Frédéric L. W. Meunier wrote:
 Anybody know what's wrong ? I tried to compile LFTP 2.6.3 with
 ncurses 5.2-8 and got the following:
 
 /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc: In function `void init_terminfo()':
 /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc:50: implicit declaration of function `int 
setupterm(...)'
 
 There's the following in lftp_tinfo.cc:
 
 #if defined(HAVE_TIGETSTR)
 static bool terminfo_ok = true;
 static void init_terminfo()
 {
 static bool initted = false;
 if(initted) return;
 initted = true;
 
 int errret=0;
 if(setupterm(NULL, 1, errret) == ERR)
terminfo_ok = false;
 }
 #endif
 
 The same error someone reported some time ago with 2.6.2:
 
 http://www.mail-archive.com/lftp@uniyar.ac.ru/msg00888.html
 
 I also e-mailed the lftp-devel mailing-list.



 This is a trick question, right?  I mean, you know how to
 search for a prototype in the system include directories
 don't you?  I'm assuming that you have a real question here
 but I can't figure out what it is. Can you enlighten us/me?

Sorry, I just found
http://sources.redhat.com/ml/cygwin/2002-10/msg00122.html

I had to make the symlink (I thought it'd be in ncurses) and
run configure again, since just typing make isn't enough.

I can't reproduce the other problem reported by George Lefter.

I configured with --disable-dependency-tracking --disable-nls
--disable-static

I'm C'cing lftp-devel so that others know the answer in case
they have the same problem.

 BTW, the answer to Joe's question that you reference above is
 No, setupterm() is not supposed to be part of libc
 (libcygwin.a).

-- 
0@pervalidus.{net, {dyndns.}org}


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




Re: LFTP: Cygwin and setupterm

2002-12-16 Thread Larry Hall (RFK Partners, Inc)
At 11:46 PM 12/16/2002, Frédéric L. W. Meunier wrote:
On Mon, 16 Dec 2002, Larry Hall (RFK Partners, Inc) wrote:

  At 11:03 PM 12/16/2002, Frédéric L. W. Meunier wrote:
  Anybody know what's wrong ? I tried to compile LFTP 2.6.3 with
  ncurses 5.2-8 and got the following:
  
  /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc: In function `void init_terminfo()':
  /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc:50: implicit declaration of function 
`int setupterm(...)'
  
  There's the following in lftp_tinfo.cc:
  
  #if defined(HAVE_TIGETSTR)
  static bool terminfo_ok = true;
  static void init_terminfo()
  {
  static bool initted = false;
  if(initted) return;
  initted = true;
  
  int errret=0;
  if(setupterm(NULL, 1, errret) == ERR)
 terminfo_ok = false;
  }
  #endif
  
  The same error someone reported some time ago with 2.6.2:
  
  http://www.mail-archive.com/lftp@uniyar.ac.ru/msg00888.html
  
  I also e-mailed the lftp-devel mailing-list.
 
 
 
  This is a trick question, right?  I mean, you know how to
  search for a prototype in the system include directories
  don't you?  I'm assuming that you have a real question here
  but I can't figure out what it is. Can you enlighten us/me?

Sorry, I just found
http://sources.redhat.com/ml/cygwin/2002-10/msg00122.html

I had to make the symlink (I thought it'd be in ncurses) and
run configure again, since just typing make isn't enough.


Actually sounds to me like this a configuration issue for LFTP.
I don't think a change to ncurses should be necessary to make
LFTP build.  It seems to me that this would be a problem on 
other platforms using ncurses as well if that were the case.


I can't reproduce the other problem reported by George Lefter.


Good! :-)


Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




subsrcibe

2002-12-16 Thread Nugroho Nursuwito
subscribe


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




Re: is inetd telnet slowness fixed?

2002-12-16 Thread Danilo Turina
I had the same problem some time ago and I found that it was caused by 
FTP Software's InterDrive 5.0 (a NFS client). Uninstalling that product 
all worked flawlessly.

I think that, in general, a problem like that can be caused by network 
drivers (possibly virtual ones) that causes broadcast or other lengthy 
network iterations to be performed when someone tries to access the network.

The same software causes a similar problem with Rational Rose (10 
minutes to load a simple model with InterDrive, 1 minute without 
Interdrive).

Ciao,

		Danilo Turina

[EMAIL PROTECTED] wrote:
I just did a fresh install of 1.3.17 and setup telnetd. The login prompt
is delayed by about 3 minutes!  rlogin works just fine.

This problem was described in detail
in the mailing list towards the end of the summer.

Is there a fix or a workaround?

thanks/regards,
Tom Rodman


--- Forwarded Message
From: Bruce Dobrin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: inetd telnet slowness
Date: Fri, 6 Sep 2002 14:02:08 -0700
snipped

I wrote about a month ago with this problem,  but didn't manage to work out
a viable solution.

If I stop inetd and run in.telnetd -debug  All is well.  It appears to
capture the machine/user correctly and  I am imediately logged in (bypassing
the login/passwd prompt).

With inetd running, telnet starts,  then hangs for about 3 minutes,  finaly
ginving me a Login: prompt.  I assume that Inetd didn't pass usable
machine/user information to the in.telnetd,  and that the delay and eventual
login: prompt is in.telnetd  timing out waiting for  login information,
but I could be wrong about this.  Rlogind works fine with inetd,  and I
assume it uses a similar validation mechanism.   I'd appreciate any
assistance.


The diff of the Debug logs with and without inetd:

with inetd:
- -cut--
td: send suboption NEW-ENVIRON SEND
td: send suboption TERMINAL-TYPE SEND
td: ttloop
td: netflush 249 chars
td: ttloop read 73 chars
td: netflush 26 chars
td: recv suboption NAWS 0 80 (80) 0 25 (25)
- -cut
XON VARIABLE|ACK 17; XOFF VARIABLE|ACK 19; FORW1 VARIABLE|ACK 0;
FORW2 VARIABLE|ACK 0;
td: netflush 404 chars
td: Entering processing loop
#
##right here is where it hangs for 3 minutes}
#
CYGWIN_NT-5.0 1.3.12(0.54/3/2) (genevieve) (tty2)
td: netflush 84 chars
td: netread 9 chars
td: recv do ECHO
td: recv will BINARY
td: recv wont LINEMODE
td: netflush 85 chars
login: td: netflush 7 chars
- -cut

Without inetd:
- -cut
td: send suboption NEW-ENVIRON SEND
td: send suboption TERMINAL-TYPE SEND
td: ttloop
td: netflush 249 chars
td: ttloop read 131 chars
td: netflush 27 chars
td: recv suboption NAWS 0 80 (80) 0 25 (25)
- -cut
...XON VARIABLE|ACK 17; XOFF VARIABLE|ACK 19; FORW1 VARIABLE|ACK 0; FORW2
VARIABLE|ACK 0;
td: netflush 404 chars
td: Entering processing loop
td: netflush 30 chars
td: netread 9 chars
td: recv do ECHO
td: recv will BINARY
td: recv wont LINEMODE
td: netflush 85 chars
Fanfare!!!
You are successfully logged in to this server!!!

- -cut
snipped
--- End of Forwarded Message

--v-v--C-U-T---H-E-R-E-v-v--

To:  James Garrison [EMAIL PROTECTED]
cc:  [EMAIL PROTECTED]

From:Bruce Dobrin [EMAIL PROTECTED]
Subject: Re: Telnet takes minutes

mail headers snipped

Thanks for the quick response.


Those particular machines (1.3.12) are all on different segments from each
other,  with different os's (NT,XP, and 2K). But I have tried from other
machines on both the same and different segments,  same result,  and from
different telnet clients (SGI,  Linux, NT, Cygwin...)  it seems consistant.
I even telneted to localhost and to the machine name and ip from
itself  same result.  I assume reverse DNS is configured as it works (I
didn't know it was configurable)..   as a side note,  rsh/rlogin works like
a champ

snipped






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




CMake 1.4.7-1

2002-12-16 Thread William A. Hoffman
CMake 1.4.7-1 is now available on Cygwin mirrors.

CMake is a cross-platform, open-source make system. CMake is used to control the 
software compilation process using simple platform and compiler independent 
configuration files. CMake generates native makefiles and workspaces that can be used 
in the compiler environment of your choice. CMake is quite sophisticated: it is 
possible to support complex environments requiring system configuration, pre-processor 
generation, code generation, and template instantiation. 

See www.cmake.org for more information.

Bill Hoffman 
Cygwin CMake maintainer