RE: less-378-1 : ANSI escape sequences in perldoc output

2003-01-13 Thread jurgen . defurne
I have searched the archive for the keywords 'less ansi', but the only 
information
I got back were the mails that we sent about this subject.

I also do not understand what a discussion about slashes and backslashes 
in
POSIX and Win32 paths has to do with ANSI escape sequences in formatted
visual output. That is where you sent me with the URL below. Since the 
above
search did not turn up any part the discussion below, I severely doubt 
that it will
help with my little problem.

Anybody else on this list who might have a clue ?

Jurgen










"[EMAIL PROTECTED]" http://sources.redhat.com/ml/cygwin/2003-01/msg00211.html

Larry

Original Message:
-
From:  [EMAIL PROTECTED]
Date: Fri, 10 Jan 2003 15:53:29 +0100
To: [EMAIL PROTECTED]
Subject: less-378-1 : ANSI escape sequences in perldoc output


Hello,

After upgrading to less 3.78-1, ANSI escape sequences are visible
in the output of perldoc. I do not have this problem with the 'man'
command.

I tried to have a look at perldoc itself, but I am not that fresh anymore.
Anyway, this is not priority stuff, maybe someone of you has a quick
clue.

Regards,

Jurgen

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





--
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] Updated: lynx-2.8.4-5

2003-01-13 Thread Corinna Vinschen
I've updated the version of lynx to 2.8.4-5.

This version is identical to 2.8.4-4 but now linked against openssl-0.9.7.


To update your installation, click on the "Install Cygwin now" link on
the http://sources.redhat.com/cygwin web page.  This downloads setup.exe
to your system.  The, run setup and answer all of the questions.

Note that we do not allow downloads from sources.redhat.com (aka
cygwin.com) due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

In the US, ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/ is a
reliable high bandwidth connection.

In Germany,
ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/ is
usually pretty good.

In the UK,
http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwin/
is usually up-to-date within 48 hours.

If one of the above doesn't have the latest version of this package then
you can either wait for the site to be updated or find another mirror.

If you have questions or comments, please send them to the Cygwin
mailing list at:  [EMAIL PROTECTED] .  I would appreciate
if you would use this mailing list rather than emailing me directly.
This includes ideas and comments about the setup utility or Cygwin
in general.

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe to the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

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




Paasword validation in Windows Domain ?

2003-01-13 Thread jurgen . defurne
Hello,

I want to know if it is possible using the Cygwin tools
to validate a user/password against the domain
a computer is in.

I would like to setup web service on the intranet,
which can only be used by certain persons. Since
I a have no interest in creating and maintaining a
user database, it would be nice if users of the
service can be prompted for their name and
password, and that I can validate these against
the current domain.

Regards,

Jurgen

--
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: Paasword validation in Windows Domain ?

2003-01-13 Thread Max Bowsher
[EMAIL PROTECTED] wrote:
> Hello,
>
> I want to know if it is possible using the Cygwin tools
> to validate a user/password against the domain
> a computer is in.
>
> I would like to setup web service on the intranet,
> which can only be used by certain persons. Since
> I a have no interest in creating and maintaining a
> user database, it would be nice if users of the
> service can be prompted for their name and
> password, and that I can validate these against
> the current domain.

AFAIK, you can almost do what you want. It should all work provided you keep
your /etc/passwd up-to-date as you add and remove users. NB: Passwords are
*not* stored in /etc/passwd, they are checked with Windows - i.e. what you
want.

I suggest that you look at mk{passwd,group} -d and see if you can work out
an acceptable way of regenerating this on a schedule or when users are
created/removed.

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/




Re: BSOD on cygwin

2003-01-13 Thread Bhiksha Raj
Im not sure what happened, but my problem went away.
I do not have VPN or an antivirus program running - I turned those off
due to some problems with other software earlier. No firewall software
either - I have an external DLink firewall.
For the record, here's what I did that seemed to fix things:
1. I reinstalled cygwin 1.3.8.1. "cygcheck" ran once after the reinstall, 
 but failed again on subsequent runs. The machine still crashed when I
 tried to "./configure" guile.
2. The configure script was dying at a "uniq". I tried running uniq on a
 file, from the command line. It crashed the window (not the machine), with
 a windows popup message about some dll. I didnt note it down (unfortuntely).
3. I restarted another cygwin window and reran uniq on the same file.
 This time uniq went through.
4. I reran configure (note that I havent *changed* anything after the earlier
 run, when the machine crashed). It went through cleanly.
5. I double checked. 'cygcheck' also returns proper results.

Since I did not actively modify anything, Im mystified why things went 
through after I ran uniq on the command line.

Thanks,
Bhiksha

On Sun, Jan 12, 2003 at 07:35:44PM -0500, Larry Hall (RFK Partners, Inc) wrote:
> Perhaps someone else running Win98 will be able to confirm or deny 
> the problems you're seeing.  I'm guessing that others will only be 
> able to 'deny'.  As mentioned, BSOD is an O/S issue/bug, which means
> it's at least difficult to resolve in application software and is
> certainly much better resolved in the O/S itself (or quite possibly 
> software drivers).  Certainly in the case that the problem is caused
> by drivers (and AV software uses these too), the problem software is
> not necessarily installed on a 'typical' Win 98 machine, which is why
> I said I expect others won't be able to confirm your results.  I'd 
> highly recommend following Igor's suggestions.  The fact that you 
> can't get cygcheck to run correctly for you again makes me highly
> suspicious that something on your system other than Cygwin is actually
> causing your problem.  In my opinion, you're more likely to find the
> source of your problem by looking outside of Cygwin.
> 
> 
> 
> 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
> 
> 
> At 06:34 PM 1/12/2003, Bhiksha Raj wrote:
> >Hi,
> >
> >First I must apologize for my multiple posts earlier.
> >I wasnt sure if the first one had gone through, since I never
> >got a copy myself. So I figured Id messed up and posted again.
> >
> >Anyway,
> >the problem (as I mentioned earlier) is that on my windows 98
> >machine, with the latest cygwin, I get a blue screen of death
> >when I try to run "configure --disable-shared" on guile-1.4.1.
> >(Im using 1.4.1 because Im tyring to compile TeXmacs).
> >
> >Ive since dug around a bit, crashed my machine a hunded times,
> >and collected logs. I found that the configure script dies
> >on line 4791, at a line that goes 
> >"if sort conftest.nm|uniq > conftest.ntM;then"
> >
> >I get an empty conftest.nmT and the machine dies.
> >I tried running the same command from command line. The first time
> >I ran it, my cygwin window froze (although my machine didnt die),
> >but thereafter Ive been able to run it from command line.
> >However, running the configure script kills the machine at the
> >uniq again.
> >
> >Im attaching the configure script, the config.log, and the 
> >conftest.nm files (the conftest.nmT file I get is empty).
> >I hope this is not bad practice, but I figure they would help
> >find the problem.
> >The tail of the config.log file should indicate where exactly
> >my machine dies (every time!).
> >Also, as per Igor Pechtchanski's suggestion, I ran a cygcheck -s -v -r and
> >am attaching the output.
> >
> >Curiously, cygcheck -s -v -r gave me output the first time I
> >ran it. Afterwards, running the command simply gives me no output
> >at all - it simply runs silently and comes back. Im not sure why
> >this is so - I was pretty sure it was supposed to repeat the
> >information everytime I ran it. I hope this doesnt indicate a
> >bug with my setup.
> >
> >Many thanks for any and all help in this issue.
> >
> >Regards,
> >Bhiksha
> >[EMAIL PROTECTED]
> >
> >
> >On Sun, Jan 12, 2003 at 10:40:48AM -0500, Igor Pechtchanski wrote:
> > > On Sun, 12 Jan 2003, Igor Pechtchanski wrote:
> > > 
> > > > On Sat, 11 Jan 2003, Bhiksha Raj wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I hope this is not the wrong forum for this:
> > > > >
> > > > > Im trying to install TeXmacs on my win98+cygwin laptop.
> > > > > First I installed the binaries for guile from the cygwin setup
> > > > > (I have XFree and Tex and all associated libs already)
> > > > > downloaded TeXmacs sources, ran ./configure and then
> > > > > gave a "make".
> > > > > I got 

dlopen() and libtool problems

2003-01-13 Thread Bhiksha Raj
Hi All,

Im trying to compile guile-1.4.1 on my windows98+cygwin box.
Ive installed all the latest libtool and auto-make utils.

I run ./configure and get the following message (among others)
"checking command to parse /usr/bin/nm -B output: failed"

configure does find dlopen(), though.

When I try to make the guile-1.4.1 package make dies with the
following messages:

---
libtool: link warning: `AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen
support.
libtool: link: not configured to extract global symbols from dlreopened files
gcc -g -O2 -Wall -Wmissing-prototypes -o guile.exe guile.o -Wl,--export-dynamic 
./.libs/libguile.a .libs/libimp-cygltdl-3.a
guile.o(.text+0x38): In function `main':
/c/users/bhiksha/tmp/guile/guile-1.4.1/libguile/guile.c:74: undefined reference to 
`_lt_preloaded_symbols'
Info: resolving _h_errno by linking to __imp__h_errno (auto-import)
collect2: ld returned 1 exit status
make[2]: *** [guile.exe] Error 1


I gather this is something to do with libtool(_lt_preloaded_symbols_ is
from libtool I think), but Im not sure how to proceed.

Any help would be greatly appreciated.

Many thanks,
Bhiksha


--
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: BSOD on cygwin

2003-01-13 Thread Bhiksha Raj
> It's also weird that your mount table has root (/) down three times. Twice
> as . and once as C:/downloads/cygwin.

True, this is strange. the "." mount entries are "binmode,cygdrive"
and the c:/downloads/cygwin is only "binmode", but is not a cygdrive.

Is there an fstab equivalent in cygwin that I can check?
(Im a cygwin novice and dont know where to look)

Thanks for the help,
Bhiksha

--
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: BSOD on cygwin

2003-01-13 Thread Vince Hoffman
the mount tables are in the registry. if your going to change them then do
it using the mount command. (man mount and mount --help shoudl give plenty
of usage info)

> -Original Message-
> From: Bhiksha Raj [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 14:19
> To: Elfyn McBratney
> Subject: Re: BSOD on cygwin
> 
> 
> > It's also weird that your mount table has root (/) down 
> three times. Twice
> > as . and once as C:/downloads/cygwin.
> 
> True, this is strange. the "." mount entries are "binmode,cygdrive"
> and the c:/downloads/cygwin is only "binmode", but is not a cygdrive.
> 
> Is there an fstab equivalent in cygwin that I can check?
> (Im a cygwin novice and dont know where to look)
> 
> Thanks for the help,
> Bhiksha
> 
> --
> 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: inetutils ftpd fcntl(F_SETOWN) failure message suppression patch

2003-01-13 Thread Jason Tishler
Corinna,

[I began to reply to this post on Friday, but I got distracted by
attempting to port vsFTPd to Cygwin.  This turned out to be a good
use of my time.  BTW, I never knew about vsFTPd.  I wish I did about a
month ago...]

On Thu, Jan 09, 2003 at 06:20:38PM +0100, Corinna Vinschen wrote:
> On Thu, Jan 09, 2003 at 11:49:43AM -0500, Chris Faylor wrote:
> > On Thu, Jan 09, 2003 at 11:44:36AM -0500, Jason Tishler wrote:
> > >Would you be willing to to consider the following:
> > >
> > >http://www.cygwin.com/ml/cygwin/2002-10/msg00116.html
> > >
> > >Or, is it too esoteric for you?
> > 
> > Judging by the description, that sounds more like a patch for the
> > FSF inetutils maintainer than for the Cygwin inetutils maintainer.
> 
> I agree.

I agree too, but it was worth a shot because...

> Oh btw... wouldn't you better like to maintain ProFTPd for Cygwin?
> ;-)

I would consider the above, if I could get Cygwin ProFTPd to work!  I
spent *way* too much time about a month or two ago attempting to get
Cygwin ProFTPd to work.  Unfortunately, I was not successful and put the
port on the back burner.  I will post my patch and findings if someone
is interested or I get motivated.

However, I was successful porting vsFTPd to Cygwin with some caveats.  I
will start a separate thread to discuss these issues.  Please read this
post since I could use some help with a mmap()/fork() problem...

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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 vsFTPd porting issues

2003-01-13 Thread Jason Tishler
In my (seemingly) never ending search for a firewall friendly, Cygwin
ftpd server, I finally stumbled across vsFTPd.  By "firewall friendly,"
I mean being able to specifying the range of passive ports used during
data transfers.

Although, vsFTPd does not use autoconf, the code is well factored --
especially the system dependent routines.  Hence, it ported to Cygwin
without many problems.

See the attached patch for the details.  The following are the most
notable changes:

1. Temporarily workaround a mmap()/fork() problem by effectively
   replacing vsf_secbuf_alloc() and vsf_secbuf_free() with malloc()
   and free(), respectively.
2. Add Corinna's standard NT authentication patch.
3. Workaround lack of Cygwin nanosleep().
4. Workaround lack of Cygwin setregid() and setreuid().

The mmap()/fork() problem workaround is the only "show stopper."  When I
strace vsftpd, I get the following error:

  311 37332969 [main] vsftpd 2232 fixup_mmaps_after_fork: recreate_mmaps_after_fork, 
mmapped_areas 0xA042100
   90 37333059 [main] vsftpd 2232 fixup_mmaps_after_fork: fd -1, h 1F4, access 1, 
offset 0, size 65536, address 0xB4
  160 37333219 [main] vsftpd 2232 fixup_mmaps_after_fork: ReadProcessMemory failed for 
MAP_PRIVATE address 0xB4, Win32 error 299  

I will try to dig deeper to determine why ReadProcessMemory() is failing
with ERROR_PARTIAL_COPY (i.e., 299), but any help or pointers will be
greatly appreciated.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

diff -rup vsftpd-1.1.3.orig/Makefile vsftpd-1.1.3/Makefile
--- vsftpd-1.1.3.orig/Makefile  2002-10-21 19:15:16.0 -0400
+++ vsftpd-1.1.3/Makefile   2003-01-13 07:56:22.0 -0500
@@ -22,6 +22,8 @@ OBJS  =   main.o utility.o prelogin.o ftpcm
 vsftpd: $(OBJS) 
$(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS)
 
+.PHONY: install
+
 install:
if [ -x /usr/local/sbin ]; then \
$(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \
diff -rup vsftpd-1.1.3.orig/port/porting_junk.h vsftpd-1.1.3/port/porting_junk.h
--- vsftpd-1.1.3.orig/port/porting_junk.h   2002-09-25 14:16:24.0 -0400
+++ vsftpd-1.1.3/port/porting_junk.h2003-01-13 08:12:35.0 -0500
@@ -21,6 +21,10 @@
 #include "tru64_bogons.h"
 #endif
 
+#ifdef __CYGWIN__
+#include "cygwin_bogons.h"
+#endif
+
 /* So many older systems lack these, that it's too much hassle to list all
  * the errant systems
  */
diff -rup vsftpd-1.1.3.orig/secbuf.c vsftpd-1.1.3/secbuf.c
--- vsftpd-1.1.3.orig/secbuf.c  2001-04-22 18:15:37.0 -0400
+++ vsftpd-1.1.3/secbuf.c   2003-01-10 14:51:41.0 -0500
@@ -14,6 +14,21 @@
 #include "sysutil.h"
 #include "sysdeputil.h"
 
+#ifdef __CYGWIN__
+#include 
+
+void
+vsf_secbuf_alloc(char** p_ptr, unsigned int size)
+{
+   *p_ptr = (char*) malloc(size);
+}
+
+void
+vsf_secbuf_free(char** p_ptr)
+{
+   free(*p_ptr);
+}
+#else
 void
 vsf_secbuf_alloc(char** p_ptr, unsigned int size)
 {
@@ -86,4 +101,4 @@ vsf_secbuf_free(char** p_ptr)
   /* Lose the mapping */
   vsf_sysutil_memunmap(p_mmap, map_size);
 }
-
+#endif
diff -rup vsftpd-1.1.3.orig/sysdeputil.c vsftpd-1.1.3/sysdeputil.c
--- vsftpd-1.1.3.orig/sysdeputil.c  2002-10-29 20:06:41.0 -0500
+++ vsftpd-1.1.3/sysdeputil.c   2003-01-13 08:25:39.0 -0500
@@ -99,6 +99,14 @@
 #ifdef __sun
   #define VSF_SYSDEP_HAVE_SOLARIS_SENDFILE
 #endif
+
+#ifdef __CYGWIN__
+  #define VSF_SYSDEP_NEED_OLD_FD_PASSING
+  #undef VSF_SYSDEP_HAVE_PAM
+  #undef VSF_SYSDEP_HAVE_SHADOW
+  #undef VSF_SYSDEP_HAVE_USERSHELL
+  #include 
+#endif
 /* END config */
 
 /* PAM support - we include our own dummy version if the system lacks this */
@@ -220,6 +228,14 @@ vsf_sysdep_check_auth(const struct mystr
 }
   }
   #endif /* VSF_SYSDEP_HAVE_SHADOW */
+#ifdef __CYGWIN__
+  if (is_winnt)
+  {
+HANDLE token = cygwin_logon_user (p_pwd, str_getbuf(p_pass_str));
+cygwin_set_impersonation_token (token);
+return token != INVALID_HANDLE_VALUE;
+  }
+#endif
   p_crypted = crypt(str_getbuf(p_pass_str), p_pwd->pw_passwd);
   if (!vsf_sysutil_strcmp(p_crypted, p_pwd->pw_passwd))
   {
diff -rup vsftpd-1.1.3.orig/sysutil.c vsftpd-1.1.3/sysutil.c
--- vsftpd-1.1.3.orig/sysutil.c 2002-10-25 13:32:52.0 -0400
+++ vsftpd-1.1.3/sysutil.c  2003-01-13 08:18:34.0 -0500
@@ -15,6 +15,7 @@
 #include "sysutil.h"
 #include "utility.h"
 #include "tunables.h"
+#include "defs.h"
 
 /* Activate 64-bit file support on Linux/32bit */
 #define _FILE_OFFSET_BITS 64
@@ -1806,7 +1807,7 @@ vsf_sysutil_get_random_byte(void)
 int
 vsf_sysutil_running_as_root(void)
 {
-  return (getuid() == 0);
+  return (getuid() == VSFTP_ROOT_UID);
 }
 
 void
@@ -2021,10 +2022,13 @@ vsf_sysutil_qsort(void* p_base, unsigned
 {
   qsort(p_base, num_elem, elem_size, p_compar);
 }
-
 void
 vsf_sysutil_sleep(double seconds)
 {
+#ifdef __CYGWIN__
+  sleep(second

Re: Cygwin vsFTPd porting issues

2003-01-13 Thread Corinna Vinschen
Hi Jason,

On Mon, Jan 13, 2003 at 09:36:24AM -0500, Jason Tishler wrote:
>   160 37333219 [main] vsftpd 2232 fixup_mmaps_after_fork: ReadProcessMemory failed 
>for MAP_PRIVATE address 0xB4, Win32 error 299  
> 
> I will try to dig deeper to determine why ReadProcessMemory() is failing
> with ERROR_PARTIAL_COPY (i.e., 299), but any help or pointers will be
> greatly appreciated.

If you can figure out why that happens, I'd really appreciate a simple
testcase.  Please compare the above with the strace output generated by
mmap(), probably you will find a discrepancy like the address in the
above strace output is not inside of a mapped block.  It's also a big
difference if the mmap is mapped anonymously or to a file since the mmap()
code behaves pretty different.

Another way would be to remove MAP_PRIVATE from the mmap() call and try
again.  MAP_PRIVATE is somewhat problematic on Windows hosts, unfortunately.

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/




Newbe getting errors from CYGWIN dll

2003-01-13 Thread Ben Clewett

Dear cgywin:

Just installed latest everything from your site.

I am trying to use the latest gcc to compile a small program of my own. 
 When I do I get:

(X) The procedure entry point putc_unlocked could not be located in the 
dynamic link libruary cygwin1.dll

Can you please give me some advice?

Total content of program:

#include 
#include 
main()
{
	printf("My PID: %d\n", getpid());
	printf("Parent PID: %d\n", getppid());
}

Thanks, Ben.


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



sshd does not run

2003-01-13 Thread Ahmad Khayyat
Dear cygwin,

When I first tried to run sshd as NT service, it does not run and Windows 
reports no error code returned.

When I try to run it manually from the command prompt, i.e. /usr/sbin/sshd, it 
says sshd_config not found.

When I installed a default sshd_config in the /etc (that is where sshd expects 
sshd_config) manually, sshd says:

Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_kay
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting

I have installed cygwin version 2.249.2.5 complete with all packages on Windows 
2000 SP3.

Please advice me to get sshd running..
Thank you in advance.

Regards,


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




Bug in g++: Testcase exits with segmentation fault

2003-01-13 Thread Boris Schaeling
The testcase attached to this mail compiled with g++ 2.95.3-10 or g++ 3.2
20020927 under Cygwin 1.3.18 exits with segmentation fault. It seems to be
an error in g++ as the testcase doesn't work under Linux either. Can anyone
help or do I have to report this error to the GCC website?

BTW I found two ways to make the testcase work:
1) Change line 64 (and 70 respectively) and use "observer *Observer" instead
of "std::list". I compiled the testcase with STLport-4.5.3 under
Linux to see if it's a bug in the Standard Library but got again
segmentation fault.
2) Remove line 75 which is a simple "poll(NULL, 0, 2000)". It works without
this line but I don't know why.

Boris



testcase.cpp
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/


Re: Paasword validation in Windows Domain ?

2003-01-13 Thread Pierre A. Humblet
On Mon, Jan 13, 2003 at 10:45:14AM +0100, [EMAIL PROTECTED] wrote:
> Hello,
> 
> I want to know if it is possible using the Cygwin tools
> to validate a user/password against the domain
> a computer is in.

Yes, that's exactly what happens when you telnet or ssh,
providing a password.

Cygwin provides a function: 
cygwin_logon_user (user_pwd_entry, cleartext_password); 
See http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID
As indicated before, the user needs to be in passwd.

Pierre

--
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: sshd does not run

2003-01-13 Thread Vince Hoffman
have you read the README at /usr/doc/Cygwin/openssh-3.5p1-2.README  ? 
have you run ssh-host-config ? (doesnt sound like it.)


> -Original Message-
> From: Ahmad Khayyat [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 15:36
> To: [EMAIL PROTECTED]
> Subject: sshd does not run
> 
> 
> Dear cygwin,
> 
> When I first tried to run sshd as NT service, it does not run 
> and Windows 
> reports no error code returned.
> 
> When I try to run it manually from the command prompt, i.e. 
> /usr/sbin/sshd, it 
> says sshd_config not found.
> 
> When I installed a default sshd_config in the /etc (that is 
> where sshd expects 
> sshd_config) manually, sshd says:
> 
> Could not load host key: /etc/ssh/ssh_host_key
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_kay
> Disabling protocol version 1. Could not load host key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkeys available -- exiting
> 
> I have installed cygwin version 2.249.2.5 complete with all 
> packages on Windows 
> 2000 SP3.
> 
> Please advice me to get sshd running..
> Thank you in advance.
> 
> Regards,
> 
> 
> --
> 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: BSOD on cygwin

2003-01-13 Thread [EMAIL PROTECTED]
Sounds to me like the problem was that you installed Cygwin over 
an existing Cygwin installation, the existing DLL was locked in 
place by running Cygwin processes, and that you didn't immediately
reboot after exiting setup so that the new DLL could be put in place.
I believe setup warns you of potential misbehavior in this mode.  
Certainly, this would explain the 'bad behavior until reboot' scenario
you report.  Any chance that this was your issue?

Larry

Original Message:
-
From: Bhiksha Raj [EMAIL PROTECTED]
Date: Mon, 13 Jan 2003 07:59:22 -0500
To: [EMAIL PROTECTED]
Subject: Re: BSOD on cygwin


Im not sure what happened, but my problem went away.
I do not have VPN or an antivirus program running - I turned those off
due to some problems with other software earlier. No firewall software
either - I have an external DLink firewall.
For the record, here's what I did that seemed to fix things:
1. I reinstalled cygwin 1.3.8.1. "cygcheck" ran once after the reinstall, 
 but failed again on subsequent runs. The machine still crashed when I
 tried to "./configure" guile.
2. The configure script was dying at a "uniq". I tried running uniq on a
 file, from the command line. It crashed the window (not the machine), with
 a windows popup message about some dll. I didnt note it down
(unfortuntely).
3. I restarted another cygwin window and reran uniq on the same file.
 This time uniq went through.
4. I reran configure (note that I havent *changed* anything after the
earlier
 run, when the machine crashed). It went through cleanly.
5. I double checked. 'cygcheck' also returns proper results.

Since I did not actively modify anything, Im mystified why things went 
through after I ran uniq on the command line.

Thanks,
Bhiksha

On Sun, Jan 12, 2003 at 07:35:44PM -0500, Larry Hall (RFK Partners, Inc)
wrote:
> Perhaps someone else running Win98 will be able to confirm or deny 
> the problems you're seeing.  I'm guessing that others will only be 
> able to 'deny'.  As mentioned, BSOD is an O/S issue/bug, which means
> it's at least difficult to resolve in application software and is
> certainly much better resolved in the O/S itself (or quite possibly 
> software drivers).  Certainly in the case that the problem is caused
> by drivers (and AV software uses these too), the problem software is
> not necessarily installed on a 'typical' Win 98 machine, which is why
> I said I expect others won't be able to confirm your results.  I'd 
> highly recommend following Igor's suggestions.  The fact that you 
> can't get cygcheck to run correctly for you again makes me highly
> suspicious that something on your system other than Cygwin is actually
> causing your problem.  In my opinion, you're more likely to find the
> source of your problem by looking outside of Cygwin.
> 
> 
> 
> 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
> 
> 
> At 06:34 PM 1/12/2003, Bhiksha Raj wrote:
> >Hi,
> >
> >First I must apologize for my multiple posts earlier.
> >I wasnt sure if the first one had gone through, since I never
> >got a copy myself. So I figured Id messed up and posted again.
> >
> >Anyway,
> >the problem (as I mentioned earlier) is that on my windows 98
> >machine, with the latest cygwin, I get a blue screen of death
> >when I try to run "configure --disable-shared" on guile-1.4.1.
> >(Im using 1.4.1 because Im tyring to compile TeXmacs).
> >
> >Ive since dug around a bit, crashed my machine a hunded times,
> >and collected logs. I found that the configure script dies
> >on line 4791, at a line that goes 
> >"if sort conftest.nm|uniq > conftest.ntM;then"
> >
> >I get an empty conftest.nmT and the machine dies.
> >I tried running the same command from command line. The first time
> >I ran it, my cygwin window froze (although my machine didnt die),
> >but thereafter Ive been able to run it from command line.
> >However, running the configure script kills the machine at the
> >uniq again.
> >
> >Im attaching the configure script, the config.log, and the 
> >conftest.nm files (the conftest.nmT file I get is empty).
> >I hope this is not bad practice, but I figure they would help
> >find the problem.
> >The tail of the config.log file should indicate where exactly
> >my machine dies (every time!).
> >Also, as per Igor Pechtchanski's suggestion, I ran a cygcheck -s -v -r
and
> >am attaching the output.
> >
> >Curiously, cygcheck -s -v -r gave me output the first time I
> >ran it. Afterwards, running the command simply gives me no output
> >at all - it simply runs silently and comes back. Im not sure why
> >this is so - I was pretty sure it was supposed to repeat the
> >information everytime I ran it. I hope this doesnt indicate a
> >bug with my setup.
> >
> >Many thanks for any and all help in this issue.
> >
> >Regards,

ping on cygwin?

2003-01-13 Thread Tino Lange
Hi!

I found that the Windows %SYSTEM32/ping.exe does not provide return 
codes and has some other drawbacks.

Looking hard I couldn't locate a /bin/ping in the cygwin distribution. 
Didn't I look enough? Or is it really not there? Why?

Maybe you know some other (besides cygwin and MS builtin) 'ping.exe' 
that is scriptable with proper return values - like the unix ones?!

Thanks a lot!

Tino


--
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: Newbe getting errors from CYGWIN dll

2003-01-13 Thread Max Bowsher
Ben Clewett wrote:
> Dear cgywin:
> 
> Just installed latest everything from your site.
> 
> I am trying to use the latest gcc to compile a small program of my
>   own. When I do I get:
> 
> (X) The procedure entry point putc_unlocked could not be located in
> the dynamic link libruary cygwin1.dll
> 
> Can you please give me some advice?

Install latest version of package "cygwin".

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/




RE: ping on cygwin?

2003-01-13 Thread [EMAIL PROTECTED]
See the FAQ entry:

What packages should I download?
http://cygwin.com/faq/faq_2.html#SEC13

This will direct you to http://cygwin.com/packages/ which can be used 
for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'

Larry


Original Message:
-
From: Tino Lange [EMAIL PROTECTED]
Date: Mon, 13 Jan 2003 16:48:28 +0100
To: [EMAIL PROTECTED]
Subject: ping on cygwin?


Hi!

I found that the Windows %SYSTEM32/ping.exe does not provide return 
codes and has some other drawbacks.

Looking hard I couldn't locate a /bin/ping in the cygwin distribution. 
Didn't I look enough? Or is it really not there? Why?

Maybe you know some other (besides cygwin and MS builtin) 'ping.exe' 
that is scriptable with proper return values - like the unix ones?!

Thanks a lot!

Tino


--
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: ping on cygwin?

2003-01-13 Thread Tino Lange
Hi Larry!


I found that the Windows %SYSTEM32/ping.exe does not provide return 
codes and has some other drawbacks.

Looking hard I couldn't locate a /bin/ping in the cygwin distribution. 
Didn't I look enough? Or is it really not there? Why?

Maybe you know some other (besides cygwin and MS builtin) 'ping.exe' 
that is scriptable with proper return values - like the unix ones?!


See the FAQ entry:

What packages should I download?
http://cygwin.com/faq/faq_2.html#SEC13

This will direct you to http://cygwin.com/packages/ which can be used 
for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'

Using these links you sent to me and the search engine on the packages 
page also supported my statement that 'ping' unfortunately doesn't seem 
to be part of any cygwin package, just as I already thought.

So my two other questions are of relevance and seem to be reasonable:

Why? (Serious problems? Problems using raw sockets as non-Administrator? 
If not, maybe I can help porting this tool?)

and/or

Maybe one of the readers here knows some other 'ping.exe' that is 
suitable for scripting? The MS one isn't :-(

Thanks for your answer!

Tino


--
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: ping on cygwin?

2003-01-13 Thread Lapo Luchini
Tino Lange wrote:


Why? (Serious problems? Problems using raw sockets as 
non-Administrator? If not, maybe I can help porting this tool?)
Maybe one of the readers here knows some other 'ping.exe' that is 
suitable for scripting? The MS one isn't :-( 

AFAIK the "usual" ping.c compiles and works well on CygWin.
A package needs not only to "work" to "exist", it also needs a "package 
mantainer", on CygWni.

Thanks for your answer! 

you're welcome.

Lapo

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
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: Paasword validation in Windows Domain ?

2003-01-13 Thread Habermann, David (DA)
It should be noted that this does not work if running on W98, it must be on XP or NT 
(someone please correct me if I'm wrong here).

David Habermann



-Original Message-
From: Pierre A. Humblet [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Paasword validation in Windows Domain ?


On Mon, Jan 13, 2003 at 10:45:14AM +0100, [EMAIL PROTECTED] wrote:
> Hello,
> 
> I want to know if it is possible using the Cygwin tools
> to validate a user/password against the domain
> a computer is in.

Yes, that's exactly what happens when you telnet or ssh,
providing a password.

Cygwin provides a function: 
cygwin_logon_user (user_pwd_entry, cleartext_password); 
See http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID
As indicated before, the user needs to be in passwd.

Pierre

--
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: Paasword validation in Windows Domain ?

2003-01-13 Thread Pierre A. Humblet
On Mon, Jan 13, 2003 at 11:26:42AM -0500, Habermann, David (DA) wrote:
> It should be noted that this does not work if running on W98, it must be on XP or NT 
>(someone please correct me if I'm wrong here).

Correct. The URL below also explains how to do it on win98
> See http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID

Pierre


--
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: ping on cygwin?

2003-01-13 Thread [EMAIL PROTECTED]
Again I have to direct you to the FAQ:

Why isn't package  available in Cygwin? (Or, why is your package so 
out of date?)


This is the most likely answer as to *why* there is no /bin/ping already.
Generally, there is no mystery surrounding these kinds of questions and 
it's very worthwhile to check the FAQ, email archives and other
documentation
for this kind of information before posting to the list.  It's generally
a time-saver for everyone as well as a good habit and good information 
source. :-)

The answer to your last question might even already be in the email 
archives (and maybe not but at least then you'll be pretty sure you're
not covering ground the list has already discussed).

Larry



Original Message:
-
From: Tino Lange [EMAIL PROTECTED]
Date: Mon, 13 Jan 2003 17:13:59 +0100
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: ping on cygwin?


Hi Larry!

>> I found that the Windows %SYSTEM32/ping.exe does not provide return 
>> codes and has some other drawbacks.
>> 
>> Looking hard I couldn't locate a /bin/ping in the cygwin distribution. 
>> Didn't I look enough? Or is it really not there? Why?
>> 
>> Maybe you know some other (besides cygwin and MS builtin) 'ping.exe' 
>> that is scriptable with proper return values - like the unix ones?!

> See the FAQ entry:
> 
> What packages should I download?
> http://cygwin.com/faq/faq_2.html#SEC13
> 
> This will direct you to http://cygwin.com/packages/ which can be used 
> for the general inquiry of 'Is XXX utility/file part of a Cygwin package?'

Using these links you sent to me and the search engine on the packages 
page also supported my statement that 'ping' unfortunately doesn't seem 
to be part of any cygwin package, just as I already thought.

So my two other questions are of relevance and seem to be reasonable:

Why? (Serious problems? Problems using raw sockets as non-Administrator? 
If not, maybe I can help porting this tool?)

and/or

Maybe one of the readers here knows some other 'ping.exe' that is 
suitable for scripting? The MS one isn't :-(

Thanks for your answer!

Tino



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/




fcntl() bug? if called second times!

2003-01-13 Thread Heiko Elger
Hello,

I try to comiple an run the distcc package - but I get errors while running.
I figured out, tha the problems are the fcntl() calls - perhaps
ther is a bug in cygwin?
The following code runs differently in cygwin and linux.
If I want ro lock the whole file twice, but still the same process, I will
get an "permission denied" error on cygwin.
The same code works on linux!

===> Cygwin console
heiko@HEIKO ~/src/fslock
$ ./fslocktest
Lock 1
Lock 2
lock failed: fslocktest.txt: Permission denied

===> linux console
heiko@linux:~/src/fslock> ./fslocktest
Lock 1
Lock 2

Below is the code to reproduce the error.

I'm using the following software:
- Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
  CYGWIN=ntsec
- Cygwin DLL version info:
 DLL version: 1.3.18
 DLL epoch: 19
 DLL bad signal mask: 19005
 DLL old termios: 5
 DLL malloc env: 28
 API major: 0
 API minor: 69
 Shared data: 3
 DLL identifier: cygwin1
 Mount registry: 2
 Cygnus registry name: Cygnus Solutions
 Cygwin registry name: Cygwin
 Program options name: Program Options
 Cygwin mount registry name: mounts v2
 Cygdrive flags: cygdrive flags
 Cygdrive prefix: cygdrive prefix
 Cygdrive default prefix:
 Build date: Wed Dec 25 15:37:50 EST 2002
 Shared id: cygwin1S3
- Linux: Suse 8.1

Perhaps someone can give me a hint ...

Best regards
  Heiko Elger


 snip - snip - snip 
/*
   make CFLAGS="-Wall -g -O0" testfcntl.c
*/
int main(int argc, char** argv, char** envp)
{
int fd ;
char* fname = "fslocktest.txt";
int rc;
struct flock lockparam;

lockparam.l_type = F_WRLCK;
lockparam.l_whence = SEEK_SET;
lockparam.l_start = 0;
lockparam.l_len = 0;/* whole file */

fd = open(fname, O_WRONLY|O_CREAT, 0600);
if (fd == -1 && errno != EEXIST) 
{
printf("failed to creat %s: %s", fname, strerror(errno));
return errno;
}

printf("Lock 1\n");
rc  = fcntl(fd, F_SETLK, &lockparam);
if (rc==-1)
{
printf("lock failed: %s: %s", fname, strerror(errno));
return errno;
}
printf("Lock 2\n");
rc  = fcntl(fd, F_SETLK, &lockparam);
if (rc==-1)
{
printf("lock failed: %s: %s", fname, strerror(errno));
return errno;
}

close(fd);
return 0;
}
 snip - snip - snip 




Heiko Elger

  ,,,
 (o o)
+oOO--(_)--OOo+
| |
| Email:[EMAIL PROTECTED]   |
| |
|   bitte .spam in der Email-Adresse entfernen|
|   please remove .spam   |
| |
|.oo0O   O0oo.|
|(   )   (   )|
+-\ (-) /-+
   \_)   (_/



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




binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Ralf Habacker
Hi all,

in december 2002 Charles Wilson and I had supplied an ld patch for the
auto-import from dll functionality.

For the kde-cygwin project we would like to use this new stuff in the near
future for the next qt3 release.

General there are two way to solve this:

Because we don't like to release an independent binutils release on the
kde-cygwin download area my question is, if there is someone who could release a
new binutils release for cygwin containing this patch.

Thanks for any efforts.

Ralf




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




Can't connect to Sun 5.8 via scp ... but ssh works fine?

2003-01-13 Thread Kirk
Hello,
I'm having difficulty getting scp to work, I'm trying to connect to a Sun
5.8 server from my Windows 200 server.  SSH work fine but when trying to
copy a file from my Windoze 2000 box to the Sun 5.8 server, this error is
displayed:

Admin@W2K ~
$ scp test.pl [EMAIL PROTECTED]:~
[EMAIL PROTECTED]'s password:
scp: warning: Executing scp1 compatibility.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is
in your PATH).
lost connection

Admin@W2K ~
$

Can someone please lend me some experience?

Thanks,
Kirk


--
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: Can't connect to Sun 5.8 via scp ... but ssh works fine?

2003-01-13 Thread Corinna Vinschen
On Mon, Jan 13, 2003 at 09:14:41AM -0800, Kirk wrote:
> Hello,
> I'm having difficulty getting scp to work, I'm trying to connect to a Sun
> 5.8 server from my Windows 200 server.  SSH work fine but when trying to
> copy a file from my Windoze 2000 box to the Sun 5.8 server, this error is
> displayed:
> 
> Admin@W2K ~
> $ scp test.pl [EMAIL PROTECTED]:~
> [EMAIL PROTECTED]'s password:
> scp: warning: Executing scp1 compatibility.
> scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is
> in your PATH).
> lost connection
> 
> Admin@W2K ~
> $
> 
> Can someone please lend me some experience?

You're not calling scp from OpenSSH but the scp from SSH.com.  Check
your installation.

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: Can't connect to Sun 5.8 via scp ... but ssh works fine?

2003-01-13 Thread Kirk
But scp works when using it with every other Linux server that I've tested.
It looks to me more like something with the Sun OS?  Perhaps I need to add
an environment variable on my account on the Sun server?

Kirk

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
>Of Corinna Vinschen
>Sent: Monday, January 13, 2003 9:21 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Can't connect to Sun 5.8 via scp ... but ssh works fine?
>
>
>On Mon, Jan 13, 2003 at 09:14:41AM -0800, Kirk wrote:
>> Hello,
>> I'm having difficulty getting scp to work, I'm trying to connect to a Sun
>> 5.8 server from my Windows 200 server.  SSH work fine but when trying to
>> copy a file from my Windoze 2000 box to the Sun 5.8 server, this error is
>> displayed:
>>
>> Admin@W2K ~
>> $ scp test.pl [EMAIL PROTECTED]:~
>> [EMAIL PROTECTED]'s password:
>> scp: warning: Executing scp1 compatibility.
>> scp: FATAL: Executing ssh1 in compatibility mode failed (Check
>that scp1 is
>> in your PATH).
>> lost connection
>>
>> Admin@W2K ~
>> $
>>
>> Can someone please lend me some experience?
>
>You're not calling scp from OpenSSH but the scp from SSH.com.  Check
>your installation.
>
>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/
>
>


--
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: ping on cygwin?

2003-01-13 Thread Tino Lange
[EMAIL PROTECTED] wrote:

Hi again!


Again I have to direct you to the FAQ:

Why isn't package  available in Cygwin? (Or, why is your package so 
out of date?) 

Thanks! I read it once again and hence I like to (try to) contribute - 
see below.

it's very worthwhile to check the FAQ, email archives and other
documentation for this kind of information before posting to the list. 

I googled and searched for ping.exe since about 4 hours today.
I found some scripts in python and perl that might emulate a ping, found 
someone proposing to wrap MS-ping and emulate the return values by 
regexp the output and so on. Also I looked through various cygwin 
systems and package lists to find the appropiate cygwin package.
I also searched UnxUtils and the GnuWin32 project and the MS site incl. 
knowledgebase. All without success.

I learned a lot about raw icmp sockets and why only root is allowed to 
open them - making ping a setuid program.

> It's generally a time-saver for everyone as well as a good habit
> and good information source. :-)

Larry, really I think I was quite prepared before asking the list. I 
really didn't want to waste some of your time or to offend you by 'just 
asking' - maybe I should have written more clearly that I already tried 
to inform myself a a lot prior to asking.

I think 'ping' is a VERY essential tool and part of even every 
mini-linux/unix, I didn't just ask for some package . 'ping' is one 
of THE basic programs. It's even so essential that even MS makes a 
'ping.exe' :-) So I thought and think that Cygwin must also provide a 
ping - and if not, there must be a good reason.

That's why I finally asked the group - I thought that maybe I could also 
save some precious time not searching further for hours or try to 
compile sth. that isn't possible with cygwin (yet).

> The answer to your last question might even already be in the email
> archives (and maybe not but at least then you'll be pretty sure you're
> not covering ground the list has already discussed).

I googled a lot and didn't find something. The search engine on the 
cygwin site gives internal server errors every second try, but the first 
 3 pages of results also didn't answer.

I also tried to compile by myself, but Lapo isn't right:
> AFAIK the "usual" ping.c compiles and works well on CygWin.
Unfortunately not. There are lot's of include (and mybe more) problems 
that have to be solved

OK!
I'm willing to contribute and try to solve that. If noone here has some 
other idea I think I found some missing program in the great 
cygwin-world. I'll try to compile ping from 
ftp://ftp.inr.ac.ru/ip-routing/iputils-current.tar.gz and I'll tel you 
about my success or failure later.

(Just to make clear and not to annoy: Is it allowed according to the 
mailing list regulations to ask the group for possible help while the 
development of such new packages? Or isn't that list the right place?)

Thanks for your help again
and best regards

Tino


--
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: Setting up cvs on Windows 2000

2003-01-13 Thread Igor Pechtchanski
On Sun, 12 Jan 2003, Elfyn McBratney wrote:

> > Unless something has changed that escaped my attention, what
> > has repeatedly been stated here (though no time very recently)
> > is that Cygwin CVS does not support the "pserver" access
> > mode. The recommendation has been to use the "external"
> > access mode via SSH.
>
> Aaaah I didn't know that :( The reason I offered help is because I have had
> a pserver working on my local machine for about a week now. And although I
> haven't had the time to test it extensively cvs login,checkout,commit etc.
> seems to be working reasonably well. I don't think I'm doing anything out of
> the ordinary so i wonder why it's working for me ;-)
> Elfyn
> [EMAIL PROTECTED]

"Not knowing it was impossible, he did it." -- J.J.Rousseau
Sorry, couldn't resist. :-D
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/




setup doen't run on windows 98

2003-01-13 Thread enrique pazos
Hi, I tried to run the setup program and I got this
message:

This program has performed an illegal operation and
will be shut down.

and the execution ends doing nothing.

I tried to run it in an IBM thinkpad transnote, 64MB
RAM, pentiumIII. What could be the problem?

enrique

__
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: fcntl() bug? if called second times!

2003-01-13 Thread Pavel Tsekov
Hello,

Cygwin doesn't support advisory file locking. It implements file locking 
via the Win32 api LockFile*. Find out more here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/lockfile.asp

And more specifically this part:
[...]
Locking a portion of a file for shared access denies all processes write 
access to the specified region of the file, including the process that 
first locks the region. All processes can read the locked region.
[...]

In fact I think the Win32 error code returned in this case is 
ERROR_LOCK_VIOLATION and Cygwin translates it to EACCESS.

Some time before I started porting sendmail to Cygwin and met this 
problem. I decided to try to implement something like advisory file 
locking for Cygwin back then but lack of time prevented me from doing so 
:(

On Mon, 13 Jan 2003, Heiko Elger wrote:

> Hello,
> 
> I try to comiple an run the distcc package - but I get errors while running.
> I figured out, tha the problems are the fcntl() calls - perhaps
> ther is a bug in cygwin?
> The following code runs differently in cygwin and linux.
> If I want ro lock the whole file twice, but still the same process, I will
> get an "permission denied" error on cygwin.
> The same code works on linux!
> 
> ===> Cygwin console
> heiko@HEIKO ~/src/fslock
> $ ./fslocktest
> Lock 1
> Lock 2
> lock failed: fslocktest.txt: Permission denied
> 
> ===> linux console
> heiko@linux:~/src/fslock> ./fslocktest
> Lock 1
> Lock 2



--
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: Setting up cvs on Windows 2000

2003-01-13 Thread Fred Kulack

For what its worth (perhaps nothing) based on other comments about this
working
sometimes...
I got cygwin CVS working using the pserver protocol with no heroic efforts.
Not having
used CVS before, I could have done something heroic and didn't even know
it, but I
doubt it.  8-).

1) I set the CVSROOT, CVSPASSWORD environment variables
2) Seem to recall needing to fully qualify the hostname in CVSROOT, i.e.
export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/repos/foobar
3) cvs login

I pretty extensively use the eclipse CVS plugin, but the cygwin stuff I use
for
batch changes and I've done more than a few checkouts/updates/commits
with no problems thus far. Several others on my team have had good luck as
well.
I'm running XP Professional, some of my teammates are on Win2000.

> cvs --version
Concurrent Versions System (CVS) 1.11 (client/server)
Copyright (c) 1989-2000 Brian Berliner, david d `zoo' zuhn,
Jeff Polk, and other authors
CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.
Specify the --help option for further information about CVS




"The stuff we call "software" is not like anything that human society
  is used to thinking about. Software is something like a machine, and
  something like mathematics, and something like language, and
  something like thought, and art, and information...
  but software is not in fact any of those other things."
Bruce Sterling - The Hacker Crackdown

Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions
ERP, Java DB2 access, Jdbc, JTA, etc...
IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
mailto:[EMAIL PROTECTED]   Personal: mailto:[EMAIL PROTECTED]
AIM Home:FKulack  AIM Work:FKulackWrk
MSN Work: [EMAIL PROTECTED]


   
   
  Randall R Schulz 
   
  <[EMAIL PROTECTED]To:   [EMAIL PROTECTED] 
   
  m>   cc: 
   
  Sent by: Subject:  Re: Setting up cvs on Windows 
2000   
  cygwin-owner@cygw
   
  in.com   
   
   
   
   
   
  01/12/2003 07:19 
   
  PM   
   
   
   
   
   



Elfyn,

I neglected to mention that it has also been reported that some, through
heroic effort, have managed to get pserver working. Details of their
arduousness were not reported, however.

Searching for "CVS," "pserver," "external" and / or "SSH" will help you
zero in on the pertinent messages to the Cygwin mailing list.

It's possible that ongoing improvements in Cygwin have made pserver work
(with less effort). Since I know nothing of the problems that impaired
pserver function, I can only offer this as a guess.

Randall Schulz


At 15:53 2003-01-12, Elfyn McBratney wrote:
> > Unless something has changed that escaped my attention, what
> > has repeatedly been stated here (though no time very recently)
> > is that Cygwin CVS does not support the "pserver" access
> > mode. The recommendation has been to use the "external"
> > access mode via SSH.
>
>Aaaah I didn't know that :( The reason I offered help is because I have
had
>a pserver working on my local machine for about a week now. And although I
>haven't had the time to test it extensively cvs login,checkout,commit etc.
>seems to be working reasonably well. I don't think I'm doing anything out
of
>the ordinary so i wonder why it's working for me ;-)
>
>Elfyn
>[EMAIL PROTECTED]


--
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: Paasword validation in Windows Domain ?

2003-01-13 Thread Andrew DeFaria
Pierre A. Humblet wrote:


Cygwin provides a function:  cygwin_logon_user (user_pwd_entry, 
cleartext_password);  See 
http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID As indicated 
before, the user needs to be in passwd.

Has anybody tried this from Perl?



--
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: dlopen() and libtool problems

2003-01-13 Thread Jan Nieuwenhuizen
Bhiksha Raj <[EMAIL PROTECTED]> writes:

> Im trying to compile guile-1.4.1 on my windows98+cygwin box.
> Ive installed all the latest libtool and auto-make utils.

You are aware that guile-1.6 is included in Cygwin?  If you really
need 1.4, you may want to look at the 1.6 source package for clues.

As an aside, GUILE cvs HEAD should compile without patching.

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.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: xinted rsync bluescreen

2003-01-13 Thread Dan Holmsand
Sergey Okhapkin wrote:

net start init
chkconfig rsync on
chkconfig rsync off

bluescreen... Win2000. I have no rsync installed.

I set system environment variable CYGWIN to "nontsec", restarted init
service and the problem went away...


I've seen this occasionally as well, but it doesn't stop there. Any 
access of files under /etc seems to be able to occasionally trigger a 
blue screen while init is running. A particularly sure fire way of 
causing the BSOD seems to be running /sbin/telinit, but even viewing a 
file under /etc with vim can sometimes be enough.

The BSOD happens both using 1.3.18 and the latest snapshot, on W2K SP3, 
with no anti-virus software running. I've seen BSODs on quite different 
machines (both on a Compaq Proliant and on a couple of Compaq Armadas): 
the common denominator seems to be that init is running. Init is in turn 
running sshd, cron, xinetd, ipc-daemon and postgres.

However, it might not be init (directly) that causes the BSOD; the 
bugcheck analysis (below) seems to be at least somewhat similar to the 
ones posted in 
, 
 and 


My guess is that cygwin does something that sometimes triggers a windows 
(or, rather, ntfs) bug when files under /etc are used. This is of course 
just a wild guess.

Another observation: it seems (according to Process Explorer from 
sysinternals.com) that cygwin programs started from init keep a handle 
to the /etc directory open. That shouldn't be needed, should it? I have 
no idea if this has anything at all to do with the BSODs, of course...

Hopefully this information might be useful to someone more familiar with 
Cygwin and Windows internals than I am.

/dan




Here is a typical bugcheck analysis from windbg:


IRQL_NOT_LESS_OR_EQUAL (a)
An attempt was made to access a pagable (or completely invalid) address 
at an
interrupt request level (IRQL) that is too high.  This is usually
caused by drivers using improper addresses.
If a kernel debugger is available get the stack backtrace.
Arguments:
Arg1: 0014, memory referenced
Arg2: 0002, IRQL
Arg3: , value 0 = read operation, 1 = write operation
Arg4: 8045505d, address which referenced memory

Debugging Details:
--


READ_ADDRESS:  0014 Nonpaged pool

CURRENT_IRQL:  2

FAULTING_IP:
nt!PsChargePoolQuota+50
8045505d 0374bb10 add esi,[ebx+edi*4+0x10]

DEFAULT_BUCKET_ID:  DRIVER_FAULT

BUGCHECK_STR:  0xA

TRAP_FRAME:  bddd6710 -- (.trap bddd6710)
ErrCode = 
eax= ebx= ecx= edx= esi=0020 
edi=0001
eip=8045505d esp=bddd6784 ebp=bddd6798 iopl=0 nv up ei pl zr na 
po nc
cs=0008  ss=0010  ds=0023  es=0023  fs=0030  gs= 
efl=00010246
nt!PsChargePoolQuota+50:
8045505d 0374bb10 add  esi,[ebx+edi*4+0x10] 
ds:0023:0014=
Resetting default context

LAST_CONTROL_TRANSFER:  from 80495801 to 8045505d

STACK_TEXT:
bddd6798 80495801 ff974b40 0001 0020 nt!PsChargePoolQuota+0x50
bddd683c bfeed999 81a73368 81a49bc8 e27e2b98 
nt!FsRtlNotifyFullReportChange+0x46d
bddd6ab8 bfeeaa06 bddd6b00 ff93c508 81a49800 Ntfs!NtfsCommonCleanup+0x2061
bddd6c30 8041f79f 81a49800 ff93c508 ff93e108 Ntfs!NtfsFsdCleanup+0x113
bddd6c44 8049bb90 80067c64 81aa9040 0001 nt!IopfCallDriver+0x35
bddd6c78 804a50e5 ff93e1c0 81a49800 00120196 nt!IopCloseFile+0x275
bddd6ca4 8044f718 ff93e1c0 ff93e0f4 ff93e108 
nt!ObpDecrementHandleCount+0x13c
bddd6d58 80465091 00bc   nt!NtClose+0x1f0
bddd6d58 77f8376e 00bc   nt!KiSystemService+0xc4
WARNING: Frame IP not in any known module. Following frames may be wrong.
0022fc0c     0x77f8376e


FOLLOWUP_IP:
nt!PsChargePoolQuota+50
8045505d 0374bb10 add esi,[ebx+edi*4+0x10]

FOLLOWUP_NAME:  MachineOwner

SYMBOL_NAME:  nt!PsChargePoolQuota+50

MODULE_NAME:  nt

IMAGE_NAME:  ntoskrnl.exe

DEBUG_FLR_IMAGE_TIMESTAMP:  3d366b8b

STACK_COMMAND:  .trap bddd6710 ; kb

BUCKET_ID:  0xA_nt!PsChargePoolQuota+50



--
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: openssl-0.9.7-1, openssl-devel-0.9.7-1

2003-01-13 Thread Frank-Michael Moser
Just for the records:

This release seems to fix a problem with sshd which others and me have 
reported for the first time half a year ago. At least for me ;) it is gone.

For more detail see:

http://cygwin.com/ml/cygwin/2002-07/msg01745.html
http://cygwin.com/ml/cygwin/2002-11/msg01591.html

Frank-Michael.


--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Charles Wilson
Ralf Habacker wrote:

Hi all,

in december 2002 Charles Wilson and I had supplied an ld patch for the
auto-import from dll functionality.

For the kde-cygwin project we would like to use this new stuff in the near
future for the next qt3 release.


patience.  cgf is the maintainer for binutils on cygwin, but I'm sure he 
has his hands full getting ready for the imminent 1.3.19 cygwin kernel 
release.

BTW, Danny reported a problem with Fabrizio Gennari's "create an export 
section for .exe's" patch and relocatable linking.  Danny sent privately 
a modified version that corrects the problem, but like Fabrizio's 
original version we are awaiting an FSF release from Fabrizio. [Danny, 
you didn't copy binutils with that patch; was that an oversight?]

(I'd bet cgf is delaying a cygwin release of binutils for Fabrizio's 
release, hoping to get this functionality "in", too)

--Chuck



--
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: xinted rsync bluescreen

2003-01-13 Thread Randall R Schulz
Dan,

It seems most likely from this that the problem is in your file system. 
When's the last time you ran CHKDSK? I seem to recall other reports that 
were for some reason associated with accessing Cygwin's /etc. I cannot 
explain this other than perhaps as simple coincidence.

I'm not familiar with exactly how much memory protection is in place in 
Windows 98. I'm under the impression that it's more than on Windows 95, 
though it is not really a fully protected environment as exists on Windows 
NT, 2K and XP. That means that it's conceivable that a putative bug in 
Cygwin could trigger a BSOD under 95 or 98 that would knock down only a 
single process under one of the other OS versions.

However, judging from the crash dump you supplied, if Cygwin is at fault, 
it's rather indirect. When memory isn't protected, a symptom can appear far 
separated in time from the actual software defect that caused it.

Still, it is pretty unlikely that this is a Cygwin bug. If the problem were 
in Cygwin, then probably others would have it, too.

Check your disks, maybe update your drivers and try fully de-activating any 
virus checkers or firewalls--they seem to be the worst culprits. Although 
it seems unlikely for the symptoms you're reporting, video drivers seem to 
be a weak spot in Windows and they seem to get updated more than any other 
class of drivers. So much so that I check the Matrox site monthly for 
driver updates.

Good luck.

Randall Schulz


At 10:18 2003-01-13, Dan Holmsand wrote:
Sergey Okhapkin wrote:

net start init
chkconfig rsync on
chkconfig rsync off
bluescreen... Win2000. I have no rsync installed.
I set system environment variable CYGWIN to "nontsec", restarted init
service and the problem went away...


I've seen this occasionally as well, but it doesn't stop there. Any access 
of files under /etc seems to be able to occasionally trigger a blue screen 
while init is running. A particularly sure fire way of causing the BSOD 
seems to be running /sbin/telinit, but even viewing a file under /etc with 
vim can sometimes be enough.

The BSOD happens both using 1.3.18 and the latest snapshot, on W2K SP3, 
with no anti-virus software running. I've seen BSODs on quite different 
machines (both on a Compaq Proliant and on a couple of Compaq Armadas): 
the common denominator seems to be that init is running. Init is in turn 
running sshd, cron, xinetd, ipc-daemon and postgres.

However, it might not be init (directly) that causes the BSOD; the 
bugcheck analysis (below) seems to be at least somewhat similar to the 
ones posted in 
, 
 and 


My guess is that cygwin does something that sometimes triggers a windows 
(or, rather, ntfs) bug when files under /etc are used. This is of course 
just a wild guess.

Another observation: it seems (according to Process Explorer from 
sysinternals.com) that cygwin programs started from init keep a handle to 
the /etc directory open. That shouldn't be needed, should it? I have no 
idea if this has anything at all to do with the BSODs, of course...

Hopefully this information might be useful to someone more familiar with 
Cygwin and Windows internals than I am.

/dan


--
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: xinted rsync bluescreen

2003-01-13 Thread Pierre A. Humblet
On Mon, Jan 13, 2003 at 10:39:31AM -0800, Randall R Schulz wrote:
> Dan,
> 
> It seems most likely from this that the problem is in your file system. 
> When's the last time you ran CHKDSK? I seem to recall other reports that 
> were for some reason associated with accessing Cygwin's /etc. I cannot 
> explain this other than perhaps as simple coincidence.

Cygwin processes keep a handle to /etc, opened with 
FindFirstChangeNotification and then duplicated.

Pierre

--
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: dlopen() and libtool problems

2003-01-13 Thread Bhiksha Raj
Hi,

I found a post on the gnu archives:
http://mail.gnu.org/archive/html/texmacs-dev/2002-11/msg00121.html

which stated specifically that guile 1.6.0 is not compatible with
TeXmacs (which I want to install). The page says to use guile-1.4.1
The message was posted in Nov 2002, so I assumed the info was 
fairly recent.

I also actually tried guile 1.6.0 right out of the box. When I tried
to compile TeXmacs I got errors relating to guile (and the dreaded
blue screen of death followed. My machine seems to die when cygwin
encounters errors).

-Bhiksha

On Mon, Jan 13, 2003 at 07:02:43PM +0100, Jan Nieuwenhuizen wrote:
> Bhiksha Raj <[EMAIL PROTECTED]> writes:
> 
> > Im trying to compile guile-1.4.1 on my windows98+cygwin box.
> > Ive installed all the latest libtool and auto-make utils.
> 
> You are aware that guile-1.6 is included in Cygwin?  If you really
> need 1.4, you may want to look at the 1.6 source package for clues.
> 
> As an aside, GUILE cvs HEAD should compile without patching.
> 
> Greetings,
> Jan.
> 

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




Tab completion list takes enormously long time to generate from empty string

2003-01-13 Thread Magnus Holmgren
Greetings.

When I press tab in bash without having typed anything at all (which is somewhat 
abusive but it easily happens), bash works for 15 minutes, going through $PATH looking 
for executables (and in the end producing nothing) on a 2x450 MHz PIII. Is that normal?

My $PATH contains the usual /usr/local/bin:/usr/bin:/bin, the WINNT and System32 
directories, plus some relatively neglectable ones (18 directories in total), but the 
number of directories in the path and the time it takes to go through their contents 
is not the problem. Matching an executable in the last directory in $PATH only takes 
about 0.2 s. Instead, the huge size of the resulting list seems to be what causes the 
delay, especially when considering that no disk I/O at all is performed during 14 min 
59 sec of the 15 minutes...

I suspect that someone has chosen a sorting algorithm with time complexity O(N^2). Or 
O(2^N)...

Maybe I can find that out myself.

Cheers,
Magnus


--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Charles Wilson
Ralf Habacker wrote:

Hi all,

in december 2002 Charles Wilson and I had supplied an ld patch for the
auto-import from dll functionality.

For the kde-cygwin project we would like to use this new stuff in the near
future for the next qt3 release.


patience.  cgf is the maintainer for binutils on cygwin, but I'm sure he 
has his hands full getting ready for the imminent 1.3.19 cygwin kernel 
release.

BTW, Danny reported a problem with Fabrizio Gennari's "create an export 
section for .exe's" patch and relocatable linking.  Danny sent privately 
a modified version that corrects the problem, but like Fabrizio's 
original version we are awaiting an FSF release from Fabrizio. [Danny, 
you didn't copy binutils with that patch; was that an oversight?]

(I'd bet cgf is delaying a cygwin release of binutils for Fabrizio's 
release, hoping to get this functionality "in", too)

--Chuck



--
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: xinted rsync bluescreen

2003-01-13 Thread Randall R Schulz
Pierre,

Do you think the handle to /etc that each (is it each or all?) cygwin 
process retains is an ingredient in triggering this symptom? Why would that 
be and why would it happen to but a few of the many Cygwin users?

Randall Schulz


At 10:33 2003-01-13, Pierre A. Humblet wrote:
On Mon, Jan 13, 2003 at 10:39:31AM -0800, Randall R Schulz wrote:
> Dan,
>
> It seems most likely from this that the problem is in your file system.
> When's the last time you ran CHKDSK? I seem to recall other reports that
> were for some reason associated with accessing Cygwin's /etc. I cannot
> explain this other than perhaps as simple coincidence.

Cygwin processes keep a handle to /etc, opened with
FindFirstChangeNotification and then duplicated.

Pierre



--
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: xinted rsync bluescreen

2003-01-13 Thread Dan Holmsand
Randall,

Randall R Schulz wrote:

Dan,

It seems most likely from this that the problem is in your file system. 
When's the last time you ran CHKDSK? I seem to recall other reports that 
were for some reason associated with accessing Cygwin's /etc. I cannot 
explain this other than perhaps as simple coincidence.

Chkdsk was the first thing I tried (both on the Proliant and on the 
Armadas). No difference, I'm afraid.

I'm not familiar with exactly how much memory protection is in place in 
Windows 98. I'm under the impression that it's more than on Windows 95, 
though it is not really a fully protected environment as exists on 
Windows NT, 2K and XP. That means that it's conceivable that a putative 
bug in Cygwin could trigger a BSOD under 95 or 98 that would knock down 
only a single process under one of the other OS versions.

I'm running Win2k.


However, judging from the crash dump you supplied, if Cygwin is at 
fault, it's rather indirect. When memory isn't protected, a symptom can 
appear far separated in time from the actual software defect that caused 
it.

Still, it is pretty unlikely that this is a Cygwin bug. If the problem 
were in Cygwin, then probably others would have it, too.

I'm not saying it is a bug in Cygwin! It just seems quite likely to me 
that Cygwin is trigging a bug in Windows when sysvinit is running (since 
Cygwin always is involved when the bsod happens - and I haven't had any 
crashes otherwise). This is of course guesswork on my part.

Check your disks, maybe update your drivers and try fully de-activating 
any virus checkers or firewalls--they seem to be the worst culprits. 
Although it seems unlikely for the symptoms you're reporting, video 
drivers seem to be a weak spot in Windows and they seem to get updated 
more than any other class of drivers. So much so that I check the Matrox 
site monthly for driver updates.

I have never had any anti-virus software installed on any of the 
machines bsoding. I've updated all the machines involved (including 
drivers), even if it seems unlikely that the drivers are at fault (since 
the proliant and armada use completely different sets of drivers).

Good luck.


Thanks!

/dan



--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Charles Wilson
Ralf Habacker wrote:

Hi all,

in december 2002 Charles Wilson and I had supplied an ld patch for the
auto-import from dll functionality.

For the kde-cygwin project we would like to use this new stuff in the near
future for the next qt3 release.


patience.  cgf is the maintainer for binutils on cygwin, but I'm sure he 
has his hands full getting ready for the imminent 1.3.19 cygwin kernel 
release.

BTW, Danny reported a problem with Fabrizio Gennari's "create an export 
section for .exe's" patch and relocatable linking.  Danny sent privately 
a modified version that corrects the problem, but like Fabrizio's 
original version we are awaiting an FSF release from Fabrizio. [Danny, 
you didn't copy binutils with that patch; was that an oversight?]

(I'd bet cgf is delaying a cygwin release of binutils for Fabrizio's 
release, hoping to get this functionality "in", too)

--Chuck



--
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: xinted rsync bluescreen

2003-01-13 Thread Pierre A. Humblet
On Mon, Jan 13, 2003 at 10:59:16AM -0800, Randall R Schulz wrote:
> Pierre,
> 
> Do you think the handle to /etc that each (is it each or all?) cygwin 
> process retains is an ingredient in triggering this symptom? 

AFAICT the handle is opened when starting cygwin and is inherited by
child processes. It is used in a WaitForSingleObject call.
The purpose is to rescan /etc/{passwd,goup} after changes.
It's unlikely to be a coincidence, given the previous e-mails!

> Why would that 
> be and why would it happen to but a few of the many Cygwin users?

Good questions! Perhaps init has more subprocesses (wild guess).

Pierre

--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Charles Wilson
Ralf Habacker wrote:

Hi all,

in december 2002 Charles Wilson and I had supplied an ld patch for the
auto-import from dll functionality.

For the kde-cygwin project we would like to use this new stuff in the near
future for the next qt3 release.


patience.  cgf is the maintainer for binutils on cygwin, but I'm sure he 
has his hands full getting ready for the imminent 1.3.19 cygwin kernel 
release.

BTW, Danny reported a problem with Fabrizio Gennari's "create an export 
section for .exe's" patch and relocatable linking.  Danny sent privately 
a modified version that corrects the problem, but like Fabrizio's 
original version we are awaiting an FSF release from Fabrizio. [Danny, 
you didn't copy binutils with that patch; was that an oversight?]

(I'd bet cgf is delaying a cygwin release of binutils for Fabrizio's 
release, hoping to get this functionality "in", too)

--Chuck



--
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: xinted rsync bluescreen

2003-01-13 Thread Dan Holmsand
Pierre,

Pierre A. Humblet wrote:

AFAICT the handle is opened when starting cygwin and is inherited by
child processes. It is used in a WaitForSingleObject call.
The purpose is to rescan /etc/{passwd,goup} after changes.
It's unlikely to be a coincidence, given the previous e-mails!


That's extremely interresting.


Good questions! Perhaps init has more subprocesses (wild guess).


Even wilder guess: init starts a lot of processes whose parent process 
terminate while their children keep running. Perhaps the combination of 
this, the inherited handle and, possibly, user context switching becomes 
to much for poor old windows?

/dan



--
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: /dev/tty read is broken!

2003-01-13 Thread Steve O
John E. A. Wrote:
> However if I run the program full speed, or step through the fgetc() on 
> cygwin without previously typing a character into minicom, then the fgetc()
> call hangs.

I'm not familiar with the winsup/cygwin/fhandler_serial code, but if I was
going to debug this (which sounds like fun, but I don't have the setup), 
I'd run:
  strace test > test.dump
and see what's happening right before the ^C, then I'd look at the
cygwin code mentioned above. 

-steve

--
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: xinted rsync bluescreen

2003-01-13 Thread Randall R Schulz
Dan,

Sorry. I'm obviously confused. (Did a Windows 98 user report a similar 
problem recently?)

But surely in a fully protected OS such as 2K, a user-level DLL such as 
Cygwin cannot either directly or indirectly cause a blue-screen. Well, I 
suppose "cause" is open to interpretation, especially in conjunction with 
"indirectly," but without a doubt, Cygwin cannot be _blamed_ for a BSOD, right?


Anyway, here's a possible clue: The "Windows 2000 Pro Resource Kit" (book), 
on page 1539-1540, mentions both "buggy device driver" and "[buggy] system 
service" as potential culprits in an IRQL_NOT_LESS_OR_EQUAL BSOD. I'm not 
sure how a service could do this, but perhaps it suggests a way to proceed 
in diagnosing the problem.

The virtual address of the code generating the fault, 8045505d, is, 
according to "Inside Microsoft Windows 2000" 3rd. ed., in the range of 
addresses reserved to "Kernel and executive; HAL and Boot drivers."

Frankly, I'm out of my depth already.

Randall Schulz


At 10:59 2003-01-13, Dan Holmsand wrote:
Randall,

Randall R Schulz wrote:

Dan,
It seems most likely from this that the problem is in your file system. 
When's the last time you ran CHKDSK? I seem to recall other reports that 
were for some reason associated with accessing Cygwin's /etc. I cannot 
explain this other than perhaps as simple coincidence.

Chkdsk was the first thing I tried (both on the Proliant and on the 
Armadas). No difference, I'm afraid.

I'm not familiar with exactly how much memory protection is in place in 
Windows 98. I'm under the impression that it's more than on Windows 95, 
though it is not really a fully protected environment as exists on 
Windows NT, 2K and XP. That means that it's conceivable that a putative 
bug in Cygwin could trigger a BSOD under 95 or 98 that would knock down 
only a single process under one of the other OS versions.

I'm running Win2k.


However, judging from the crash dump you supplied, if Cygwin is at fault, 
it's rather indirect. When memory isn't protected, a symptom can appear 
far separated in time from the actual software defect that caused it.
Still, it is pretty unlikely that this is a Cygwin bug. If the problem 
were in Cygwin, then probably others would have it, too.

I'm not saying it is a bug in Cygwin! It just seems quite likely to me 
that Cygwin is trigging a bug in Windows when sysvinit is running (since 
Cygwin always is involved when the bsod happens - and I haven't had any 
crashes otherwise). This is of course guesswork on my part.

Check your disks, maybe update your drivers and try fully de-activating 
any virus checkers or firewalls--they seem to be the worst culprits. 
Although it seems unlikely for the symptoms you're reporting, video 
drivers seem to be a weak spot in Windows and they seem to get updated 
more than any other class of drivers. So much so that I check the Matrox 
site monthly for driver updates.

I have never had any anti-virus software installed on any of the machines 
bsoding. I've updated all the machines involved (including drivers), even 
if it seems unlikely that the drivers are at fault (since the proliant and 
armada use completely different sets of drivers).

Good luck.


Thanks!

/dan



--
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: javac on cygwin

2003-01-13 Thread Shankar Unni
Christopher Faylor wrote:


I remember speculating at one point about creating wrappers to the win32
functions like CreateFile, MoveFile, etc.  which would understand cygwin
paths.  You could theoretically modify an .exe to load cygwin1.dll and
use the wrapper functions.  Or you could use some of Windows hook
facilities to do that.


Hmm. Would that even work?

I remember trying, way back when, to provide a checking malloc library 
on Windows, and then discovering that there was *no* way of intercepting 
malloc() calls *inside LIBC itself*.  In the Windows PE world (unlike 
the ELF world), a call to a routine that lives inside the same DLL is 
automatically bound to the local copy without any way to hijack the call.

Thus there's no way to play games with LD_LIBRARY_PATH (or PATH, rather) 
to load a malloc that'll hijack all calls successfully. And there's 
definitely nothing like the LD_PRELOAD mechanism to wrap existing 
pre-linked programs to inject support libraries into the lib list.

So any CreateFile calls inside the windows libraries would always go to 
the built-in CreateFile.



--
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: xinted rsync bluescreen

2003-01-13 Thread Bruce Dobrin
Don't know if this will help,  but I went through 3 machines running init
and rsync (nt, 2000 and XP)  and all of them , at one time or another, I
could trigger the blue screen by something as innocuous as :  ( with rsync
on) Stop init, rm /etc/rc.d/rsync, exit shell,  BSOD.  I think it odd that I
had this issue even when init was no longer running,  and not until I exited
the shell.  It didn't always happen ( I think it may be related to if rsync
had been called at anytime...) but it was nasty enough that in some cases I
couldn't even touch the etc/rc.d/rsync file with vim without eventually
crashing.  I'm over my head on this one...

- Original Message -
From: "Pierre A. Humblet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 10:58 AM
Subject: Re: xinted rsync bluescreen


> On Mon, Jan 13, 2003 at 10:59:16AM -0800, Randall R Schulz wrote:
> > Pierre,
> >
> > Do you think the handle to /etc that each (is it each or all?) cygwin
> > process retains is an ingredient in triggering this symptom?
>
> AFAICT the handle is opened when starting cygwin and is inherited by
> child processes. It is used in a WaitForSingleObject call.
> The purpose is to rescan /etc/{passwd,goup} after changes.
> It's unlikely to be a coincidence, given the previous e-mails!
>
> > Why would that
> > be and why would it happen to but a few of the many Cygwin users?
>
> Good questions! Perhaps init has more subprocesses (wild guess).
>
> Pierre
>
> --
> 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: xinted rsync bluescreen

2003-01-13 Thread Bruce Dobrin
Oh,  and all of the 3 test boxes were completely different hardware (nt on a
Boxx tech machine, 2k on an IBM workstation,  and XP on a dell laptop).
- Original Message -
From: "Bruce Dobrin" <[EMAIL PROTECTED]>
To: "Pierre A. Humblet" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 11:28 AM
Subject: Re: xinted rsync bluescreen


> Don't know if this will help,  but I went through 3 machines running init
> and rsync (nt, 2000 and XP)  and all of them , at one time or another, I
> could trigger the blue screen by something as innocuous as :  ( with rsync
> on) Stop init, rm /etc/rc.d/rsync, exit shell,  BSOD.  I think it odd that
I
> had this issue even when init was no longer running,  and not until I
exited
> the shell.  It didn't always happen ( I think it may be related to if
rsync
> had been called at anytime...) but it was nasty enough that in some cases
I
> couldn't even touch the etc/rc.d/rsync file with vim without eventually
> crashing.  I'm over my head on this one...
>
> - Original Message -
> From: "Pierre A. Humblet" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 13, 2003 10:58 AM
> Subject: Re: xinted rsync bluescreen
>
>
> > On Mon, Jan 13, 2003 at 10:59:16AM -0800, Randall R Schulz wrote:
> > > Pierre,
> > >
> > > Do you think the handle to /etc that each (is it each or all?) cygwin
> > > process retains is an ingredient in triggering this symptom?
> >
> > AFAICT the handle is opened when starting cygwin and is inherited by
> > child processes. It is used in a WaitForSingleObject call.
> > The purpose is to rescan /etc/{passwd,goup} after changes.
> > It's unlikely to be a coincidence, given the previous e-mails!
> >
> > > Why would that
> > > be and why would it happen to but a few of the many Cygwin users?
> >
> > Good questions! Perhaps init has more subprocesses (wild guess).
> >
> > Pierre
> >
> > --
> > 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/
>


--
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: javac on cygwin

2003-01-13 Thread Christopher Faylor
On Mon, Jan 13, 2003 at 11:26:28AM -0800, Shankar Unni wrote:
>Christopher Faylor wrote:
>>I remember speculating at one point about creating wrappers to the
>>win32 functions like CreateFile, MoveFile, etc.  which would understand
>>cygwin paths.  You could theoretically modify an .exe to load
>>cygwin1.dll and use the wrapper functions.  Or you could use some of
>>Windows hook facilities to do that.
>
>Hmm.  Would that even work?

Yes.

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/




Please consider!

2003-01-13 Thread SR
REQUEST

I am MR REUBEN SAVIMBI one of the favorite sons of Mr.JONAS SAVIMBI (The Rebel leader) 
and also the head of the Unita Forces of Angola who was killed in the Struggle between 
Angolan arm forces and his unita rebels On Friday the 22nd of February 2002.

 I am from Angola but currently I am currently on exile due to the War in my country 
between the Rebel Group (Unita rebels) Led by my father Jonas Savimbi and the Angolan 
Government.
 I want a trust worthy, honest and God fearing individual to go into business 
Partnership with and that is the reason why I have decided to contact you. The fund 
for investment is US$45.5M (Forty Five Million Five Hundred Thousand United States 
Dollars) and Diamond worth over Twelve Million Dollars. This fund was realized from 
the sales of Diamonds during the crisis between the Unita Rebels (headed by my father 
Jonas Savimbi) and the then President Jose Eduardo dos Santos Of Angola.

 I fled from my country with this fund, which my father suppose to use procure more 
arms for the Unita Rebels. This is because I felt that the battle waged by the Unita 
Forces was more of rebellion and it was baseless. I had this fund sealed in a 
diplomatic box and deposited in a private Security Company in Europe.  I will need 
assistance from you to use your facilities to effect the removal of this fund and 
subsequently transferred to your nominated account in your country. This business has 
to be done in a more confidential manner.

For participating in the business with me, I have two options for you.  You can choose 
to have certain percentage of the funds or you can go into partnership with me for 
proper profitable investment of the money in your country.

Whichever the option you want, feel free to notify me.  The money is presently lodged 
with a security firm and I will give you further details immediately I hear from you. 
Please contact me immediately for the next line of action then I will introduce you to 
the security company where the funds are been deposited.

 I would like you to include your personal phone and fax numbers for more confidential 
Communication with the Security Company. I will like you to understand that I have no 
access to telephone for now so you are advice to contact me through my email address.

Regards
REUBEN J.SAVIMBI.
(For the family)



--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Charles Wilson
[sorry for the duplicates; mailserver was fubared.  It's fixed now.]

--Chuck



--
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 vsFTPd porting issues

2003-01-13 Thread Jason Tishler
Corinna,

On Mon, Jan 13, 2003 at 03:55:17PM +0100, Corinna Vinschen wrote:
> On Mon, Jan 13, 2003 at 09:36:24AM -0500, Jason Tishler wrote:
> >   160 37333219 [main] vsftpd 2232 fixup_mmaps_after_fork: ReadProcessMemory failed 
>for MAP_PRIVATE address 0xB4, Win32 error 299  
> > 
> > I will try to dig deeper to determine why ReadProcessMemory() is
> > failing with ERROR_PARTIAL_COPY (i.e., 299), but any help or
> > pointers will be greatly appreciated.
> 
> If you can figure out why that happens, I'd really appreciate a simple
> testcase.  Please compare the above with the strace output generated
> by mmap(), probably you will find a discrepancy like the address in
> the above strace output is not inside of a mapped block.

I haven't tried the above yet.  See below...

> It's also a big difference if the mmap is mapped anonymously or to a
> file since the mmap() code behaves pretty different.

vsFTPd defaults to anonymous mappings under Cygwin.  However, I forced
it to try file based mappings on Friday as a workaround, but this failed
in the same way.  After reading the vsFTPd *and* Cygwin code some more,
it is clear why the behavior is the same.  vsFTPd uses /dev/zero if
anonymous mappings are not available and Cygwin treats mappings to
/dev/zero the same as anonymous mappings.

> Another way would be to remove MAP_PRIVATE from the mmap() call and
> try again.  MAP_PRIVATE is somewhat problematic on Windows hosts,
> unfortunately.

Replacing MAP_PRIVATE with MAP_SHARED worked around the mmap()/fork()
problem.  Is this a reasonable accommodation?  Or, should I try to get
MAP_PRIVATE to work?

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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




SSH start in .bat ?

2003-01-13 Thread a12
Hello gurus,

For the time being I start SSH manually:
open DOS window
C:\cygwin\cygwin.bat
ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp


I have tried to include the ssh command above in cygwin.bat but
obviously bash does not read it.
How do I make bash to read the ssh command in cygwin.bat ?



--
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: less-378-1 : ANSI escape sequences in perldoc output

2003-01-13 Thread [EMAIL PROTECTED]
Well, as it turns out, the email archives aren't your friend.  They 
are your enemy!  Chris Faylor was kind enough to poin this out to 
me:



But seriously, I'm guessing it was fat fingers on my part, unless someone's
written a new shuffle routine for the email archives.  But then again, maybe
they have.  Using the cygwin.com search of the email archives just now to 
verify the pointer has shown *something* is amiss at least.  Searching for 
'perldoc' in January returns:

Christopher Faylor - Re: less-378-1 : ANSI escape sequences in perldoc
output 
 Re: less-378-1 : ANSI escape sequences in perldoc output * From:
Christopher Faylor  * To: cygwin at cygwin dot
com * Date: Fri, 10 Jan 2003 11:41:11 -0500 * Subject: Re: less-378-1 :
ANSI escape sequences in perldoc output * References:
<123820-220031510155251826 ...
http://sources.redhat.com/ml/cygwin/2003-01/msg00511.html 2003-01-10, 4940
bytes

However, following the link to msg00511.html doesn't correlate:

Re: Header File Package

* From: DEEPA SIVASANKARANE 
* To: cygwin at cygwin dot com
* Date: Fri, 10 Jan 2003 10:07:36 -0500
* Subject: Re: Header File Package

Somebody's having fun here (at our expense).  I guess that's why I always 
shied away from searching the email archives and posting the link rather 
than suggesting that those enquiring should just perform a search
themselves.  
At least if I had done that this time, they would've been the ones burned 
rather than both of us!  Next time I'll know better. ;-)

Well, before I revert to my former kurmudgening ways of saying "search the
archives!" ;-), I'll make one more effort to point to the proper message.



If this one doesn't move before you get there, this should help.  If it 
seems unrelated to your plight, "search the archives!" ;-)  Just use google
or gmane instead of cygwin.com! ;-)

Larry


Original Message:
-
From: Robert Praetorius [EMAIL PROTECTED]
Date: Mon, 13 Jan 2003 14:46:55 -0500
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: less-378-1 : ANSI escape sequences in perldoc output


short answer: less -R

> I also do not understand what a discussion about slashes and backslashes
> in POSIX and Win32 paths has to do with ANSI escape sequences in
> formatted visual output. That is where you sent me with the URL below.
> Since the above search did not turn up any part the discussion below, I
> severely doubt that it will help with my little problem.
 
> Anybody else on this list who might have a clue ? 

 The first time I followed Mr. Hall's link, it took me to a message 
saying one should try less -R to get escape sequences to work.  This 
morning it points to the message you refer to.  I've searched the archives  
and haven't been able to find the message I saw before.  I CAN find Mr. 
Hall's message, which you quoted:

http://www.cygwin.com/ml/cygwin/2003-01/msg00521.html

and your quote seems to be accurate.  I'm mystified.



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: ping on cygwin?

2003-01-13 Thread [EMAIL PROTECTED]
Sounds like you practiced due diligence.  So my 'standard' speech
wasn't necessary.  I do recommend that folks do mention the
steps they've taken to research the problem and solution themselves
when they post.  It helps us here on the list to not recommend an
avenue which has already been investigated.

If you plan to contribute a package, the best list to be on for that
is [EMAIL PROTECTED]  You have to subscribe to this list to 
post there.  But this is where package maintainers discuss issues 
with their packages.  I recommend joining this list if you plan to 
maintain a Cygwin package.  You can post questions you may have about
your imminent package there.

Thanks for your efforts so far!

Larry

Original Message:
-
From: Tino Lange [EMAIL PROTECTED]
Date: Mon, 13 Jan 2003 18:36:45 +0100
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: ping on cygwin?


[EMAIL PROTECTED] wrote:

Hi again!

> Again I have to direct you to the FAQ:
> 
> Why isn't package  available in Cygwin? (Or, why is your package so 
> out of date?) 

Thanks! I read it once again and hence I like to (try to) contribute - 
see below.

> it's very worthwhile to check the FAQ, email archives and other
> documentation for this kind of information before posting to the list. 

I googled and searched for ping.exe since about 4 hours today.
I found some scripts in python and perl that might emulate a ping, found 
someone proposing to wrap MS-ping and emulate the return values by 
regexp the output and so on. Also I looked through various cygwin 
systems and package lists to find the appropiate cygwin package.
I also searched UnxUtils and the GnuWin32 project and the MS site incl. 
knowledgebase. All without success.

I learned a lot about raw icmp sockets and why only root is allowed to 
open them - making ping a setuid program.

 > It's generally a time-saver for everyone as well as a good habit
 > and good information source. :-)

Larry, really I think I was quite prepared before asking the list. I 
really didn't want to waste some of your time or to offend you by 'just 
asking' - maybe I should have written more clearly that I already tried 
to inform myself a a lot prior to asking.

I think 'ping' is a VERY essential tool and part of even every 
mini-linux/unix, I didn't just ask for some package . 'ping' is one 
of THE basic programs. It's even so essential that even MS makes a 
'ping.exe' :-) So I thought and think that Cygwin must also provide a 
ping - and if not, there must be a good reason.

That's why I finally asked the group - I thought that maybe I could also 
save some precious time not searching further for hours or try to 
compile sth. that isn't possible with cygwin (yet).

 > The answer to your last question might even already be in the email
 > archives (and maybe not but at least then you'll be pretty sure you're
 > not covering ground the list has already discussed).

I googled a lot and didn't find something. The search engine on the 
cygwin site gives internal server errors every second try, but the first 
  3 pages of results also didn't answer.

I also tried to compile by myself, but Lapo isn't right:
 > AFAIK the "usual" ping.c compiles and works well on CygWin.
Unfortunately not. There are lot's of include (and mybe more) problems 
that have to be solved

OK!
I'm willing to contribute and try to solve that. If noone here has some 
other idea I think I found some missing program in the great 
cygwin-world. I'll try to compile ping from 
ftp://ftp.inr.ac.ru/ip-routing/iputils-current.tar.gz and I'll tel you 
about my success or failure later.

(Just to make clear and not to annoy: Is it allowed according to the 
mailing list regulations to ask the group for possible help while the 
development of such new packages? Or isn't that list the right place?)

Thanks for your help again
and best regards

Tino


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




ncftp opening in text mode?

2003-01-13 Thread Lapo Luchini
I doubt 'ncftp' can actually be reading the files in textmode, or else 
every binary transfer would be broken, but does anyone find another 
explanation?
(notice that the FTP server is Windows based, but it wuold be crazy to 
convert received files... moreover index.html already has 
windows-line-endings also in local, and of course the local drive is 
mounted binmode)

ncftp /www.lapo.it > put index.html

The remote file "index.html" already exists.
   Local:  6942 bytes, dated Mon Jan 13 13:26:46 2003.
   Remote: 7070 bytes, dated Mon Jan 13 22:09:59 2003.

   [O]verwrite?  [A]ppend to?  [S]kip?  [N]ew Name?
   [O!]verwrite all?  [S!]kip all?  [C]ancel  > s
ncftp /www.lapo.it > binary
ncftp /www.lapo.it > put index.html

The remote file "index.html" already exists.
   Local:  6942 bytes, dated Mon Jan 13 13:26:46 2003.
   Remote: 7070 bytes, dated Mon Jan 13 22:09:59 2003.

   [O]verwrite?  [A]ppend to?  [S]kip?  [N]ew Name?
   [O!]verwrite all?  [S!]kip all?  [C]ancel  > o
index.html:  6.78 kB   13.06 
kB/s 
ncftp /www.lapo.it > put index.html

The remote file "index.html" already exists.
   Local:  6942 bytes, dated Mon Jan 13 13:26:46 2003.
   Remote: 7070 bytes, dated Mon Jan 13 22:10:11 2003.

   [O]verwrite?  [A]ppend to?  [S]kip?  [N]ew Name?
   [O!]verwrite all?  [S!]kip all?  [C]ancel  > o
index.html:  6.78 kB   17.56 
kB/s 
ncftp /www.lapo.it >

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
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: xinted rsync bluescreen

2003-01-13 Thread Dan Holmsand
Pierre A. Humblet wrote:

AFAICT the handle is opened when starting cygwin and is inherited by
child processes. It is used in a WaitForSingleObject call.
The purpose is to rescan /etc/{passwd,goup} after changes.
It's unlikely to be a coincidence, given the previous e-mails!


That seems to be it!  [touching wood]

I added a "return 0" at the top of init_cygheap::etc_changed() (so that 
the whole FindFirstChangeNotification/DuplicateHandle business never 
happens). So far, no crashes - despite my best efforts running chkconfig 
rsync on/off, /sbin/telinit 3/1.

Thanks for the hint!

/dan



--
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: less-378-1 : ANSI escape sequences in perldoc output

2003-01-13 Thread Robert Praetorius
> If this one doesn't move before you get there, this should help.  If it
> seems unrelated to your plight, "search the archives!" ;-)  Just use
> google or gmane instead of cygwin.com! ;-)

 Catch 22 here.  Assuming the relevant search terms are

perldoc less

, neither Google nor Gmane

http://www.google.com/search?q=site%3Acygwin.com+perldoc+less
http://search.gmane.org/search.php?query=perldoc+less&group=gmane.os.cygwin&sort=relevance

have yet indexed the relevant sequence of messages (

http://sources.redhat.com/ml/cygwin/2003-01/msg00191.html
http://sources.redhat.com/ml/cygwin/2003-01/msg00197.html
http://sources.redhat.com/ml/cygwin/2003-01/msg00213.html

) and (as you noted) Cygwin.com's htDig index is off by two 
(http://sources.redhat.com/suggestions.html seems to imply that 
[EMAIL PROTECTED] is the correct place to report that, and I 
will).

http://cygwin.com/cgi-bin/htsearch?method=and&format=builtin-long&sort=time&config=htdig&restrict=%2Fml%2Fcygwin%2F&exclude=&words=perldoc+less

Greg Matheson - Re: perl error messages with cygwin 1.3.18-1*
... .earthlink.net> On Sat, 04 Jan 2003, Jeremy Hetzler wrote: > At 05:03 AM 
1/2/2003 -0600, Tommy Butler wrote: > >Further, perldoc.exe isn't rendering 
pages correctly since 5.8 either. For > >example, "$ perldoc 
UNIVERSAL" produces the following ...
http://sources.redhat.com/ml/cygwin/2003-01/msg00195.html 2003-01-05, 5570 bytes 

Jeremy Hetzler - Re: perl error messages with cygwin 1.3.18-1*
... ;20030102163808.A3730@ms><20030102163808.A3730@ms> At 05:03 AM 
1/2/2003 -0600, Tommy Butler wrote: Greg Matheson wrote: Further, perldoc.exe isn't 
rendering pages correctly since 5.8 either. For example, "$ perldoc 
UNIVERSAL" produces the following when run from ...
http://sources.redhat.com/ml/cygwin/2003-01/msg00189.html 2003-01-05, 5661 bytes 


--
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: SSH start in .bat ?

2003-01-13 Thread Igor Pechtchanski
On Mon, 13 Jan 2003, a12 wrote:

> Hello gurus,
>
> For the time being I start SSH manually:
> open DOS window
> C:\cygwin\cygwin.bat
> ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> 
>
> I have tried to include the ssh command above in cygwin.bat but
> obviously bash does not read it.
> How do I make bash to read the ssh command in cygwin.bat ?

'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
Try "man bash" for details.
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: [ANNOUNCEMENT] Updated: openssl-0.9.7-1, openssl-devel-0.9.7-1

2003-01-13 Thread Tino Lange
Hi all!

Frank-Michael Moser wrote:

> Just for the records:
> This release seems to fix a problem with sshd which others and me have
> reported for the first time half a year ago. At least for me ;) it is gone.

Juhu! Great! Fantastic!

My problem (reported 16.11.2002) - no one could help me with this so far
-
SSHD: error initializing windows sockets if I use ".ssh/authorized_keys"
has also silently vanished with this upgrade!!!

Cheers,

Tino

--
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 DLL with libtool on cygwin

2003-01-13 Thread Tom Epperly
I work on a package called Babel, and someone else ported it to cygwin a 
while ago. I am in the process of trying to make a new release of Babel. 
When I tried out the new release on cygwin, I a link error I don't know 
what to do about. I tried searching for relevant information using 
google, but I can't find anything. The error message appears below.

If you can offer any advice, I would appreciate whatever you can offer.

Thanks,

Tom

/bin/bash ../libtool --mode=link gcc  -g -O2   -o libsidl.la -rpath 
/tmp/cygwin/
=inst/lib -no-undefined -release 0.8.0 SIDLfortran.lo SIDLfortarray.lo 
SIDL_Java
.lo  SIDL_String.lo SIDL_bool_IOR.lo SIDL_char_IOR.lo SIDL_int_IOR.lo 
SIDL_long_
IOR.lo SIDL_float_IOR.lo SIDL_double_IOR.lo SIDL_fcomplex_IOR.lo 
SIDL_dcomplex_I
OR.lo SIDL_opaque_IOR.lo SIDL_string_IOR.lo SIDL_interface_IOR.lo 
ltdl.lo SIDL_B
aseClass_IOR.lo SIDL_BaseClass_Skel.lo SIDL_BaseClass_Stub.lo 
SIDL_BaseException
_IOR.lo SIDL_BaseException_Skel.lo SIDL_BaseException_Stub.lo 
SIDL_BaseInterface
_IOR.lo SIDL_BaseInterface_Stub.lo SIDL_DLL_IOR.lo SIDL_DLL_Skel.lo 
SIDL_DLL_Stu
b.lo SIDL_Loader_IOR.lo SIDL_Loader_Skel.lo SIDL_Loader_Stub.lo 
SIDL_ClassInfo_I
OR.lo SIDL_ClassInfo_Stub.lo SIDL_ClassInfoI_IOR.lo 
SIDL_ClassInfoI_Stub.lo SIDL
_ClassInfoI_Skel.lo SIDL_BaseClass_Impl.lo SIDL_BaseException_Impl.lo 
SIDL_DLL_I
mpl.lo SIDL_Loader_Impl.lo SIDL_ClassInfoI_Impl.lo
rm -fr .libs/libsidl.la .libs/libsidl.* .libs/libsidl-0.8.0.*
generating symbol list for `libsidl.la'
dlltool --export-all --exclude-symbols 
DllMain@12,_cygwin_dll_entry@12,_cygwin_
noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 
--output-def .libs/
cygsidl-0-8-0.dll-def  SIDLfortran.lo SIDLfortarray.lo SIDL_Java.lo 
SIDL_String.
lo SIDL_bool_IOR.lo SIDL_char_IOR.lo SIDL_int_IOR.lo SIDL_long_IOR.lo 
SIDL_float
_IOR.lo SIDL_double_IOR.lo SIDL_fcomplex_IOR.lo SIDL_dcomplex_IOR.lo 
SIDL_opaque
_IOR.lo SIDL_string_IOR.lo SIDL_interface_IOR.lo ltdl.lo 
SIDL_BaseClass_IOR.lo S
IDL_BaseClass_Skel.lo SIDL_BaseClass_Stub.lo SIDL_BaseException_IOR.lo 
SIDL_Base
Exception_Skel.lo SIDL_BaseException_Stub.lo SIDL_BaseInterface_IOR.lo 
SIDL_Base
Interface_Stub.lo SIDL_DLL_IOR.lo SIDL_DLL_Skel.lo SIDL_DLL_Stub.lo 
SIDL_Loader_
IOR.lo SIDL_Loader_Skel.lo SIDL_Loader_Stub.lo SIDL_ClassInfo_IOR.lo 
SIDL_ClassI
nfo_Stub.lo SIDL_ClassInfoI_IOR.lo SIDL_ClassInfoI_Stub.lo 
SIDL_ClassInfoI_Skel.
lo SIDL_BaseClass_Impl.lo SIDL_BaseException_Impl.lo SIDL_DLL_Impl.lo 
SIDL_Loade
r_Impl.lo SIDL_ClassInfoI_Impl.lo
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < 
.libs/cygsidl-0-8-0.
dll-def > .libs/libsidl.exp
if test "x`sed 1q .libs/libsidl.exp`" = xEXPORTS; then cp 
.libs/libsidl.exp .lib
s/cygsidl-0-8-0.dll-def; else echo EXPORTS > 
.libs/cygsidl-0-8-0.dll-def; _lt_hi
nt=1; cat .libs/libsidl.exp | while read symbol; do set dummy $symbol; 
case $# i
n 2) echo " $2 @ $_lt_hint ; " >> .libs/cygsidl-0-8-0.dll-def;; 4) echo 
" $2 $3
$4 ; " >> .libs/cygsidl-0-8-0.dll-def; _lt_hint=`expr $_lt_hint - 1`;; 
*) echo "
$2 @ $_lt_hint $3 ; " >> .libs/cygsidl-0-8-0.dll-def;; esac; 
_lt_hint=`expr 1 +
$_lt_hint`; done; fi
gcc -Wl,--base-file,.libs/cygsidl-0-8-0.dll-base 
-Wl,-e,__cygwin_dll_entry@12 -
o .libs/cygsidl-0-8-0.dll  SIDLfortran.lo SIDLfortarray.lo SIDL_Java.lo 
SIDL_Str
ing.lo SIDL_bool_IOR.lo SIDL_char_IOR.lo SIDL_int_IOR.lo 
SIDL_long_IOR.lo SIDL_f
loat_IOR.lo SIDL_double_IOR.lo SIDL_fcomplex_IOR.lo SIDL_dcomplex_IOR.lo 
SIDL_op
aque_IOR.lo SIDL_string_IOR.lo SIDL_interface_IOR.lo ltdl.lo 
SIDL_BaseClass_IOR.
lo SIDL_BaseClass_Skel.lo SIDL_BaseClass_Stub.lo 
SIDL_BaseException_IOR.lo SIDL_
BaseException_Skel.lo SIDL_BaseException_Stub.lo 
SIDL_BaseInterface_IOR.lo SIDL_
BaseInterface_Stub.lo SIDL_DLL_IOR.lo SIDL_DLL_Skel.lo SIDL_DLL_Stub.lo 
SIDL_Loa
der_IOR.lo SIDL_Loader_Skel.lo SIDL_Loader_Stub.lo SIDL_ClassInfo_IOR.lo 
SIDL_Cl
assInfo_Stub.lo SIDL_ClassInfoI_IOR.lo SIDL_ClassInfoI_Stub.lo 
SIDL_ClassInfoI_S
kel.lo SIDL_BaseClass_Impl.lo SIDL_BaseException_Impl.lo 
SIDL_DLL_Impl.lo SIDL_L
oader_Impl.lo SIDL_ClassInfoI_Impl.lo
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0x7c)
: undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make[2]: *** [libsidl.la] Error 1
make[2]: Leaving directory `/tmp/cygwin/runtime/sidl'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/cygwin/runtime'
make: *** [check-recursive] Error 1


--
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 DLL with libtool on cygwin

2003-01-13 Thread Max Bowsher
Tom Epperly wrote:
> I work on a package called Babel, and someone else ported it to
> cygwin a
> while ago. I am in the process of trying to make a new release of
> Babel.
> When I tried out the new release on cygwin, I a link error I don't
> know
> what to do about. I tried searching for relevant information using
> google, but I can't find anything. The error message appears below.
>
> If you can offer any advice, I would appreciate whatever you can
> offer.

Try re-libtoolize-ing with current Cygwin libtool. NB: Cygwin has 2 versions
of the autotools - one for packages using ac-2.13 & relevant am & libtool,
and another for ac-2.5x and current am & libtool. For devel versions of the
autotools to be invoked, there must *not* be an AC_PREREQ() less than 2.50
in configure.in.

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/




Re: SSH start in .bat ?

2003-01-13 Thread a12
Igor,

Thank you for your quick reply.

It works perfectly.

Now I would like to incorporate a start of vncviewer.exe after the bash
command into the same .bat file. I have tried:

C:
chdir C:\Program Files\RealVNC
vncviewer.exe
chdir C:\cygwin\bin
bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"

but this start vncviewer, and waits until I enter hostid. bash
is never started.

Any hints here ?

Pardon me if this question does not belong to this mailing
list.


Igor Pechtchanski wrote:

> On Mon, 13 Jan 2003, a12 wrote:
>
> > Hello gurus,
> >
> > For the time being I start SSH manually:
> > open DOS window
> > C:\cygwin\cygwin.bat
> > ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> > 
> >
> > I have tried to include the ssh command above in cygwin.bat but
> > obviously bash does not read it.
> > How do I make bash to read the ssh command in cygwin.bat ?
>
> 'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
> Try "man bash" for details.
> 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: SSH start in .bat ?

2003-01-13 Thread Igor Pechtchanski
This really isn't a correct mailing list for this question, but, since
it's been asked here before, and will, undoubtedly, be asked here again, I
will pretend it's about "the interaction of windows programs and Cygwin
programs" and answer it:

At a command (DOS) prompt, type "help start".

As an alternative, consider starting windows programs from bash and
backgrounding them (e.g., "vncviewer.exe &").
Igor

On Mon, 13 Jan 2003, a12 wrote:

> Igor,
> Thank you for your quick reply.
>
> It works perfectly.
>
> Now I would like to incorporate a start of vncviewer.exe after the bash
> command into the same .bat file. I have tried:
>
> C:
> chdir C:\Program Files\RealVNC
> vncviewer.exe
> chdir C:\cygwin\bin
> bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"
>
> but this start vncviewer, and waits until I enter hostid. bash
> is never started.
>
> Any hints here ?
>
> Pardon me if this question does not belong to this mailing
> list.
>
> Igor Pechtchanski wrote:
>
> > On Mon, 13 Jan 2003, a12 wrote:
> >
> > > Hello gurus,
> > >
> > > For the time being I start SSH manually:
> > > open DOS window
> > > C:\cygwin\cygwin.bat
> > > ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> > > 
> > >
> > > I have tried to include the ssh command above in cygwin.bat but
> > > obviously bash does not read it.
> > > How do I make bash to read the ssh command in cygwin.bat ?
> >
> > 'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
> > Try "man bash" for details.
> > 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: Cygwin vsFTPd porting issues

2003-01-13 Thread Corinna Vinschen
Hi Jason,

On Mon, Jan 13, 2003 at 03:21:11PM -0500, Jason Tishler wrote:
> Replacing MAP_PRIVATE with MAP_SHARED worked around the mmap()/fork()
> problem.  Is this a reasonable accommodation?  Or, should I try to get
> MAP_PRIVATE to work?

It's not the way to go, unfortunately.

I guess it's actually a fault in Cygwin's mmap() implementation but I
don't see the cause so far.  I'd greatly appreciate if you could put some
effort into analyzing the problem.  Could you send a fragment of the
strace output grep'd for 'm\(un\)*map' in the meantime?  Perhaps I get an
idea by goggling into the debug output...

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: Tab completion list takes enormously long time to generate from empty string

2003-01-13 Thread Magnus Holmgren
> -Original Message-
> From: Magnus Holmgren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 7:51 PM
> To: [EMAIL PROTECTED]
> Subject: Tab completion list takes enormously long time to generate from
> empty string
> 
> 
> Greetings.
> 
> When I press tab in bash without having typed anything at all 
> (which is somewhat abusive but it easily happens), bash works for 
> 15 minutes, going through $PATH looking for executables (and in 
> the end producing nothing) on a 2x450 MHz PIII. Is that normal?
> 
> My $PATH contains the usual /usr/local/bin:/usr/bin:/bin, the 
> WINNT and System32 directories, plus some relatively neglectable 
> ones (18 directories in total), but the number of directories in 
> the path and the time it takes to go through their contents is 
> not the problem. Matching an executable in the last directory in 
> $PATH only takes about 0.2 s. Instead, the huge size of the 
> resulting list seems to be what causes the delay, especially when 
> considering that no disk I/O at all is performed during 14 min 59 
> sec of the 15 minutes...
> 
> I suspect that someone has chosen a sorting algorithm with time 
> complexity O(N^2). Or O(2^N)...
> 
> Maybe I can find that out myself.
> 
> Cheers,
> Magnus
> 
Correction; there is no writing to disk, but certainly loads of *reading*, and 
quicksort seems to be used, so I don't blame the sorting anymore.

I reckon that all files in $PATH (except .exe-s) have to be opened to see if they 
start with #!, and that that takes some time. Getting rid of some entries in $PATH 
surely reduces the time consumed, but I still think that more than five seconds is too 
much.

Some optimizations should be possible, such as only checking files with certain 
extensions, like .sh, .pl, and none at all for the magic "#!" or caching the list in 
some form. A second option might even be to disallow tab completion of commands 
without entering a prefix.

/Magnus


--
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: Tab completion list takes enormously long time to generate from empty string

2003-01-13 Thread [EMAIL PROTECTED]
Don't forget to check out the available documentation when looking 
for optimizations.  For instance, you will find worthwhile information
in the output of 'mount --help' with supporting prose in the Cygwin
User's Guide:

http://cygwin.com/cygwin-ug-net/using-utils.html#MOUNT

I expect this information is directly applicable in your quest for 
performance improvements.

Larry

Original Message:
-
From: Magnus Holmgren [EMAIL PROTECTED]
Date: Tue, 14 Jan 2003 01:12:23 +0100
To: [EMAIL PROTECTED]
Subject: RE: Tab completion list takes enormously long time to generate
from empty string


> -Original Message-
> From: Magnus Holmgren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 7:51 PM
> To: [EMAIL PROTECTED]
> Subject: Tab completion list takes enormously long time to generate from
> empty string
> 
> 
> Greetings.
> 
> When I press tab in bash without having typed anything at all 
> (which is somewhat abusive but it easily happens), bash works for 
> 15 minutes, going through $PATH looking for executables (and in 
> the end producing nothing) on a 2x450 MHz PIII. Is that normal?
> 
> My $PATH contains the usual /usr/local/bin:/usr/bin:/bin, the 
> WINNT and System32 directories, plus some relatively neglectable 
> ones (18 directories in total), but the number of directories in 
> the path and the time it takes to go through their contents is 
> not the problem. Matching an executable in the last directory in 
> $PATH only takes about 0.2 s. Instead, the huge size of the 
> resulting list seems to be what causes the delay, especially when 
> considering that no disk I/O at all is performed during 14 min 59 
> sec of the 15 minutes...
> 
> I suspect that someone has chosen a sorting algorithm with time 
> complexity O(N^2). Or O(2^N)...
> 
> Maybe I can find that out myself.
> 
> Cheers,
> Magnus
> 
Correction; there is no writing to disk, but certainly loads of *reading*,
and quicksort seems to be used, so I don't blame the sorting anymore.

I reckon that all files in $PATH (except .exe-s) have to be opened to see
if they start with #!, and that that takes some time. Getting rid of some
entries in $PATH surely reduces the time consumed, but I still think that
more than five seconds is too much.

Some optimizations should be possible, such as only checking files with
certain extensions, like .sh, .pl, and none at all for the magic "#!" or
caching the list in some form. A second option might even be to disallow
tab completion of commands without entering a prefix.

/Magnus


--
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: Tab completion list takes enormously long time to generate from empty string

2003-01-13 Thread Randall R Schulz
Mangus,

At 16:12 2003-01-13, Magnus Holmgren wrote:

> -Original Message-
> From: Magnus Holmgren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 7:51 PM
> To: [EMAIL PROTECTED]
> Subject: Tab completion list takes enormously long time to generate 
from empty string
>
>
> Greetings.
>
> When I press tab in bash without having typed anything at all
> (which is somewhat abusive but it easily happens), bash works for
> 15 minutes, going through $PATH looking for executables (and in
> the end producing nothing) on a 2x450 MHz PIII. Is that normal?

The time consumed in this sort of thing is almost certainly dominated by 
I/O activity, not CPU load.

How long does it take Cygwin Setup to compute the list of packages that are 
candidates for download or installation? If your 15 minute time to produce 
a list of executables for command completion is any indication, it must be 
hours!

On my 2.4 GHz single processor system with fast disks, it takes only a few 
seconds to get the beep on the first tab and only about a second or two to 
be asked if I want to see all 3719 possibilities on the second tab.

It's too bad so many DLLs are produced in this list. Must they have execute 
bits set to be loaded?


> My $PATH contains the usual /usr/local/bin:/usr/bin:/bin, the
> WINNT and System32 directories, plus some relatively neglectable
> ones (18 directories in total), but the number of directories in
> the path and the time it takes to go through their contents is
> not the problem. Matching an executable in the last directory in
> $PATH only takes about 0.2 s. Instead, the huge size of the
> resulting list seems to be what causes the delay, especially when
> considering that no disk I/O at all is performed during 14 min 59
> sec of the 15 minutes...
>
> I suspect that someone has chosen a sorting algorithm with time
> complexity O(N^2). Or O(2^N)...
>
> Maybe I can find that out myself.
>
> Cheers,
> Magnus

Correction; there is no writing to disk, but certainly loads of *reading*, 
and quicksort seems to be used, so I don't blame the sorting anymore.

I reckon that all files in $PATH (except .exe-s) have to be opened to see 
if they start with #!, and that that takes some time. Getting rid of some 
entries in $PATH surely reduces the time consumed, but I still think that 
more than five seconds is too much.

Any perceptible delay in getting a result from a computer is too long. So 
it goes...


Some optimizations should be possible, such as only checking files with 
certain extensions, like .sh, .pl, and none at all for the magic "#!" or 
caching the list in some form. A second option might even be to disallow 
tab completion of commands without entering a prefix.

This is the sort of thing the "-x," "-E" and "-X" options to "mount" are 
meant to address. Check them out, they can probably help a lot with this 
problem.

Randall Schulz


/Magnus



--
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: binutils ld update with auto-import from dll's ?`

2003-01-13 Thread Ralf Habacker
> patience.  cgf is the maintainer for binutils on cygwin, but I'm sure he
> has his hands full getting ready for the imminent 1.3.19 cygwin kernel
> release.
>
> BTW, Danny reported a problem with Fabrizio Gennari's "create an export
> section for .exe's" patch and relocatable linking.  Danny sent privately
> a modified version that corrects the problem, but like Fabrizio's
> original version we are awaiting an FSF release from Fabrizio. [Danny,
> you didn't copy binutils with that patch; was that an oversight?]
>
> (I'd bet cgf is delaying a cygwin release of binutils for Fabrizio's
> release, hoping to get this functionality "in", too)
>
Okay, I understand and will wait some more time.
The main problem for us is, that qt-3 isn't compilable with the recent binutils
(at least with 650 MB virtual ram, which should be more than enough).

Ralf



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




GCC bug with strftime

2003-01-13 Thread Richard Troy

Hi All,

It's been about eight months since I last posted to this list - hope
everyone is doing well...

I recently discovered a bug in strftime(). I downloaded a very recent copy
of cygwin and tried again, but it's still there. So, I'd like to report
it. I sent mail to the gcc-bugs list but nobody there seems to care, so I
thought I'd mention it here.

The problem is that this call fails to return an hour:

strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);

The l% is supposed to represent a _space_ padded hour, as documented here:
http://www.gnu.org/manual/glibc-2.0.6/html_chapter/libc_17.html#SEC302

I wrote a test program to illustrate the problem - call it a "bug script:"

$ ./strftime

This program illustrates a bug with strftime as it fails to return the hour.
We are trying to use these flags: '%m/%d/%y %l:%M %p'
strftime returned: 01/09/03 :26 PM
The proper result: 01/09/03 3:26 PM
$

My workaround (in the bug script) gets the hour as two digits and then
tosses a leading zero... What a pain. -shrug-

I don't know how to check what version of the library I have, but I have
the following gcc compilers installed (as reported by cygcheck -s):

gcc 3.2-3
gcc-mingw   20020817-4
gcc22.95.3-10

Please direct me on how I can get this information to someone who knows
what to do with it!

Thanks much,
Richard

-- 
Richard Troy, Chief Scientist
Science Tools Corporation
[EMAIL PROTECTED], 510-567-9957, http://ScienceTools.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: GCC bug with strftime

2003-01-13 Thread Christopher Faylor
On Mon, Jan 13, 2003 at 05:46:20PM -0800, Richard Troy wrote:
>I recently discovered a bug in strftime(). I downloaded a very recent copy
>of cygwin and tried again, but it's still there. So, I'd like to report
>it. I sent mail to the gcc-bugs list but nobody there seems to care,

Why *would* anyone in gcc care about a library problem?  I believe that
they actually mentioned that the below was a GNU extension.  But,
regardless, the problem has nothing to do with gcc.

>The problem is that this call fails to return an hour:
>
>   strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);
>
>The l% is supposed to represent a _space_ padded hour, as documented here:
>http://www.gnu.org/manual/glibc-2.0.6/html_chapter/libc_17.html#SEC302

cygwin != glibc.  However, since cygwin uses newlib, and the people in
the newlib project are a cooperative bunch, maybe if you submitted a
patch, they'd consider adding it.  The mailing list is newlib at sources
dot redhat dot com.

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: Tab completion list takes enormously long time to generate from empty string

2003-01-13 Thread Jeremy Hetzler
At 01:12 AM 1/14/2003 +0100, Magnus Holmgren wrote:

 A second option might even be to disallow tab completion of commands 
without entering a prefix.

/Magnus

"shopt -s no_empty_cmd_completion" will do exactly that.

Jeremy


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




current state of credential hopping?

2003-01-13 Thread Richard Troy

Hi All,

One of the long-time known problems (limitations) with cygwin has been the
lack of the ability to switch user identities, such as is done with the
suid bit, and su utility. I know that as of last April, there was some
talk of using the cygserver as a partial answer (with shared memory as a
possible attack/leak point). I'm wondering about what's happened or is
happening on this point and I've got a few practical questions and
observations that relate.

The primary question is simple, but does not appear to be reflected in the
archive: Is anybody working on cygserver to get this technology
implemented?

I also observe that the sshd seems to be doing something a bit like this -
how is it doing so? If we have an sshd doing something like this, why not
have an su program? In fact, I have been taking advantage of the client
side of ssh to ask a program be run for you on the "remote" system. Yeah,
performance sucks, but then, at least it works! It does make for a crude
'su' program!

A somewhat related observation is that when I use ssh to create a session
on the system, it seems to work just fine HOWEVER, it does not have good
access to disk shares. How might I go about providing my ssh clients who
are a different user than is logged in into windows (or when noone is
logged in!) access to disk shares? These other users, if logged into
windows directly, have privileges for their own disk share access. The
question then is, how can I mount volumes just for them? Do they need
their own drive letters, or will they be private? ...I've read up on
mount, but don't think this solves the problem: Simply accessing mounts
which another user has the credentials for isn't quite right. The
credentials should be based upon the rights of the user who's using
them... That is to say, how/where do I tell it what username and password
to use for the shares accessed? Or, will windows apply the correct
credentials on my behalf? (I guess I could figure that out on my own with
a lot of testing, but it'd be nice to get a straight answer if someone
knows, please.)

Thanks, and happy CYGWINning!

Richard

-- 
Richard Troy, Chief Scientist
Science Tools Corporation
[EMAIL PROTECTED], 510-567-9957, http://ScienceTools.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: GCC bug with strftime

2003-01-13 Thread Richard Troy

> >I recently discovered a bug in strftime(). I downloaded a very recent copy
> >of cygwin and tried again, but it's still there. So, I'd like to report
> >it. I sent mail to the gcc-bugs list but nobody there seems to care,
>
> Why *would* anyone in gcc care about a library problem?  I believe that
> they actually mentioned that the below was a GNU extension.  But,
> regardless, the problem has nothing to do with gcc.

Doah! Yeah, glibc - what _was_ I thinking?! -smile-

> >The problem is that this call fails to return an hour:
> >
> > strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);
> >
> >The l% is supposed to represent a _space_ padded hour, as documented here:
> >http://www.gnu.org/manual/glibc-2.0.6/html_chapter/libc_17.html#SEC302
>
> cygwin != glibc.  However, since cygwin uses newlib, and the people in
> the newlib project are a cooperative bunch, maybe if you submitted a
> patch, they'd consider adding it.  The mailing list is newlib at sources
> dot redhat dot com.

Thanks Christopher...

Richard

>
> 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: GCC bug with strftime

2003-01-13 Thread Richard Troy


> > of cygwin and tried again, but it's still there. So, I'd like to report
> > it. I sent mail to the gcc-bugs list but nobody there seems to care, so I
> > thought I'd mention it here.
> >
> > The problem is that this call fails to return an hour:
> >
> > strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);
>
> hmmm...
>
> Are you sure that you are not passing a 'el' instead of a capital 'eye'
>
> it is real hard to differentiate in some typefaces
>
> note: python just calls the underlying 'C' strftime() implementation
>
> HTH
>
> Norman

Thanks for the thought, Norman.

The answer is yes, I have checked. The code works in my various RedHat
environments and has been for a long time. Also capital I is not what I
need; As your example illustrated, it returns a zero padded two digit
hour, but what I want/need is a non-padded hour, two or one digit,
depending. The reason I really care is because there are two programs that
have to talk to one another, one written in C and the other in Java. It
nearly doesn't matter which is which is which, they just have to agree on
the format. All was fine until I compiled the code on my cygwin
installation.

-shrug-

Richard


--
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 bug with strftime

2003-01-13 Thread Norman Vine
Richard Troy writes:
> 
> I recently discovered a bug in strftime(). I downloaded a very recent copy
> of cygwin and tried again, but it's still there. So, I'd like to report
> it. I sent mail to the gcc-bugs list but nobody there seems to care, so I
> thought I'd mention it here.
> 
> The problem is that this call fails to return an hour:
> 
> strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);

hmmm...

Are you sure that you are not passing a 'el' instead of a capital 'eye'

it is real hard to differentiate in some typefaces

note: python just calls the underlying 'C' strftime() implementation

HTH

Norman

$ python
Python 2.2.2 (#1, Dec 31 2002, 12:24:34)
[GCC 3.2 20020927 (prerelease)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strftime("%m/%d/%y %l:%M %p")
'01/13/03 :25 PM'
>>> time.strftime("%m/%d/%y %I:%M %p")
'01/13/03 09:26 PM'



--
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: current state of credential hopping?

2003-01-13 Thread Igor Pechtchanski
On Mon, 13 Jan 2003, Richard Troy wrote:

> Hi All,
>
> One of the long-time known problems (limitations) with cygwin has been the
> lack of the ability to switch user identities, such as is done with the
> suid bit, and su utility. I know that as of last April, there was some
> talk of using the cygserver as a partial answer (with shared memory as a
> possible attack/leak point). I'm wondering about what's happened or is
> happening on this point and I've got a few practical questions and
> observations that relate.
>
> The primary question is simple, but does not appear to be reflected in the
> archive: Is anybody working on cygserver to get this technology
> implemented?
>
> I also observe that the sshd seems to be doing something a bit like this -
> how is it doing so? If we have an sshd doing something like this, why not
> have an su program? In fact, I have been taking advantage of the client
> side of ssh to ask a program be run for you on the "remote" system. Yeah,
> performance sucks, but then, at least it works! It does make for a crude
> 'su' program!
>
> A somewhat related observation is that when I use ssh to create a session
> on the system, it seems to work just fine HOWEVER, it does not have good
> access to disk shares. How might I go about providing my ssh clients who
> are a different user than is logged in into windows (or when noone is
> logged in!) access to disk shares? These other users, if logged into
> windows directly, have privileges for their own disk share access. The
> question then is, how can I mount volumes just for them? Do they need
> their own drive letters, or will they be private? ...I've read up on
> mount, but don't think this solves the problem: Simply accessing mounts
> which another user has the credentials for isn't quite right. The
> credentials should be based upon the rights of the user who's using
> them... That is to say, how/where do I tell it what username and password
> to use for the shares accessed? Or, will windows apply the correct
> credentials on my behalf? (I guess I could figure that out on my own with
> a lot of testing, but it'd be nice to get a straight answer if someone
> knows, please.)
>
> Thanks, and happy CYGWINning!
> Richard

Richard,

There is a fairly detailed discussion of this in the cygwin-developers
list archives for the past couple of months.

If I recall the details correctly, Windows NT security model allows for
switching the effective userid, but requires a special permission which by
default is given only to the LocalSystem user.  Thus, programs like
'login' or 'su' can only work for a user possessing such a permission.

sshd and telnetd (and cygserver) run under the LocalSystem account, so
they are able to switch user context to the authenticated user.  This is
why 'ssh user@localhost' works.  One of the goals of cygserver, by my
recollection, was to provide a service running as LocalSystem accessible
to the cygwin DLL to perform tasks that require root-like permissions.
Since this service would have to be accessible to non-root processes (by
necessity), security would indeed be an issue.

Technically, nothing prevents an administrator on a machine from giving
this permission (called, I *think*, 'Create a token object') to a user
other than LocalSystem, which will then allow that user to run 'login'
successfully.  It is impractical from a security standpoint, however, to
give this permission to all users.

I think the situation is similar with the network shares, and one needs a
token to access them, but these are murky waters, and I don't claim to
fully understand these issues.

I'll only add that there also seems to be a difference between a
password-authenticated user token and a pubkey-authenticated user token,
and then I'll shut up and let experts like Pierre Humblet or Corinna
Vinschen correct my certainly naive interpretation.
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: Bug in g++: Testcase exits with segmentation fault

2003-01-13 Thread Gareth Pearce
When a program crashes crashes on cygwin - also crashes in the same way on a
platform other then cygwin - its quite obviously not a cygwin problem and
therefore the original author of said software should be contacted.

In this case you do indeed have to report this error to the gcc website.
Given its a g++ bug, theres some likelihood of it having been fixed in gcc
3.4 (experimental) - but it will be a while before you see that distributed
in cygwin (or as part of a stable linux distribution) I expect.

Gareth
- Original Message -
From: "Boris Schaeling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 2:13 AM
Subject: Bug in g++: Testcase exits with segmentation fault


> The testcase attached to this mail compiled with g++ 2.95.3-10 or g++ 3.2
> 20020927 under Cygwin 1.3.18 exits with segmentation fault. It seems to be
> an error in g++ as the testcase doesn't work under Linux either. Can
anyone
> help or do I have to report this error to the GCC website?
>
> BTW I found two ways to make the testcase work:
> 1) Change line 64 (and 70 respectively) and use "observer *Observer"
instead
> of "std::list". I compiled the testcase with STLport-4.5.3 under
> Linux to see if it's a bug in the Standard Library but got again
> segmentation fault.
> 2) Remove line 75 which is a simple "poll(NULL, 0, 2000)". It works
without
> this line but I don't know why.
>
> Boris
>






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




BUSINESS PROPOSAL

2003-01-13 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.

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


Bugs in Rsync?

2003-01-13 Thread Michael Hipp
I'm trying to use Rsync to back up this system to a remote across the
network. I'm butting my head against 2 probs:

- When rsync is given a source of /, it absolutely refuses to descend into
/cygdrive. It's as if the -x (one fs only) is set.

- When rsync is given a source of /cygdrive/c/ it will attempt to read
pagefile.sys (the NT swap file) and always reports an IO error and this
causes it to change its behavior (doesn't quite die). It does this
regardless of all-powerful exclusions that would cause it to skip over
pagefile.sys. Even touching that file enough to realize to exclude it
evidently causes it problems.

Are these really problems or am I just missing something? Thanks.

Michael


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




BUSINESS PROPOSAL

2003-01-13 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.

--
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: Bugs in Rsync?

2003-01-13 Thread Richard Troy

Michael,

I honestly have no idea about your particular problems but I can tell you
that rsync has some limitations on what you can expect from it on all
platforms on which I've tried it so far. It's worth mentioning that I
_always_ use the restart option... In short, if the total space you wish
to point it at exceeds some 'n'G, then you can expect it to get into a
cycle of restarting with only modest progress on each pass, effectively
stalling forever. Oh sure, days later it may eventually finish, but I've
found that it's best to not give it such large workloads. I think it has
to do with the size of the difference between the source and destination
trees and doesn't pertain to the memory on the box, but that's a guess.
The best strategy (for me) has been to manually move (scp or whatever) if
there are many gigabytes of difference between the two trees, and only scp
when there's 2GB or less (as a guesstimate) of difference between the
trees.

And... I effect this with a short script, which is what I recommend you
do. I have a short shell script that walks the top level trees in
particular file systems. I log the sessions and when the script isn't done
in the morning or when the log shows more hours than usual, I look at
where in the tree the problem is and I add a hook to walk into that level
of the file system and do each item within separately. ...It's really easy
to code and it works great - AND it could help you explicitly walk over
problems like the one you report.

Hope this helps,
Richard


-- 
Richard Troy, Chief Scientist
Science Tools Corporation
[EMAIL PROTECTED], 510-567-9957, http://ScienceTools.com/

On Mon, 13 Jan 2003, Michael Hipp wrote:

> Date: Mon, 13 Jan 2003 23:15:10 -0600
> From: Michael Hipp <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Bugs in Rsync?
>
> I'm trying to use Rsync to back up this system to a remote across the
> network. I'm butting my head against 2 probs:
>
> - When rsync is given a source of /, it absolutely refuses to descend into
> /cygdrive. It's as if the -x (one fs only) is set.
>
> - When rsync is given a source of /cygdrive/c/ it will attempt to read
> pagefile.sys (the NT swap file) and always reports an IO error and this
> causes it to change its behavior (doesn't quite die). It does this
> regardless of all-powerful exclusions that would cause it to skip over
> pagefile.sys. Even touching that file enough to realize to exclude it
> evidently causes it problems.
>
> Are these really problems or am I just missing something? Thanks.
>
> Michael
>
>
> --
> 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/




Missed patch? (gettimeofday time travels V2)

2003-01-13 Thread Fish
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there any reason why Philip Aston's 6 Jul 2002 patch to
gettimeofday et. al. logic to correct for WM_POWERBROADCAST events
(PBT_APMRESUMESUSPEND, PBT_APMRESUMEAUTOMATIC, PBT_APMRESUMECRITICAL)
hasn't made it into the sources yet?

http://sources.redhat.com/ml/cygwin/2002-05/msg00962.html

Was this perhaps just a simple oversight? Or was there another reason
for it not being applied?

Thanks.

- -- 
"Fish" (David B. Trout)
   [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4

iQA/AwUBPiOmQUj11/TE7j4qEQIqVACg9exKrKE0ZMzmZavfzBzFkgBY/4UAn35W
JMjtv6fzDXQqQ8xQEXbG1kUq
=9Hmb
-END PGP SIGNATURE-


--
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: static libs imported into DSO?

2003-01-13 Thread Kent Watsen

I've doublechecked this.  Other than the not  passing RTLD_LAZY,
this really does work using gcc on OpenBSD, but not with Cygwin.
Does the shared library itself have to be a DSO?  I thought plugins
could share code with the base app that loads them into memory?


Kent Watsen wrote:


Hi all,

I have simple application that I want to link a
plugin into.  The intent is for the plugin the
use the same libraries linked into the main app,
but instead the plugin is linking in its own copy!
This code works as expected using gcc on OpenBSD.
What am I doing wrong?  Can I tell the linker to
ignore unresolved symbols and rld will be ok?


$ uname -a
CYGWIN_NT-5.1 1.3.10(0.51/3/2) 2002-02-25 i686

$ gcc -v
gcc version 2.95.3-5 (cygwin special)


staticlib.h
---
void setVal(int val);
int  getVal(void);


staticlib.c
---
static int VAL = -1;
void setVal(int val) { VAL = val; }
int  getVal(void) { return VAL; }


dynamiclib.c

#include "staticlib.h"
void foo(void) { printf("val = %d\n", getVal()); }


main.c
--
#include "staticlib.h"
typedef void Func(void);

int main(void) {
  int   dl;
  Func* func;
  int   result;

  setVal(5);
  printf("val = %d\n", getVal());

  dl = dlopen("./dynamiclib.so");
  if (dl == 0) {
printf("dlopen failed\n");
return 1;
  }

  func = (Func*)dlsym(dl, "foo");
  if (func == 0) {
printf("dlsym failed\n");
return 1;
  }

  func();

  result = dlclose(dl);
  if (result != 0) {
printf("dlclose failed\n");
return 1;
  }

  return 0;
}



$ gcc -c staticlib.c
$ gcc main.c staticlib.o
$ gcc -shared dynamiclib.c staticlib.o -o dynamiclib.so
   ^^^
  else undefined ref ---^


$ ./a.exe
val = 5
val = -1< THIS SHOULD HAVE BEEN 5!












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




login from other m/c?

2003-01-13 Thread senthill
Hi All,

Is it possible to login to cygwin from other m/c in which cygwin is not
installed?
If so, I would appreciate the procedure to do the same.
Is there any docs available?

thanks
Senthill

--
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: dlopen() and libtool problems

2003-01-13 Thread Dr. Volker Zell
> "Bhiksha" == Bhiksha Raj <[EMAIL PROTECTED]> writes:

Bhiksha> Hi,
Bhiksha> I found a post on the gnu archives:
Bhiksha> http://mail.gnu.org/archive/html/texmacs-dev/2002-11/msg00121.html

Bhiksha> which stated specifically that guile 1.6.0 is not compatible with
Bhiksha> TeXmacs (which I want to install). The page says to use guile-1.4.1
Bhiksha> The message was posted in Nov 2002, so I assumed the info was 
Bhiksha> fairly recent.

Bhiksha> I also actually tried guile 1.6.0 right out of the box. When I tried
Bhiksha> to compile TeXmacs I got errors relating to guile (and the dreaded
Bhiksha> blue screen of death followed. My machine seems to die when cygwin
Bhiksha> encounters errors).

I have TeXmacs-1.0.1 running here perfectly with guile-1.6.0-1.

Bhiksha> -Bhiksha

Ciao
  Volker


--
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: ping on cygwin?

2003-01-13 Thread Sam Edge
Tino Lange <[EMAIL PROTECTED]>  wrote in <[EMAIL PROTECTED]>
in gmane.os.cygwin on Mon, 13 Jan 2003 18:36:45 +0100:

> Thanks! I read it once again and hence I like to (try to) contribute - 
> see below.
> 
> I learned a lot about raw icmp sockets and why only root is allowed to 
> open them - making ping a setuid program.

If you do write a better ping for Windows - whether native or Cygwin -
you can use raw sockets and construct your own ICMP datagrams but on
NT/2k/XP-Pro this will only run if you have elevated privileges, just
as on UNIX-like systems. Because there's no SUID feature available in
Windows or in Cygwin (yet!) this is something of a problem.

In case you're not aware, the Microsoft ping.exe and tracert.exe
programs use a system library called icmp.dll which provides system
calls that will send and receive ICMP Echo datagrams without needing
extra privileges. This might be useful for your version.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm/htm/_wcesdk_internet_control_message_protocol__icmp_.asp
(Don't worry that this is under the Windows CE section, by the way. It
applies to NT/2k/XP too.)

-- 
Sam Edge

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