Re: vfork always fail problem

2010-05-14 Thread Matthias Andree
Am 14.05.2010, 06:29 Uhr, schrieb Huang Bambo: [ba...@bambo-notebook 4.4.4]$ cat tvfork.c #include #include #include int main(void) { pid_t pid = vfork(); if ( pid > 0 ) { printf("I'm chield.\n"); _exit(0); } else if ( p

Re: vfork always fail problem

2010-05-14 Thread Huang Bambo
I's the problem of the fork() pass a wrong program path to CreateProcessW. It shoud pass a GBK code pathname to CreateProcessW but if I set LANG=en_US.UTF-8, the pathname passed to CreateProcessW is UTF-8, so CreateProcessW report file not found. 2010/5/14 Matthias Andree : > Am 14.05.2010, 06:

Using main() from a shared library in Cygwin 1.7

2010-05-14 Thread Ferenc Kovacs
Hi, I have an application, which links with a shared library (fairly common situation :)). This shared library provides the main() function. This approach works well on Linux/Solaris machines, but on Cygwin 1.7 I get the following link error: /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin

Anyone interrested in a package manager?

2010-05-14 Thread Alexander T
Hi All, I've read the mailing lists and found some posts back in 2003 talking about porting apt to cygwin. I'm going crazy needing to use the installer every time I forgot to install a program, and also dealing with version upgrades and conflicting versions. The installer.exe is also clunky when

Re: Anyone interrested in a package manager?

2010-05-14 Thread Greg Chicares
On 2010-05-14 11:23Z, Alexander T wrote: [...] > I'm going crazy needing to use the installer every time I forgot to > install a program, and also dealing with version upgrades and > conflicting versions. The installer.exe is also clunky when it comes > to selecting in batch etc. > > It would also

Re: Anyone interrested in a package manager?

2010-05-14 Thread Ralph Hempel
Alexander T wrote: It would also be great to make your own repos and update cygwin locally from the repo, like the setup.exe 'local install' does, but then command-line based. So I'm wondering if there are any news on this front. Since you did a search back to 2003, I'm surprised you did not

Re: Using main() from a shared library in Cygwin 1.7

2010-05-14 Thread Kurt Franke
Ferenc Kovacs gmail.com> writes: ... > I have an application, which links with a shared library (fairly common > situation :)). This shared library provides the main() function. This > approach works well on Linux/Solaris machines, but on Cygwin 1.7 > I get the following link error: ... Hi Fer

Windows 7 file permissions and ls -l

2010-05-14 Thread Greg Mo
I have an odd occurrence on my Win 7 x64 system with Cygwin 1.7.5. When I create files, I may set the permissions to 644 or 755. However, after a period of time, I went to edit one of those files in vi and it said that the file is read-only. I did an ls -l and was shocked to find that many of

gnutls missing cyggcrypt-11.dll

2010-05-14 Thread Gary
It seems the gnutls package (2.8.3-1) is missing a dependency to libgcrypt11 (1.4.5-1) - $ gnutls-cli -p 5223 talk.google.com /usr/bin/gnutls-cli.exe: error while loading shared libraries: cyggcrypt-11.dll: cannot open shared object file: No such file or directory Installing the lib package manua

Re: 1.7.5 ssh no longer functions after upgrade from 1.5

2010-05-14 Thread Matthias Meyer
Scott D Friedemann wrote: > After upgrading, attempts to use SSH give "Server refused our key". > Trying to enter the user password is rejected, too. Everything wor > > I haven't found any documentation about upgrading SSH so don't know what > might be wrong. I ran /bin/copy-user-registry-fstab

Re: 1.7.5 ssh no longer functions after upgrade from 1.5

2010-05-14 Thread Scott D Friedemann
On 5/14/10 8:23 AM, Matthias Meyer wrote: I am looking for a solution to a aimiliar problem the last week. In my case I found and solve two mistakes: 1) usernames in v1.5 are case insensitive but not in v1.7.5. e.g. ssh me...@cygwinhost is not the same as ssh me...@cygwinhost 2) sshd_config: "A

Re: Anyone interrested in a package manager?

2010-05-14 Thread Tom Schutter
Lookat http://code.google.com/p/cyg-apt/ On Fri 2010-05-14 06:23, Alexander T wrote: > Hi All, > > I've read the mailing lists and found some posts back in 2003 talking > about porting apt to cygwin. > > I'm going crazy needing to use the installer every time I forgot to > install a program, and

Re: 1.7.5 ssh no longer functions after upgrade from 1.5

2010-05-14 Thread Matthias Meyer
Scott D Friedemann wrote: > On 5/14/10 8:23 AM, Matthias Meyer wrote: >> I am looking for a solution to a aimiliar problem the last week. >> In my case I found and solve two mistakes: >> >> 1) usernames in v1.5 are case insensitive but not in v1.7.5. e.g. ssh >> me...@cygwinhost is not the same as

Re: Determining if cygwin is installed on a system

2010-05-14 Thread Spiro Trikaliotis
Hello Christopher, * On Thu, May 13, 2010 at 03:29:19PM -0400 Christopher Faylor wrote: > On Thu, May 13, 2010 at 09:15:52PM +0200, Spiro Trikaliotis wrote: > >Thus, my main concern now is: How can I determine if a version of cygwin > >is installed? [...] > Take a look at the source code for C

Re: Anyone interrested in a package manager?

2010-05-14 Thread Spiro Trikaliotis
Hello, * On Fri, May 14, 2010 at 07:41:51AM -0400 Ralph Hempel wrote: > Alexander T wrote: [Installing cygwin from a local install & package manager like APT] > Since you did a search back to 2003, I'm surprised you did not find > posts referring to the new and wonderful command line options > t

Re: 1.7.5 ssh no longer functions after upgrade from 1.5

2010-05-14 Thread Corinna Vinschen
On May 14 15:23, Matthias Meyer wrote: > 1) usernames in v1.5 are case insensitive but not in v1.7.5. e.g. ssh > me...@cygwinhost is not the same as ssh me...@cygwinhost This has nothing to do with Cygwin 1.7. It was a security change in OpenSSH 5.4p1: http://cygwin.com/ml/cygwin-announce/2010-03

Re: vfork always fail problem

2010-05-14 Thread Corinna Vinschen
On May 14 16:54, Huang Bambo wrote: > I's the problem of the fork() pass a wrong program path to CreateProcessW. > > It shoud pass a GBK code pathname to CreateProcessW but if I set > LANG=en_US.UTF-8, the pathname passed to CreateProcessW is UTF-8, so > CreateProcessW report file not found. Tha

Re: strftime %b is broken on ja_JP locale

2010-05-14 Thread Corinna Vinschen
On May 14 10:55, Kazuhiro Fujieda wrote: > >>> On Wed, 12 May 2010 17:31:18 +0200 > >>> Corinna Vinschen said: > > > No, that's not broken, even if it seems so. Cygwin fetches the > > localized strings from the underlying OS, not from a Cygwin-specific > > locale database. What you see as resul

Re: Cygwin problems with a Samba share

2010-05-14 Thread Corinna Vinschen
On May 12 17:18, George George wrote: > Hi, > > After a fresh installation of the latest version of Cygwin on Windows > XP Service Pack 2, cygwin refuses to work out the username and group > for the files on a samba share running on a Linux machine. Could you > please suggest any pointers where I

Re: 1.7.5-1: execv fails in .exe compiled

2010-05-14 Thread Stephen Morton
On Thu, 13 May 2010 17:49:08 -0400, Larry Hall wrote: >On 5/13/2010 5:45 PM, Stephen Morton wrote: >>The problem appears to be cygwin 1.7-specific. (*) >> >>I get a stackdump as follows. I find that I get a stackdump under a >>cygwin shell (DOS terminal) but not under mintty so I'm not 100%

Re: Anyone interrested in a package manager?

2010-05-14 Thread Reini Urban
For those who are interested: You can finish mine from http://code.google.com/p/cygwin-rurban/source/browse/trunk/contrib/cyginstall (a single perl file) And there's also the super-simple cyg-apt which can only do new installs but no updates. -- Reini Urban http://phpwiki.org/ http://m

Re: 1.7.5-1: execv fails in .exe compiled]

2010-05-14 Thread Stan
Stephen Morton said: > > > 109 225019 [main] cc386 1312 spawnve: spawnve >(/usr/local/companytools/gcc34/x86/cc1.exe, >/usr/local/companytools/gcc34/x86/cc1.exe, 1002DAA0) The /usr/local/companytools part sure sounds like a local (non-cygwin) app. Have you tried cygcheck? -- Problem reports:

Re: 1.7.5 ssh no longer functions after upgrade from 1.5

2010-05-14 Thread Matthias Meyer
Corinna Vinschen wrote: > On May 14 15:23, Matthias Meyer wrote: >> 1) usernames in v1.5 are case insensitive but not in v1.7.5. e.g. ssh >> me...@cygwinhost is not the same as ssh me...@cygwinhost > > This has nothing to do with Cygwin 1.7. It was a security change in > OpenSSH 5.4p1: > http://

Cygwin, Windows 7, GNU make, and error 31

2010-05-14 Thread Damien Kick
I keeping having 'make' error out on me in ways similar to this: c:/VS.NET2005/vc/bin/mt.exe /nologo /manifest c:/foo/bar/Unidirectional_1.t.exe.manifest /outputresource:'c:/foo/bar/Unidirec tional_1.t.exe;#1' C:\bin\gnumake.exe[2]: *** [c:/foo/bar/Unidirectional_1.t.exe] Error 31 C:\bin\gnumake.

Re: Cygwin, Windows 7, GNU make, and error 31

2010-05-14 Thread Rance Hall
On Fri, May 14, 2010 at 4:25 PM, Damien Kick wrote: > I keeping having 'make' error out on me in ways similar to this: > > c:/VS.NET2005/vc/bin/mt.exe /nologo /manifest > c:/foo/bar/Unidirectional_1.t.exe.manifest > /outputresource:'c:/foo/bar/Unidirec > tional_1.t.exe;#1' > C:\bin\gnumake.exe[2]

1.7.5 run cygwin.bat and returned with c:\cygwin\bin folder

2010-05-14 Thread Ping Wu
I have try to install Cygwin on Amazon AMI ami-f71ff09e amazon/Windows-Server2003R2-x86_64-SqlExpress-v109 The setup.exe did completed with the installation, but cygwin.bat return right away and going nowhere. If I ran it from command line it will ended up at c:\cygwin\bin. I have try to remove

Re: Running old cygwin.dll under Windows 7

2010-05-14 Thread Stephen Morton
On Thu, 15 Apr 2010 23:56:41 +0200, Hussein Patwa Wrote: >Apologies for what is probably such an obvious question, but some of the >utilities I wish to use do not support the latest cygwin dll. However, I >tried running the legacy setup but Cygwin will not start, with the Windows >7 Subsystem for

Re: strftime %b is broken on ja_JP locale

2010-05-14 Thread Kazuhiro Fujieda
>>> On Fri, 14 May 2010 21:27:16 +0200 >>> Corinna Vinschen said: >> It should return "5\u6708" in Japanese and "5\uc6d4" in >> Korea. MSDN in Japanese describes so. It, however, returns "5" >> in both locales. > > Can you please tell us the number of the knowledge base article saying > so? There

Re:cron visual output looks funny

2010-05-14 Thread Stephen Morton
On Sun, 02 May 2010 16:25:07 +0200 Johannes Müller Wrote: >I installed and use cron on windows xp using cygwin. It works fine for non-GUI >applications, but for instance notepad does not seem to >start at all. And a >popup-window-script I wrote in python does appear and react to userinput, but >