Re: XFig problems [locale?]

2010-06-06 Thread Angelo Graziosi

Il 06/06/2010 2.55, Angelo Graziosi ha scritto:

It seems that I have discovered some problems with XFig. :(


Just for completeness, adding

xfig()
{
LANG=''\
/usr/bin/xfig -specialtext -latexfonts -startlatexFont default \
$@ 2/dev/null
}

to my .bash_wrappers file, solved the problems. :-)


Ciao,
Angelo.



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



getline and getdelim

2010-06-06 Thread Andy Koppe
The getline() and getdelim() functions have become part of the
standard with POSIX.1-2008. Time to drop the _GNU_SOURCE guard from
their declarations in sys/stdio.h?

http://www.opengroup.org/onlinepubs/9699919799/functions/getline.html

Andy

--
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: ssh error

2010-06-06 Thread Marc Girod


Gary .-4 wrote:
 
 (Or, IOW: I, at least, have seen your post, but I can't help you. Sorry.)
 
Neither am I able to provide a competent answer, or to reproduce your
problem (Vista client to Solaris sshd only).
On the surface, it seems to be a bash error to load a dll (?).
Did you run ./rebaseall; ./peflagsall after install?
[This advice is still valid, isn't it?]
Sorry if this is dumb|obvious|irrelevant...
Marc
-- 
View this message in context: 
http://old.nabble.com/ssh-error-tp28755140p28793155.html
Sent from the Cygwin list mailing list archive at Nabble.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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-06-06 Thread Dick
I've found the problem (but no solution yet), this problem is caused by Xen 
(google for: xen cygwin).
It might be a good idea to add it to the FAQ.


--
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: 1.7.5: problem running cygwin in Windows XP

2010-06-06 Thread Dave Korn
On 06/06/2010 06:04, Ramakishore Yelamanchilli wrote:
 I installed cygwin and getting the following error running any
 command. Please find the attached file with cygcheck output.

  You are infected by a fake-antivirus malware:

 AVAPP = 'C:\Program Files\PersonalAV'
 AVUNINST = 'C:\Program Files\Common Files\Uninstall\PersonalAV\Uninstall.lnk'

  You need to disinfect your system; I googled some instructions and found

http://www.geekpolice.net/malware-removal-guides-f12/how-to-remove-personalav-removal-guide-t11001.htm

  After your system is clean, maybe the cygwin installation will start
working, or maybe it might need re-installing through setup.exe; it's hard to
tell how much the malware interfered with your installation.

 DEFLOGDIR = 'C:\Documents and Settings\All Users\Application 
 Data\McAfee\DesktopProtection'

  That's a real anti-virus, but McAfee products have been known to interfere
with cygwin in the past, in a way very much like what you're seeing: fork
failure messages.  If cleaning the malware off your system doesn't fix
everything, the next thing to try would be disabling any advanced heuristic or
behaviour blocking features it has, or perhaps creating an exception for the
on-access file scanner to exclude anything in the cygwin directories.  See

http://cygwin.com/faq/faq.using.html#faq.using.bloda

for more details about that potential issue.

cheers,
  DaveK



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



One final time

2010-06-06 Thread Christopher Wingert
Just FYI, just to be clear how petty Mr. Faylor is:

I wrote my last email to the mailing list at 06/05/2010 23:16.

I unsubscribed to the cygwin@cygwin.com mailing list and received
success at 06/05/2010 23:26.

I received no further cygwin emails till 06/06/2010 01:26.

At that time, Mr Faylor added me back into the list specifically for
the purposes to get the last word in.

The message: http://www.cygwin.com/ml/cygwin/2010-06/msg00149.html

Again good luck with your project, but leave me alone!

Chris

--
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 Performance and stat()

2010-06-06 Thread Haojun Bao
Dave Korn dave.korn.cyg...@gmail.com writes:

 On 04/06/2010 18:33, Christopher Wingert wrote:
 [quit top-posting]
 
 Now you are my mom too?

   No, I am.  Now quit playing with all your new friends and
 dinner!

 cheers,
   Your Mom

OK. I'm a Chinese, and I'm laughing out loud with this one.

http://www.chinasmack.com/2009/stories/jia-junpeng-your-mom-wants-you-to-go-home-to-eat.html

--
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: One final time

2010-06-06 Thread Haojun Bao
Laugh out loud rolling in bed can not fall asleep.


cyf, you must be BOFH!

This guy wanted to send a private email to the leader, and now
complains because the leader drags him back into the mailing list...

On Mon, Jun 7, 2010 at 12:05 AM, Christopher Wingert
cwingert.cygwin.s...@gmail.com wrote:

 Just FYI, just to be clear how petty Mr. Faylor is:

 I wrote my last email to the mailing list at 06/05/2010 23:16.

 I unsubscribed to the cygwin@cygwin.com mailing list and received
 success at 06/05/2010 23:26.

 I received no further cygwin emails till 06/06/2010 01:26.

 At that time, Mr Faylor added me back into the list specifically for
 the purposes to get the last word in.

 The message: http://www.cygwin.com/ml/cygwin/2010-06/msg00149.html

 Again good luck with your project, but leave me alone!

 Chris

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


--
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: One final time

2010-06-06 Thread Christopher Faylor
On Mon, Jun 07, 2010 at 02:03:00AM +0800, Haojun Bao wrote:
Laugh out loud rolling in bed can not fall asleep.

cyf, you must be BOFH!

This guy wanted to send a private email to the leader, and now
complains because the leader drags him back into the mailing list...

For the record, I did not add anyone to the list.  I did use a
miraculous new email invention called bcc, though.

I've avoided bcc'ing anyone this time since I don't want to cause any
further confusion; although I do see that the OP has apparently
resubscribed under a different address.

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: Cygwin Performance and stat()

2010-06-06 Thread Matthias Andree

Am 06.06.2010, 01:16 Uhr, schrieb Christopher Wingert:


I do think out loud with my team.  You are not on it.


Agreed!  You would rather spend your time ridiculing any possible  
solution.


If only there had been a solution, rather than a loose collection of names  
(I wouldn't even dare call that ideas) dropped where the Cygwin  
maintainers - likely based on prior experience - couldn't see how it could  
have provided all mandatory fields for a POSIX compliant (and no less!)  
f?stat().



This is what lead to my initial reluctance to do any patch for Cygwin
software.


sarcasm
A nice way to express that your patch would not stand scrutiny against  
POSIX anyways.

/sarcasm

But seriously, Christopher Faylor has been trying to get to a technical  
discussion, where you avoided his arguments and produced new names of way  
to solve things again, so let me say this:


If you think your post makes you a member of some core team, then you're  
expecting too much. And this isn't specific to Cygwin.  You need to build  
trust, and that is not achieved by bitching at people and their products,  
but by answering technical concerns.


Meaning that: even if I'm only a Cygwin user, and I'm sometimes  
disappointed by how slow it is, too, I'm sort of convinced there isn't a  
cheaper way to get all the required information.



And I for one can configure my virus scanner to scan on write or  
execution, rather than on every read.  I can also configure which types of  
files it's going to scan.  For starters, you might try that...


--
Matthias Andree

--
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 Performance and stat()

2010-06-06 Thread Christopher Faylor
On Mon, Jun 07, 2010 at 12:12:36AM +0200, Matthias Andree wrote:
Meaning that: even if I'm only a Cygwin user, and I'm sometimes  
disappointed by how slow it is, too, I'm sort of convinced there isn't a  
cheaper way to get all the required information.

I'm disappointed in Cygwin's slowness too.  Corinna and I have spent
many hours pouring over MSDN, internals books, and internals web sites.
I've spent time looking at ReactOS sources trying to see if they would
provide any insight into how Windows does things.

It's possible, maybe even likely, that there are things that could be
done to speed up Cygwin but I don't think it's likely that they include
using simple Windows API stuff like the suggested GetFileAttributes() or
limiting Cygwin's POSIXness.  And, if speed ups do exist, they
definitely do not require a private audience with me or Corinna.

The best place to discuss improvements is actually the cygwin-developers
mailing list.  And, as I said, if you do have a patch to propose, it
would pay to start early on getting the paperwork done.

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: cygwin 1.7.5, perl *** fatal error TP_NUM_W_BUFS too smal

2010-06-06 Thread Reini Urban

Nasser M. Abbasi schrieb:

On 6/4/2010 2:44 AM, Nasser M. Abbasi wrote:

On 6/4/2010 1:36 AM, Corinna Vinschen wrote:


Error: Cannot read 'img2.png': No such file or directory
Converting image #1
0 [main] perl 3400 C:\cygwin\bin\perl.exe: *** fatal error -
Internal error: TP_NUM_W_BUFS too small.





This looks like an internal error in Cygwin which runs out of TLS
filename buffers. For a start, could you please strace the perl
process? This may help to figure out the function in which the problem
occurs.


Corinna







$ export PERLDB_OPTS=NonStop frame=2
make test



I got a little more useful output using this:

$export PERLDB_OPTS=NonStop AutoTrace frame=2
$ make test  out.txt


PERLDB_OPTS is only for the perl debugger, which you don't run I suppose.
Corinna wanted a strace for perl, around the section where the fork 
fails. It must not be the whole 2GB.


To build a debugging perl you'd need the source package and run
./build --debug
But this won't be needed I suppose, as it's a cygwin error around fork.


Looking at out.txt, the output around the crash is below. It seems to
come after exec($cmd). It looks like it can't spawn a new process.

btw, this is windows 7. new PC, 8 GM ram.


UAC already tried to disable?


If you need the complete file out.txt, I can send it to you directly.

thanks
--Nasser

=

262: my ($self,$cmd,$in,$out,$err) = @_;
263: carp qq{Debug (syswait): Running $cmd\n} if($Verbose);
265: my $status;
266: my $child_pid;
267: if ($child_pid = fork) {


You can try to add a small sleep here after line 267, the fork.
   sleep(0.2);


268: $status = waitpid($child_pid, 0);
# Forked, but do not know how to create a new TTY. #
Since two debuggers fight for the same TTY, input is severely entangled.

I know how to switch the output to a different window in xterms, OS/2
consoles, and Mac OS X Terminal.app only. For a manual switch, put the name
of the created TTY in $DB::fork_TTY, or define a function
DB::get_fork_TTY() returning this.

On UNIX-like systems one can get the name of a TTY for the given window
by typing tty, and disconnect the shell from TTY by sleep 100.

274: unless(exec($cmd)) {
0 [main] perl 4524 C:\cygwin\bin\perl.exe: *** fatal error - Internal
error: TP_NUM_W_BUFS too small.
269: carp Debug (syswait): Finished child process: #$child_pid\n
270: if($Verbose);
271: $child_pid = 0;
272: return($?);
exited L2hos::Unix::syswait

Error while converting image
4239: if (! -r ${PREFIX}$img) {
4240: write_warnings(\nFailed to convert image $psname.ps)


--
Problem reports: http://cygwin.com/problems.html


We haven't got this report, BTW.

Also, where do have your latex2html from?

--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
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 1.7.5, perl *** fatal error TP_NUM_W_BUFS too smal

2010-06-06 Thread Nasser M. Abbasi

On 6/6/2010 8:32 PM, Reini Urban wrote:


Nasser M. Abbasi schrieb:

On 6/4/2010 2:44 AM, Nasser M. Abbasi wrote:

On 6/4/2010 1:36 AM, Corinna Vinschen wrote:


Error: Cannot read 'img2.png': No such file or directory
Converting image #1
0 [main] perl 3400 C:\cygwin\bin\perl.exe: *** fatal error -
Internal error: TP_NUM_W_BUFS too small.





This looks like an internal error in Cygwin which runs out of TLS
filename buffers. For a start, could you please strace the perl
process? This may help to figure out the function in which the problem
occurs.


Corinna







$ export PERLDB_OPTS=NonStop frame=2
make test



I got a little more useful output using this:

$export PERLDB_OPTS=NonStop AutoTrace frame=2
$ make test  out.txt






PERLDB_OPTS is only for the perl debugger, which you don't run I suppose.
Corinna wanted a strace for perl, around the section where the fork
fails. It must not be the whole 2GB.

To build a debugging perl you'd need the source package and run
./build --debug
But this won't be needed I suppose, as it's a cygwin error around fork.



Ok, thanks for letting me know.


Looking at out.txt, the output around the crash is below. It seems to
come after exec($cmd). It looks like it can't spawn a new process.

btw, this is windows 7. new PC, 8 GM ram.


UAC already tried to disable?



do not know. If this is something I can check on my end or something, 
pls let me know. This is a new PC, and I did not change any UAC settings 
on it.  All default setting on windows 7.



If you need the complete file out.txt, I can send it to you directly.

thanks
--Nasser

=

262: my ($self,$cmd,$in,$out,$err) = @_;
263: carp qq{Debug (syswait): Running $cmd\n} if($Verbose);
265: my $status;
266: my $child_pid;
267: if ($child_pid = fork) {






You can try to add a small sleep here after line 267, the fork.
 sleep(0.2);



OK, Will do that, I need to muck around the perl code and find where to 
do this. will let you know if it changes anything.




268: $status = waitpid($child_pid, 0);
# Forked, but do not know how to create a new TTY. #
Since two debuggers fight for the same TTY, input is severely entangled.

I know how to switch the output to a different window in xterms, OS/2
consoles, and Mac OS X Terminal.app only. For a manual switch, put the name
of the created TTY in $DB::fork_TTY, or define a function
DB::get_fork_TTY() returning this.

On UNIX-like systems one can get the name of a TTY for the given window
by typing tty, and disconnect the shell from TTY by sleep 100.

274: unless(exec($cmd)) {
0 [main] perl 4524 C:\cygwin\bin\perl.exe: *** fatal error - Internal
error: TP_NUM_W_BUFS too small.
269: carp Debug (syswait): Finished child process: #$child_pid\n
270: if($Verbose);
271: $child_pid = 0;
272: return($?);
exited L2hos::Unix::syswait

Error while converting image
4239: if (! -r ${PREFIX}$img) {
4240:write_warnings(\nFailed to convert image $psname.ps)


--
Problem reports: http://cygwin.com/problems.html


We haven't got this report, BTW.



OK, will make an official report.



Also, where do have your latex2html from?



I have documented the latex2html installation on my page below, so I 
suppose anyone can reproduce what I did easily (if they have windows 7, 
64 bit OS, which I do not know if it is releated or not). Please see 
below for the steps:


http://12000.org/my_notes/l2hwin/index.htm


--Nasser

--
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: Can't install Fontforge; No such file or directory.

2010-06-06 Thread Larry Hall (Cygwin)

On 6/5/2010 7:36 PM, Justin wrote:

Hello all,

I installed Cygwin and downloaded the Fontforge
.bz2 package and placed it in my
C:\cygwin\home\username  directory as
Fontforge's instructions tell me to.

When I run Cygwin and enter:

$ bunzip2 fontforge_cygwin-20090914.tar.bz2

Cygwin responds:

bunzip2: Can't open input file
fontforge_cygwin-20090914.tar.bz2: No such file or
directory.


Works fine for me on a bz2 file I had locally.  Perhaps the file you
downloaded is corrupt?

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

_

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



Re: bash exits when test or [ ] is used in Windows Server 2008

2010-06-06 Thread Larry Hall (Cygwin)

On 6/6/2010 9:50 AM, Dick wrote:

I've found the problem (but no solution yet), this problem is caused by Xen
(google for: xen cygwin).
It might be a good idea to add it to the FAQ.


There have been some reports in the past about xen causing problems for
Cygwin but they haven't risen to the level of frequent (as in FAQ ;-) ).
I'm not sure why this is an issue with xen.  It's definitely something to
report to them if they aren't aware of the issue.

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

_

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



Re: Can't install Fontforge; No such file or directory.

2010-06-06 Thread Gregg Levine
On Mon, Jun 7, 2010 at 12:31 AM, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com wrote:
 On 6/5/2010 7:36 PM, Justin wrote:

 Hello all,

 I installed Cygwin and downloaded the Fontforge
 .bz2 package and placed it in my
 C:\cygwin\home\username  directory as
 Fontforge's instructions tell me to.

 When I run Cygwin and enter:

 $ bunzip2 fontforge_cygwin-20090914.tar.bz2

 Cygwin responds:

 bunzip2: Can't open input file
 fontforge_cygwin-20090914.tar.bz2: No such file or
 directory.

 Works fine for me on a bz2 file I had locally.  Perhaps the file you
 downloaded is corrupt?

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

 _

 A: Yes.

 Q: Are you sure?

 A: Because it reverses the logical flow of conversation.

 Q: Why is top posting annoying in email?

Hello!
Justin for my peace of mind, please enter at a prompt #bzip2 --help
or #bzip2 --version. And then report back what that says. (What's
inside the quotes of course, the pound mark was used to illustrate a
prompt mark.)

-
Gregg C Levine gregg.drw...@gmail.com
This signature fought the Time Wars, time and again.

--
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 1.7.5, perl *** fatal error TP_NUM_W_BUFS too smal

2010-06-06 Thread Nasser M. Abbasi

On 6/6/2010 8:32 PM, Reini Urban wrote:


=

262: my ($self,$cmd,$in,$out,$err) = @_;
263: carp qq{Debug (syswait): Running $cmd\n} if($Verbose);
265: my $status;
266: my $child_pid;
267: if ($child_pid = fork) {


You can try to add a small sleep here after line 267, the fork.
 sleep(0.2);


268: $status = waitpid($child_pid, 0);
# Forked, but do not know how to create a new TTY. #


Hello;

I added the sleep above, made no difference: (also tried with sleep(.5), 
same, the error still there:




  entering L2hos::Unix::syswait
 262: my ($self,$cmd,$in,$out,$err) = @_;
 263: carp qq{Debug (syswait): Running $cmd\n} if($Verbose);
 265: my $status;
 266: my $child_pid;
 267: if ($child_pid = fork) {
 268:   sleep(0.2);
 269:   $status = waitpid($child_pid, 0);
# Forked, but do not know how to create a new TTY. #
  Since two debuggers fight for the same TTY, input is severely entangled.

  I know how to switch the output to a different window in xterms, OS/2
  consoles, and Mac OS X Terminal.app only.  For a manual switch, put 
the name

  of the created TTY in $DB::fork_TTY, or define a function
  DB::get_fork_TTY() returning this.

  On UNIX-like systems one can get the name of a TTY for the given window
  by typing tty, and disconnect the shell from TTY by sleep 100.

 275:   unless(exec($cmd)) {
  0 [main] perl 4796 C:\cygwin\bin\perl.exe: *** fatal error - 
Internal error: TP_NUM_W_BUFS too small.
 270:   carp Debug (syswait): Finished child process: 
#$child_pid\n

 271: if($Verbose);
 272:   $child_pid = 0;
 273:   return($?);
exited L2hos::Unix::syswait

==

--Nasser

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