Re: make $(wildcard) not working with samba shares

2006-05-05 Thread Ken Cecka
On Fri, 21 Apr 2006, Eric Blake wrote:

>
>> I'm having a problem with cygwin make and the $(wildcard) function.  I've
>> attached a Makefile which demonstrates the problem.  The gnu make
>> documentation indicates that the wildcard function should only return
files
>> or directories that exist, but in certain circumstances it is returning
>> paths that do not exist.  This appears to be a bug introduced in the base
>> cygwin package.  Specifically,
>>
>> using base/cygwin 1.5.19-4:
>> - fails when building from linux samba share (version 3.0.20)
>> - fails when building from solaris samba share (version 2.2.8a)
>> - succeeds when building from local hard drive
>
> There are known issues with 1.5.19 and older samba servers that had
> buggy file id numbers.  Try the latest snapshot, and see if the problem
> has been fixed due to the samba file id workarounds added since then:
> http://cygwin.com/faq/faq-nochunks.html#faq.setup.snapshots
>
>

Sorry I'm so late in responding to this - got distracted on some other
issues.  I just tried updating to the 20060427 snapshot of cygwin1.dll, and
I'm still seeing the same failure:

  $ uname -a
  CYGWIN_NT-5.1 R63324-11 1.5.20s(0.155/4/2) 20060427 13:16:59 i686 Cygwin

  $ make
  echo "root file1" > file1.txt
  mkdir -p sub1
  echo "sub1 file2" > sub1/file2.txt
  echo "sub1 file3" > sub1/file3.txt
  mkdir -p sub2
  echo "sub2 file4" > sub2/file4.txt
  echo "sub2 file5" > sub2/file5.txt
  make print_files
  make[1]: Entering directory `/cygdrive/g/projects/cyg_smb_make_bug'
  make[1]: *** No rule to make target `sub1/file3.txt/file1.txt', needed by
`print_files'.  Stop.
  make[1]: Leaving directory `/cygdrive/g/projects/cyg_smb_make_bug'
  make: *** [test] Error 2

  $

Any other suggestions?  For reference, the sample Makefile is attached here:
http://www.cygwin.com/ml/cygwin/2006-04/msg00592.html

Ken


--
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: C exe redirection blank file

2006-05-05 Thread René Berber
[EMAIL PROTECTED] wrote:

> Thanks for your reply,
> 
>>> * Suddenly I could no longer redirect the output of this program, and the 
>>> two
>>> files it created were now blank.
>> [snip]
> 
>> Did you forget to close the files 
> Thanks for that, that's fixed the writing of the files! Dunno why that's
> happened only on this machine. 

The normal exit does flush and close all open file descriptors, so what you are
seeing is odd.

Now, the normal exit is part of the "run time" (crt0 or a similar name, that
calls main and cleans up after) and that part is statically linked so, unless it
depends on functionality on a Windows dll, it should not vary between machines.

I don't know if those basic libraries get Windows patches (updates in
Microsoft-talk)... could be worth trying.

> Is there a limit to the number of files on XP - like the old config.sys
> option files=99?

I don't know.

>> and/or are exiting the program in a non-standard way?
> I don't think so. With issues - can't open port - I exit with a "return -1"
> otherwise I just fall out of the bottom of the main(). 
> 
> chkdsk fixed errors this time, but I still have the "problems with the file
> system" error (maybe a red herring), and ...
> 
> I still can't redirect output. Any advice on this v gratefully received.

That's a weird one, I have no idea what is going on (I was thinking about
anti-virus or similar software that prevent creating files, but it doesn't look
quite like that).
-- 
René Berber


--
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: C exe redirection blank file

2006-05-05 Thread [EMAIL PROTECTED]
Thanks for your reply,

> > * Suddenly I could no longer redirect the output of this program, and the 
> > two
> > files it created were now blank.
> [snip]

> Did you forget to close the files 
Thanks for that, that's fixed the writing of the files! Dunno why that's
happened only on this machine. 

Is there a limit to the number of files on XP - like the old config.sys
option files=99?

> and/or are exiting the program in a non-standard way?
I don't think so. With issues - can't open port - I exit with a "return -1"
otherwise I just fall out of the bottom of the main(). 

chkdsk fixed errors this time, but I still have the "problems with the file
system" error (maybe a red herring), and ...

I still can't redirect output. Any advice on this v gratefully received.

Cheers
Andy

-- 
  _ __   _
//_  /  /| /_  /   /
 __//__ /  / |/__ /  /...Your friendly computer professionals
/ [EMAIL PROTECTED]

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



fork: child -1 - CreateProcessA failed, errno 11

2006-05-05 Thread Torfinn Ottesen

OS : Windows XP Pro SP1
cygwin: fresh as of february 2006

I am trying to run a lot of numerical analysis in loop using "bash",
principally as follows:

for case in 1 2 3 ... 132
do
   prepare input-$case
   analyse input-$case
   save results-$case
done

I find that my loops are OK until after about 80 cases, then I start
receive errors like
identified below. This is repeatable (but it take me 3 hours to reach
case 80), as
additional information I have looked at the "Task Manager" and it seems like
each loop increases my memory usage by about 3.2 MB.

I am aware of the following information:
1.  http://www.cygwin.com/ml/cygwin/2006-04/msg00390.html
2.  http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html
 * Subject: workaround for fork problems?
 Corinna and I have been looking into the reported problems with fork
 ("file not found", "died waiting for longjmp", and others) for a while
 now but have been unable to come up with a cygwin-specific solution.

 Microsoft, on the other hand, seems to have a fix:
3.  http://support.microsoft.com/default.aspx?scid=kb;en-us;824422
 "When many processes run on your computer (for example, more
than 50), behaviors
  that were not expected may occur."

  I recognise the following symptons:
  - When you try to start Windows Task Manager by pressing CTRL+ALT+DEL,
 Windows Task Manager does not start...
  - The Start menu in the task bar may not open (does not).
  - any process that uses the CreateProcess Windows API may have problems."

Can someone diagnose the below error messages? Is there anything I can do
to get more information regarding the errors and their cause  (I have strace but
do not know what to do with it). Does anyone have any simplifying ideas so that
I don't have to wait three hours to the errors. After reboot which
appears to be only way
to continue work everything seems OK.

$ cat error-messages
sh: /usr/bin/ls: Resource temporarily unavailable
bash: /cygdrive/c/WINDOWS/TEMP/servant61444.bash: No such file or directory
 3 [main] sh 57644 fork: child -1 - CreateProcessA failed, errno 11
sh: fork: Resource temporarily unavailable
 3 [main] bash 62724 fork: child -1 - CreateProcessA failed, errno 11
/cygdrive/c/pcdrom/CalcTools/cygwinbin/expandtemplate: fork: Resource
temporarily unavailable
/cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: line 77:
/usr/bin/basename: Resource temporarily unavailable
 2 [main] bash 62616 fork: child -1 - CreateProcessA failed, errno 11
/cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: fork: Resource
temporarily unavailable
  6936 [main] bash 62616 fork: child -1 - CreateProcessA failed, errno 11
/cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: fork: Resource
temporarily unavailable
/cygdrive/c/pcdrom/CalcTools/cygwinbin/expandtemplate: line 47: 62336
Broken pipe cat  

Re: ssmtp apparently generating random email address?

2006-05-05 Thread Jim Drash

ssmtp cannot generate some random e-mail addresses.  It does not run
as a daemon.
I would venture to guess it is some mailing list you belong to that
has the problem.  It is not ssmtp



On 5/5/06, zzapper <[EMAIL PROTECTED]> wrote:


I run various jobs from cron and then use :-

/usr/sbin/ssmtp
to mail the results back to me.

Every few days I get a mail back from some distant mail server compaining
the destination email address does not exist. The email address however
is one I don't recognise at all, the email address has however a valid
domain otherwise they wouldn't bounce back.

I would guess that I am sometimes sending a broken mail header which
"picks" up some default random. But can anyone suggest where I start
looking/ what is going wrong?


--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


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




--
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: terminal escape codes

2006-05-05 Thread Jeff Lange

While that does work, It unfortunately isn't an acceptable solution
for me.  I really need to be running this from a plain text console.

Any other ideas?

Thanks.
-Jeff


On 5/5/06, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:

Jeff Lange wrote:
> Hi,
>  I have a program that will connect to another host via telnet and
> work like a terminal emulator.  This works fine in Linux, but under
> cygwin, when the host sends out the vt220 command (B  cygwin
> apparently doesn't know how to handle this escape code, and it ends up
> displaying the B on the screen,
>
> In Linux if I type "echo ^[(Btest" at a command prompt it comes back
> as "test", but if I do the exact same thing at a cygwin prompt it
> comes back as "Btest"
>
> Does anyone know a simple way around this?


Run rxvt (or xterm if you're running X) instead?


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




--
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: terminal escape codes

2006-05-05 Thread Larry Hall (Cygwin)

Jeff Lange wrote:

Hi,
 I have a program that will connect to another host via telnet and
work like a terminal emulator.  This works fine in Linux, but under
cygwin, when the host sends out the vt220 command (B  cygwin
apparently doesn't know how to handle this escape code, and it ends up
displaying the B on the screen,

In Linux if I type "echo ^[(Btest" at a command prompt it comes back
as "test", but if I do the exact same thing at a cygwin prompt it
comes back as "Btest"

Does anyone know a simple way around this?  



Run rxvt (or xterm if you're running X) instead?


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



terminal escape codes

2006-05-05 Thread Jeff Lange

Hi,
 I have a program that will connect to another host via telnet and
work like a terminal emulator.  This works fine in Linux, but under
cygwin, when the host sends out the vt220 command (B  cygwin
apparently doesn't know how to handle this escape code, and it ends up
displaying the B on the screen,

In Linux if I type "echo ^[(Btest" at a command prompt it comes back
as "test", but if I do the exact same thing at a cygwin prompt it
comes back as "Btest"

Does anyone know a simple way around this?  like modifying /etc/termcap?

Thanks in advance.

-Jeff

--
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: C exe redirection blank file

2006-05-05 Thread René Berber
andyburgess wrote:

> I have been developing a system with the wonderful Cygwin and have
> encountered a problem today. A program I was developing on a development PC I
> copied over to the 'live' box (through network). This program produces two
> fopen'ed files written with fprintf.
> 
> Summary of issue:
> * Suddenly I could no longer redirect the output of this program, and the two
> files it created were now blank.
[snip]

Did you forget to close the files and/or are exiting the program in a
non-standard way?
-- 
René Berber


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



C exe redirection blank file

2006-05-05 Thread andyburgess
Hi there,

I have been developing a system with the wonderful Cygwin and have
encountered a problem today. A program I was developing on a development PC I
copied over to the 'live' box (through network). This program produces two
fopen'ed files written with fprintf.

Summary of issue:
* Suddenly I could no longer redirect the output of this program, and the two
files it created were now blank.

Environment:
* The program also talks to the serial port at /dev/ttyS0, this aspect of the
program remained steadfastly working! It also reads an existing file to get
the port number, so is reading this OK too.

* It could have been a program change I'd made - but I hadn't changed any of
the file processing, and adding a couple of test printf statements told me it
should be writing to the files! 

* I can successfully redirect output from other programs I've written (and
copied in the same way). 

* I ran a PC chkdsk and it told me that "Windows has found problems with the
file system". No kidding!

* I've run multiple "chkdsk /f"s (and reboots), but cannot find any logs to
tell me what happened (if anything).

* I've tried changing the chmod's for programs and data files to no avail,
and even compiling the program on the live machine - still the same results.

* It also looked at one point as if it has written the data into incorrect
filenames in the old-program-of-the-same-name format. Huh? A broken Windows
index/program?

* I've tried updating my bash etc and compiling it with a different output
name - same issue.

* I've looked on the internet and Cygwin archives for help, but can't see
anything like I've got!
 
Help?:
Can anyone tell me if it's a Windows problem, a Cygwin problem, a virus, or a
user/programmer problem? I can clarify with any coding snippets if required,
if it's something up with my code. 

Should I get rid of the Windows altogether and go to full-on to Unix/Linux?
I'm getting desperate! It's probably a silly question, but I've never set up
a Unix/Linux system myself, and am "comfortable" with Windoze and Cygwin.

Hoping for some answers.

Cheers
Andy Burgess

-- 
 __  __  __  __  __ ___   _
|__||__)/ __/  \|\ ||_   |   /
|  ||  \\__/\__/| \||__  |  /...Internet access for all Acorn RISC machines
___/ [EMAIL PROTECTED]

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



ssmtp apparently generating random email address?

2006-05-05 Thread zzapper

I run various jobs from cron and then use :-

/usr/sbin/ssmtp 
to mail the results back to me.

Every few days I get a mail back from some distant mail server compaining 
the destination email address does not exist. The email address however 
is one I don't recognise at all, the email address has however a valid 
domain otherwise they wouldn't bounce back.

I would guess that I am sometimes sending a broken mail header which 
"picks" up some default random. But can anyone suggest where I start 
looking/ what is going wrong?


-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


--
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: SVN_EDITOR

2006-05-05 Thread Warren Young

Harmin Rueda wrote:


svn: None of the environments variables SVN_EDITOR, VISUAL or EDITOR is 
set, and no 'editor-cmd' run-time configuration option was found.


How can I solve this problem?


How about you set one of these environment variables: SVN_EDITOR, 
VISUAL, or EDITOR?


This is not a Cygwin problem.  RTFM: http://svnbook.red-bean.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/



Re: SVN_EDITOR

2006-05-05 Thread mwoehlke

Harmin Rueda wrote:

Hi:

I am executing svn commands from cygwin and I get this messages:

svn: None of the environments variables SVN_EDITOR, VISUAL or EDITOR is 
set, and no 'editor-cmd' run-time configuration option was found.


How can I solve this problem?


(I'm assuming you're using bash and not [t]csh, otherwise someone that 
knows csh will have to help...)


What does 'export' say? Are SVN_EDITOR, VISUAL, or EDITOR exported, or 
even set?


--
Matthew
This line intentionally left blank.


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



SVN_EDITOR

2006-05-05 Thread Harmin Rueda

Hi:

I am executing svn commands from cygwin and I get this messages:

svn: None of the environments variables SVN_EDITOR, VISUAL or EDITOR is 
set, and no 'editor-cmd' run-time configuration option was found.


How can I solve this problem?

Thanks

Harmin


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