Re: bug in perldoc (escape characters in output)

2004-10-30 Thread Yaakov Selkowitz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Elvin Peterson wrote:
| Hello,
| The perl documentation viewed using the perldoc
| commands has escape characters inserted into it.  The
| same pages view with the man command are OK.  I think
| this is cygwin specific, so I am posting it here.
| Thanks.
Quoting /usr/share/doc/Cygwin/perl-5.8.5.README:
***NOTE: you may want to set LESS=-R for less output in your global
~ Cygwin environment because the escape characters are not
~ expanded without this setting.
Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBhE3XpiWmPGlmQSMRAu1nAKCIZ54U7OlOj00ktArba4Ot+zYn5QCgv9FH
t65+hfLgCB8RvNhnZCnaD9M=
=LlHs
-END PGP SIGNATURE-
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: ssh: Connection to host closed.

2004-10-30 Thread Larry Hall
At 05:15 PM 10/30/2004, you wrote:
>Christopher Cobb  email.com> writes:
>
>> 
>> J. David Boyd  adboyd.com> writes:
>> > I was having this problem, and couldn't get around it.  I rolled my openssh
>> > back to the prior version, and ran the ssh-config (sp?) script again, and it
>> > works fine.  
>> ...
>> I guess I'll try rolling back, too.
>
>The *8* version of openssh does not seem to be available via setup.exe anymore.
> Is there some other way to get it?


Search for stale mirror or download source and build are the only things
I can think of.  

Good luck living in the past.



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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



ZoneAlarm hates email-2.3.0-2

2004-10-30 Thread Keith Starsmeare
I've been using the new email package to upload my
digital photos to my yahoo email account (what else
can you do with a 2GB limit?), but it's really slow.

Looking in the task manager I see that when I'm using
email (email -s "description" -b -a "filename.jpg"
[EMAIL PROTECTED]) the vsmon process takes my CPU usage
upto 100%. vsmon is the firewall process for
ZoneAlarm.

Strange. When I email the photo's using outlook
express it doesn't behave like that.

I've tweaked every setting I can think of in ZonaAlarm
to  try to improve the performance (like adding my
SMTP server as a trusted host and lowering my
security) but I've not managed to alter the behaviour
at all.

Has anyone experienced similar problems?

Can anyone hazard a guess as to what ZoneAlarm's
problem is?

Any help would be greatly appreciated.

Keith

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh: Connection to host closed.

2004-10-30 Thread Christopher Cobb
Christopher Cobb  email.com> writes:

> 
> J. David Boyd  adboyd.com> writes:
> > I was having this problem, and couldn't get around it.  I rolled my openssh
> > back to the prior version, and ran the ssh-config (sp?) script again, and it
> > works fine.  
> ...
> I guess I'll try rolling back, too.

The *8* version of openssh does not seem to be available via setup.exe anymore.
 Is there some other way to get it?



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh expect on Cygwin

2004-10-30 Thread Christopher Cobb
anurag shukla  gmail.com> writes:
>
> I am having a tyical problem with expect.

Since passwordless authentication is broken on many cygwin systems I use, I end
up using the following expect script (more frequently that I would like).  By
populating the user and passwd arrays for various hosts, this script can be used
to access arbitrary remote hosts.  

--- remoteLogin ---
#!/usr/bin/expect -f

set user(myHostName) "Administrator"
set passwd(myHostName) "mySecretPassword"

log_user 0
set timeout -1
set host [file tail $::argv0]
if {[llength $argv] == 0} {
spawn ssh $user($host)@$host
} else {
spawn ssh $user($host)@$host [join [lrange $argv 0 end]]
}
match_max 10
expect { 
   -re "ssh: connect to host .* port 22: Connection refused" {
  send_user "Connection to port 22 on $host refused.\n"
  exp_exit 1
   }
   -re "ssh: connect to host .* port 22: Connection timed out" {
  send_user "Connection attempt to port 22 on $host timed out.\n"
  exp_exit 1
   }
   -exact "Are you sure you want to continue connecting (yes/no)? " {
  send "yes\r"
  exp_continue
   }
   -exact " password: " { send -- "$passwd($host)\r" }
}
expect "\r" # eat the RETURN after entering the password
if {[llength $argv] == 0} { # interactive
   expect {
  -glob "Connection to * closed." {
 send_user "Connection to $host has spontaneously closed.\n"
 exp_exit 1
  }
  -exact "Permission denied, please try again." {
 send_user "Password not accepted.\n"
 exp_exit 1
  }
  -exact "\r" ;# continue if error not encountered
   }
   log_user 1
   expect -re "(\\$|\>) "
   interact { "\004" { close; wait; exit } }
} else { # non-interactive
   log_user 1
   expect eof
}
--- end remoteLogin ---




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Not what I expected at first startup :0

2004-10-30 Thread Christopher Cobb
Nemes  gmail.com> writes:
> hello all
> 
> New to lthe mailing list, and new to cygwin :)
> 
> Firstly I would to ask if it is normal for  cygwin to startup and just
> show a cmd.exe black window as the access to the install??
> 
> From there I did a, "startx" and was surprised to just get another
> bash shell window I presume.

But this bash shell is running in a X window.  You would need an X Window to run
X applications.  Do you have X applications that you need to use?

The main reason I have cygwin installed is to have access to a power command
line environment.  I don't need an X window for this.  Although cygwin does
provide an X environment, it does not really offer a complete suite of X
applications.  You can browse the X11 category of the setup program to see what
X applications cygwin provides.  You'll see that WindowMaker, fvwm and xwinwm
are there, along with a nestful of core applications.  But it is not an
overflowing repository of X/KDE/GNOME applications.

I think the main reason to run cygwin is for the command line and to have access
to X applications that run on real *nix boxes.

When you say you want to learn "Linux", what do you really mean?  You would like
to learn some Linux applications?  Many Linux applications have Windows versions
(eg, Firefox, Open Office, etc).  Maybe you would like to start with those.  You
would like to learn the command line?  That's a good idea.  The command line is
very powerful and is an important part of mastering Linux.

You would like to learn a Linux desktop environment?  I'm not sure that this is
really necessary.  If you were able to migrate from Windows 95 to Windows XP,
you can migrate to KDE or GNOME.  I'm not sure its necessary to install it on
top of cygwin on top of Windows to get practice with it.

Go check out TheOpenCD project http://theopencd.sunsite.dk/ .  Once you've
replaced every windows application that you use with open source (but native
windows) varieties, then you can think about switching your desktop environment.




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



CPAN module in Cygwin

2004-10-30 Thread Elvin Peterson
Hello,
   The CPAN command:

perl -MCPAN -e shell 

fails with:

Cannot open >/usr/lib/perl5/5.8.5/CPAN/Config.pm at
/usr/lib/perl5/5.8.5/CPAN.pm line 1219

CPAN::Config::_configpmtest('/usr/lib/perl5/5.8.5/CPAN',
'/usr/lib/perl5/5.8.5/CPAN/Config.pm') called at
/usr/lib/perl5/5.8.5/CPAN.pm line 1253
CPAN::Config::load('CPAN::Config') called at
/usr/lib/perl5/5.8.5/CPAN.pm line 92
CPAN::shell() called at -e line 1

It looks like it is trying to write to a file owned by
Administrator.  Is there a workaround to install
modules as a user?

TIA.



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



bug in perldoc (escape characters in output)

2004-10-30 Thread Elvin Peterson
Hello,
The perl documentation viewed using the perldoc
commands has escape characters inserted into it.  The
same pages view with the man command are OK.  I think
this is cygwin specific, so I am posting it here.
Thanks.



__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



11-csw-cygwin-wrapper-with-no-deplibs.patch

2004-10-30 Thread Charles Wilson
Sometimes, a wrapper script is generated for an executable that, itself, 
does not link against an uninstalled library.  It appears that this can 
happen if you are building a project where
  (1) there is a library
  (2) there is an executable that does not, itself, link against that 
library

In this case, notinst_deplibs is empty, and when the wrapper script is 
loaded by libtool during ./libtool mode=install, there is a check for 
"is notinst_deplibs empty".  In this case, it is, so libtool reports an 
error.

I don't think it is wrong to have a wrapper script for an exe that 
*technically* doesn't need it.  But instead of checking for 
notinst_deplib nonempty as a proxy for "did wrapper script get sourced 
into my environment properly" a different var should be used.

For more info, see
http://www.cygwin.com/ml/cygwin/2004-10/msg01321.html
and
http://www.cygwin.com/ml/cygwin/2004-10/msg01347.html
Attached patch (by Peter Ekberg) has no regressions on cygwin.
--
Chuck
2004-10-30  Peter Ekberg  

* config/ltmain.m4sh (func_mode_install): set new variable
'generated_by_libtool_version' in wrapper script when 
libtool_install_magic.  When verifying that wrapper script 
was properly sourced, check that generated_by_libtool_version 
is nonempty, instead of notinst_deplibs.
Index: config/ltmain.m4sh
===
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 ltmain.m4sh
--- config/ltmain.m4sh  20 Oct 2004 08:41:34 -  1.1.2.12
+++ config/ltmain.m4sh  30 Oct 2004 18:35:50 -
@@ -1957,7 +1967,7 @@
  esac
 
  # Check the variables that should have been set.
- test -z "$notinst_deplibs" && \
+ test -z "$generated_by_libtool_version" && \
func_fatal_error "invalid libtool wrapper script \`$wrapper'"
 
  finalize=yes
@@ -5993,7 +6004,8 @@
 
 # This environment variable determines our operation mode.
 if test \"\$libtool_install_magic\" = \"$magic\"; then
-  # install mode needs the following variable:
+  # install mode needs the following variables:
+  generated_by_libtool_version='$macro_version'
   notinst_deplibs='$notinst_deplibs'
 else
   # When we are sourced in execute mode, \$file and \$ECHO are already set.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

apache fails to start when not connected to net

2004-10-30 Thread Elvin Peterson
Hello,
Apache doesn't start when not connected to the web
even when the ServerName is set to the local loopback.
 This is due to a module mod_unique_id which does a
gethostbyname.  Disabling this module will have apache
running without trouble.  Is this a bug in that
module?
TIA.



___
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



postgres in windows 2003

2004-10-30 Thread Elvin Peterson
Hello,
When starting postgres initdb in windows 2003 I
get a signal 12.  ipc-daemon2 seems to start up OK.  I
understand there were some issues with windows 2003
and cygwin earlier on, but that message seems to have
been removed from the home page, so I guess that might
have been resolved.  BTW, anyone running postgres in
windows 2003?  Any help is appreciated.
TIA.



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



setup stops while set up X11

2004-10-30 Thread Bobby McNulty
Setup stalls when it gets to X11.
I've tried it twice.
Its in a continuous loop at a readme file.
fts I think is the package.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 10-csw-cygwin-install-strip.patch

2004-10-30 Thread Charles Wilson
Peter sent me an updated version of this patch, which fixes the quoting 
of the exit command, and removes os2 from the case statement (os2 
doesn't use the .dll.a convention)

--
Chuck
2004-10-28  Peter Ekberg  


* config/ltmain.m4sh (func_mode_install): on cygwin,
ensure that import libraries do not get stripped.
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): on cygwin,
use postinstall_cmds to strip DLL (not import lib)
when stripping is requested.
Index: config/ltmain.m4sh
===
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 ltmain.m4sh
--- config/ltmain.m4sh  20 Oct 2004 08:41:34 -  1.1.2.12
+++ config/ltmain.m4sh  30 Oct 2004 18:24:15 -
@@ -1827,7 +1827,17 @@
  # Install the shared library and build the symlinks.
  $show "$install_prog $dir/$srcname $destdir/$realname"
  $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
- if test -n "$stripme" && test -n "$striplib"; then
+ tstripme="$stripme"
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32*)
+   case $realname in
+   *.dll.a)
+ tstripme=""
+ ;;
+   esac
+   ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
$show "$striplib $destdir/$realname"
$run eval "$striplib $destdir/$realname" || exit $?
  fi
Index: m4/libtool.m4
===
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.125.2.5
diff -u -r1.125.2.5 libtool.m4
--- m4/libtool.m4   20 Oct 2004 08:41:34 -  1.125.2.5
+++ m4/libtool.m4   30 Oct 2004 18:25:43 -
@@ -1719,7 +1719,10 @@
   dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;$ECHO \$dlname'\''`~
   dldir=$destdir/`dirname \$dlpath`~
   test -d \$dldir || mkdir -p \$dldir~
-  $install_prog $dir/$dlname \$dldir/$dlname'
+  $install_prog $dir/$dlname \$dldir/$dlname~
+  if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+$run eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+  fi'
 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   dlpath=$dir/\$dldll~
$RM \$dlpath'

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: BUG: Cygwin implementation of Debian package tools

2004-10-30 Thread Reini Urban
David A. Cobb schrieb:
Gerrit P. Haase wrote:
David A. Cobb wrote:
++rm.exe< getting 98% of the CPU time and not making any
progress.  Watching the handles display, I see an open handle on what
must be the first *.deb file found so I'm pretty sure of the "no
progress -= stuck!" diagnosis.
If there is a Windows process which has a handle on a file or directory
open, rm shows this behaviour occasionally.  e.g. try to run
rm -rf /path/to/directory
while having an explorer view open on this directory (or a 
subdirectory of directory).

It happens i.e. often for me when using the generic-build-script, if 
invoking with install or reconf which does rm -rf .build / .inst and
having an explorer shell open in one of the (sub)directories to be
removed from the script -> it seems to hang and it is always rm.

Maybe Reini can look into this issue, it seems he is already working
at the coreutils sources.  But I think it is a Windows feature and 
this is probably difficult to work around.
strace rm -r 
about thousands of:
 41 3557965 [main] rm 1360 __cygwin_lock_unlock: threadcount 1.  not 
unlocking
 41 3558006 [main] rm 1360 __cygwin_lock_unlock: threadcount 1.  not 
unlocking
 40 3558046 [main] rm 1360 __cygwin_lock_unlock: threadcount 1.  not 
unlocking
 40 3558086 [main] rm 1360 __cygwin_lock_lock: threadcount 1.  not locking
 40 3558126 [main] rm 1360 __cygwin_lock_lock: threadcount 1.  not locking
 40 3558166 [main] rm 1360 __cygwin_lock_lock: threadcount 1.  not locking
 40 3558206 [main] rm 1360 __cygwin_lock_lock: threadcount 1.  not locking
 40 3558246 [main] rm 1360 __cygwin_lock_unlock: threadcount 1.  not 
unlocking

$ strace rm -r findutils-4.1.7-4 > rm.strace
rm: Entfernen von Verzeichnis "findutils-4.1.7-4/find" nicht m"oglich: 
Device or resource busy

$ grep -c  __cygwin_lock_ rm.strace
4012
$ find findutils-4.1.7-4
findutils-4.1.7-4
findutils-4.1.7-4/find
# so it's empty with on open handle to the "find" dir
# but this is effectively a non-issue:
$ time rm -r findutils-4.1.7-4
rm: Entfernen von Verzeichnis "findutils-4.1.7-4/find" nicht m"oglich: 
Device or resource busy

real0m0.099s
user0m0.030s
sys 0m0.031s
# high cpu for a short amount of time is not really annoying.
$ rm --version
rm (coreutils) 5.2.1
unlink() is using pierre's latest patch (GREAT patch, thanks btw), but 
all this can also be observed with the current versions.

It's always good to know I'm not the only one getting things like this.  
At least if I've lost my mind I have companions.

It's hard to see how a Windows misfeature prevents rm.exe from deleting 
a file and exiting.  But, yeah, the --recurse could create  some sort of 
situation I guess.  But I don't see a bunch of handles on nodes in a 
directory branch -- just the one .deb file.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/