Re: Emacs-23.0.60.snapshot (20080315) Cygwin binaries

2008-03-18 Thread Lewis Hyatt
Angelo Graziosi wrote: Non-official Cygwin binaries can be found here http://www.webalice.it/angelo.graziosi/cygwin/emacs/Emacs.html To install see the emacs-23.0.60.snapshot.README file. Thanks! This is great. Will this make it to the official repositories soon? -Lewis -- Unsubscri

Re: Problem with win32 GUI application using console

2007-11-25 Thread Lewis Hyatt
It works fine for me. Slava Pestov wrote: > What cygwin version and what gcc version are you using? Also can you > send me the compiled a.exe? I am using cygwin 1.5.24-2, and the most up-to-date gcc, which is 3.4.4-3 for the cygwin version, 20040810-1 for the MinGW version, which is what is a

Re: Problem with win32 GUI application using console

2007-11-23 Thread Lewis Hyatt
Slava Pestov wrote: I narrowed the problem down to a short test case. Here goes: It works fine for me. -Lewis -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ:

Re: Reliable old script loses data on new Cygwin installation

2007-11-14 Thread Lewis Hyatt
These machines have an anti-virus program, but the same one I have been using for the past two or three years. The filenames either have no extension, or ".txt". That's most likely the problem anyway, what happens if you turn it off? -Lewis -- Unsubscribe info: http://cygwin.com/ml/#u

Re: can't read sequential files

2007-11-01 Thread Lewis Hyatt
Hang on, I misread you, my eye skipped over the bit where you suggest that adding the check somehow makes the preceding fopen call succeed instead of fail. However I still don't think that's what the OP was saying, unless the subject line of this thread is terribly wrong, I think you just read

Re: can't read sequential files

2007-11-01 Thread Lewis Hyatt
Dave Korn wrote: On 01 November 2007 06:43, zirtik wrote: After adding the line: if (fp==NULL) { printf("error, NULL pointer!\n"); return(1); } and then rebuilding the code, everything worked. But it's strange that if I delete that code segment a

Re: BUG REPORT: Cygwin, g++, -O2, static member function, std::string

2007-10-24 Thread Lewis Hyatt
Can you post the bug{1,2}.cpp files? I would guess that its not a bug, but rather you are relying on an undefined order of static initialization that happens to do what you want sometimes but not others. It's impossible to say for sure without seeing the source files, though. Oh I see, you di

Re: BUG REPORT: Cygwin, g++, -O2, static member function, std::string

2007-10-24 Thread Lewis Hyatt
Brad Bell wrote: I seem to have run across a bug using g++ with -O2 under Cygwin. It has to do with using static class member functions and standard string. The bash shell script command ./bug.sh creates three files, compiles, links, and runs the result. I have run this command on severa

Re: 1.5.24-2: zero-length write() and ioctl() on fd -1 cause crashes

2007-10-04 Thread Lewis Hyatt
i can remove the method call, too. this also crashes: extern "C" JNIEXPORT void JNICALL Java_terminator_terminal_PtyProcess_sendResizeNotification(JNIEnv* env, jobject instance, jobject a0, jobject a1) { try { throw std::exception(); } catch (const std::exception& ex) { } }

Re: 1.5.24-2: zero-length write() and ioctl() on fd -1 cause crashes

2007-10-04 Thread Lewis Hyatt
$ cat ex.cpp #include int main() { try { throw new std::exception(); } catch (const std::exception& ex) { return 1; } return 0; } You are throwing a pointer and trying to catch a reference, so the exception never gets caught at all, which causes the program to abort. You should should

Re: Huge memory leak, probably related to making new processes

2007-10-02 Thread Lewis Hyatt
> Anyway, can I ask you to do this yourself - just do the last test: > > COUNTER=1 > while [ $COUNTER -lt 123456 ]; do (echo $COUNTER); let COUNTER=$COUNTER+1; > done > > and wait a little (couple of minutes). If necessary, repeat it until your > memory drops to 10-20 MB range and your HDD shou

Re: Huge memory leak, probably related to making new processes

2007-10-02 Thread Lewis Hyatt
wimxa wrote: Try executing: find -exec echo {} \; Simple command. This one, however, leaks at about 5kB/s. I tried the following: How do you know it is leaking memory? If you are looking at Windows Task Manager or some similar program, then you're probably just being misled. The OS will aut

Re: gcc does not know about "new" and "delete"

2007-09-21 Thread Lewis Hyatt
This is what happens when I try to compile this program under cygwin on my Windows XP machine: % gcc newtest.cpp /tmp/ccReoXoA.o:newtest.cpp:(.text+0x32): undefined reference to `operator new(unsigned int)' /tmp/ccReoXoA.o:newtest.cpp:(.text+0x5e): undefined reference to `operator delete(void*

Re: math packages

2007-09-17 Thread Lewis Hyatt
Cole Radcliffe wrote: Is there any math package that I can install for free on cygwin that will allow me to do symbolic algebra and symbolically solve DEs and symbolically integrate better than my TI-89? Apparently Octave only produces numeric solutions. mathomatic might do what you need. -Le

Re: Whither /dev/null ?

2007-09-14 Thread Lewis Hyatt
I'm wondering what is the best way to deal with this? I'd like the scripts to work straight out of the box and not have to make the users create their own /dev and creating it for them would be tedious because every script would have to check for this... Any advice? Puzzled about nothing. J D

Re: drag and drop to cygwin scripts ?

2007-09-14 Thread Lewis Hyatt
Keith Chiem wrote: Is it possible to write a script in cygwin, say bash or perl, create a shortcut to it in windows, and drag and drop a path or a url to it and have the script run and take it as an argument somehow ? --k If you drag and drop files onto a batch script, Windows will run th

Re: setup.exe suggestion + patch

2007-09-13 Thread Lewis Hyatt
y pretty quick and dirty. It's clear how to improve it, but it works fine the way it is and re-uses the already-debugged packagemeta::set_action() code. -Lewis /* * Copyright (c) 2002 Lewis Hyatt. * * This program is free software; you can redistribute it and/or modify * it unde

Re: setup.exe suggestion + patch

2007-09-13 Thread Lewis Hyatt
Lewis Hyatt wrote: The simplest way I could think of to correct this would be to change the behavior so that when you click on a Category or a Package, instead of simply cycling through, you get a little popup menu that asks you what you want to do instead. This way, you can go directly to

setup.exe suggestion + patch

2007-09-06 Thread Lewis Hyatt
Hello- Firstly, thanks to everyone who has worked on setup.exe, it's really a very convenient program! There is just one thing that has always bothered me, which is that you have to click repeatedly on the package or category to cycle through all the available actions to find the one you want

Re: cygwin and windows API

2007-08-09 Thread Lewis Hyatt
Steven Woody wrote: hi, can i directly call Windows APIs ( such as creating a window, reading from a file ) from a cygwin program written in C ? if the answer is yes, i want to know how i should do that, thanks! Just #include and write whatever windows program you want, it will compile fi

Re: How to scroll up beyond the text in the cygwin window?

2007-07-30 Thread Lewis Hyatt
mcbenus wrote: Hi Cygwin users, I have a very basic question: Sometimes when I am running something with cygwin the output text is so long, that even if I scroll up I cannot see all the text. Is there a way to change it so that i could scroll more "history" back? Or alternatively, can I type som

Re: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Lewis Hyatt
Andrew DeFaria wrote: Tim Prince wrote: Generally speaking, putting cygwin stuff in your Windows environment should be avoided. I do that all the time. In fact I wouldn't live without it. There's no problems with doing this. Problems can arise, and when they do, they are particularly hard to

Re: Unix tar file with colons in archived file names

2007-07-19 Thread Lewis Hyatt
When the cygwin tar recognizes this, due to Windows restrictions, the output file is not properly extracted. I Googled around and found options for --force-file and http://cygwin.com/ml/cygwin/2001-01/msg01536.html this link , but I still can't get this to work properly. I am able to get the f

Re: [ANNOUNCEMENT] New package: screen-4.0.3-1

2007-07-11 Thread Lewis Hyatt
Andrew Schulman wrote: The package 'screen' is now available in the Cygwin distribution. This is great, thanks a lot! -Lewis -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs

Re: Slow directory listing

2007-07-05 Thread Lewis Hyatt
Could be something else interfering. Known culprits include: Sonic Solutions burning software containing DLA component Norton/MacAffee/Symantec antivirus or antispyware Logitech webcam software with "Logitech process monitor" service Kerio, Agnitum or ZoneAlarm Personal Firewall Iolo System M

Re: Help with strange compiler error linking to GSL

2007-07-05 Thread Lewis Hyatt
Lee Rhodes wrote: Brian, Thanks. Here is the output from Eclipse: make -k all Building file: ../main.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp" Finished building: ../main.cpp Building target: TestGSL.e

Re: Help with strange compiler error linking to GSL

2007-07-05 Thread Lewis Hyatt
Lee Rhodes wrote: Hello, I have installed the GSL libs via setup and am trying to get the following example program to work: #include #include int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.18e\n", x, y); return 0;

Re: rsync windows hang

2007-06-25 Thread Lewis Hyatt
All though this may not be the case here but rsync over ssh is simply unusable under cygwin for the most part. I've tried for years to get it working reliably and its simply not possible I'm afraid. It seems related to the very slow ssh transfer issue and I suspect some low level thing to due w

Re: [ANNOUNCEMENT] Updated chere-0.8-1

2007-06-24 Thread Lewis Hyatt
Dave Kilroy wrote: The chere package has been updated to 0.8-1 chere is a tool to manage context menu items for starting shells from Windows Explorer. See the man page for detailed instructions. Bug fixes --- * xterm invoked with /usr/X11R6/bin in the path. This allows it to find various DL

Re: using chere

2007-06-20 Thread Lewis Hyatt
Lewis Hyatt wrote: OK, one last thing, sorry. I did something wrong with the last test. If I add c:\cygwin\bin and c:\cygwin\usr\X11R6\bin to the Windows PATH variable, then chere does work to open up an xterm! So I guess the only question is: is there any way to avoid this requirement? It

Re: using chere

2007-06-20 Thread Lewis Hyatt
The difference is that --login -i directs bash eventually to read /etc/profile, which adds cygwin dirs to the path. So as Morgan thought, this is somehow a PATH issue. However, I added c:\cygwin\bin, c:\cygwin\user\X11R6\bin to my Windows path, and the chere still does not pop up an xterm. (N

Re: using chere

2007-06-20 Thread Lewis Hyatt
Dave wrote: At a guess, do you need to make sure the DISPLAY environment variable is set for the xterm to find the server? You have it set in your cygcheck output, but you clearly produced that within an xterm which will have the variable set. If that's the case DISPLAY will need to be set in t

Re: using chere

2007-06-20 Thread Lewis Hyatt
It is supposed to work. That said I don't use X myself, so haven't explicitly tested this. Using xterm does require that the x server is already running before xterm is invoked. What happens if you run the following command from a cmd prompt: xterm -e /bin/bash -l The latter command works f

using chere

2007-06-20 Thread Lewis Hyatt
Hi Everyone- If I run chere like this: chere -iam1 -s bash -t cmd or like this: chere -iam2 -s bash -t cmd Then it behaves as expected. What I was hoping was to get the same functionality, but have it pop up an xterm for me instead of the cmd window. Is this supposed to work? I tried this:

Re: Problem compiling cygwin-1.5.24-2

2007-06-05 Thread Lewis Hyatt
Olivier Langlois wrote: Hi, I kinda isolated the weird file access problem. The corruption seems to come from the setup.exe program as if I download manually cygwin-1.5.24-2-src.tar.bz2, unzip and untar it manually, the permissions for all files are ok. Greetings, Olivier Langlois http://www.st

Re: I need some pointers on compiling please.

2007-03-29 Thread Lewis Hyatt
Richard Quadling wrote: Hi. http://www.experts-exchange.com/Storage/Backup_Restore/Q_22479665.html Basically, I want to create DVD ISO images via some sort of command line tool. Burning them is secondary at the moment, but this looks entirely possible too. To that end I've downloaded cdrtools,

Re: g++ 3.4.4: all global constructors in archive not called

2007-02-20 Thread Lewis Hyatt
Patric Ljung itn.liu.se> writes: > > Dear cygwin readers, > > I have just ported an application from Linux to Cygwin. > In one archive (.a) I have several global constructors, > 2-3 in two .o files. When I run my program only one > initializer function is called in that archive. Leaving > the

Re: igncr vs text mode mounts, performance vs compatibility

2006-10-26 Thread Lewis Hyatt
> There are a few other things to think about with your initial attempt. > Right now, igncr is an all or nothing setting, can be inherited into child > processes via SHELLOPTS, but can only be changed by explicit user action. > Your patch only ever turns it on without user intervention, not off.

Re: igncr vs text mode mounts, performance vs compatibility

2006-10-25 Thread Lewis Hyatt
> Propose a patch, and I will consider it. In my opinion, it was much > easier to do igncr as an all or none option than it was to parse the first > line and discard \r on a per-file basis, not to mention that all-or-none > is easily configurable so that those of us who WANT literal \r as required

Re: igncr vs text mode mounts, performance vs compatibility

2006-10-24 Thread Lewis Hyatt
> >> Are you saying that these people expect bash to treat CRLF as if the > >> CR were non-whitespace? Can you give me an example where this would > >> be a useful feature? > > It may not be a well-used feature, but I won't go so far as to call it not > useful. One possible use - a script writte

problem with boost 1.33 filesystem

2005-10-10 Thread Lewis Hyatt
Hi All, I apologize if this has been brought up before, but I couldn't find any mention of it. I think the filesystem component of boost v1.33 currently available as part of the cygwin distribution has been compiled incorrectly. As mentioned here: http://boost.org/libs/filesystem/doc/index.ht