Re: Connection timed out

2010-10-30 Thread Huang Bambo
Check your system firewall settings first.

On Sat, Oct 30, 2010 at 3:37 PM, KeithLaw t...@spam.la wrote:

 Hi,

 I have set up the ssh server(cygwin) and it works fine for ssh
 [userna...@localhost in my command prompt  at server but it doesn't work
 for ssh [userna...@192.168.x.xx which is also localhost. I have turned off
 all the windows firewall.

 The error message is:
 ssh: connect to host 192.168.x.xx port 22: Connection timed out

 Would appreciate if there is any advice.
 Thanks.
 --
 View this message in context: 
 http://old.nabble.com/Connection-timed-out-tp30090311p30090311.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


--
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: libpq: problem with shared library

2010-10-06 Thread Huang Bambo
Can you give the outpuoutput of 'ldd pqtest' ?

2010/10/6 Tomáš Hajas ha...@styleweb.sk

 Hello,

 I'm trying to use PostgreSQL C API under Cygwin, but libpq attempts load a 
 very
 strange shared library. On run-time it states:
 error while loading shared libraries: ?: cannot open shared object file: No
 such file or directory
 and yes, name of the missing shared library is literally a question mark.

 To reproduce the problem, all it takes is just to use the library:

 #include libpq-fe.h
 int main(int argc, char **argv)
 {
        PQconnectdb(dbname=test);
        return 0;
 }

 Compiled with:
 gcc -o pqtest pqtest.c /usr/lib/libpq.a

 What could possibly cause this? Thanks in advace.

 Best regards,
 Tomas Hajas

 --
 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: build cygwin apps on linux

2010-08-19 Thread Huang Bambo
I've build gcc 4.4.0 for arm in cygwin.

2010/8/20 Slide slide.o@gmail.com:
 I've looked through the archives and saw some messages about building
 a cross-compiler to build cygwin apps on linux, but most of those
 messages/articles are pretty old. Has anyone done this recently with
 more recent GCC and Cygwin versions?

 Thanks,

 slide

 --
 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: cygwin 1.7 lock directory problem

2010-08-18 Thread Huang Bambo
2010/8/18 Eric Blake ebl...@redhat.com:
 On 08/18/2010 05:08 AM, Corinna Vinschen wrote:
 Looks like this behaviour is a problem and we should better close the
 old handle.  What to do with the new one?  Just set it to NULL and
 disallow stackdumps as long as we're in a virtual path?  Or set it to
 some well known path, like Cygwin's root?

 /var or /tmp would be more sensible.

 Maybe, but it also costs time.  /var and /tmp Windows paths have to be
 generated by a full path conversion every time you call chdir() to a
 virtual directory.
 The Cygwin installation path (aka the root dir) is just available.

 Using / as the fallback during a virtual directory makes sense to me
 (there may be other permission problems if / is not writable by the
 current user, but a stack dump is a best effort attempt anyways).

Even in linux, you can't generate core file in virtual directory also,
so just don't generate core file if you can't write at anywhere.

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



cygwin 1.7 lock directory problem

2010-08-17 Thread Huang Bambo
cygwin version: 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin

I don't know if this happen to previous version or not.

If I first cd to a directory, for example /cygdriver/x
then cd to a virtual directory, for example /proc
the /cygdriver/x will be locked untile I change director to other
non-virtual directory.

Is this a bug or designed to do so?

--
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 lock directory problem

2010-08-17 Thread Huang Bambo

 Do you have a series of steps that produces the problem you see?


As I said in previous mail.
1. cd /cygdriver/i( I is mounted as a usb-stick)
2. cd /proc
3. Use some tools such as Unlocker to check driver I, Unlocker said
driver I is locked by bash.
4. cd /  ( / is at d:\cygwin )
5. do the same as step 3, driver is not locked by bash.

--
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: Runtime SEGV from gcc -O3 -march=native

2010-07-26 Thread Huang Bambo
Use -O2 instead, I also have trouble on use -O3.

2010/7/27 Joseph Quinsey jquin...@entrenet.com:
 Again, just FYI, with a simpler example, and with -march=native replaced by
 k8 or athlon64.

 Source code:

 int main(void) {
    static int foo[4];
    int i;
    for (i = 0; i  4; i++)
        foo[i] = 0;
    return 0;
 }

 Compile and run, using Cygwin's current gcc version 4.3.4:

    gcc -O3 -march=athlon64 foobar.c
    ./a.exe
    Segmentation fault (core dumped)


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



When will the next gcc come out

2010-07-23 Thread Huang Bambo
The current gcc( 4.3.4 ) has some bug with O3 option. it will
optimized out some needed code in some case.
I meet this bug when I compile ACE library.
If I use O2 option, everything goes fine.
So, maybe many people may waiting for the new version. :
Thanks !

--
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: When will the next gcc come out

2010-07-23 Thread Huang Bambo
2010/7/23 Andy Koppe andy.ko...@gmail.com:
 On 23 July 2010 09:24, Huang Bambo wrote:
 The current gcc( 4.3.4 ) has some bug with O3 option. it will
 optimized out some needed code in some case.
 I meet this bug when I compile ACE library.
 If I use O2 option, everything goes fine.

 Have you got any actual evidence for this being a bug in gcc rather
 than in your program? It's quite common that subtle program bugs get
 exposed differently by different optimisations. This might also be
 relevant:

It's a very simple test program:

#include ace/Log_Msg.h

int ACE_TMAIN( int argc, ACE_TCHAR **argv )
{
ACE_DEBUG(( LM_DEBUG, ACE_TEXT(%D\n) ));
return 0;
}

Gcc optimized out some code like
*fp++ = *format_string ++;

When I gdb to that line and print fp, gdb reported that fp is optized out...

If I compile ACE library with -O2, everything become OK.

I will check if this will happen in other platform when I have time.

 http://en.wikipedia.org/wiki/Aliasing_(computing)#Conflicts_with_optimization

 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



--
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 psql does not run

2010-07-20 Thread Huang Bambo
Maybe your psql command linked to a wrong cygpq.dll.


2010/7/21 David Einstein dei...@gmail.com:
 Windows 7 64 bit

 When I run the cygwin provided psql it immediately returns.  Even if I
 run 'psql --help' or 'psql -v'.

 I tried recompiling postgres from source, and got the same behavior.

 All the dlls seem to be in place.

 I have attached the output of

 cygcheck -s -r -v

 in cygcheck.out and the output of

 cygcheck psql

 cygcheck_psql.out


 /usr/bin/cygrunsrv: warning: OpenService failed for 'DcomLaunch': Win32 error 
 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'odserv': Win32 error 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'ose': Win32 error 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'pla': Win32 error 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'QWAVE': Win32 error 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'RpcEptMapper':
 Win32 error 5
 Access is denied.
 /usr/bin/cygrunsrv: warning: OpenService failed for 'RpcSs': Win32 error 5
 Access is denied.

 --
 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: cygwin 1.7.5 psql does not run

2010-07-20 Thread Huang Bambo
2010/7/21 David Einstein dei...@gmail.com:
 Huang Bambo:
 Maybe your psql command linked to a wrong cygpq.dll.

 I tried reloading all of the cygwin packages related to postgres to no
 avail.  Would a locally compiled cygpq.dll be better?

use ldd command and list the dll's used by psql.
My output is like the following:

ntdll.dll = /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
kernel32.dll = /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
cygpq.dll = /usr/bin/cygpq.dll (0x6794)
cygcrypt-0.dll = /usr/bin/cygcrypt-0.dll (0x1000)
cygwin1.dll = /usr/bin/cygwin1.dll (0x6100)
ADVAPI32.DLL = /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
RPCRT4.dll = /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
Secur32.dll = /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
cygcrypto-0.9.8.dll = /usr/bin/cygcrypto-0.9.8.dll (0x6ba4)
cygz.dll = /usr/bin/cygz.dll (0x692c)
cyggcc_s-1.dll = /usr/bin/cyggcc_s-1.dll (0x67f0)
cygintl-8.dll = /usr/bin/cygintl-8.dll (0x6f5c)
cygiconv-2.dll = /usr/bin/cygiconv-2.dll (0x674c)
cygldap-2-3-0.dll = /usr/bin/cygldap-2-3-0.dll (0x50)
cyglber-2-3-0.dll = /usr/bin/cyglber-2-3-0.dll (0x3e)
cygminires.dll = /usr/bin/cygminires.dll (0x6efc)
cygssl-0.9.8.dll = /usr/bin/cygssl-0.9.8.dll (0x6340)
cygsasl2-2.dll = /usr/bin/cygsasl2-2.dll (0x62dc)



 --
 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: cygwin case-sensitivity: more picky than linux, by default/w no option?

2010-07-14 Thread Huang Bambo
cygwin is more like RedHat than Suse and there's many diffirence
between diffirent linuxes

2010/7/14 Linda Walsh cyg...@tlinx.org:
 How many different versions of 'man' are there, anyway?

 I've always wondered why cygwin's was so different from the few
 linux versions I've seen -- bug especially in this sense.

 How is it that cygwin's manpages are case sensitive?  Aren't they
 stored in files on a case-insensitive file system that should be able
 to find file-based man pages no matter what case you type in?

 The reason I ask, is that on linux, not only does the man program
 have a -i option to ignore case, but its also the default!

 So maybe cygwin could catchup to linux in this regard and go for ease of
 use?

 From the SuSE linux manpage for man, regarding the -i option.

      -i, --ignore-case
             Ignore case when  searching  for  manual  pages.
  This  is  the default.

 But cygwin, it's not even an option to ignore case?
 I'm almost wondering if someone switched the man programs on the
 two OS's...;-)

 Very weird.
 Think it's possible to get the cygwin version 'enhanced'?





 --
 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: Cygwin extremely slow after updating from 1.5.1 to 1.7.5

2010-07-11 Thread Huang Bambo
Use strace ls and strace -t ls and attach the output first.

2010/7/12 Jet Thompson j...@whidbey.com

 It is now taking over 30 seconds for bash to come up,
 whereas in 1.5 it would take 1-2 seconds.

 Doing an ls of my ~ directory takes 5 seconds.

 Running a cucumber test takes 5-6 minutes.

 Any idea what could be causing this?

 At this point, I can not use Cygwin for development.
 Not feasible to use such a slow environment.

 Hope someone may have some good ideas.
 I am using an older XP machine, but still it is
 dual 2.8 Xeon processors, 800MHz bus, 7200rpm
 sata hard drive with 8MB cache. It is painful
 to see such dismal performance.

 Cheers,

   Jet


 --
 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: DHCP and resolv.conf

2010-06-27 Thread Huang Bambo
It's not possible.
DHCP is handled by Windows, not by cygwin.

2010/6/27 Alex Leigh le...@hcs.harvard.edu

 Hi,

 Apologies if this has been asked before, but is it possible to have
 /etc/resolv.conf in Cygwin to be automatically updated with
 nameservers obtained using DHCP from Windows networking? Thanks.

 Alex

 --
 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: Environment variable problem

2010-05-23 Thread Huang Bambo
There is no pathname like d: in cygwin, use /cygdriver/d/ instead.

2010/5/23 Willie Vu willi...@dev.java.net:

 I set an environment variable in /etc/profile.d/env.sh that is loaded when
 Cygwin starts, like the following:

 export M2_HOME=d\:/java/apache-maven-2.2.1

 When it is echoed, it shows the value correctly.

 $ echo $M2_HOME
 d:/java/apache-maven-2.2.1

 However, if I suffix it with /bin, it becomes the following:

 $ echo $M2_HOME/bin
 /binava/apache-maven-2.2.1

 If I run the export statement inline, then there is no problem.

 $ export M2_HOME=d\:/java/apache-maven-2.2.1

 $ echo $M2_HOME
 d:/java/apache-maven-2.2.1

 $ echo $M2_HOME/bin
 d:/java/apache-maven-2.2.1/bin

 Any idea?
 --
 View this message in context: 
 http://old.nabble.com/Environment-variable-problem-tp28649448p28649448.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



--
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: vfork always fail problem

2010-05-19 Thread Huang Bambo
 Huang,

 you - as the person who first saw and documented the problem in public
 (thank you!) - are in the best position to test it, if you can recreate the
 original situation (with the GBK(?) directory names).

 It would be beneficial to all of us, and you would be doing everybody a
 favour (if you wish, which is your choice), if you could test if the problem
 reproduces with Cygwin 1.7.5, and goes away with the snapshot.

fork() now work well but find new problem after use the 0518 patch.
Usually I use mintty to as the default term tool. After use this patch, I can't
directly use mintty to open the first shell( like nothing happened), I
must use Cygwin.bat to create
a fist shell, then use short cut of mintty in the start menu to open others.

I'll find out why if I have time.

Thak you.

Best

--
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: vfork always fail problem

2010-05-19 Thread Huang Bambo
2010/5/20 Huang Bambo bambo.hu...@gmail.com:
 Huang,

 you - as the person who first saw and documented the problem in public
 (thank you!) - are in the best position to test it, if you can recreate the
 original situation (with the GBK(?) directory names).

 It would be beneficial to all of us, and you would be doing everybody a
 favour (if you wish, which is your choice), if you could test if the problem
 reproduces with Cygwin 1.7.5, and goes away with the snapshot.

 fork() now work well but find new problem after use the 0518 patch.
 Usually I use mintty to as the default term tool. After use this patch, I 
 can't
 directly use mintty to open the first shell( like nothing happened), I
 must use Cygwin.bat to create
 a fist shell, then use short cut of mintty in the start menu to open others.

 I'll find out why if I have time.

terminate while calling forkpty().


 Thak you.

 Best


--
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: vfork always fail problem

2010-05-18 Thread Huang Bambo
  http://cygwin.com/snapshots/

 To the OP: please check it out and verify that it solves your problem.


Thanks a lot. I've changed my work directory to a full English name directory
and it dosn't matter me.
And this problem is first reported by gcc, strange :) .

 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



--
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 fork() bug

2010-05-17 Thread Huang Bambo
2010/5/17 Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com:
 On Mon, May 17, 2010 at 11:09:55AM +0800, Huang Bambo wrote:
fork() may translate a wrong encoded path name to CreateProcessW in somecase.

My cygwin version:

$ uname -a
CYGWIN_NT-5.1 bambo-notebook 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin

This happens in windows XP with multi-byte characters support, for
example, I use a system with GBK as default.
If the path to the executable contains multi-byte characters,
CreateProcessW will fail and report file(executable) not found in
somecase.

 Is there some reason why you are attempting to start the discussion up
 again?  Corinna already responded to your original observation.

 http://cygwin.com/ml/cygwin/2010-05/msg00354.html
Sorry for that.
Someone said I didn't write a bug report in good style so I write this
letter again.

 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



--
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: 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 matthias.and...@gmx.de:
 Am 14.05.2010, 06:29 Uhr, schrieb Huang Bambo:

 [ba...@bambo-notebook 4.4.4]$ cat tvfork.c
 #include sys/types.h
 #include unistd.h
 #include stdio.h

 int main(void)
 {
        pid_t pid = vfork();
        if ( pid  0 )
        {
                printf(I'm chield.\n);
                _exit(0);
        }
        else if ( pid == 0 )
        {
                printf(I'm parent);
        }

 You've got these swapped. pid == 0 means child,  0 means parent (so that it
 directly has the PID of its child and can later call waitpid()).

 You later wrote you've issues with the path; does the same happen if you use
 fork rather than vfork?  vfork()ed child processes must not do anything
 but modify a variable of type pid_t, call _exit() or exec*().

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



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



vfork always fail problem

2010-05-13 Thread Huang Bambo
[ba...@bambo-notebook 4.4.4]$ cat tvfork.c
#include sys/types.h
#include unistd.h
#include stdio.h

int main(void)
{
pid_t pid = vfork();
if ( pid  0 )
{
printf(I'm chield.\n);
_exit(0);
}
else if ( pid == 0 )
{
printf(I'm parent);
}
else
{
perror(vfork failed.);
}
}
[ba...@bambo-notebook 4.4.4]$ make tvfork
cc tvfork.c   -o tvfork
[ba...@bambo-notebook 4.4.4]$ ./tvfork.exe
  4 [main] tvfork 4136 fork: child -1 - CreateProcessW failed, errno 2
vfork failed.: No such file or directory
[ba...@bambo-notebook 4.4.4]$ ./tvfork
  3 [main] tvfork 2956 fork: child -1 - CreateProcessW failed, errno 2
vfork failed.: No such file or directory

I think maybe the wrong parameters were sent while calling CreateProcessW.

--
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: vfork always fail problem

2010-05-13 Thread Huang Bambo
Finally I test and get another result.
I run the test program at
/home/Bambo/test/t1/
but /home/Bambo/test is a symbolic link to another directory.
Maybe it's the problem that the system handle symbolic

2010/5/14 Huang Bambo bambo.hu...@gmail.com:
 [ba...@bambo-notebook 4.4.4]$ cat tvfork.c
 #include sys/types.h
 #include unistd.h
 #include stdio.h

 int main(void)
 {
        pid_t pid = vfork();
        if ( pid  0 )
        {
                printf(I'm chield.\n);
                _exit(0);
        }
        else if ( pid == 0 )
        {
                printf(I'm parent);
        }
        else
        {
                perror(vfork failed.);
        }
 }
 [ba...@bambo-notebook 4.4.4]$ make tvfork
 cc     tvfork.c   -o tvfork
 [ba...@bambo-notebook 4.4.4]$ ./tvfork.exe
      4 [main] tvfork 4136 fork: child -1 - CreateProcessW failed, errno 2
 vfork failed.: No such file or directory
 [ba...@bambo-notebook 4.4.4]$ ./tvfork
      3 [main] tvfork 2956 fork: child -1 - CreateProcessW failed, errno 2
 vfork failed.: No such file or directory

 I think maybe the wrong parameters were sent while calling CreateProcessW.


--
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: vfork always fail problem

2010-05-13 Thread Huang Bambo
I truly find the problem.
The path to the executable have Chinese character.
My windows's default language is gbk.
If I use utf-8 encoding for the shell, fork fail. If i use gbk, everything
goes fine.
The following is the test .

[ba...@bambo-notebook ARM9]$ pwd
/cygdrive/d/个人研发/ARM9
  ^^ Chinese directory name

[ba...@bambo-notebook ARM9]$ export LANG=en_US.UTF-8
[ba...@bambo-notebook ARM9]$ ./tvfork.exe
  3 [main] tvfork 4900 fork: child -1 - CreateProcessW failed, errno 2
vfork failed.: No such file or directory
[ba...@bambo-notebook ARM9]$ export LANG=en_US.GBK
[ba...@bambo-notebook ARM9]$ ./tvfork.exe
I'm parentI'm chield.


2010/5/14 Huang Bambo bambo.hu...@gmail.com:
 Finally I test and get another result.
 I run the test program at
 /home/Bambo/test/t1/
 but /home/Bambo/test is a symbolic link to another directory.
 Maybe it's the problem that the system handle symbolic

 2010/5/14 Huang Bambo bambo.hu...@gmail.com:
 [ba...@bambo-notebook 4.4.4]$ cat tvfork.c
 #include sys/types.h
 #include unistd.h
 #include stdio.h

 int main(void)
 {
pid_t pid = vfork();
if ( pid  0 )
{
printf(I'm chield.\n);
_exit(0);
}
else if ( pid == 0 )
{
printf(I'm parent);
}
else
{
perror(vfork failed.);
}
 }
 [ba...@bambo-notebook 4.4.4]$ make tvfork
 cc tvfork.c   -o tvfork
 [ba...@bambo-notebook 4.4.4]$ ./tvfork.exe
  4 [main] tvfork 4136 fork: child -1 - CreateProcessW failed, errno 2
 vfork failed.: No such file or directory
 [ba...@bambo-notebook 4.4.4]$ ./tvfork
  3 [main] tvfork 2956 fork: child -1 - CreateProcessW failed, errno 2
 vfork failed.: No such file or directory

 I think maybe the wrong parameters were sent while calling CreateProcessW.



--
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: Error buildind cross development tools with crosstool-ng on Cygwin

2010-05-03 Thread Huang Bambo
I've successfully build a cross-tool for arm, everything seems fine.
I use cygwin 1.7.5 with WinXP 32-bit.

2010/5/4 Jeff Gilton jgil...@cinci.rr.com

 I am trying to build PowerPC development tools using crosstool-ng in Cygwin. 
 I have successfully build a toolchain in  Linux with crosstool-ng but have 
 not been successful in Cygwin.  I get through many of the steps but it fails 
 on CT_DoExecLog when building the final compiler.  It appears to fail on java 
 so I disabled that.  Then it failed on DUMA and when I disabled that, it 
 failed on ncurses.

 I've tried version 1.6.1 and 1.7.0 of crosstoll-ng and two different PowerPC 
 configurations.

 I am not sure how to diagnose the problem.  Crosstool-ng is a complex set of 
 scripts.  Has anyone used it successfully with Cygwin?

 I am using the latest version of Cygwin on a Dell Inapiron 1464 with Windows 
 7 64-bit.

 Jeff

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



ls command crashed

2010-01-21 Thread Huang Bambo
[ba...@bambo-pc /cygdrive/c/Sandbox/Bambo/DefaultBox]
$ ls
  6 [main] -bash 1104 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC10A, errno 11
1628483 [main] -bash 1104 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC10A, errno 11
4312634 [main] -bash 1104 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC10A, errno 11
8824934 [main] -bash 1104 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC10A, errno 11
17472917 [main] -bash 1104 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC10A, errno 11
-bash: fork: Resource temporarily unavailable


$ cygcheck.exe -s

Cygwin Configuration Diagnostics
Current System Time: Fri Jan 22 14:42:15 2010

Windows 7 Ultimate Ver 6.1 Build 7600

Path:   E:\cygwin\usr\local\pspdev\bin
E:\cygwin\usr\local\bin
E:\cygwin\bin
E:\cygwin\bin
E:\cygwin\usr\X11R6\bin
C:\Program Files\Common Files\NetSarang
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
D:\Lib\ACE_wrappers\lib
E:\cygwin\bin
E:\cygwin\bin
E:\home\Bambo\bin
E:\home\Bambo\lib
E:\cygwin\usr\local\postgresql\bin
E:\cygwin\usr\local\postgresql\lib
  5 [main] id 3220 E:\cygwin\bin\id.exe: *** fatal error -
couldn't initialize fd 0 for /dev/tty0

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'Bambo'
LD_LIBRARY_PATH =
'/home/Bambo/ACE_wrappers/lib:/home/Bambo/lib:/usr/local/postgresql/lib'
PWD = '/home/Bambo'
CYGWIN = 'error_start=e:\cygwin\bin\dumper.exe'
HOME = '/home/Bambo'

Use '-r' to scan registry

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 685dc4bb75d52efd Path: E:\cygwin

c:  hd  NTFS 20410Mb  68% CP CS UN PA FC SYSTEM
d:  hd  NTFS 26544Mb  77% CP CS UN PA FC Data
e:  hd  NTFS 37362Mb  63% CP CS UN PA FC Tools
f:  hd  FAT32 4086Mb   2% CPUN   SHARE
g:  cd N/AN/A

E:\cygwin/  system  binary,auto
E:\cygwin\bin/usr/bin   system  binary,auto
E:\cygwin\lib/usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  userbinary,auto

Found: E:\cygwin\bin\awk.exe
Found: E:\cygwin\bin\awk.exe
Found: E:\cygwin\bin\awk.exe
Found: E:\cygwin\bin\awk.exe
 - E:\cygwin\bin\gawk.exe
Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cp.exe
Found: E:\cygwin\bin\cp.exe
Found: E:\cygwin\bin\cp.exe
Found: E:\cygwin\bin\cp.exe
Found: E:\cygwin\bin\cpp.exe
Found: E:\cygwin\bin\cpp.exe
Found: E:\cygwin\bin\cpp.exe
Found: E:\cygwin\bin\cpp.exe
 - E:\cygwin\etc\alternatives\cpp
 - E:\cygwin\bin\cpp-4.exe
Not Found: crontab
Found: E:\cygwin\bin\find.exe
Found: E:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Found: E:\cygwin\bin\find.exe
Found: E:\cygwin\bin\find.exe
Found: E:\cygwin\bin\gcc.exe
Found: E:\cygwin\bin\gcc.exe
Found: E:\cygwin\bin\gcc.exe
Found: E:\cygwin\bin\gcc.exe
 - E:\cygwin\etc\alternatives\gcc
 - E:\cygwin\bin\gcc-4.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\grep.exe
Found: E:\cygwin\bin\grep.exe
Found: E:\cygwin\bin\grep.exe
Found: E:\cygwin\bin\grep.exe
Found: E:\cygwin\bin\kill.exe
Found: E:\cygwin\bin\kill.exe
Found: E:\cygwin\bin\kill.exe
Found: E:\cygwin\bin\kill.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\mv.exe
Found: E:\cygwin\bin\mv.exe
Found: E:\cygwin\bin\mv.exe
Found: E:\cygwin\bin\mv.exe
Not Found: patch
Found: E:\cygwin\bin\perl.exe
Found: E:\cygwin\bin\perl.exe
Found: E:\cygwin\bin\perl.exe
Found: E:\cygwin\bin\perl.exe
Found: E:\cygwin\bin\rm.exe
Found: E:\cygwin\bin\rm.exe
Found: E:\cygwin\bin\rm.exe
Found: E:\cygwin\bin\rm.exe
Found: E:\cygwin\bin\sed.exe
Found: E:\cygwin\bin\sed.exe
Found: E:\cygwin\bin\sed.exe
Found: E:\cygwin\bin\sed.exe
Found: E:\cygwin\bin\ssh.exe
Found: E:\cygwin\bin\ssh.exe
Found: E:\cygwin\bin\ssh.exe
Found: E:\cygwin\bin\ssh.exe
Found: E:\cygwin\bin\sh.exe
Found: E:\cygwin\bin\sh.exe
Found: E:\cygwin\bin\sh.exe
Found: E:\cygwin\bin\sh.exe
Found: E:\cygwin\bin\tar.exe
Found: E:\cygwin\bin\tar.exe
Found: E:\cygwin\bin\tar.exe
Found: E:\cygwin\bin\tar.exe
Found: E:\cygwin\bin\test.exe
Found: E:\cygwin\bin\test.exe
Found: 

dumper gen core file with bad file name problem

2010-01-13 Thread Huang Bambo
If there's non-english char in the program start path( /tmp/中文 ), the
generated core file's name will be wrong like the following:

$ pwd
/tmp/中文
[ba...@bambo-pc /tmp/中文]
$ ls
foo.c  foo.exe  foo.exe.core
[ba...@bambo-pc /tmp/中文]

the core file comes with a unexpected ''

my CYGWIN environment is:
$ env | grep CYG
CYGWIN=error_start=e:\cygwin\bin\dumper.exe

--
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: Cannot find -lcurses

2009-12-17 Thread Huang Bambo
2009/12/18 anand85 kulandaianan...@gmail.com

 Hello all,
            I am trying to install a speech synthesis software called
 'Festival' through cygwin. But when i try to configure and install it
 through the 'make' command i am getting an error like this:

 i686-pc-cygwin/bin/id: cannot find -lcurses
 collect2: id returned 1 exit status.

 'for more details Please see attachment!!!
 http://old.nabble.com/file/p26838594/New%2BPicture%2B%25286%2529.bmp
 New+Picture+%286%29.bmp

 Could anyone please help me out of this problem??

 Thanks in advance

 Anand

Have  you installed the ncurses package ?
Please send the output of 'cygcheck -c'

--
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: Cannot find -lcurses

2009-12-17 Thread Huang Bambo
2009/12/18 anand85 kulandaianan...@gmail.com:

 Please find below the output of the cygcheck -c:
 http://old.nabble.com/file/p26839344/New%2BPicture%2B%25287%2529.bmp
 New+Picture+%287%29.bmp


You should have a symble link in /usr/lib like:

lrwxrwxrwx 1 Bambo None 12 2009-11-21 12:10 libcurses.a - libncurses.a
lrwxrwxrwx 1 Bambo None 16 2009-11-21 12:10 libcurses.dll.a -
libncurses.dll.a

If you don't have those file, create it yourself.

--
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: `cygwinpath -D' could not display the Chinese character

2009-12-08 Thread Huang Bambo
It works fine on my computer. Is it the setting of your terminal tool
cause this?

2009/12/9 �屺��o名氏 tianlij...@gmail.com

 Is it easy to solve the problem?

 On Mon, Nov 30, 2009 at 17:44, Corinna Vinschen
 corinna-cyg...@cygwin.com wrote:
  Nothing has changed in this code.

 --
 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: how to get the windows PATH env in cygwin

2009-11-30 Thread Huang Bambo
2009/12/1 �屺��o名氏 tianlij...@gmail.com:
 What i mean is that, how to only get the env path of windows, such as,
 `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem.

 `echo $PATH' would display the path of cygwin:
 echo $PATH
 /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin

Do you mean SYSTEMROOT or WINDIR environment variable?

--
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: Defunct processes with 1.5.25-15; seemingly reproducible

2009-11-26 Thread Huang Bambo
2009/11/27 Dave Steenburgh dave.steenbu...@gmail.com

 cgf wrote:
  Defunct processes are not necessarily indicative of a cygwin problem.
  This could easily be a problem with gnuplot.

 Given the sum of my own limited knowledge of the problem at hand (in
 summary: every program involved is in my local cygwin directory), I
 figured it was best to ask here first.

 Dave Steenburgh wrote:
  $ ps
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
  ...
      4164    1288    7684       5504    6 1003 23:49:20 defunct
      5392    3224    5984       6100    5 1003 23:49:06 defunct
      1452    5240    5984       8104    5 1003 23:49:06 defunct
      5240    3224    5984       4532    5 1003 23:49:06 defunct
  ...
 
 ...
  The PIDs seem to be the same every time this happens.  Specifically, I
  have seen 5240 and 1452 every time.  Whether that's significant, I
  don't know.

 Now, this is interesting...  I killed those defunct processes with
 process explorer, and subsequently confirmed via ps, task manager, and
 process explorer that they were no longer running.  I began another
 session with gnuplot, and this time there are three:

 $ ps
 ...
     5240    3224    5984       4532    5 1003 23:49:06 defunct
     4164    1288    7684       5504    6 1003 23:49:20 defunct
     5392    3224    5984       6100    5 1003 23:49:06 defunct
 ...

 For each of those, the entire row is identical to a row in my previous
 message.  Since I started the session around 14:00, and the last
 output file's modification timestamp is 17:21, I'd say the timestamps
 for those three processes are not reliable.  Is it possible that the
 original defunct processes were never truly killed?  If so, can they
 be killed without rebooting?

Those defunct function will disapear after parent process exist in *nix.
To avoid this condition, try to handle SIGCHLD and call wait/waitpid to
free resources used by child process

--
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] Updated: cygwin-1.7.0-65

2009-11-23 Thread Huang Bambo
2009/11/23 Corinna Vinschen corinna-cyg...@cygwin.com:
 On Nov 22 09:33, Huang Bambo wrote:
 And there's another quesiton:
 The handle of chile process( created by fork ) seems never been closed
 bye parent process. Is it need to be closed?

 I don't understand the question.  There's one dangling socket handle left
 and I know where and why it happens.  Other than that, I don't see any
 other socket handling which is left open accidentally.

While run my last test code, every time comes one connection, there
are 3 handle leak( I monited it by Process Explorer( from
www.sysinternals.com)), one is the chile process's handle, one is of
Section\BaseNamedObjects\cygwin1S5-9770bb4ddbd85dca\cygpid.,
the other one is of \Device\Afd.
I mean is there any other leak with those handles.
Simple code like the following will not leak anything:
#include unistd.h
#include stdio.h

int main(void)
{
pid_t pid = fork();
while(1)
{
if ( pid == 0 )
{
sleep(5);
printf(Child: %d ended\n, getpid());
return 0;
}
else if ( pid  0 )
{
printf(New process forked.\n);
sleep(10);
}
}
}

--
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] Updated: cygwin-1.7.0-65

2009-11-23 Thread Huang Bambo
2009/11/23 Corinna Vinschen corinna-cyg...@cygwin.com:
 On Nov 23 17:43, Huang Bambo wrote:
 2009/11/23 Corinna Vinschen corinna-cyg...@cygwin.com:
  On Nov 22 09:33, Huang Bambo wrote:
  And there's another quesiton:
  The handle of chile process( created by fork ) seems never been closed
  bye parent process. Is it need to be closed?
 
  I don't understand the question.  There's one dangling socket handle left
  and I know where and why it happens.  Other than that, I don't see any
  other socket handling which is left open accidentally.
 
 While run my last test code, every time comes one connection, there
 are 3 handle leak( I monited it by Process Explorer( from
 www.sysinternals.com)), one is the chile process's handle, one is of
 Section      \BaseNamedObjects\cygwin1S5-9770bb4ddbd85dca\cygpid.,
 the other one is of \Device\Afd.
 I mean is there any other leak with those handles.

 The leak is a result of the parent process not calling wait(2) or
 waitpid(2) to reap the child process.  If you let the process properly
 call wait/waitpid, you won't see a leak, except for the current socket
 leak this thread is about.

There's some diffirence between cygwin and other *nix:
In other *nix with this condition, those ended child process could be
list by ps command with defunctag, will you fix it?

--
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] Updated: cygwin-1.7.0-65

2009-11-21 Thread Huang Bambo
2009/11/21 Corinna Vinschen corinna-cyg...@cygwin.com:
 On Nov 21 12:03, Huang Bambo wrote:
 Sorry for my bad expression. I mean the fd duplicated by fork() will
 not be close

 Thanks for the testcase but can you still please send the output
 of the test application I sent in
 http://cygwin.com/ml/cygwin/2009-11/msg00651.html and you also

finally compiled with:
$ gcc-3 -mno-cygwin -g -o dup-sock dup-sock.c -lws2_32 -lntdll

and output are:
$ ./dup-sock.exe
Inherit: 1
dwServiceFlags1: 00020066
dwServiceFlags2: 
dwServiceFlags3: 
dwServiceFlags4: 
dwProviderFlags: 0008
ProviderId: E70F1AA0-AB8B-11CF-8CA3-00805F48A192
dwCatalogEntryId: 03E9
ProtocolChain: [len: 1]
0: AB8B
iVersion: 2
iAddressFamily: 2
iMaxSockAddr: 16
iMinSockAddr: 16
iSocketType: 1
iProtocol: 6
iProtocolMaxOffset: 0
iNetworkByteOrder: 0
iSecurityScheme: 0
dwMessageSize: 0
dwProviderReserved: 1912
szProtocol: MSAFD Tcpip [TCP/IP]
ProviderPath: %SystemRoot%\system32\mswsock.dll

 didn't answer my question from
 http://cygwin.com/ml/cygwin/2009-11/msg00655.html
I don't have any antivirus software or firewall installed in my computer.
Please send the test code to me.



 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



--
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] Updated: cygwin-1.7.0-65

2009-11-21 Thread Huang Bambo
And there's another quesiton:
The handle of chile process( created by fork ) seems never been closed
bye parent process. Is it need to be closed?

2009/11/22 Corinna Vinschen corinna-cyg...@cygwin.com:
 On Nov 21 23:43, Huang Bambo wrote:
 $ gcc-3 -mno-cygwin -g -o dup-sock dup-sock.c -lws2_32 -lntdll

 and output are:
 $ ./dup-sock.exe
 Inherit: 1
 dwServiceFlags1: 00020066
 dwServiceFlags2: 
 dwServiceFlags3: 
 dwServiceFlags4: 
 dwProviderFlags: 0008
 ProviderId: E70F1AA0-AB8B-11CF-8CA3-00805F48A192
 dwCatalogEntryId: 03E9
 ProtocolChain: [len: 1]
     0: AB8B
 iVersion: 2
 iAddressFamily: 2
 iMaxSockAddr: 16
 iMinSockAddr: 16
 iSocketType: 1
 iProtocol: 6
 iProtocolMaxOffset: 0
 iNetworkByteOrder: 0
 iSecurityScheme: 0
 dwMessageSize: 0
 dwProviderReserved: 1912
 szProtocol: MSAFD Tcpip [TCP/IP]
 ProviderPath: %SystemRoot%\system32\mswsock.dll

 I don't have any antivirus software or firewall installed in my computer.

 The above shows that as well.  It's the expected output if no socket
 provider is installed which handles this type of socket.

 Please send the test code to me.

 Nver mind.  With the help of your testcase I found the problem.  I'll
 apply a fix shortly, but I have to think about it some more first.


 Thanks for the testcase,
 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



--
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: Cannot run SSH

2009-11-21 Thread Huang Bambo
run /usr/sbin/sshd directly and check if it can start.

2009/11/22 baykusderki baykusde...@gmail.com:
 Hello,

 In the past I have managed to install Cygwin and SSH on multiple computers.
 All of them are running fine and serving SSH just fine. So I am not that new
 to installing this stuff.

 At the moment I am trying to run SSH on my Windows7 64. I know it is not
 tested and maybe not supposed to work at the moment. I actually installed
 and ran SSH successfully on this machine couple days ago when I have first
 installed Windows7. Yesterday it has stopped working so without any given
 reason.  The only thing I can remember that might affect things is
 downloading the latest whatever version of cygwin setup.exe that was on
 Cygwin site yesterday. I did install couple apps like xemacs, command line
 task-todo app and I think I have upgraded the Openssh to the latest version.
 Up until that moment, the Ssh server was running alright.  I am not sure if
 anything else has been updated during the installation.   I tried
 ssh-host-config -y, it did not resolve anything for me. I did fire rm  -R
 etc/ssh*, deleted the service and the users, started over. It did not lead
 to any success. I have actually deleted my cygwin folder since it was a
 new installation I just did not care about it, just to start fresh. After
 the fresh install I fired ssh-host-config -y in the commandline. It
 installed everything without a glitch but Ssh was not running successfully.
  Just to see if it would work on any other win7 installation, I did install
 windows7(32bit version) on a virtual machine(virtual box) and I installed
 the same Cygwin setup. This time without much itching the Ssh server started
 and worked well. So I am really not sure about what to make of this
 situation.

 I have Windows Defender disabled and I do not run any virus-firewall
 application at the moment.

 The sshd.log  file under /var/log/ is empty(0 kb)


 Here are some error messages

 $ net start sshd
 The CYGWIN sshd service is starting.
 The CYGWIN sshd service could not be started.

 The service did not report an error.

 More help is available by typing NET HELPMSG 3534.
 
 $ cygrunsrv.exe -S sshd
 cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
 The service has not been started.
 

 Here is the cygcheck
 
 $ cygcheck /usr/sbin/sshd
 C:\cygwinx\usr\sbin\sshd.exe
  C:\cygwinx\bin\cygcrypt-0.dll
    C:\cygwinx\bin\cygwin1.dll
      C:\Windows\system32\ADVAPI32.DLL
        C:\Windows\system32\msvcrt.dll
          C:\Windows\system32\KERNELBASE.dll
            C:\Windows\system32\ntdll.dll
          C:\Windows\system32\API-MS-Win-Core-Console-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-DateTime-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Interlocked-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll
        C:\Windows\system32\API-MS-WIN-Service-Core-L1-1-0.dll
        C:\Windows\system32\API-MS-WIN-Service-winsvc-L1-1-0.dll
        C:\Windows\system32\API-MS-WIN-Service-Management-L1-1-0.dll
        C:\Windows\system32\API-MS-WIN-Service-Management-L2-1-0.dll
        C:\Windows\system32\API-MS-Win-Core-LocalRegistry-L1-1-0.dll
        C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll
        C:\Windows\system32\KERNEL32.dll
          C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll
          C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll
        C:\Windows\system32\RPCRT4.dll
          C:\Windows\system32\SspiCli.dll
            C:\Windows\system32\CRYPTBASE.dll
              C:\Windows\system32\API-MS-Win-Core-DelayLoad-L1-1-0.dll
            C:\Windows\system32\API-MS-Win-Security-LSALookup-L1-1-0.dll
  C:\cygwinx\bin\cygcrypto-0.9.8.dll
    C:\cygwinx\bin\cyggcc_s-1.dll
  

Re: [1.7] Updated: cygwin-1.7.0-65

2009-11-20 Thread Huang Bambo
Sorry for my bad expression. I mean the fd duplicated by fork() will
not be close
by both parent and child.
The following code listen on port , parent process fork a child to
handle the
incoming socket and then close the socket. The child sleep 3 second and close
the incoming socket. The socket should be closed now but not. And some tools
can show tcp connection state showed there's still one connection from client
program (telnet) to the parent process. Client program can't receive any close
message  and still waiting for message untile parent process exit.

code

#include signal.h
#include unistd.h
#include sys/types.h
#include sys/socket.h
#include sys/time.h
#include stdio.h
#include netinet/in.h
#include arpa/inet.h
#include string.h
#include sys/errno.h


#define MYPORT 

int nRunning;

void sig_handler( int nSignal)
{
nRunning = 0;
}

int main( void )
{
nRunning = 1;
struct sockaddr_in server_addr;
struct sockaddr_in client_addr; // connector's address information
socklen_t sin_size;
int yes=1;
if( signal( SIGINT, sig_handler ) == SIG_ERR )
{
perror( signal() );
return -1;
}
int sock_fd = socket( AF_INET, SOCK_STREAM, 0 );
if ( sock_fd == -1 )
{
perror( socket() );
return -1;
}
if (setsockopt( sock_fd, SOL_SOCKET, SO_REUSEADDR, yes, sizeof(int)) 
== -1)
{
perror( setsockopt() );
return -1;
}
server_addr.sin_family = AF_INET; // host byte order
server_addr.sin_port = htons( MYPORT); // short, network byte order
server_addr.sin_addr.s_addr = INADDR_ANY; // automatically fill with my 
IP
memset( server_addr.sin_zero, '\0', sizeof(server_addr.sin_zero));

if (bind(sock_fd, (struct sockaddr *)server_addr, sizeof(server_addr)) 
== -1)
{
perror(bind());
return -1;
}
if (listen(sock_fd, 5) == -1)
{
perror(listen);
return -1;
}
printf(listen port %d\n, MYPORT );

fd_set fdsr;
int maxsock;
struct timeval tv;

sin_size = sizeof(client_addr);
maxsock = sock_fd;

while(nRunning)
{
FD_ZERO(fdsr);
FD_SET(sock_fd,fdsr);

tv.tv_sec = 10;
tv.tv_usec = 0;

int nRet = select( maxsock + 1, fdsr, NULL, NULL, tv );

if ( nRet == 0 || (nRet  0  errno == EINTR ))
{
// timeout or interrupted by signal
continue;
}
else if ( nRet  0 )
{
perror(select());
printf(%d);
close(sock_fd);
return -1;
}
if ( FD_ISSET( sock_fd, fdsr))
{
int new_fd = accept(sock_fd, (struct sockaddr 
*)client_addr, sin_size);
if ( new_fd = 0 )
{
perror(accept);
continue;
}
else
{
printf(Incoming socket %d\n, new_fd);
pid_t pid = fork();
if ( pid == -1 )
{
perror(fork());
close(new_fd);
continue;
}
else if ( pid == 0 )
{
//child
printf(Child %d fork OK.\n, getpid() 
);
sleep(3);
printf(Child %d close client socket 
%d\n, getpid(), new_fd);
close(new_fd);
return 0;
}
else
{
//parent
printf(Parent %d close client socket 
%d\n, getpid(), new_fd);
close(new_fd);
continue;
}
}
}
}
printf(Parent %d close server socket %d\n, getpid(), sock_fd);
close(sock_fd);
return 0;
}


2009/11/20 Corinna Vinschen corinna-cyg...@cygwin.com:
 On Nov 20 10:14, Huang Bambo wrote:
 I think there maybe

Re: [1.7] Updated: cygwin-1.7.0-65

2009-11-20 Thread Huang Bambo
I don't think it's a SO_LINGER situation, at least there's no data to
send in my test code.

2009/11/21 Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com:
 On Sat, Nov 21, 2009 at 12:03:05PM +0800, Huang Bambo wrote:
Sorry for my bad expression. I mean the fd duplicated by fork() will
not be close
by both parent and child.
The following code listen on port , parent process fork a child to
handle the
incoming socket and then close the socket. The child sleep 3 second and close
the incoming socket. The socket should be closed now but not.

 Is this an SO_LINGER situation?

 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



--
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] Updated: cygwin-1.7.0-65

2009-11-20 Thread Huang Bambo
2009/11/21 Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com:
 On Sat, Nov 21, 2009 at 12:03:05PM +0800, Huang Bambo wrote:
Sorry for my bad expression. I mean the fd duplicated by fork() will
not be close
by both parent and child.
The following code listen on port , parent process fork a child to
handle the
incoming socket and then close the socket. The child sleep 3 second and close
the incoming socket. The socket should be closed now but not.

 Is this an SO_LINGER situation?

Yes, I guess. those connections is in CLOSE_WAIT state
 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



--
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] Updated: cygwin-1.7.0-65

2009-11-19 Thread Huang Bambo
I think there maybe some bug with new socket duplication function.
While I use ssh to connect remote cygwin, with previous version of
cygwin, after type exit command, shell will close and sshd will close
the connection forwardly but with 65 version connection will not close
by sshd untile I type net stop sshd to stop sshd service.


2009/11/19 Corinna Vinschen corinna-cyg...@cygwin.com:
 Hi folks,


 I just uploaded a new Cygwin 1.7 test release, 1.7.0-65.


 Changes in relation to 1.7.0-64:
 

 - New Linux-compatible entry points get_nprocs, get_nprocs_conf,
  get_avphys_pages, and get_phys_pages.  New accompanying header file
  sys/sysinfo.h.

 - Improve speed of mbrtowc and wcrtomb functions.


 Bugfixes:
 =

 - Revert incorrect change in -64 not to create ESC sequences for ALT-key
  keypresses if key translates into a multibyte sequence.  Xterm is doing
  exactly the same, in fact.

 - Make /dev/kmsg implementation installation path dependent.  This was
  missing in the big patch to run multiple Cygwin installations in
  parallel without interferring, and which has gone into -63.

 - Getfacl now returns a return value of 2 if some files from the command
  line were inaccessible.

 - Improve error handling in setenv and unsetenv.

 - Re-integrate a big chunk of code from Cygwin 1.5, which makes socket
  duplication and inheritance to child processes more bullet-proof in
  case the machine has additional socket service providers installed.
  Intrusion detection, 3G communication speedup tools, you name it.
  Please note that this does not help in all BLODA cases, but it should
  at least help to drop drop a couple of the suspects from this list:
  http://cygwin.com/1.7/faq/faq.using.html#faq.using.bloda

 - Fix a few minor problems in the extended attribute API.  Add a bit of
  documentation.

 - Disable a piece of code in the file locking API which could result in
  incorrect results in calls to fcntl (fd, F_GETLK, ...).

 - Fix yet another build problem which results in cygserver being linked
  against /bin/cygstdc++-6.dll accidentally.

 - Add missing declarations of logb and logbf to math.h.


 FAQ:
 

 - Q: How do I know that I'm running Cygwin 1.7.0-65?

  A: The `uname -v' command prints 2009-11-19 10:07


 Have fun,
 Corinna


              *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

 If you want to unsubscribe from the cygwin-announce mailing list, look
 at the List-Unsubscribe:  tag in the email header of this message.
 Send email to the address specified there.  It will be in the format:

 cygwin-announce-unsubscribe-you=3d3dyourdomain@cygwin.com

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

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

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

 --
 Corinna Vinschen                  Please, send mails regarding Cygwin to
 Cygwin Developer                                mailto:cygwin@cygwin.com
 Red Hat, Inc.


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



Encoding problem

2009-11-09 Thread Huang Bambo
Under 1.7.0-063:

I use the following code to remove files:
find . -name .svn | xargs -L 1 rm -rf

and the result is all file without Chinese code in the path are
removed but others not.
I guess maybe 'find' and 'xargs' or 'rm' didn't use the same encoding
make those problem.

--
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: Encoding problem

2009-11-09 Thread Huang Bambo
Sorry, my mistake.

2009/11/9 Huang Bambo bambo.hu...@gmail.com:
 Under 1.7.0-063:

 I use the following code to remove files:
 find . -name .svn | xargs -L 1 rm -rf

 and the result is all file without Chinese code in the path are
 removed but others not.
 I guess maybe 'find' and 'xargs' or 'rm' didn't use the same encoding
 make those problem.


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



ls and cd command don't use the same encoding

2009-11-09 Thread Huang Bambo
Under 1.7.0-63,64
With mintty
export LANG=en_US.UTF-8
export LC_TYPE=zh_CN.UTF-8

ls can list some directory in Chinese but cd command can't enter it.
If I set encoding to GBK, mintty works fine but ssh can't do so then.

$ cd /tmp
[ba...@revenco-bambo /tmp]
$ ls
中文
[ba...@revenco-bambo /tmp]
$ cd /  (I use tab
key to auto fill this line)
[ba...@revenco-bambo /tmp/]
$ cd ..
[ba...@revenco-bambo /tmp]
$ cd 中文 (I input
the directory name, but can't enter)
-bash: cd: 中文: No such file or directory

[ba...@revenco-bambo /tmp]
$ env | grep LAN
NLS_LANG=AMERICAN_AMERICA.ZHS32GB18030
LANG=en_US.UTF-8
[ba...@revenco-bambo /tmp]
$ env | grep LC
LC_TYPE=zh_CN.UTF-8
[ba...@revenco-bambo /tmp]

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



xsi ipc can't work under 1.7.0-063

2009-11-05 Thread Huang Bambo
cygserver service runs well but ipcs command report bad system call.
Other programs need ipc operator also can't run now.
I rollbacked to 1.7.0-062 and it seems everything goes 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



Re: Can't get SSHD started after successfully running sshd-host-config‏

2009-09-21 Thread Huang Bambo
Try run /usr/sbin/sshd  and tell me the output.

2009/9/22 Kyle Stanek kstane...@hotmail.com


 Hello,

 I'm having trouble getting the sshd service running under
 cygwin.  I am running Cygwin on Windows XP SP3.  I have successfully
 run ssh-host-config, however I get errors when I try and start the
 service using cygrunsrv or net:


 [fido ~]$ cygrunsrv --start sshd
 cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
 The service has not been started.
 [fido ~]$
 [fido ~]$ net start sshd
 The CYGWIN sshd service is starting.

 The CYGWIN sshd service could not be started.

 The service did not report an error.

 More help is available by typing NET HELPMSG 3534.

 [fido ~]$

 Also, the sshd log is empty:
 [fido ~]$ cat /var/log/sshd.log

 [fido ~]$

 Another
 piece of information that may be helpful is that I can't even get the
 sshd executable to output any debug information, as it simply returns
 silently.  i.e.

 [fido ~]$ /usr/sbin/sshd -d -d -d -D

 [fido ~]$ /usr/sbin/sshd -d
 [fido ~]$

 Here is my best attempt at an accounting of the settings that I have used:
 1.  I installed cygwin packages for all users, Unix / binary file types
 2.  I have installed the following Cygwin packages:

 cygrunsrv 1.34-1
 openssh 5.1p1-8
 3.
 When running ssh-host-config, I accepted all defaults and chose to run
 sshd under a separate account with limited permissions.

 Please let me know if you need any more information.  I would appreciate any 
 help that could be provided.


 Thanks,
 Kyle

 _
 Hotmail: Powerful Free email with security by Microsoft.
 http://clk.atdmt.com/GBL/go/171222986/direct/01/

 --
 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: Find cron failed script

2009-08-25 Thread Huang Bambo
Just add the cygwin's searh path at the beginning of PATH environment

2009/8/26 Wes S w...@acegroup.cc:
 Drove myself nuts trying to figure out why my script ran fine from a
 console and died under cron.

 Find is part of w2k,  cron doesn't seem to have a path unless I tell
 it to.  I got the following:

 FIND: Invalid switch
 FIND: Parameter format not correct

 I should have directly specified path to find or put a path in my
 script.

 Oh well, just wanted it out there for others that stubbed their foot
 on this.  I don't want to say how long it took for me to figure this
 out.

 Wes


 --
 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: flex package requires m4

2009-08-23 Thread Huang Bambo
There's a package named m4. You should install it.

2009/8/24 Karl M karl...@hotmail.com

 Hi All...

 I just tried to use mlcscope on cygwin 1.7 but it hung at 100% cpu building 
 the data base. So I decided to download and build cscope 15.7a. It builds 
 OOTB, but along the way, I noticed that flex depends on m4, but cygwin-setup 
 does not know that.

 Thanks,

 ...Karl
 _
 Windows Live: Keep your friends up to date with what you do online.
 http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009

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



PostgerSQL startup script bug

2009-08-18 Thread Huang Bambo
The cygwin 1.7 don't need “server” tag in CYGWIN environment but the
start up of postgresql 8.2.11 checked this tag.

code:
131 check_cygserver() {
132 # Check for running cygserver processes first.
133 if ps -ef | grep -v grep | grep -q cygserver
134 then
135 echo -n - cygserver OK - 
136 # echo OK cygserver running
137 else
138 echo ERROR cygserver must be started
139 echo cygrunsrv -S cygserver
140 exit 1
141 fi
142 # check for CYGWIN containing server
143 if [ -n ${CYGWIN%server} ]
144 then
145 echo ERROR CYGWIN must contain server for cygserver to work properly
146 exit 1
147 fi
148 }
149

from 142 to 147 is not needed in cygwin 1.7

--
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: No etc/passwd (was) Re: (everything!) command not found

2009-08-16 Thread Huang Bambo
I think you should learn some basic unix knowledge first.

2009/8/16 DY yarri...@agora-net.com

 I figured out my old problem, but now I have no /etc/passwd.  How do I create 
 one?
 I'd use vi, but I don't know what one should look like.  Is there an example 
 somewhere?

 In case anyone else ever needs this, if you install cygwin, then get command 
 not found
 for everything, you need to:
 click on Computer - Properties - Advanced System settings (on the side 
 bar)- Environment Variables.
 Under user variables, add a new environment variable, called CYGWIN_HOME and 
 set its value to C:\cygwin
 Under system variables, edit the PATH environment variable and add 
 C:\cygwin\bin.
 Click okay, and restart cygwin. (Thanks to Sudipta Chatterjee)
 (In case anyone else searches the archives for a solution to this problem).
 -Debra


 Christopher Faylor wrote:

 On Fri, Aug 14, 2009 at 01:04:05PM -0400, DY wrote:


 All except gcc-mingw-core-3.4.4-20050522-1.tgz and 
 gcc-mingw-g++-3.4.4-20050522-1.tgz
 say done. I'm assuming they were unzipped and run, though, because I have 
 agcc-mingw-core.sh.done
 and a gcc.mingw-g++.sh.done so I'm assuming that's the run,done version of 
 the zipped files.
 Besides, I can't do ANYTHING.  Everything says command not found.


 So either set your PATH by hand or specify the full path to the executable
 while you are debugging the problem.

 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




 --
 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: Bad system call when calling msgsnd

2009-08-10 Thread Huang Bambo
Run net star cygserver first

2009/8/10 Scott cyg...@realmofthesh.com

 When I compile and run the following example code within cygwin (gcc msgsnd.c 
 -o msgsnd), I get an error Bad system call

 This seems to be a bug; it runs fine under linux.

 #include sys/msg.h

 int main() {
   int msqid = 0;
   int rc;
   size_t msgsz;
   struct {
        long int mtype;
       char     mtext[256];
   } mymsg;

   msgsz = 256;
   mymsg.mtype = 1;
   rc = msgsnd(msqid, mymsg, msgsz,  IPC_NOWAIT);
   return 0;
 }


 --
 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: Please test the latest snapshot! (was Re: [1.7] Updated: cygwin-1.7.0-56)

2009-08-04 Thread Huang Bambo
The ls can't show file problem and vim go back forground problem seems fixed.

2009/8/4 Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com

 On Tue, Aug 04, 2009 at 12:49:03AM -0400, Christopher Faylor wrote:
 On Mon, Aug 03, 2009 at 11:42:40PM -0400, Christopher Faylor wrote:
 On Mon, Aug 03, 2009 at 09:21:35PM -0600, Jim Reisert AD1C wrote:
 I removed the *56* release file from my Cygwin install directory and
 tried a re-install.  Now in a DOS window, when I try to start TCSH, I
 get:
 
 f:\tcsh
       3 [main] tcsh 6028 _cygtls::handle_exceptions: Exception:
 STATUS_ACCESS_VIOLATION
     502 [main] tcsh 6028 open_stackdumpfile: Dumping stack trace to
 tcsh.exe.stackdump
 
 This one, I can duplicate.  I'm investigating the problem now.
 
 This should be fixed in the latest snapshot.  Please check it out.
 
 You just have to replace the dll and nothing else.
 
 http://cygwin.com/snapshots/

 Did anyone test this?  This snapshot fixes some memory corruption
 introduced by the recent change to reduce the size of some in-memory
 filename structures.

 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


--
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: $DISPLAY variable empty after SSHing

2009-08-03 Thread Huang Bambo
You must have you ssh tool make X forward enabled.

2009/8/4 mcoughlin michael.w.cough...@gmail.com:

 This may be confusing because I have to SSH twice to reach the computer I
 work on.

 On my home computer, I begin by starting the X server. I run the command:

 bash-3.2$ echo $DISPLAY
 :0.0

 And so it seems to be working fine. I then do:

 ssh -X computer #2

 Warning: untrusted X11 forwarding setup failed: xauth key data not generated
 Warning: No xauth data; using fake authentication data for X11 forwarding.

 And that is returned.

 ssh -Y computer #2 returns no errors.

 When I do
 [mcough...@lisa ~]$ echo $DISPLAY
 localhost:12.0
 is returned for logging in with either the -X or -Y method.

 When I finally log into my work computer with either the -X or -Y method,
 -bash-3.2$ echo $DISPLAY

 returns nothing. And so when I attempt to use octave to plot,
 octave:2 plot(x)

 gnuplot: unable to open display ''
 gnuplot: X11 aborted.

 Obviously nothing happens.

 Can someone give me a clue?

 Thank you,
 Michael

 --
 View this message in context: 
 http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24800981.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



--
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] Updated: cygwin-1.7.0-56

2009-08-03 Thread Huang Bambo
I confirm this problem.
After ls command can't list anything, command strace ls will work
with correct result.

2009/8/4 Jim Reisert AD1C jjreis...@alum.mit.edu:
 I did NOT have the problem on my work PC.  I do have the problem on my
 home PC (even after rebooting).  Home is running Wnidows SP3, work is
 running Windows SP2 (I think).

 - Jim

 On Sun, Aug 2, 2009 at 9:45 AM, Jim Reisert AD1Cjjreis...@alum.mit.edu 
 wrote:
 It's worse than that.

 In an xterm, the first ls works (I get output) but then nothing
 works after that.  Just get command prompt returned.

 - Jim

 On Sun, Aug 2, 2009 at 9:41 AM, Jim Reisert AD1Cjjreis...@alum.mit.edu 
 wrote:
 Emacs no longer works.  It comes back to the prompt, no window.

 Using latest X-org and Emacs.

 - Jim


 --
 Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

 --
 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: [1.7] Updated: cygwin-1.7.0-56

2009-08-03 Thread Huang Bambo
Try release 51, it's the last stable version for me.

2009/8/4 Jim Reisert AD1C jjreis...@alum.mit.edu:
 I removed the *56* release file from my Cygwin install directory and
 tried a re-install.  Now in a DOS window, when I try to start TCSH, I
 get:

 f:\tcsh
      3 [main] tcsh 6028 _cygtls::handle_exceptions: Exception:
 STATUS_ACCESS_VIOLATION
    502 [main] tcsh 6028 open_stackdumpfile: Dumping stack trace to
 tcsh.exe.stackdump

 uname -a reports:

 CYGWIN_NT-5.1 1.7.0(0.212/5/3)

 - Jim

 Here is output from cygcheck:


 Cygwin Package Information
 Package              Version             Status
 _update-info-dir     00827-1             OK
 alternatives         1.3.30c-10          OK
 aspell               0.60.5-1            OK
 aspell-en            6.0.0-1             OK
 base-cygwin          2.0-1               OK
 base-files           3.8-4               OK
 base-passwd          3.1-1               OK
 bash                 3.2.49-23           OK
 binutils             2.19.51-1           OK
 bzip2                1.0.5-10            OK
 coreutils            7.0-2               OK
 crypt                1.1-1               OK
 csih                 0.9.1-1             OK
 cvs                  1.12.13-10          OK
 cygrunsrv            1.34-1              OK
 cygutils             1.4.0-1             OK
 cygwin               1.7.0-56            OK
 cygwin-doc           1.5-1               Incomplete
 dash                 0.5.5.1-2           OK
 diffutils            2.8.7-1             OK
 e2fsprogs            1.35-3              OK
 editrights           1.01-2              OK
 emacs                23.0.92-10          OK
 emacs-X11            23.0.92-10          OK
 expat                2.0.1-1             OK
 findutils            4.5.4-1             OK
 font-adobe-dpi75     1.0.0-1             OK
 font-alias           1.0.1-1             OK
 font-encodings       1.0.2-1             OK
 font-misc-misc       1.0.0-1             OK
 fontconfig           2.6.0-1             OK
 fortune              1.99.1-2            OK
 gawk                 3.1.7-1             OK
 gcc-core             3.4.4-999           OK
 gcc-g++              3.4.4-999           OK
 gcc-mingw-core       20050522-1          OK
 gcc-mingw-g++        20050522-1          OK
 gcc4-runtime         4.3.2-1             OK
 gdb                  6.8-2               OK
 gettext              0.17-11             OK
 grep                 2.5.3-1             OK
 groff                1.19.2-2            OK
 gzip                 1.3.12-2            OK
 inetutils            1.5-6               OK
 ipc-utils            1.0-1               OK
 less                 429-1               OK
 libapr1              1.3.5-2             OK
 libapr1-devel        1.3.5-2             OK
 libaprutil1          1.3.7-2             OK
 libaprutil1-devel    1.3.7-2             OK
 libaspell15          0.60.5-1            OK
 libaudiofile-devel   0.2.6-3             OK
 libaudiofile0        0.2.6-3             OK
 libbz2_1             1.0.5-10            OK
 libcharset1          1.13-10             OK
 libcurl-devel        7.19.4-1            OK
 libcurl4             7.19.4-1            OK
 libdb4.2             4.2.52.5-2          OK
 libdb4.2-devel       4.2.52.5-2          OK
 libdb4.5             4.5.20.2-2          OK
 libesd-devel         0.2.41-1            OK
 libesd0              0.2.41-1            OK
 libexpat1            2.0.1-1             OK
 libexpat1-devel      2.0.1-1             OK
 libfontconfig1       2.6.0-1             OK
 libfontenc1          1.0.4-10            OK
 libfreetype-devel    2.3.8-1             OK
 libfreetype6         2.3.8-1             OK
 libgcc1              4.3.2-2             OK
 libgdbm-devel        1.8.3-20            OK
 libgdbm4             1.8.3-20            OK
 libgif4              4.1.6-2             OK
 libGL1               7.4.4-1             OK
 libgmp3              4.3.1-3             OK
 libICE6              1.0.5-10            OK
 libiconv             1.13-10             OK
 libiconv2            1.13-10             OK
 libidn-devel         1.9-1               OK
 libidn11             1.9-1               OK
 libintl2             0.12.1-3            OK
 libintl3             0.14.5-1            OK
 libintl8             0.17-11             OK
 libjpeg62            6b-20               OK
 liblzma0             4.999.8beta-10      OK
 libncurses7          5.3-4               OK
 libncurses8          5.5-10              OK
 libncurses9          5.7-14              OK
 libopenldap2_3_0     2.3.43-1            OK
 libpcre-devel        7.9-1               OK
 libpcre0             7.9-1               OK
 libpixman1_0         0.14.0-10           OK
 libpng12             1.2.35-10           OK
 libpopt0             1.6.4-4             OK
 libpq5               8.2.11-1            OK
 libproj0             4.5.0a-2            OK
 libreadline6         5.2.14-12           OK
 libreadline7         6.0.3-2             OK
 libsasl2       

Re: Backgroud program uanble to go back

2009-08-01 Thread Huang Bambo
It's Ctrl+Z to take vime to background, it's a typing mistake.
Command jobs can show jobs. But fg command will not take the process back.
After enter fg command, no warning will given while exit current shell.

2009/8/1 Robert Mark Bram robertmarkbram.cyg...@gmail.com:
 Hi Huang,

 Cygwin 1.7.52 to 1.7.54
 After I use Ctrl+D to make a working vim background, the process will
 not comeback with fg command.
 I havn't test if other programs are the same.

 Feel free to slap me with a fresh sea bass if this is a new feature to
 1.7, which I have not tried.. but isn't control+Z the sleep/go to
 background command?

 Also, I can do jobs to find out what other processes are running in
 the background.. check the number against those jobs and issue fg x
 where x is the number..

 *gets ready for the slap of a fresh sea bass*

 Rob
 :)

 General Blog: http://robertmarkbram.blogspot.com/
 Technical Blog: http://robertmarkbramprogrammer.blogspot.com/
 Profile: http://www.google.com/profiles/robertmarkbram

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



Backgroud program uanble to go back

2009-07-31 Thread Huang Bambo
Cygwin 1.7.52 to 1.7.54
After I use Ctrl+D to make a working vim background, the process will
not comeback with fg command.
I havn't test if other programs are the same.

$ cygcheck.exe -c -s
Cygwin Package Information
Package  Version Status
_update-info-dir 00827-1 OK
alternatives 1.3.30c-10  OK
base-cygwin  2.0-1   OK
base-files   3.8-4   OK
base-passwd  3.1-1   OK
bash 3.2.49-23   OK
binutils 2.19.51-1   OK
bison2.3-1   OK
bzip21.0.5-10OK
coreutils7.0-2   OK
cppcheck 1.34-1  OK
crypt1.1-1   OK
csih 0.9.0-1 OK
cygrunsrv1.34-1  OK
cygutils 1.4.0-1 OK
cygwin   1.7.0-54OK
cygwin-doc   1.5-1   OK
dash 0.5.5.1-2   OK
diffutils2.8.7-1 OK
e2fsprogs1.35-3  OK
editrights   1.01-2  OK
expat2.0.1-1 OK
file 5.00-3  OK
findutils4.5.4-1 OK
flex 2.5.35-1OK
gawk 3.1.7-1 OK
gcc4-core4.3.2-2 OK
gcc4-g++ 4.3.2-2 OK
gdb  6.8-2   OK
gettext  0.17-11 OK
grep 2.5.3-1 OK
groff1.19.2-2OK
gzip 1.3.12-2OK
inetutils1.5-6   OK
ipc-utils1.0-1   OK
less 429-1   OK
libapr1  1.3.5-2 OK
libaprutil1  1.3.7-2 OK
libbz2_1 1.0.5-10OK
libcharset1  1.13-10 OK
libdb4.2 4.2.52.5-2  OK
libdb4.5 4.5.20.2-2  OK
libexpat12.0.1-1 OK
libexpat1-devel  2.0.1-1 OK
libffi4  4.3.2-2 OK
libgcc1  4.3.2-2 OK
libgdbm4 1.8.3-20OK
libgmp3  4.3.1-3 OK
libgomp1 4.3.2-2 OK
libiconv 1.13-10 OK
libiconv21.13-10 OK
libintl2 0.12.1-3OK
libintl3 0.14.5-1OK
libintl8 0.17-11 OK
libmpfr1 2.4.1-4 OK
libncurses-devel 5.7-14  OK
libncurses8  5.5-10  OK
libncurses9  5.7-14  OK
libneon270.28.3-1OK
libopenldap2_3_0 2.3.43-1OK
libpcre0 7.9-1   OK
libpopt0 1.6.4-4 OK
libpq5   8.2.11-1OK
libreadline6 5.2.14-12   OK
libreadline7 6.0.3-2 OK
libsasl2 2.1.19-3OK
libserf0_0   0.3.0-2 OK
libsigsegv0  2.6-1   OK
libsqlite3_0 3.6.2-1 OK
libssp0  4.3.2-2 OK
libstdc++6   4.3.2-2 OK
libstdc++6-devel 4.3.2-2 OK
libwrap0 7.6-20  OK
login1.10-10 OK
m4   1.4.13-2OK
make 3.81-2  OK
man  1.6e-1  OK
minires  1.02-1  OK
mintty   0.4.4-1 OK
ncurses  5.7-14  OK
openssh  5.2p1-4 OK
openssl  0.9.8k-2OK
openssl-devel0.9.8k-2OK
perl 5.10.0-5OK
ping 1.0-1   OK
procps   3.2.7-1 OK
readline 6.0.3-2 OK
rebase   3.0.1-1 OK
run  1.1.10-1OK
sed  4.1.5-2 OK
sqlite3  3.6.2-1 OK
subversion   1.6.3-2 OK
tar  1.22-1  OK
tcltk20080420-1  OK
termcap  20050421-1  OK
terminfo 5.7_20090228-10 OK
terminfo05.5_20061104-10 OK
texinfo  4.13-3  OK
typespeed0.6.4-1 OK
tzcode   2008h-1 OK
util-linux   2.14.1-1OK
vim  7.2.148-1   OK
w32api   3.13-1  OK
which2.20-2  OK
zlib 1.2.3-10OK
zlib-devel   1.2.3-10OK
zlib01.2.3-10OK

Cygwin Configuration 

Re: [1.7] Updated: cygwin-1.7.0-52

2009-07-24 Thread Huang Bambo
The previous version support GBK code well but this version can't.
I now can only use utf-8.


 2009/7/24 Corinna Vinschen corinna-cyg...@cygwin.com

 Hi folks,


 I just uploaded a new Cygwin 1.7 test release, 1.7.0-52.

 As it turns out, there are still two problems to fix(*) and our vacation
 schedule is so that we won't get to fix both of them in time *and*
 release 1.7.1 next week.

 So, here's 1.7.0-52, which is yet again supposed to be the last test
 release.  Which is to say, there will be definitely not more than one
 more test release.  I mean it.

 You know the drill by now, see the older test release announcements
 as http://cygwin.com/ml/cygwin-announce/2009-07/msg00012.html

 Btw., the User's Guide is also available as PDF now:
 http://cygwin.com/1.7/cygwin-ug-net/cygwin-ug-net.pdf


 What's new in contrast to 1.7.0-51
 ===

 - Implement waitpid(2) WCONTINUED option.

 - Support MVFS (Rational ClearCase) filesystem.

 - unlink(2) now never tries to remove files on remote drives (except on
  NFS) which are opened by another process.  Rather, it returns EBUSY,
  in line with POSIX.

 - mount(1) now prints the Windows filesystem name rather than just
  unknown for filesystems not explicitely handled by Cygwin.  For
  developers:  That's getmntent(3) for you.

 - Support filesystems returning STATUS_NOT_SUPPORTED instead of
  STATUS_EAS_NOT_SUPPORTED.

 - A couple of performance tweaks when accessing files.

 - Notice absence of the Windows character set translation tables for
  eucJP, eucKR, SJIS, GBK, and Big5 on Windows versions up to Windows XP
  and, if so, refuse to switch to these charsets in calls to setlocale.
  Why only for these?  Because they are the only charsets which require
  OS support.

 - strace(1) now writes debug output with UNIX LF lineendings, rather
  than with DOS CR/LF.

 - mount(1) now supports the -a option as well as a single POSIX filename
  as parameter to allow mounting filesystems from a just changed fstab
  file in the current session.


 Bugfixes:
 =

 - Return correct si_addr value in siginfo_t when calling signal handler.

 - Fix typo (noexec - notexec) in mount(1) and getmntent(3).

 - Fix close-on-exec bug in flock(2).

 - Return correct value in calls to dup2 (x, y) with x == y.

 - Fix fork() not to run out of thread-local buffers if a process forks
  recursively.

 - Fix a problem in exception handling which made it unreliable on
  Windows Server 2008 and 2008 R2.

 - Don't report unavailable servers in network path existence check.

 - Avoid to alloc excess buffer space on stack when accessing network
  paths.

 - Fix debug output in chdir().


 (*) What's still to fix?
 

 - A problem in the destructor call order on process exit
  http://cygwin.com/ml/cygwin-developers/2009-07/msg0.html

 - A FIFO regression
  http://cygwin.com/ml/cygwin/2009-07/msg00233.html


 FAQ:
 

 - Q: How do I know that I'm running Cygwin 1.7.0-52?

  A: The `uname -v' command prints 2009-07-24 09:59



 Have fun,
 Corinna


              *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

 If you want to unsubscribe from the cygwin-announce mailing list, look
 at the List-Unsubscribe:  tag in the email header of this message.
 Send email to the address specified there.  It will be in the format:

 cygwin-announce-unsubscribe-you=3d3dyourdomain@cygwin.com

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

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

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

 --
 Corinna Vinschen                  Please, send mails regarding Cygwin to
 Cygwin Developer                                mailto:cygwin@cygwin.com
 Red Hat, Inc.


--
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 get sshd to start on windows (Win32 error 1062)

2009-07-24 Thread Huang Bambo
Maybe it is the problem of the permission of /var/empty

2009/7/24 Marc bookwormm...@gmail.com:
 I am having trouble getting the sshd service to start on windows.  I
 have read everything that I can on-line and on the cygwin archives,
 but I can't seem to find an answer.
 I am running windows XP.  I installed cygwin, ran ssh-host-config -y,
 ssh-user-config -y (both from a user account in the Administrators
 group) and attempted to run cygrunsrv -S sshd only to get Win32 error
 1062.  Here is my cygcheck output.

 Cygwin Configuration Diagnostics
 Current System Time: Fri Jul 24 14:05:49 2009
 Windows XP Professional Ver 5.1 Build 2600 Service Pack 3
 Path: C:\cygwin\usr\local\bin
 C:\cygwin\bin
 C:\cygwin\bin
 C:\cygwin\usr\X11R6\bin
 c:\Program Files\Windows Resource Kits\Tools\
 c:\Program Files\Common Files\SIL
 c:\Program Files\SIL\FieldWorks\
 c:\WINDOWS\system32
 c:\WINDOWS
 c:\WINDOWS\System32\Wbem
 c:\WINDOWS\system32\WindowsPowerShell\v1.0
 c:\Program Files\hardBackup\
 c:\Program Files\Samsung\Samsung PC Studio 3\
 c:\Program Files\Microsoft SQL Server\90\Tools\binn\
 c:\Programs\Python30
 C
 C:\cygwin\Program Files\SIL\ShUtils
 c:\Program Files\QuickTime\QTSystem\
 C:\cygwin\bin
 Output from C:\cygwin\bin\id.exe (nontsec)
 UID: 18(SYSTEM)          GID: 544(Administrators)
 0(root)                  544(Administrators)
 Output from C:\cygwin\bin\id.exe (ntsec)
 UID: 18(SYSTEM)          GID: 544(Administrators)
 0(root)                  544(Administrators)
 SysDir: C:\WINDOWS\system32
 WinDir: C:\WINDOWS
 USER = 'SYSTEM'
 PWD = '/'
 HOME = '/'
 MAKE_MODE = 'unix'
 MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
 HOSTNAME = 'Gundabooka'
 TERM = 'cygwin'
 PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 7, GenuineIntel'
 WINDIR = 'C:\WINDOWS'
 OLDPWD = '/cygdrive/c/WINDOWS/system32'
 OS = 'Windows_NT'
 ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
 TEMP = '/cygdrive/c/WINDOWS/TEMP'
 COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
 QTJAVA = 'C:\Program Files\Java\jre6\lib\ext\QTJava.zip'
 PROCESSOR_LEVEL = '15'
 GLDPP_PREFS = '-I'
 FP_NO_HOST_CHECK = 'NO'
 SYSTEMDRIVE = 'C:'
 USERPROFILE = 'C:\Documents and Settings\NetworkService'
 PS1 = '\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
 PROCESSOR_ARCHITECTURE = 'x86'
 SHLVL = '1'
 PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1'
 COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
 TMP = '/cygdrive/c/WINDOWS/TEMP'
 SYSTEMROOT = 'C:\WINDOWS'
 PRINTER = 'PDFCreator'
 CVS_RSH = '/bin/ssh'
 PROCESSOR_REVISION = '0207'
 CLASSPATH = '.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip'
 INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
 PROGRAMFILES = 'C:\Program Files'
 NUMBER_OF_PROCESSORS = '1'
 PYTHON_HOME = 'c:\Programs\Python30'
 COMPUTERNAME = 'GUNDABOOKA'
 _ = '/usr/bin/cygcheck'
 HKEY_CURRENT_USER\Software\Cygnus Solutions
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
   (default) = '/cygdrive'
   cygdrive flags = 0x0022
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
   (default) = 'C:\cygwin'
   flags = 0x000a
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
   (default) = 'C:\cygwin/bin'
   flags = 0x000a
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
   (default) = 'C:\cygwin/lib'
   flags = 0x000a
 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
 a:  fd             N/A    N/A
 c:  hd  NTFS    114463Mb  36% CP CS UN PA FC
 d:  cd             N/A    N/A
 e:  cd             N/A    N/A
 f:  cd             N/A    N/A
 C:\cygwin      /          system  binmode
 C:\cygwin/bin  /usr/bin   system  binmode
 C:\cygwin/lib  /usr/lib   system  binmode
 .              /cygdrive  system  binmode,cygdrive
 Found: C:\cygwin\bin\awk.exe
 Found: C:\cygwin\bin\bash.exe
 Found: C:\cygwin\bin\cat.exe
 Found: C:\cygwin\bin\cp.exe
 Not Found: cpp (good!)
 Not Found: crontab
 Found: C:\cygwin\bin\find.exe
 Found: c:\Program Files\hardBackup\find.exe
 Warning: C:\cygwin\bin\find.exe hides c:\Program Files\hardBackup\find.exe
 Not Found: gcc
 Not Found: gdb
 Found: C:\cygwin\bin\grep.exe
 Found: C:\cygwin\bin\kill.exe
 Not Found: ld
 Found: C:\cygwin\bin\ls.exe
 Not Found: make
 Found: C:\cygwin\bin\mv.exe
 Not Found: patch
 Not Found: perl
 Found: C:\cygwin\bin\rm.exe
 Found: c:\Program Files\hardBackup\rm.exe
 Warning: C:\cygwin\bin\rm.exe hides c:\Program Files\hardBackup\rm.exe
 Found: C:\cygwin\bin\sed.exe
 Found: C:\cygwin\bin\ssh.exe
 Found: c:\Program Files\hardBackup\ssh.exe
 Warning: C:\cygwin\bin\ssh.exe hides c:\Program Files\hardBackup\ssh.exe
 Found: C:\cygwin\bin\sh.exe
 Found: C:\cygwin\bin\tar.exe
 

updatedb crashed

2009-07-22 Thread Huang Bambo
$ updatedb
assertion ent-fts_info == FTS_NSOK || state.type != 0 failed: file
/usr/src/findutils-4.5.4-1/src/findutils-4.5.4/find/ftsfind.c, line
475, function: consider_visiting
*** starting debugger for pid 28372, tid 27324
  5 [sig] find 30340 try_to_debug: Failed to start debugger, Win32 error 3
*** continuing pid 28372 from debugger call (0)
/usr/bin/updatedb: line 368: 30340 Aborted (core
dumped) $find $SEARCHPATHS $FINDOPTIONS \( $prunefs_exp -type d -regex
$PRUNEREGEX \) -prune -o $print_option

Who can help me?

Cygwin DLL version info:
DLL version: 1.7.0
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 212
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Program options name: Program Options
Cygdrive default prefix:
Build date: Mon Jul 13 10:28:01 CEST 2009
Shared id: cygwin1S5

All package updated to the last version.

--
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-host-config on Win2k3

2009-06-29 Thread Huang Bambo
Have you installed the packages needed?

2009/6/30 Zachary Dean zd...@homemanageables.com

 Hello,

 I am having trouble geting the ssh host to start on windows server 2003, it 
 tells me that
 the command 'ssh-host-config' is not found. I am also unable to start 
 'ssh-user-config'.
 I have 'ssh-host-config -y' and it still does not work.

 Thanks,

 Zack

 --
 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: Optimize cygwin on recent windows version (Vista and Seven)

2009-06-15 Thread Huang Bambo
I guess it is because of some security specialty, check your settings.

2009/6/15 Vincent R. foru...@smartmobili.com:
 Hi,

 Until now I was using cygwin on Windows XP and I was satisfied by
 cygwin-1.7 but these last few days
 I switched to a more powerful laptop with very fast hardware (Core Duo 3.0
 Ghz and SSD OCZ Vertex)
 and running windows Seven.
 Now when I test cygwin, everything is so sloowww, I know this is not
 something new but do you plan
 to work on this issue ?
 From what I know, the problem comes from fork implementation but actually
 as a user I don't care
 where does it come from I am only noticing I cannot work anymore with
 cygwin.
 Have you ever thought of something to improve things ?
 Will it be one day possible ? Are you lacking some information from MS ?
 It's so annoying that with very modern hardware I feel like runnning a
 windows 3.1 on a 128 KB system ...
 If you answer that it's not possible to do better, in this case I will to
 find alternatives.
 Don't know if mingw could be one of them ?



 --
 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: where to get c++ and java 4.0

2009-06-13 Thread Huang Bambo
cygwin 1.5 has gcc-4, but default is gcc3, and cygwin 1.7's default
compiler is gcc4

2009/6/13 Marvin Hunkin startrekc...@gmail.com:
 hi.
 where can i get the c++ and java 4.4 from this site?
 and where to download?
 can any one help.
 cheers Marvin.
 E-Mail: startrekc...@gmail.com
  Msn: startrekc...@msn.com
  Skype: startrekcafe
 Visit my Jaws Australia Group at http://groups.yahoo.com/groups/JawsOz/



 --
 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: FW: OpenSSH server installation error on Windows Vista Business/Ultimate

2009-06-11 Thread Huang Bambo
What's your trouble?

2009/6/12 David Christensen dpchr...@holgerdanske.com:
 cygwin:

 I installed a fresh copy of Cygwin and a fresh copy of the Cygwin
 OpenSSH service on a fresh installation of Windows Vista Ultimate SP1
 32-bit yesterday:

 1.  Download Cygwin Setup to C:\cygwin\setup\setup.exe.

 2.  Run Cygwin Setup:

    a.  Install from Internet (default).

    b.  C:\cygwin root directory (default).

    c.  Install for all users (default).

    d.  Unix/ binary default text file type (default).

    e.  C:\cygwin\setup local package directory (default).

    f.  Direct connection to Internet (default).

    g.  ftp://mirrors.kernel.org download site.

    h.  Select source packages to match base/ default packages.

    i.  Create Desktop and Start menu shortcuts.

 3.  Start Cygwin Bash Shell, then exit it.

 4.  Run Cygwin Setup again:

    a-g.  Same as above.

    h.  Select 'openssh' package.  Setup will select dependencies.
 Select source packages for all of these.

    i.  No need to recreate shortcuts.

 5.  Start Cygwin Bash Shell and wrestle with ssh-host-config, 'net start
 sshd', and /var/log/sshd.log, rebooting several times along the way for
 the sake of paranoia.  In the end, I need to make four system changes to
 get sshd working:

    a.  'chmod 0777 /etc/passwd' -- overkill, so that ssh-host-config
 could create the cyg_server account.  (I changed permissions to 0644
 afterwards.)

    b.  'chmod 0777 /etc/group' -- more overkill for ssh-host-config.
 (I changed permissions to 0644 afterwards.)

    c.  'chmod 0777 /var' -- more overkill for ssh-host-config.  (I left
 it that way.)

    d.  'chown cyg_server /var/empty' -- necessary to start the sshd
 service.


 HTH,

 David


 --
 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: why /etc/bash.bashrc is not executed when logging in as a domain user?

2009-06-09 Thread Huang Bambo
/etc/bash.bashrc is called by $HOME/.bash_profile like:

 17 # source the system wide bashrc if it exists
 18 if [ -e /etc/bash.bashrc ] ; then
 19   source /etc/bash.bashrc
 20 fi

Check your $HOME/.bash_profile at first.

2009/6/9 Pan ruochen panruoc...@gmail.com

 Hi All,

 The system wide bashrc file /etc/bash.bashrc is not executed if I log
 in Windows XP as a domain user; and it is executed if I log in as a
 local user.
 Is this mentioned in the manual?

 PRC
 Jun 9,2009

 --
 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: Cygwin SSH Multiple Users

2009-06-09 Thread Huang Bambo
Everyone should mount by itself.

2009/6/9 Holikar, Sachin (ext) sachin.holikar@siemens.com:


 Hi,

 After enough tries we were able to start the sshd in our environment and 
 local users are also able to login. But in comes the next problem.
 We have samba mounted a share onto this windows system. The user with which 
 we samba mounted the share , is able to see the shares in Cygwin. But other 
 users are not able to see the share when logged in through ssh and checked 
 with df. We expect to see this share by all the local users who are logged in 
 via SSH.

 Any suggestiosns are welcome please.

 Thanks,
 Sac
 -Original Message-
 From: Holikar, Sachin (ext)
 Sent: Freitag, 5. Juni 2009 09:09
 To: 'cygwin@cygwin.com'
 Subject: RE: Cygwin SSH Multiple Users



 Hello,

 We reinstalled WINXP and CYGWIN with another dumps. But still not able to 
 start the sshd service. Really frustrated as we followed exact steps given in 
 most of the internet help pages. So whats going wrong , is there any way to 
 find out what more is needed or so? Where can we have the sshd logs.
 One file we found is /var/log/sshd.log ...But its empty...
 Please suggest.


 Thanks,
 sac

 -Original Message-
 From: Holikar, Sachin (ext)
 Sent: Donnerstag, 4. Juni 2009 08:14
 To: 'cygwin@cygwin.com'
 Subject: RE: Cygwin SSH Multiple Users


 Hello,

 Thanks for the info Corinna but ultimately we aint able to start the service 
 somehow. And only way to start is to start with the user mac using 
 /usr/sbin/sshd.
 But then no other user can connect via ssh to this machine. The work around 
 we provided was copiying the ssh public keys of the user say admin and then
 connecting from remote machine using ssh -l mac winxp and then admin gets the 
 ssh access as mac.
 But now the requirement is to be able to login as different users to this 
 machine and we are stuck up. Really confused what went wrong.
 Any hint will be much appreciated.

 Thanks,
 sac

 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
 Corinna Vinschen
 Sent: Mittwoch, 3. Juni 2009 17:53
 To: cygwin@cygwin.com
 Subject: Re: Cygwin SSH Multiple Users

 On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of
 the session to provide some context.

 bash$ net helpmsg 1062

 The service has not been started.


 Corinna

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

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



--
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: Cygwin SSH Multiple Users

2009-06-05 Thread Huang Bambo
use command
/usr/sbin/sshd
to try start first
And which cygwin version you use?

2009/6/5 Holikar, Sachin (ext) sachin.holikar@siemens.com:


 Hello,

 We reinstalled WINXP and CYGWIN with another dumps. But still not able to 
 start the sshd service. Really frustrated as we followed exact steps given in 
 most of the internet help pages. So whats going wrong , is there any way to 
 find out what more is needed or so? Where can we have the sshd logs.
 One file we found is /var/log/sshd.log ...But its empty...
 Please suggest.


 Thanks,
 sac

 -Original Message-
 From: Holikar, Sachin (ext)
 Sent: Donnerstag, 4. Juni 2009 08:14
 To: 'cygwin@cygwin.com'
 Subject: RE: Cygwin SSH Multiple Users


 Hello,

 Thanks for the info Corinna but ultimately we aint able to start the service 
 somehow. And only way to start is to start with the user mac using 
 /usr/sbin/sshd.
 But then no other user can connect via ssh to this machine. The work around 
 we provided was copiying the ssh public keys of the user say admin and then
 connecting from remote machine using ssh -l mac winxp and then admin gets the 
 ssh access as mac.
 But now the requirement is to be able to login as different users to this 
 machine and we are stuck up. Really confused what went wrong.
 Any hint will be much appreciated.

 Thanks,
 sac

 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
 Corinna Vinschen
 Sent: Mittwoch, 3. Juni 2009 17:53
 To: cygwin@cygwin.com
 Subject: Re: Cygwin SSH Multiple Users

 On Jun  3 11:11, Georg Nikodym wrote:
 Also, Win32 error 1062 doesn't tell anybody anything.  Paste more of
 the session to provide some context.

 bash$ net helpmsg 1062

 The service has not been started.


 Corinna

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

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



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



GCC --enable-auto-import problem

2009-06-04 Thread Huang Bambo
1. download db-4.7.25 from oracle at
http://www.oracle.com/database/berkeley-db/index.html (havn't tested
on other version)
2. configure like : ../dist/configure --prefix=/home/Bambo/db-for-1.7
--enable-cxx --enable-pthread_api
3. make, it will take you a few minutes
4. write a program like :
#include db_cxx.h

int main( void )
{
       Db db( NULL, 0 );
       return 0;
}

5.compile like :g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib
-ldb_cxx -I/home/Bambo/db-for-1.7/include
will compile and link ok with information:
Info: resolving typeinfo for std::exception by linking to
__imp___ZTISt9exception (auto-import)
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.

and the file t.exe can't run, direct run in windows command shell will
report can't load with error code 0x0005.
( use:ldd t.exe to find dlls used by the file will hung ldd)

6.compile like:g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib -ldb_cxx
-I/home/Bambo/db-for-1.7/include -Wl,--enable-auto-import
Then everything goes fine.
ldd t.exe will report:

$ ldd t.exe
       ntdll.dll = /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
       kernel32.dll = /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
       cygwin1.dll = /usr/bin/cygwin1.dll (0x6100)
       ADVAPI32.DLL = /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
       RPCRT4.dll = /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
       Secur32.dll = /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
       cyggcc_s-1.dll = /usr/bin/cyggcc_s-1.dll (0x67f0)
       cygstdc++-6.dll = /usr/bin/cygstdc++-6.dll (0x6c48)


Who can tell me why??? Everything goes fine under cygwin 1.5 with gcc
3, gcc4 not tested, even
without -Wl,--enable-auto-import


GCC --enable-auto-import problem

2009-06-04 Thread Huang Bambo
1. download db-4.7.25 from oracle at
http://www.oracle.com/database/berkeley-db/index.html (havn't tested
on other version)
2. configure like : ../dist/configure --prefix=/home/Bambo/db-for-1.7
--enable-cxx --enable-pthread_api
3. make, it will take you a few minutes
4. write a program like :
#include db_cxx.h

int main( void )
{
       Db db( NULL, 0 );
       return 0;
}

5.compile like :g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib
-ldb_cxx -I/home/Bambo/db-for-1.7/include
will compile and link ok with information:
Info: resolving typeinfo for std::exception by linking to
__imp___ZTISt9exception (auto-import)
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.

and the file t.exe can't run, direct run in windows command shell will
report can't load with error code 0x0005.
( use:ldd t.exe to find dlls used by the file will hung ldd)

6.compile like:g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib -ldb_cxx
-I/home/Bambo/db-for-1.7/include -Wl,--enable-auto-import
Then everything goes fine.
ldd t.exe will report:

$ ldd t.exe
       ntdll.dll = /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
       kernel32.dll = /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
       cygwin1.dll = /usr/bin/cygwin1.dll (0x6100)
       ADVAPI32.DLL = /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
       RPCRT4.dll = /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
       Secur32.dll = /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
       cyggcc_s-1.dll = /usr/bin/cyggcc_s-1.dll (0x67f0)
       cygstdc++-6.dll = /usr/bin/cygstdc++-6.dll (0x6c48)


Who can tell me why??? Everything goes fine under cygwin 1.5 with gcc
3,( gcc4 in cygwin 1.5 not tested), even
without -Wl,--enable-auto-import

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



GCC --enable-auto-import problem

2009-06-04 Thread Huang Bambo
In cygwin 1.7:

1. download db-4.7.25 from oracle at
http://www.oracle.com/database/berkeley-db/index.html (havn't tested
on other version)
2. configure like : ../dist/configure --prefix=/home/Bambo/db-for-1.7
--enable-cxx --enable-pthread_api
3. make, it will take you a few minutes
4. write a program like :
#include db_cxx.h

int main( void )
{
       Db db( NULL, 0 );
       return 0;
}

5.compile like :g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib
-ldb_cxx -I/home/Bambo/db-for-1.7/include
will compile and link ok with information:
Info: resolving typeinfo for std::exception by linking to
__imp___ZTISt9exception (auto-import)
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.

and the file t.exe can't run, direct run in windows command shell will
report can't load with error code 0x0005.
( use:ldd t.exe to find dlls used by the file will hung ldd)

6.compile like:g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib -ldb_cxx
-I/home/Bambo/db-for-1.7/include -Wl,--enable-auto-import
Then everything goes fine.
ldd t.exe will report:

$ ldd t.exe
       ntdll.dll = /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
       kernel32.dll = /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
       cygwin1.dll = /usr/bin/cygwin1.dll (0x6100)
       ADVAPI32.DLL = /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
       RPCRT4.dll = /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
       Secur32.dll = /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
       cyggcc_s-1.dll = /usr/bin/cyggcc_s-1.dll (0x67f0)
       cygstdc++-6.dll = /usr/bin/cygstdc++-6.dll (0x6c48)


Who can tell me why??? Everything goes fine under cygwin 1.5 with
gcc3(gcc4 not tested), even
without -Wl,--enable-auto-import

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



Cygwin 1.7(even in 1.5) user logined through cygwin.bat can't show whit w command

2009-05-26 Thread Huang Bambo
As showed in the title.
If I start a shell from cygwin.bat, the w and who command showed
nothing while the shell from ssh can.
And I also think the tty should be pts/x, not ttyx.

--
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: Re: cygserver handle leak problem

2008-01-20 Thread Huang Bambo
 On Jan 18 08:58, Huang Bambo wrote:
  Use task manager to view detail of cygserver.
 
  Operations,
  I ran a program with ipc operation( I used msgget ,msgsnd, msgrcv ,
  others didn't test).
  After that, use ipcs command to show ipcs, found message que. use
  ipcrm command to remove the message que.
 
  Repeat the operations, you will find the handles owned by cygserver
  increased 2 each time.

 Could you please create a very simple testcase in plain C which
 allows to reproduce the problem OOTB?


 Thanks,
 Corinna

The attchment is my cygcheck --sysinfo's output and a sample program.
The sample program just use message que of SysV to translate some information.
It is write in C++ so you need gmake and g++ installed to make it. If
you want a C code, reply this mail and I will write one for you.

Once run, just use Ctrl+C to end it.

To duplicate the problem,
1. Run windows task manager , show handles of cygserver.
2. Run my program, it will create a message que, you will find the
cygserver process's handle increased by 4
3. Run ipcs command, you will find the que.
4. Run ipcrm command to remove this command, you will find the
cygserver's handles will only decrease by 2
5, go to 2 ,repeat the operation, you will find the handles owned by
cygserver will only increase.


attatchs.rar
Description: application/rar
--
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/

cygserver handle leak problem

2008-01-17 Thread Huang Bambo
Use task manager to view detail of cygserver.

Operations,
I ran a program with ipc operation( I used msgget ,msgsnd, msgrcv ,
others didn't test).
After that, use ipcs command to show ipcs, found message que. use
ipcrm command to remove the message que.

Repeat the operations, you will find the handles owned by cygserver
increased 2 each time.

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