Re: environment variables & mks toolkit - patch opportunity?

2012-07-25 Thread Christopher Faylor
On Wed, Jul 25, 2012 at 05:43:52PM -0500, M. Sebastian Comella wrote:
>Hi all -
>I recently lost a good chunk of my day tracking down a Cygwin issue
>ultimately caused by an installation of IBM InfoSphere. The InfoSphere
>installer surreptitiously installed MKS Toolkit, which in turn set a
>bunch of environment variables that left Cygwin in a very unhelpful
>state: attempting to start Cygwin via its usual mintty shortcut would
>appear to hang, with mintty showing "sh.exe" in its title bar and
>little else. The cause of the issue is unfortunately not very obvious
>since there is no error message or other form of reporting. If I had
>realized that MKS Toolkit was being installed I might have had a
>fighting chance, but without that info I was in the dark.
>
>Fortunately, fixing the issue is pretty easy and is a matter of
>removing some Windows environment variables, as noted in this
>2002-vintage thread:
>
>http://www.cygwin.com/ml/cygwin/2002-07/msg00734.html
>
>My question is this: is there an opportunity to patch something in
>Cygwin's startup "chain" to detect unsavory environment variables and
>warn users in some fashion? I'm not sure what package (or core
>process) could detect the situation and still get a warning off to the
>user before everything goes fubar. Putting a check into the installer
>may also be a viable solution, considering that the first thing I did
>was run the Cygwin installer again to see if it could "repair" things.
>
>I think I can take care of writing the patch, but I'd like some input
>on where it even belongs before I give it a shot.

If you can provide an exact environment variable which caused a problem
we can look into whether this is actually a problem in Cygwin, although
it seems unlikely that it is.  Cygwin is meant to read environment
variables from...  its environment.  If you set them incorrectly bad
things can happen.  Cygwin is no different than UNIX in that regard.

We're can't add special case handling for a bunch of random environment
variables because someone reported that they think they might have
caused a problem.  We need more details than that.

cgf

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



environment variables & mks toolkit - patch opportunity?

2012-07-25 Thread M. Sebastian Comella
Hi all -
I recently lost a good chunk of my day tracking down a Cygwin issue
ultimately caused by an installation of IBM InfoSphere. The InfoSphere
installer surreptitiously installed MKS Toolkit, which in turn set a
bunch of environment variables that left Cygwin in a very unhelpful
state: attempting to start Cygwin via its usual mintty shortcut would
appear to hang, with mintty showing "sh.exe" in its title bar and
little else. The cause of the issue is unfortunately not very obvious
since there is no error message or other form of reporting. If I had
realized that MKS Toolkit was being installed I might have had a
fighting chance, but without that info I was in the dark.

Fortunately, fixing the issue is pretty easy and is a matter of
removing some Windows environment variables, as noted in this
2002-vintage thread:

http://www.cygwin.com/ml/cygwin/2002-07/msg00734.html

My question is this: is there an opportunity to patch something in
Cygwin's startup "chain" to detect unsavory environment variables and
warn users in some fashion? I'm not sure what package (or core
process) could detect the situation and still get a warning off to the
user before everything goes fubar. Putting a check into the installer
may also be a viable solution, considering that the first thing I did
was run the Cygwin installer again to see if it could "repair" things.

I think I can take care of writing the patch, but I'd like some input
on where it even belongs before I give it a shot.


Thanks!

Sebastian.

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



Re: snapshot 20120724 sleep failure

2012-07-25 Thread Christopher Faylor
On Wed, Jul 25, 2012 at 09:52:36PM +0200, marco atzeri wrote:
>on  1.7.17s(0.262/5/3) 20120724
>
>autoconf test for sleep never completes
>
>checking whether sleep is declared... yes
>checking for working sleep...
>
>on 1.7.16 the test take 1 second

Should be fixed in the upcoming snapshot.

Thanks for the STC.

cgf

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



Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)

2012-07-25 Thread Linda Walsh

Corinna Vinschen wrote:


Anyway, I have a fix for that.  You didn't explicitely allow to send
a test DLL, so I just applied the patch to CVS.  Please test the next
developer snapshot.


Sorry, I thought it would be implicit that I gave you everything
you asked for -- not that I really NEED the dll patch immediately,
(first time I've encountered this problem in a dozen years of cygwin
usage..)..

AND NOTE: --

This problem occurred to 1 out of 54 dirs in my Pictures dir
and 1 out of 267 dirs in my Docs dir.


That was a failure rate of 0.62%, and the impact was a
directory being renamed (no files deleted or lost).

If it happened most the time, I'd think it was
serious or if it deleted data, critical, but given those
rates...I wouldn't *only* suspect cygwin, samba has more
than it's share of problem being in a similar position as you
in trying to be win-compat in a dearth of information about
how to do so.

My file server is running samba 3.5.9 on a 3.2.21 linux kernel
on an openSnoozy 12.1 distro, FWIW...other samba versions may
be different.

So if you want, I'm willing to try a fix, or I can
wait...either way is fine..


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



snapshot 20120724 sleep failure

2012-07-25 Thread marco atzeri

on  1.7.17s(0.262/5/3) 20120724

autoconf test for sleep never completes

checking whether sleep is declared... yes
checking for working sleep...

on 1.7.16 the test take 1 second

-
#include 
#include 
#include 
static void
handle_alarm (int sig)
{
  if (sig != SIGALRM)
_exit (2);
}

int
main ()
{

/* Failure to compile this test due to missing alarm is okay,
   since all such platforms (mingw) also lack sleep.  */
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
unsigned int remaining;
signal (SIGALRM, handle_alarm);
alarm (1);
remaining = sleep (pentecost);
if (remaining > pentecost)
  return 3;
if (remaining <= pentecost - 10)
  return 4;
return 0;

  ;
  return 0;
}
--

Regards
Marco

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



Re: gethostbyname conflicts

2012-07-25 Thread Larry Hall (Cygwin)

On 7/25/2012 3:20 PM, Bernd Prager wrote:

All,

I am having troubles compiling a boost package due to conflicting declarations:

/usr/include/w32api/winsock2.h:635:33: error: declaration of C function ‘int
gethostname(char*, int)’ conflicts with
/usr/include/sys/unistd.h:238:6: error: previous declaration ‘int
gethostname(char*, size_t)’ here

Can that get fixed?


You want to have a look at the configuration for the Boost package you're
building.  It should not be including things from the w32api if it's
building for Cygwin.

If you aren't aware, Cygwin has a Boost package already.  If you're
looking for a more current version, you may find you have better luck
using the build scripts for the current Cygwin package as a basis if
you prefer not to wait for the Cygwin maintainer to release an update.



--
Larry

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?


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



gethostbyname conflicts

2012-07-25 Thread Bernd Prager

All,

I am having troubles compiling a boost package due to conflicting 
declarations:


/usr/include/w32api/winsock2.h:635:33: error: declaration of C function 
‘int gethostname(char*, int)’ conflicts with
/usr/include/sys/unistd.h:238:6: error: previous declaration ‘int 
gethostname(char*, size_t)’ here


Can that get fixed?

Thank you,
-- Bernd

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



Re: VB script error in Cygwin

2012-07-25 Thread Aaron Schneider

On 25/07/2012 9:25, Eric Padriquez wrote:

Hi, we have a VB script that is working fine when run in command prompt.
However we encounter when we run the VB script in Cygwin by using shell
script to invoke VB.  We've tried to use cscript and cygstart but also
encounter error.  Thanks!
Error: attach_sendmail.vbs(52, 1) CDO.Configuration.1: The specified
module could not be found.
Code: 8007007E
Commands tried:
cscript.exe /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""
cygstart /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""



Could you attach a copy of the files replacing sensitive data?


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



Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors

2012-07-25 Thread Aaron Schneider

On 25/07/2012 16:56, Earnie Boyd wrote:

On Wed, Jul 25, 2012 at 9:50 AM, Aaron Schneider wrote:


Oh no I meant I removed the cygwin's make, the nokia's make is still
present, never removed it in the end. The makefile is in perfect condition,
even I tried it on a empty dir and the result is the same.


If you're not using the Cygwin tools including make then we cannot
help you with the problem.  The only resolution is to install the
Cygwin make to overcome the issue.  But this also means that the
Makefile must conform to POSIX paths.



There's nothing to "solve" actually, I removed from PATH the paths that 
are no longer useful to me, among those that Symbian one that I no 
longer use.


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



Re: [ANNOUNCEMENT] Updated: {emacs,emacs-X11,emacs-el}-24.1-1

2012-07-25 Thread Franz Häuslschmid
Ken Brown writes:

> 
> On 7/23/2012 1:12 PM, Franz Häuslschmid wrote:
> > [...] the function
> > `org-clock-in' fails with following output to the *Messages* buffer:
> >
> >find-library-name: Can't find library org
> 
> The documentation for the function 'find-library-name' is
> 
>"Return the absolute file name of the Emacs Lisp source of LIBRARY.
> LIBRARY should be a string (the name of the library)."
>;; If the library is byte-compiled, try to find a source library by
>;; the same name.
> 
> So the first question is whether you have the elisp sources installed 
> (which are provided by the Cygwin package emacs-el).

[...]

The package emacs-el was not installed.  Installed it and now everything
works as expected.

Thank you Ken and also Achim, who had also a pointer to the right direction!
Franz


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



Re: VB script error in Cygwin

2012-07-25 Thread Andrew DeFaria

On 07/25/2012 12:25 AM, Eric Padriquez wrote:

Hi, we have a VB script that is working fine when run in command prompt.
However we encounter when we run the VB script in Cygwin by using shell
script to invoke VB.  We've tried to use cscript and cygstart but also
encounter error.  Thanks!
Error: attach_sendmail.vbs(52, 1) CDO.Configuration.1: The specified
module could not be found.
Code: 8007007E
Commands tried:
cscript.exe /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""
cygstart /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""

Try executing a VB script that's in your CWD that does something very, 
very simple like echos "Hello World". Does that work? If so start adding 
complexity until it breaks.


cscript should work for you. I believe I have an alias vbs="cscript 
/nologo".

--
Andrew DeFaria 
Whenever I feel the need to exercise, I lie down till the feeling goes 
away.



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



Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors

2012-07-25 Thread Earnie Boyd
On Wed, Jul 25, 2012 at 9:50 AM, Aaron Schneider wrote:
>
> Oh no I meant I removed the cygwin's make, the nokia's make is still
> present, never removed it in the end. The makefile is in perfect condition,
> even I tried it on a empty dir and the result is the same.

If you're not using the Cygwin tools including make then we cannot
help you with the problem.  The only resolution is to install the
Cygwin make to overcome the issue.  But this also means that the
Makefile must conform to POSIX paths.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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



Re: GCC fatal error: can't open /tmp/ccc6IHTT.s for writing

2012-07-25 Thread mark . kica
Robert Miles  bellsouth.net> writes:

 


Hello ,

I had same problem . The reason was older cygwin1.dll .  Try to delete all of 
them (also in c:\Windows\System32\ directory) ,  and reinstall cygwin package 
with setup.exe  (cygwin : The Linux emulation engine)   




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



Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors

2012-07-25 Thread Aaron Schneider

On 25/07/2012 15:34, Thrall, Bryan wrote:

guide for more details about POSIX paths:
  http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Can't find C:\Program on PATH.


Could this be a problem with the Makefile? It looks like you're using
Cygwin make now, but the Makefile might be calling out Windows paths
directly...
--


Oh no I meant I removed the cygwin's make, the nokia's make is still 
present, never removed it in the end. The makefile is in perfect 
condition, even I tried it on a empty dir and the result is the same.


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



RE: Cygwin fresh install imports Windows PATH which includes spaces causing errors

2012-07-25 Thread Thrall, Bryan
Aaron Schneider wrote on 2012-07-24: 
> So anyway, the problem is caused when calling a binary present on
> windows path that can match a cygwin one, for example running a
> ./configure script.
>   After removing make the issue is happening again:
> $ make
> cygwin warning:
>MS-DOS style path detected: /usr/local/bin/C:\Program Preferred
POSIX
>equivalent is: /usr/local/bin/C:/Program CYGWIN environment
variable
>option "nodosfilewarning" turns off this warning. Consult the
user's
>guide for more details about POSIX paths:
>  http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> Can't find C:\Program on PATH.

Could this be a problem with the Makefile? It looks like you're using
Cygwin make now, but the Makefile might be calling out Windows paths
directly...
--
Bryan Thrall
Principal Software Engineer
FlightSafety International
bryan.thr...@flightsafety.com



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



[ANNOUNCEMENT] New Cygwin Package: python-3.2.3-1

2012-07-25 Thread Jason Tishler
New News:
=== 
I have released Cygwin Python 3.2.3-1.  The tarballs should be available
on a Cygwin mirror near you shortly.

This is the first, official Python 3 release in the Cygwin standard
distribution and consists of the following packages:

o idle3-3.2.3-1
o python3-3.2.3-1
o python3-debuginfo-3.2.3-1
o python3-doc-3.2.3-1
o python3-test-3.2.3-1
o python3-tkinter-3.2.3-1

Old News:
=== 
Python is an interpreted, interactive, object-oriented programming
language.  If interested, see the Python web site for more details:
   
http://www.python.org/ 

Please read the README file:

/usr/share/doc/Cygwin/python.README

since it covers requirements, installation, known issues, etc.

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

If you have questions or comments, please send them to the Cygwin
mailing list.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, please
use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

Jason

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



Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)

2012-07-25 Thread Corinna Vinschen
On Jul 24 18:24, Linda Walsh wrote:
> Corinna Vinschen wrote:
> >The only problem is that:  Even though I see how I could potentially
> >enforce the situation, I fail to reproduce it.  Can you explicitely show
> >an ls of the dir and an strace of an rmdir which succeeded to rename the
> >dir?
> >
> >I'll might send you a test DLL via PM at one point, if that's ok with
> >you.
> ---
> Sigh...
> [...]
>   150   67361 [main] rmdir 945084 unlink_nt: Trying to delete
> \??\C:\Users\law\Pictures\Avatars, isdir = 1
>  3470   70831 [main] rmdir 945084 unlink_nt: Sharing violation when
> opening \??\C:\Users\law\Pictures\Avatars
> 12291   83122 [main] rmdir 945084 try_to_bin:
> \??\C:\Users\law\Pictures\Avatars, return status 2
>   339   83461 [main] rmdir 945084 unlink_nt: 
> \??\C:\Users\law\Pictures\Avatars,
> return status = 0x0
>  9604   93065 [main] rmdir 945084 rmdir: 0 = rmdir(Pictures/Avatars)

Thanks, that was the interesting part.  This is exactly the situation I
failed to reproduce, but now I found out why.  Apparently newer Samba
versions perform a few parameter checks in certain file-related calls,
not performed by older Samba, nor by NTFS or FAT drivers.

Anyway, I have a fix for that.  You didn't explicitely allow to send
a test DLL, so I just applied the patch to CVS.  Please test the next
developer snapshot.


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Re: VB script error in Cygwin

2012-07-25 Thread Csaba Raduly
Hi Eric,

On Wed, Jul 25, 2012 at 9:25 AM, Eric Padriquez  wrote:
> Hi, we have a VB script that is working fine when run in command prompt.
> However we encounter when we run the VB script in Cygwin by using shell
> script to invoke VB.  We've tried to use cscript and cygstart but also
> encounter error.  Thanks!
> Error: attach_sendmail.vbs(52, 1) CDO.Configuration.1: The specified
> module could not be found.
> Code: 8007007E

As a first idea, check the differences in the path between the command
prompt and the Cygwin shell.
( %PATH% vs $PATH )

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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



VB script error in Cygwin

2012-07-25 Thread Eric Padriquez
Hi, we have a VB script that is working fine when run in command prompt.
However we encounter when we run the VB script in Cygwin by using shell
script to invoke VB.  We've tried to use cscript and cygstart but also
encounter error.  Thanks!
Error: attach_sendmail.vbs(52, 1) CDO.Configuration.1: The specified
module could not be found.
Code: 8007007E
Commands tried:
cscript.exe /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""
cygstart /attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}" 
"/email_msg.3592.mail" ""

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