Re: some cygwin in wine

2004-09-17 Thread Jan Nieuwenhuizen
Gerrit P. Haase writes:

> Is this Wine running under coLinux or on real Linux?

Hmm, do I really look that pale ;-)

I'm using Debian sid.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org

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



19 symlinks with missing target

2004-09-17 Thread fergus
In something like 90,000 files for the current full installation, of which
4,439 are symlinks, there are 19 with missing or wrongly defined target.
They are 

 /bin/X11 -> ../X11R6/bin
 /bin/aclocal-1.4 -> ../autotool/stable/bin/aclocal-1.4
 /bin/aclocal-1.9 -> ../autotool/devel/bin/aclocal-1.9
 /bin/automake-1.4 -> ../autotool/stable/bin/automake-1.4
 /bin/automake-1.9 -> ../autotool/devel/bin/automake-1.9
 /bin/rcs2log -> ../share/cvs/contrib/rcs2log
 /lib/X11 -> ../X11R6/lib/X11
 /lib/gcc-lib/i686-pc-cygwin/3.3.3/adalib/libgnarl.so -> libgnarl-*.so
 /lib/gcc-lib/i686-pc-cygwin/3.3.3/adalib/libgnat.so -> libgnat-*.so
 /lib/gcc-lib/i686-pc-mingw32/3.3.1/gnat1.exe ->
../../i686-pc-cygwin/3.3.1/gnat1.exe
 /lib/rpmpopt -> rpm/rpmpopt
 /lib/terminfo -> ../share/terminfo
 /usr/X11R6/include/X11/X11 -> ../X11R6/include/X11
 /usr/X11R6/share/tcm-2.20/help/CHANGELOG -> ../../CHANGELOG
 /usr/X11R6/share/tcm-2.20/help/COPYING -> ../../COPYING
 /usr/man/de/man1/gsbj.1 -> gslp.1
 /usr/man/de/man1/gsdj.1 -> gslp.1
 /usr/man/de/man1/gsdj500.1 -> gslp.1
 /usr/man/de/man1/gslj.1 -> gslp.1

I can see that all those under /bin/ and some but not all under /lib/
actually work properly when mounted respectively under /usr/bin/ and
/usr/lib/. I got the listing by a simple translation of (sp)->(sp) to /../
for all symlinks and seeing whether the file or folder thus defined existed.
In 4,420 cases (99.6% success) it did. None of these 19 others seems to be
particularly problematic (but then I have never knowingly sought to use
them).

Fergus


--
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: Bash returns incorrect process status

2004-09-17 Thread Peter Ekberg
Pierre A. Humblet wrote:
> FWIW, attached is a patch to bash that may improve its 
> behavior on Cygwin.
> The idea is that when a new process is stored in the memory array, any
> existing process with the same pid is marked "reused". 
> "reused" processes
> are never considered when searching for a process by pid. 
> They are still
> still available, e.g. to get the status of processes in a job. 
> 
> It's a proof of principle code, not meant to be efficient. It 
> can still print
> a debug message on stderr.

Tried it and it doesn't solve the problem for me. It shifts the trigger
pattern though.

Without the patch, an almost sure thing to do to trigger the bug is to
run the configure script under "strace bash". But with the patch, I have
not been able to trigger the bug once.

However, just running the configure script without straceing bash
triggers the bug at about the same rate as without the patch (I estimate
that between 1/3 and 1/2 of the runs fail).

But wait, now I tried to trigger the bug with the original bash and that
also fails when straceing. So I guess my remark about the shift in
trigger pattern is not certain...

/me makes a note of the phase of the moon

I have not noted any occurance of the "Found old pid..." message. Is
that an indication that the patch never kicks in?

Cheers,
Peter

--
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: 1.5.10: expr + configure failure + testcase (also on 1.5.11-1)

2004-09-17 Thread Ralf Corsepius
On Wed, 2004-09-15 at 11:00, Bogdan Vacaliuc wrote:

> My local tests and all reports from rtems-users so far are successes.

Meanwhile, there are failure reports or at least "non full success
stories" from rtems-users, c.f.
http://www.rtems.org/ml/rtems-users/2004/september/msg00144.html
http://www.rtems.org/ml/rtems-users/2004/september/msg00151.html

Ralf




--
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: So how do you uninstall Cygwin?

2004-09-17 Thread luke . kendall
On 16 Sep, Brian Dessent wrote:
>  > I'm wondering how I get the machine back into a pristine state to try a 
>  > re-install, since perhaps some of our post-install changes screwed 
>  > things up.  (ssh normally works just fine.) 
>   
>  Remove any services you might have installed ("cygrunsrv -R ssh") and 
>  remove all entries from the mount table ("umount -a") and that should 
>  pretty much do it, assuming of course you removed the main installation 
>  directory as well. 

Okay.  While this wouldn't undo changes made by ssh-host-config to
c:/windows/services, I don't really think that'd be the source of the
error.

>  Personally, though, if I were you and trying to fix ssh I'd worry just 
>  about ssh.  Remove the service and any created files (pid, log, 
>  $HOME/.ssh, etc.) and then re-reun ssh-{host,user}-config.  Removing 
>  everything and reinstalling "pristine" is one of those things that 
>  everyone likes to do but it always seemed to me like the equivalent of 
>  crushing the entire car and melting it down to raw scrap steel to fix 
>  the scratch in the side of the door.  But, I will admit, it does work in 
>  a lot of cases (due to e.g. permission errors on the original install.) 
>   
>  Brian 

Very true.  Yeah, I should at least do that.  And I just now saw your
note about ssh-user-config and realised that I didn't know about it at
all - so I may have some more fruitful avenues to pursue than I thought.

Many thanks,

luke


--
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: 19 symlinks with missing target

2004-09-17 Thread Gerrit P. Haase
Hallo fergus,

Am Freitag, 17. September 2004 um 09:35 schriebst du:

> In something like 90,000 files for the current full installation, of which
> 4,439 are symlinks, there are 19 with missing or wrongly defined target.
> They are 

>  /bin/X11 -> ../X11R6/bin
>  /bin/aclocal-1.4 -> ../autotool/stable/bin/aclocal-1.4
>  /bin/aclocal-1.9 -> ../autotool/devel/bin/aclocal-1.9
>  /bin/automake-1.4 -> ../autotool/stable/bin/automake-1.4
>  /bin/automake-1.9 -> ../autotool/devel/bin/automake-1.9
>  /bin/rcs2log -> ../share/cvs/contrib/rcs2log
>  /lib/X11 -> ../X11R6/lib/X11
>  /lib/gcc-lib/i686-pc-mingw32/3.3.1/gnat1.exe ->
> ../../i686-pc-cygwin/3.3.1/gnat1.exe
>  /lib/rpmpopt -> rpm/rpmpopt
>  /lib/terminfo -> ../share/terminfo

These are actually symlinks from /usr/bin -> target and then they
should be correct.

>  /lib/gcc-lib/i686-pc-cygwin/3.3.3/adalib/libgnarl.so -> libgnarl-*.so
>  /lib/gcc-lib/i686-pc-cygwin/3.3.3/adalib/libgnat.so -> libgnat-*.so

These two are wrong because there ain't such thing as a shared gnat
library, but they are installed during gcc installation. I'll see if I
can fix it.

>  /usr/X11R6/include/X11/X11 -> ../X11R6/include/X11

This one is bogus.  It should be /usr/include/X11 -> and points to the
actual X11 header directory.

>  /usr/X11R6/share/tcm-2.20/help/CHANGELOG -> ../../CHANGELOG
>  /usr/X11R6/share/tcm-2.20/help/COPYING -> ../../COPYING

These are really wrong.  Report to the maintainer, please.

>  /usr/man/de/man1/gsbj.1 -> gslp.1
>  /usr/man/de/man1/gsdj.1 -> gslp.1
>  /usr/man/de/man1/gsdj500.1 -> gslp.1
>  /usr/man/de/man1/gslj.1 -> gslp.1

Which package are these from?  Probably a packaging error?  Report to
the maintainer, please. 


> I can see that all those under /bin/ and some but not all under /lib/
> actually work properly when mounted respectively under /usr/bin/ and

Aha.

> /usr/lib/. I got the listing by a simple translation of (sp)->(sp) to /../
> for all symlinks and seeing whether the file or folder thus defined existed.
> In 4,420 cases (99.6% success) it did. None of these 19 others seems to be
> particularly problematic (but then I have never knowingly sought to use
> them).


Gerrit
-- 
=^..^=



--
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: Problem in Cygwin-X...

2004-09-17 Thread luke . kendall
On 17 Sep, Moises Deangelo wrote:
>  Please
>  
>  I installed cygwin in my windows 2000 with service pack 4.
>  
>  I download the complete version of cygwin.
>  
>  But the graphic interface does not work by any means
>  Cygwin-X does not run.
>  
>  Any applications do not accuse no mistake, simply do not initiate.
>  Other introduce the following mistake:
>  
>  RUN.EXE
>  ERROR: could not start C:\cygwin\usr\X11R6\xdvi -display 127.0.0.1:0.0
>  
>  Can anybody help to do the graphic interface to work? 
>  
>  Moises Deangelo.

For us, for many months now, X11 hasn't worked after any fresh Cygwin
install, due to the "missing font "fixed" problem) - see
http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof

In fact, our install process now runs setup, runs various commands as
per the faq entry above, then re-runs setup and requires the user to
re-install the X fonts.  After that X will work.

On top of that, there were changes to -multiwindow and other parameters.
We now default to starting X in a way that boils down to this:

xinit -- -rootless -clipboard -logfile /tmp/XWin.log.$USER

The .$USER is important if multiple people may use the machine - the
default choice of /tmp/XWin.log will make X fail to start because a
later user won't have write permissions on /tmp/XWin.log.

Anyway, try the above, and check out the contents of the log file to
help work out what's going wrong.

luke


--
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: Bash returns incorrect process status

2004-09-17 Thread luke . kendall
On 16 Sep, Pierre A. Humblet wrote:
>  But bash seems to keep at least CHILD_MAX jobs, each one of them possibly 
>  with many (unbounded) processes. It is very easy to produce situations 
>  where bash keeps track of thousands of pids. Many of those pids (e.g. the 
>  first ones in pipelines) will have been waited on, and nothing prevents the 
>  OS from reusing them. Pid aliasing can easily occur even if the OS never 
>  reuses a pid in CHILD_MAX consecutive forks from a process. 

I'm coming in to this discussion late, and this is probably way off
topic.  But I once thought bash wasn't reporting status of the previous
command properly (as reported via $?), when what was really happening
was that I was executing other commands as part of my bash prompt, and
bash was reporting the (successful) status of the last of those
commands!

I.e. I'd get a different result by doing:

some-command
if [ $? = 0 ]
then ...

and doing

some-command && ...

luke


--
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: signal delivery problem (with pthreads)

2004-09-17 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Valery A. Frolov
> Sent: 16 September 2004 20:15

> >> And after while I've got (IMHO) a little test source (attached) to
> >> reproduce the problem.
> > 
> > Can anyone confirm this problem?
> 
> So, after week of silence I can make the decision that this 
> problem has
> been happened only for me (because no one has confirmed it). Anyway,
> many many thanks for all Cygwin's developers for their great job.
> Let source be with you, Cygwin! (c) almost Star Wars. :)
> 
> WBR,
>  Valery


  Ok, here ya go, I guess if you went to the trouble of
http://cygwin.com/acronyms#PPAST 'ing, I can take a couple of minutes to
check it out for you!  :)

[EMAIL PROTECTED] /test/pthread> gcc -O2 -g -o sb sig_bug.c
[EMAIL PROTECTED] /test/pthread> ./sb
new thread start
got signal 30
OK, press any key to exit...
got signal 30
got signal 30
select was interrupted 1 times
[EMAIL PROTECTED] /test/pthread> gcc -O2 -g -o sb sig_bug.c -lpthread
[EMAIL PROTECTED] /test/pthread> ./sb
new thread start
got signal 30
OK, press any key to exit...
got signal 30
got signal 30
select was interrupted 1 times
[EMAIL PROTECTED] /test/pthread>

  No SEGV for me.  -lpthread didn't seem necessary.  I'm using a version of
the cygwin1.dll built from CVS sources on 20041407.


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Problem with cat under bash shell

2004-09-17 Thread Corinna Vinschen
On Sep 16 13:01, Lionel Barnett wrote:
>  --- Corinna Vinschen <[EMAIL PROTECTED]> wrote: 
> > I just curiously tried to reproduce the effect and it was pretty
> > simple.
> > I'm not quite sure, but it seems to be a strange interaction between
> > remote file handling under windows, coupled with the way the
> > temporary
> > file is handled by bash.
> > 
> > What bash does is this:  It opens a temporary file in /tmp which gets
> > everything you type into the here script up to the EOF.  Then it
> > duplicates the handle to become stdin for the still to be called
> > `cat'
> > process.  Next, it unlinks the file.  Unlink is implemented as
> >   
> >h=CreateFile(FILE_FLAG_DELETE_ON_CLOSE);
> >CloseHandle(h);
> > 
> > This should result in removing the file as soon as all open handles
> > to
> > the file are closed.  That works, but for some reason also the
> > ReadFile
> > call in cat fails as above.
> > 
> > I don't know how to fix this right now, but the workaround is simply
> > to have /tmp always be a local directory.
> 
> Thanks for the information, Corinna. Actually, what surprises me most
> is that this issue has not been reported more frequently.

I've applied a patch to Cygwin which hopefully solves that for any sort
of remote share.  I tried this with shares on Samba, NT4, XP64 and 2K3.

Check out the next developers snapshot from http://cygwin.com/snapshots/


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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

2004-09-17 Thread Corinna Vinschen
On Sep 17 08:14, [EMAIL PROTECTED] wrote:
> >In that case your definitely off the hook :-)
> 
> Excuse me for my english translation but I don't understand what you mean
> for
> ..."off the hook".

It means, you're doing fine.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: OpenSSH privilege separation fails: connections starts to be dropped.

2004-09-17 Thread Corinna Vinschen
On Sep 16 22:17, Konstantin Andreev wrote:
> 
> In the first place, OpenSSH daemon works fine for me, if
> "UsePrivilegeSeparation" feature is disabled.
> 
> I enabled "UsePrivilegeSeparation" and properly configured my system
> for use of this feature: set up account "sshd" and set up permissions
> for /var/empty.
> 
> In this configuration OpenSSH daemon starts without complains, but
> drops incoming connections immediately after connect.
> 
> The appropriate debug output of SSH daemon (debug level 3) is:
> 
> --- cut here 
> ...
> debug2: Network child is on pid 1000
> debug3: privsep user:group 1004:100ed
> debug1: permanently_set_uid: 1004/100
> permanently_set_uid: was able to restore old [e]gid
> --- cut here 
> 
> The last line has severity "fatal", and is sent to Event Log.

I know this problem with a slightly different text:

  permanently_set_uid: was able to restore old [e]uid

Note "uid" instead of "gid".  But that problem has been solved already
about a year ago.  I'm a bit surprised to see the above message and I'm
unable to reproduce that problem.

While it's easy to workaround it in OpenSSH, I'd like to understand
why that happens, first.

Could you please send your /etc/passwd and /etc/group files, as well
as the information on which system this is running?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Brian Dessent
> Sent: 17 September 2004 06:00

> [EMAIL PROTECTED] wrote:

> > information at http://cygwin.com/faq/faq_2.html#SEC19 (How 

> and remove all entries from the mount table ("umount -a") 

  The advice in the faq to delete

"...The registry tree `Software\Cygnus Solutions' under HKEY_LOCAL_MACHINE
and/or HKEY_CURRENT_USER..."

obviates the need to umount anything manually, doesn't it?


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



[automake-1.9] aclocal problems

2004-09-17 Thread Gerrit P. Haase
Hello Charles,

I'm having problems with the new automake.  I'm getting no aclocal.m4
file as usual and therefore, there are several unexpanded macros from
configure.in which causes autoconf to fail.  It is nice to see that
there are major aclocal bugs handled with this new release, but it
seems that they also introduced new problems.


Gerrit
-- 
=^..^=

$ (cd adns-1.0 && autoreconf --install --verbose --force )
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force 
/usr/autotool/devel/share/aclocal/rep.m4:7: warning: underquoted definition of 
AM_PATH_REP
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/sigc++.m4:8: warning: underquoted definition of AM_PATH_SIGC
/usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
/usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE
/usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
/usr/share/aclocal/linger.m4:4: warning: underquoted definition of AC_STRUCT_LINGER
/usr/share/aclocal/libtasn1.m4:12: warning: underquoted definition of AM_PATH_LIBTASN1
/usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of AM_PATH_LIBSMI
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of 
AM_PATH_LIBMCRYPT
/usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of 
AM_PATH_LIBGCRYPT
/usr/share/aclocal/ksba.m4:17: warning: underquoted definition of AM_PATH_KSBA
/usr/share/aclocal/gnome-cxx-check.m4:2: warning: underquoted definition of 
GNOME_CHECK_CXX
/usr/share/aclocal/gimp-2.0.m4:8: warning: underquoted definition of AM_PATH_GIMP_2_0
/usr/share/aclocal/gconf-2.m4:8: warning: underquoted definition of AM_GCONF_SOURCE_2
/usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of AC_CHECK_FT2
/usr/share/aclocal/check.m4:5: warning: underquoted definition of AM_PATH_CHECK
/usr/share/aclocal/check-utmp.m4:11: warning: underquoted definition of AC_CHECK_UTMP
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/autotool/devel/bin/autoconf --force
configure.in:29: error: possibly undefined macro: AC_MSG_CHECKING
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
configure.in:30: error: possibly undefined macro: AC_CACHE_VAL
configure.in:31: error: possibly undefined macro: AC_TRY_COMPILE
autoreconf: /usr/autotool/devel/bin/autoconf failed with exit status: 1


[EMAIL PROTECTED] ~
$ (cd adns-1.0 && ls -l aclocal* && cat aclocal* )
-rw-r--r--1 gerrit   Domänen-  600 Sep 17 12:11 aclocal.m4
# generated automatically by aclocal 1.9.1 -*- Autoconf -*-

# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
# Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

m4_include([acinclude.m4])

  



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



Is cygffi.dll needed for SableVM JVM? [was: Re: Is there a Windows version of SableVM?]

2004-09-17 Thread Grzegorz B. Prokopski
W liście z nie, 05-09-2004, godz. 22:18, Andy Madigan pisze: 
> The only free VM I've been able to find for Windows is gij (via the
> mingw version of gcj). I tried to build SableVM in cygwin, but while I
> was able to get it to recognize libpopt, the build failed because of
> (apparently)  missing file called fficonfig.h. As I understand it, the
> native libs for the Classpath won't build under cygwin, but I was
> hoping someone might know a way to get it to work, or perhaps tell me
> of a free Windows VM.

As I mentioned before, we had a version of SableVM that worked with
Cygwin.  Most (or all?) of the source changes needed to make it work
should be already included into the current official version.

The most tricky part (for me, at the time I didn't know much about
Cygwin) was getting a shared library of libffi.  SableVM currently
does not allow for static compilation, so we needed to compile
/bin/cygffi.dll ourselves.  Once that was done - the rest was easy.
This was acceptable as an experiment, but in the long run we'd like to
have a Cygwin package of SableVM, so we need a cleaner method. [*]

There's two possible solutions I can see:
1. include shared library of libffi into official cygwin gcc-java
(along with ffi headers)
2. make libsablevm link against statically compiled libffi.

I am not sure 2) is possible and I don't know how to do it.  SableVM
consists of 3 binary parts: /usr/bin/sablevm binary wrapper that loads
libsablevm which in turn loads via ltdl_open JNI libraries from
sablevm-classpath.  In such scenario, would it be possible for
libsablevm to link against static libffi?  How to accomplish that
in practice? (we use auto* and libtool in the build process)
Some good advice or RTFM URLs are welcome.

If 2) is not possible, would it be possible for gcc maintainer
to include shared version of libffi in gcc-java?

Cheers,

Grzegorz B. Prokopski

PS: Please send replies to *both* mailing lists. Thank you.

[*] We have a machine that could serve as an autobuilder for
Cygwin packages, so once we make SableVM buildable and working
under Cygwin it should be possible to ensure every new version
still works.

-- 
Grzegorz B. Prokopski  <[EMAIL PROTECTED]>
Debian GNU/Linux   http://www.debian.org
SableVM - LGPL'ed Java VM  http://www.sablevm.org
Why SableVM ?!?http://devel.sablevm.org/wiki/Features


--
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: bash script doesn't wait for commands to complete

2004-09-17 Thread Dolton Tony AB
I've now realised that this is actually the same problem as described in the
thread "Re: Bash returns incorrect process status" - it's the fact that bash
is reusing process ids that is causing the problem. I've tried the patch in
http://cygwin.com/ml/cygwin/2004-09/msg00783.html and it prevents the
errors.

Tony

--
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: problem to read files

2004-09-17 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of the_ram_man vädursmannen
> Sent: 17 September 2004 07:15

> Maybe I´m at the wrong mailinglist here but this is my problem.
> 
> I wrote a c-applicaton using cygwin and gcc. I used text files, in a 
> subdirectory, to fed input into my application. This all 
> worked fine untill 
> I desided to update cygwin. Then suddenly the application 
> wasn´t able to 
> read the input text files anymore, claiming that they doesn´t exist.

  Your application probably has a bug.  Cut it down to a dead simple
testcase: just open a single file, read something from it, and close it,
printing return values and errno after each operation.  If that works, it's
not a cygwin bug.  If that doesn't, post the testcase and people can try to
reproduce it.  You might also be able to deduce what's happening by watching
file activity while your application runs and fails with a utility such as
filemon from sysinternals
(http://www.sysinternals.com/ntw2k/source/filemon.shtml)


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Fwd: Manik , Manik Raina has invited you to open a Google mail account

2004-09-17 Thread Manik Raina
-- Forwarded message --
From: Manik Raina <[EMAIL PROTECTED]>
Date: Fri, 17 Sep 2004 12:27:43 +0530
Subject: Manik , Manik Raina has invited you to open a Google mail account
To: Manik Raina <[EMAIL PROTECTED]>

I've been using Gmail and thought you might like to try it out. Here's
an invitation to create an account.

---

Manik Raina has invited you to open a free Gmail account. The invitation
will expire in three weeks and can only be used to set up one account.

To accept this invitation and register for your account, visit
http://gmail.google.com/gmail/a-8698430991-579b2a46d7-b6a6333266

Once you create your account, Manik Raina will be notified with
your new @gmail.com address so you can stay in touch with Gmail!

If you haven't already heard about Gmail, it's a new search-based webmail
service that offers:

- 1,000 megabytes (one gigabyte) of free storage
- Built-in Google search that instantly finds any message you want
- Automatic arrangement of messages and related replies into
 "conversations"
- Text ads and related pages that are relevant to the content of your
 messages

Gmail is still in an early stage of development. If you set up an
account, you'll be able to keep it even after we make Gmail more
widely available and as one of the system's early testers, you will
be helping us improve the service through your feedback. We might ask
for your comments and suggestions periodically and we appreciate your
help in making Gmail even better.

Thanks,

The Gmail Team

To learn more about Gmail before registering, visit:
http://gmail.google.com/gmail/help/benefits.html

(If clicking the URLs in this message does not work, copy and paste them
into the address bar of your browser).

--
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: Is cygffi.dll needed for SableVM JVM?

2004-09-17 Thread Gerrit P. Haase
Hello Grzegorz,

Am Freitag, 17. September 2004 um 02:47 schriebst du:

> The most tricky part (for me, at the time I didn't know much about
> Cygwin) was getting a shared library of libffi.  SableVM currently
> does not allow for static compilation, so we needed to compile
> /bin/cygffi.dll ourselves.  Once that was done - the rest was easy.
> This was acceptable as an experiment, but in the long run we'd like to
> have a Cygwin package of SableVM, so we need a cleaner method. [*]

> There's two possible solutions I can see:
> 1. include shared library of libffi into official cygwin gcc-java
> (along with ffi headers)
> 2. make libsablevm link against statically compiled libffi.

> I am not sure 2) is possible and I don't know how to do it.  SableVM
> consists of 3 binary parts: /usr/bin/sablevm binary wrapper that loads
> libsablevm which in turn loads via ltdl_open JNI libraries from
> sablevm-classpath.  In such scenario, would it be possible for
> libsablevm to link against static libffi?  How to accomplish that
> in practice? (we use auto* and libtool in the build process)
> Some good advice or RTFM URLs are welcome.

> If 2) is not possible, would it be possible for gcc maintainer
> to include shared version of libffi in gcc-java?

You can link against static archives when using 'pass_all' instead of
'file_magic ^x86 archive import|^x86 DLL' to recognise dependent
libraries in libtool (change in libtool.m4).


> [*] We have a machine that could serve as an autobuilder for
> Cygwin packages, so once we make SableVM buildable and working
> under Cygwin it should be possible to ensure every new version
> still works.




-- 
=^..^=



--
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: Bash returns incorrect process status

2004-09-17 Thread Dolton Tony AB
(Sorry if this doesn't appear in the right place - I'm still unable to
subscribe to the list and had to bodge a reply.)

I would just like to say that the patch specified in
http://cygwin.com/ml/cygwin/2004-09/msg00783.html fixes the problem that I
reported in http://cygwin.com/ml/cygwin/2004-09/msg00401.html. Obviously, it
wasn't simply the exiting of the background processes that was the problem,
it was the reuse of pids as well.

Given the caveats attached to the patch, I'm hoping that a "proper" version
will eventually be issued in a new release of bash. Will this be the case?
I've noticed that bash doesn't get issued too often.

Regards,
Tony

--
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 processes getting stuck on max CPU usage; XP SP2 problem?

2004-09-17 Thread Robert Pendell
Oh and csrss.exe isn't anything new with XP SP2.  It is on SP1 as well.


On Thu, 16 Sep 2004 22:07:04 -0700, Brian Dessent <[EMAIL PROTECTED]> wrote:
> Joe Krahn wrote:
> >
> > I use SysInternal's Process Explorer a lot. After
> > installing XP SP2, if I browse Cygwin processes in
> > ProceExp, I can no longer get the list of loaded
> > DLLs, and they get stuck at max CPU usage along
> > with csrss.exe.
> >
> > The CygWin processes continue working OK, but the
> > whole system (obviously) gets slowed down.
> >
> > I noticed that csrss.exe is new with XP SP2.
> > Maybe it's involved in querying process information,
> > and does not play well with CygWin?
> 
> This is a reported issue and it has to do with the way Process Explorer
> works.  It attaches a thread to the target process in order to list the
> modules, and cygwin processes don't like this for some reason.  It
> started in the early 1.5 days, and is nothing really that new.
> 
> If you have symbols installed and you list the threads for the hung
> Cygwin process you'll see the stuck one is in a loop in
> ntdll.dll!RtlConvertUiListToApiList, as well as a corresponding thread
> in csrss.exe (CSRSRV.dll!ValidateMessageString) for each.  The CPU usage
> seems to be split equally between them all.
> 
> So, it's definitely an interaction between Cygwin and Process Explorer's
> grubby little fingers... however no one seems to be interestd in fixing
> it so for the time being the solution seems to be "Don't accidently
> enable the 'DLLs View' of a cygwin process in ProcExp."
> 
> Brian
> 
> 
> 
> --
> 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/
> 
> 



-- 
Robert Pendell
[EMAIL PROTECTED]

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



Re: So how do you uninstall Cygwin?

2004-09-17 Thread Brian Dessent
Dave Korn wrote:

> > > information at http://cygwin.com/faq/faq_2.html#SEC19 (How
> 
> > and remove all entries from the mount table ("umount -a")
> 
>   The advice in the faq to delete
> 
> "...The registry tree `Software\Cygnus Solutions' under HKEY_LOCAL_MACHINE
> and/or HKEY_CURRENT_USER..."
> 
> obviates the need to umount anything manually, doesn't it?> 

Just doing my part in the "cgf crusade against manually editing the
registry", really...

Brian

--
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: So how do you uninstall cygwin?

2004-09-17 Thread Christopher Faylor
On Fri, Sep 17, 2004 at 07:15:21AM -0700, Brian Dessent wrote:
>Dave Korn wrote:
information at http://cygwin.com/faq/faq_2.html#SEC19 (How
>>
>>>and remove all entries from the mount table ("umount -a")
>>
>>The advice in the faq to delete
>>
>>"...The registry tree `Software\Cygnus Solutions' under
>>HKEY_LOCAL_MACHINE and/or HKEY_CURRENT_USER..."
>>
>>obviates the need to umount anything manually, doesn't it?>
>
>Just doing my part in the "cgf crusade against manually editing the
>registry", really...

Thanks.  I guess the FAQ could say something about using umount -a
but "umount -a" doesn't (yet) remove the Cygwin registry entries
so you couldn't get a clean install without actually going into
the registry.

...and just imagine the feeling of empowerment! You've edited the
registry! You're practically a hacker at that moment.  Well, you're at
least a programming guru...

cgf

--
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: Bash returns incorrect process status

2004-09-17 Thread Pierre A. Humblet
On Fri, Sep 17, 2004 at 02:47:57PM +0100, Dolton Tony AB wrote:
> (Sorry if this doesn't appear in the right place - I'm still unable to
> subscribe to the list and had to bodge a reply.)
> 
> I would just like to say that the patch specified in
> http://cygwin.com/ml/cygwin/2004-09/msg00783.html fixes the problem that I
> reported in http://cygwin.com/ml/cygwin/2004-09/msg00401.html. Obviously, it
> wasn't simply the exiting of the background processes that was the problem,
> it was the reuse of pids as well.

Do you see the patch kicking in, the "Found old pid..." message on stderr?
 
> Given the caveats attached to the patch, I'm hoping that a "proper" version
> will eventually be issued in a new release of bash. Will this be the case?
> I've noticed that bash doesn't get issued too often.

There is more to the story, see 
http://cygwin.com/ml/cygwin/2004-09/msg00812.html

Also it's not surprising that the current snapshot doesn't fully fix
the problem http://cygwin.com/ml/cygwin/2004-09/msg00813.html ,
increasing the pid reuse period only reduces the likelihood that
the problem shows up.

Pierre


--
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: Fwd: Manik , Manik Raina has invited you to open a Google mail account

2004-09-17 Thread Reini Urban
Manik Raina schrieb:
To accept this invitation and register for your account, visit
http://gmail.google.com/gmail/a-8698430991-579b2a46d7-b6a6333266
damn! some john.chatelle was quicker.
maybe next time.
--
Reini Urban
--
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/


ssh missing from cygwin distribution?

2004-09-17 Thread Kevin Kuo
Hi everyone,
I installed cygwin yesterday and checked the packages X and develop and 
libopenssl.  I was expecting ssh to be installed like previous cygwin 
installs, but this time it wasn't.  I ran setup again and couldn't find 
ssh anywhere!  Has ssh been removed from the cygwin install?  If so, how 
to I get it back?  If not, how do I install it?  Thanks.

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


file I/O and calling executables from a DLL?

2004-09-17 Thread Lester Ingber
I'm having problems executing file I/O and calling executables from
a DLL?  I know this sounds simple, and this works fine under Excel,
but I'm having problems doing this with TradeStation.

Is there anything I should know about changes in paths, root directories,
etc., that can occur under different applications?

I have modified a simple code to prepare a DLL from a fairly well-known
tool, dllhelpers,
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html
and I have produced an equally good DLL using a Makefile enclosed.
I've just added a call to another independent executable.  This works
just fine (using either the more standard dllhelper way or using my
own Makefile) under Excel using the dllhelpers-prepared dlltest.xls.

Here's some simple code I prepared to explain what I've done.  I'm using
*all* the most current Curr downloads via setup.exe from cygwin.com.

Makefile for cdll.c:
8< top cut -> bottom ->8
DLL_OPTION=-mrtd  # I found this necessary for DLLs to work
CYGWIN_OPTION=-mno-cygwin $(DLL_OPTION)

CC = gcc
CDEBUGFLAGS = -g -O -Wall
CFLAGS = $(CDEBUGFLAGS) $(CYGWIN_OPTION)

LDFLAGS = $(CYGWIN_OPTION)

obj_libs = cdll.o
dllmodule = cdll
dependency_libs = -lm
all:
$(CC) $(CFLAGS) -c -o ${obj_libs} cdll.c
$(CC) $(CFLAGS) -mrtd -shared -o ${dllmodule}.dll \
-Wl,--out-implib=${dllmodule}.lib \
-Wl,--compat-implib \
-Wl,--add-stdcall-alias \
-Wl,--enable-stdcall-fixup \
-Wl,--enable-auto-import \
-Wl,--enable-auto-image-base \
-Wl,--whole-archive ${obj_libs} \
-Wl,--export-all-symbols \
-Wl,--output-def=${dllmodule}.def \
-Wl,--no-whole-archive ${dependency_libs}
8< bottom cut <- top ->8

cdll.c  (In Tradestation, you have to change double->float):
8< top cut -> bottom ->8
#include 
#include 
#include 
#include 
#include 

double dll_double_square (double d);

double
dll_double_square (double d)
{
  char trd_comm[200];
  FILE *ptr_comm;

  /* I tried this with a system() call, but it still doesn't work when
 dll_double_square is called in TradeStation */
  sprintf (trd_comm, "run_trd.exe");
  ptr_comm = popen (trd_comm, "r");
  pclose (ptr_comm);

  return d * d;
}
8< bottom cut <- top ->8

Makefile for trd.c:
8< top cut -> bottom ->8
CYGWIN_OPTION=-mno-cygwin

CC = gcc
CDEBUGFLAGS = -g -O -Wall
CFLAGS = $(CDEBUGFLAGS) $(CYGWIN_OPTION)

LDFLAGS = $(CYGWIN_OPTION)

obj_libs = trd.o
all: $(obj_libs)
@$(CC) $(LDFLAGS) -o run_trd.exe $(obj_libs) -lm
8< bottom cut <- top ->8

trd.c:
8< top cut -> bottom ->8
#include 
#include 
#include 
#include 
#include 

int main ();

int
main ()
{
  char trd_comm[50];
  FILE *ptr_comm;

  sprintf (trd_comm, "mkdir ..\\IO\\%s", "test_dir");
  ptr_comm = popen (trd_comm, "r");
  pclose (ptr_comm);

  printf ("mkdir test_dir\n");

  return 0;
}
8< bottom cut <- top ->8

I have the same non-results in TradeStation, but OK results in Excel,
if I simply create the test_dir within cdll.c, e.g., *not* calling any
other executable.

In TradeStation, the code returns just fine, and goes on to do other
stuff, but the commands I cite just are not being executed?

I also tried including explicit paths, e.g., prefacing the executable
and file with c:\cygwin\..., and not even using any relative paths like
"..", but with no positive effect.

Thanks.

Lester



--
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: Fwd: Manik , Manik Raina has invited you to open a Google mail account

2004-09-17 Thread Robert Pendell
And why were you sending that here???

If you did want one then email me directly as I have plenty to go around.


On Fri, 17 Sep 2004 17:06:51 +0200, Reini Urban <[EMAIL PROTECTED]> wrote:
> Manik Raina schrieb:
> > To accept this invitation and register for your account, visit
> > http://gmail.google.com/gmail/a-8698430991-579b2a46d7-b6a6333266
> 
> damn! some john.chatelle was quicker.
> maybe next time.
> --
> Reini Urban
> 
> 
> 
> 
> --
> 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/
> 
> 



-- 
Robert Pendell
[EMAIL PROTECTED]

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



Re: ssh missing from cygwin distribution?

2004-09-17 Thread Brian Ford
On Fri, 17 Sep 2004, Kevin Kuo wrote:

> I installed cygwin yesterday and checked the packages X and develop and
> libopenssl.

But not openssh?

> I was expecting ssh to be installed like previous cygwin installs, but
> this time it wasn't.

Why, if you didn't select it?

> I ran setup again and couldn't find ssh anywhere!

You probably didn't look for openssh.  It is under the Net catagory.

> Has ssh been removed from the cygwin install?

No.

> If so, how to I get it back?  If not, how do I install it?  Thanks.

via setup.exe.

Next time, please read and follow:

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

Thanks.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: Bash returns incorrect process status

2004-09-17 Thread Dolton Tony AB
> Do you see the patch kicking in, the "Found old pid..." message on stderr?
Yes, I get lots of these messages, when I used to get lots of errors.
Further analysis of my old strace output shows that the errors occurred when
pids had been reused.

> There is more to the story...
I'm fairly sure that the patch solves my problem. It's not clear to me
whether there are other outstanding problems that need addressing, or known
deficiencies with the patch.

Regards,
Tony

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



Is it possible to pass parameters to rxvt?

2004-09-17 Thread Hughes, Bill
Is it possible to pass a parameter to rxvt to start bash up in a specified
folder?

I suspect I don't know enough to construct the proper string.

I normally start rxvt from a keyboard shortcut to the command
D:\cygwin\bin\run.exe rxvt -name 17 -e /usr/bin/bash --login -i

which works fine.

I also have a registry entry to start cygwin in a specified folder from the
explorer context menu, set up so:
REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\BashHere]
@="bash here"
[HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
@="D:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile
~/.bashrc\""

which also works fine, it's just that I'd rather invoke rxvt.

I have googled for it but not found anything obvious (but it is late Friday
afternoon here), if anyone can drop me a hint, even a better search
selection I'd appreciate it.

BTW while in the subject of registry hacking if there's any emacs fans out
there I find this rather useful too:
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\emacs]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\emacs\command]
@="D:\\util\\emacs-21.3\\bin\\gnuclientw.exe \"%1\""

Hmm - the other editor I do this with is the Hessling editor (the), I was
wondering if there are any other users on list?

Bill
-- 
   ___
  oo  // \\  "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/>The coolest Interface to (Sub)Version Control
   /_/   \_\ http://tortoisesvn.tigris.org

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
[EMAIL PROTECTED]

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



Re: adding to and upgrading a cygwin installation...

2004-09-17 Thread e-head
On 12/19/03 15:02 or thereabouts, Buchbinder, Barry (NIH/NIAID) scribbled:
> On Fri, 19 Dec 2003 [EMAIL PROTECTED] wrote:
> 
> > Also, is there any easy way to essentially just "upgrade" all of your
> > currently installed cygwin packages ?
> 
> setup.exe -R c:\cygwin -s ftp://mirrors.rcn.net -n -q
> 
> works for me.  I have is as a shortcut in my Startup folder, so it runs with
> every reboot.  (c:\cygwin is where cygwin is installed;
> ftp://mirrors.rcn.net is my preferred mirror, change both as appropriate for
> you.)  See http://www.cygwin.com/ml/cygwin/2002-11/msg01490.html for more.
> 
> - Barry

Hi,
this little upgrade tip seems to be working great (it's not finished
yet) ... however, i have no idea what it is doing.

i would like to simply upgrade all of the packages i currently have
installed. not install anything new, not uninstall anything i already
have.

i couldn't find any info on command line switches to setup.
setup -h,--help, /? did not show anything.
further, i couldn't find any documentation on the cygwin site about
this.

can anyone point me in the right direction, as i find this easier than
fiddling with the setup GUI.

is there any way to "grap" single packages this way ?


what i would really love is a dpkg/apt-get system for cygwin ...
i guess i'll have to wait for that one.
:)

--
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: Is it possible to pass parameters to rxvt?

2004-09-17 Thread Hughes, Bill
Hughes, Bill wrote:
> Is it possible to pass a parameter to rxvt to start bash up
> in a specified
> folder?
> 
> I suspect I don't know enough to construct the proper string.
> 
> I normally start rxvt from a keyboard shortcut to the command
> D:\cygwin\bin\run.exe rxvt -name 17 -e /usr/bin/bash --login -i
> 
> which works fine.
> 
> I also have a registry entry to start cygwin in a specified
> folder from the
> explorer context menu, set up so:
> REGEDIT4
> 
> [HKEY_CLASSES_ROOT\Directory\shell\BashHere]
> @="bash here"
> [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
> @="D:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash
> -rcfile ~/.bashrc\""
> 
> which also works fine, it's just that I'd rather invoke rxvt.

Sorry to reply to myself but I realised what I was doing wrong, this works:
[HKEY_CLASSES_ROOT\Directory\shell\rxvt]
@="rxvt"
[HKEY_CLASSES_ROOT\Directory\shell\rxvt\command]
@="D:\\cygwin\\bin\\run.exe rxvt -name 17 -e /usr/bin/bash --login -c \"cd
'%1' ; exec /bin/bash -rcfile ~/.bashrc\""

sorry for the waste of time, bandwidth etc: PEBKAC.

Bill
-- 
   ___
  oo  // \\  "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/>The coolest Interface to (Sub)Version Control
   /_/   \_\ http://tortoisesvn.tigris.org

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
[EMAIL PROTECTED]

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



apache2 as service

2004-09-17 Thread Prakash Khemani
Hi,

I compiled & installed apache2 on cygwin+WinXP. I am able to use it fine
- but I am not able to install it as a service.

The run as User in the httpd.conf file is SYSTEM.

I installed apache2 asa service using the following command

cygrunsrv -I cygapache -p /usr/local/apache2/bin/httpd.exe -a "-k start"
-t auto

When I try to start it 
cygrunsrv -S cygapache

I get the following error

cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.

Nothing is written to /var/log/cygaapche.log or to
/usr/local/apache2/log/error_log

The pid stored in httpd.pid changes but the httpd processes don't show
up on doing ps -ae

What am I doing wrong?

I compiled and installed apache2 as the network user ENG/khemani. I had
to change the permissions on apache2/logs directory to be able to run
apache2 as the user SYSTEM.

What more should I do?

Thanks,
Prakash

--
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: apache2 as service

2004-09-17 Thread Peter Rehley
On Sep 17, 2004, at 9:18 AM, Prakash Khemani wrote:
Hi,
I compiled & installed apache2 on cygwin+WinXP. I am able to use it 
fine
- but I am not able to install it as a service.

The run as User in the httpd.conf file is SYSTEM.
I installed apache2 asa service using the following command
cygrunsrv -I cygapache -p /usr/local/apache2/bin/httpd.exe -a "-k 
start"
-t auto

I'll assume that it seemed to install correctly.  As a quick simple 
sanity check try typing the command in a bash prompt and see what 
happens.  Make sure that starts ok.  If it goes to the background, you 
will need to find the parameter that keeps apache in the foreground.  
cygrunsrv needs this.  Otherwise it can say that the service has not 
started when it is running.

When I try to start it
cygrunsrv -S cygapache
I get the following error
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.
Nothing is written to /var/log/cygaapche.log or to
/usr/local/apache2/log/error_log
Check the windows event viewer for more logs.  Might be nothing, but 
might also give hints to what may be happening.

The pid stored in httpd.pid changes but the httpd processes don't show
up on doing ps -ae
Almost sounds like apache wants to start, but is encountering a problem.
What am I doing wrong?
I compiled and installed apache2 as the network user ENG/khemani. I had
to change the permissions on apache2/logs directory to be able to run
apache2 as the user SYSTEM.
What more should I do?
Configuration problems.  File permissions.  Check them all.
Thanks,
Prakash
--
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/

A Møøse once bit my sister
--
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/


Problem with ncurses-5.3-20030719-patch.sh

2004-09-17 Thread Adrian Ford
Dear All,

I came across a problem when installing ncurses-5.3
source using the setup utility. The problem is in the
ncurses-5.3-20030719-patch.sh script which is called
by the primary install script ncurses-5.3-4.sh. The
patch script begins by unconditionally deleting some
extracted files e.g. lib_insstr.c extracted and then
calls the command "patch" expected in /bin. On my
system at the time of installation I did not have the
patch utility installed - in setup this is a seperate
download, so the script ran something like this:

Patching
patch: not found
patch: not found
patch: not found
.
.
.
...unable to make target lib_insstr.c required by
lib_insstr.o

Basically because the file was deleted and /bin/patch
not available to apply the corrections to the make
files, control is passed back to the parent shell
script then the subsequent make process falls over
with a fatal error. (Interestingly the patch script
seems to exit with status 0 or the install script
would fail?).

Naturally I was able to correct the problem by
installing the patch utility and reinstalling, but in
the supplied INSTALL document, it was not listed as a
prerequisite.

I see two ways of fixing this issue:

1. Modify ncurses-5.3-20030719-patch.sh to check for
existence of patch utility, if not then exit with
non-zero exit status and appropriate error message.
2. Include patch utility with the package (maybe
modify setup utility?)

(I suppose there would be a third option just to
modify the INSTALL document to list patch as a
prerequisite).

Thanks and regards,

Adrian Ford





___ALL-NEW Yahoo! Messenger - 
all new features - even more fun!  http://uk.messenger.yahoo.com

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



Re: apache2 as service

2004-09-17 Thread Jason Tishler
On Fri, Sep 17, 2004 at 09:18:44AM -0700, Prakash Khemani wrote:
> Nothing is written to /var/log/cygaapche.log or to
> /usr/local/apache2/log/error_log

You should see errors in NT's event log, such as the following:

httpd : PID 7068 : starting service `httpd' failed: signal 12 raised.

> What am I doing wrong?

Did you start cygserver?  Did you set the CYGWIN environment variable to
include "server"?  If not, then do so and try again.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



automatic cronjaob injectsion

2004-09-17 Thread Reini Urban
I know that it might be possible and I know that is not advisable,
but may a cygwin postinstall script or just another helper script
install a cronjob automatically?
echo "$cronline" >> /var/cron/tabs/$USER
kill -HUP `cat /var/run/cron.pid`
crontab -e
Then change a bit in the job file, and save. voila.
A technical issue might be that cron will not react on -HUP. Does it?
I only look at the cron sources at linux some years ago.
I have for example this init.d snippet:
installcron() {
echo "put this into your cronjob:"
echo
echo "*  */3 * * * /usr/bin/freshclam 2>&1 >/dev/null"
echo "#*  */3 * * * /usr/bin/freshclam 2>&1 >/dev/null" >> 
/var/cron/tabs/$USER
kill -HUP `cat /var/run/cron.pid`
crontab -e
}

--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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: Problem with cat under bash shell

2004-09-17 Thread Lionel Barnett
Dave Korn wrote:
--- Corinna Vinschen  wrote: 

On Sep 16 10:47, Lionel Barnett wrote:
--- Corinna Vinschen  wrote: 
  Hey Lionel, read http://cygwin.com/acronyms#PCYMTNQREAIYR, let's not feed
the spam harvesters huh?
Oops, my bad... new account (I would've thought, though, that any 
self-respecting spambot could parse "blah at blah dot blah" pretty easily).

  Ah!  Gottit!  Well, looks like my guess wasn't right.
http://support.microsoft.com/default.aspx?scid=kb;en-us;837665

  Lionel, is your server win 2003?  If so, there's a hotfix for the problem
at the above page.
No, it's W2K, actually.
  The fact that mounting your /tmp on a remote drive is a pretty rare thing
would be another reason.  Remote home dirs, yes, remote /bin dirs yes,
remote /tmp.. not so commonly done.  Owing to a) there's generally no
need nor use for sharing the contents of /tmp with other users and b) it
gets used pretty heavily and mostly for temporary files and data that are
going to be needed again imminently, so for efficiency purposes it would be
nice if the data didn't have to make a round-trip across the network to a
server and then back again when it could just stay on your local machine
where it's needed in the first place.
Agreed - things are actually noticeably zippier with a local /tmp 
(particularly as our network is somewhat crapulous).

As to how/why we ended up with a remote /tmp is as follows: our work 
setup is that most of our (shared) software - including Cygwin - sits on 
a shared drive on machine S, say. We generally terminal serve in to 
machines A, B, C, ... over the network and run stuff from there (which 
may access fs's on machines X, Y, Z...). Now since the default Cygwin 
install sets up /tmp as... well, /tmp, under our setup this means /tmp 
sits on machine S which will be remote as far as machines A, B, C are 
concerned. I wouldn't have thought this to be such an uncommon setup.

Hence the solution to symlink /tmp to /cygdrive/c/temp, as this is 
guaranteed to be local. Perhaps this could get a mention in the 
FAQ/Install notes?

Lionel
--
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: automatic cronjaob injectsion

2004-09-17 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Reini Urban
> Sent: 17 September 2004 18:22

> I know that it might be possible and I know that is not advisable,

  So why are you asking?  You know the ropes: what does it say at the top of
EVERY single file in /var/cron/tabs?

# DO NOT EDIT THIS FILE - edit the master and reinstall.

  If it's inadvisable, then it seems wildly reckless to attempt a flaky and
improper technique in a postinstall script, because such scripts are going
to be run by every conceivable kind of user in every conceivable combination
of environments and if something can go wrong, it will.  A postinstall
script should be utterly solid (well, as close to as possible) because it's
such a critical part of the cygwin distribution mechanism.  A broken
postinstall script that causes setup.exe to bomb out (rare, but I've seen it
happen) can get users stuck in an endless cycle of download megs of files -
get half-way through installing - setup crashes - restart setup and it
doesn't remember what it's done and needs to re-download everything again.

  So don't do it.  If you want to do this programatically, use "crontab -l"
to dump it to a file, use a sed script to edit it - I don't think blindly
appending a line without making sure you delete the old one would be good -
then "crontab edited-file" to update it.

  That doesn't seem to me any more hard than the three operations you have
in your way of doing it, and it's guaranteed to work.  What motivation for
doing it any other way could there be?

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Starting sshd with ipv6 address only

2004-09-17 Thread dimitri berbanov
Hi,
 I'm running cygwin under Win XP, but I cannot get sshd to listen only on 
ipv6 address. I've installed sshd as a service with "cygrunsrv -I sshd 
--path /usr/sbin/sshd.exe -a -6" (in order to force sshd to use only IPv6 
address), and I've modified sshd_config with "ListenAddress ". But when I try to start sshd "process unexpectedly 
terminates", and  in /var/log/sshd.log it says "bad addr or host:  (no address associated with host name)."

 What could have gone wrong? Any help would be mostly appreciated.
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


1.5.11, I don't have .profile, .bashrc and .inputrc in my HOME

2004-09-17 Thread Bruce Hyatt
I have run the mkgroup -ld command.

HOME is defined but it IS a logical drive on a network server.
(Does that matter?)

The bash prompt shows "[EMAIL PROTECTED]" and I have no
problems except with some X apps which I think I read is not
unexpected because of some XFree86 issues.

If I move my HOME do I have to change other things (other than
moving what's in it) and can/how do I create the .profile,
.bashrc and .inputrc files in my HOME?

The top of cygcheck output is attached.

TIA,
Bruce

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

cygcheck_abrg.out
Description: cygcheck_abrg.out
--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Igor Pechtchanski
On Thu, 16 Sep 2004, Brian Dessent wrote:

> lukekendallcisracanoncomau wrote:
  ^^
Tut-tut.  . ;-)

> > It occurred to me, while trying to work out why ssh isn't working on a
> > laptop that we installed Cygwin on recently, to wonder whether the
> > information at http://cygwin.com/faq/faq_2.html#SEC19 (How do I uninstall
> > all of Cygwin?) could be a little more helpful.
> >
> > It gives good advice, but ends by saying:
> >
> > It's up to you to deal with other changes you made to your
> > system, such as installing the inetd service, altering system
> > paths, etc. Setup would not have done any of these things
> > for you.
> >
> > This is true.  But for ssh, and other packages, is there any useful
> > advice that could be given on how to uninstall?
> >
> > I'm wondering how I get the machine back into a pristine state to try a
> > re-install, since perhaps some of our post-install changes screwed
> > things up.  (ssh normally works just fine.)
>
> Remove any services you might have installed ("cygrunsrv -R ssh") and

FWIW, I have been thinking of implementing a --list option to cygrunsrv
that would list all the Cygwin services installed with cygrunsrv.  At this
point I have no implementation, though.

> remove all entries from the mount table ("umount -a") and that should
> pretty much do it, assuming of course you removed the main installation
> directory as well.

Well, one could always add an "Uninstall all" radio button to setup.exe's
action screen.   :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Igor Pechtchanski
> Sent: 17 September 2004 19:50


> FWIW, I have been thinking of implementing a --list option to 
> cygrunsrv
> that would list all the Cygwin services installed with 
> cygrunsrv.  At this
> point I have no implementation, though.

  Rather than run through the list of services and try and deduce which ones
are cygwin services, the simplest implementation might just be for cygrunsrv
to add a 'created_by_cygrunsrv' value into the service key in
HKLM/CCS/Services, which it can come back and look for later.

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Peter Rehley
On Sep 17, 2004, at 11:50 AM, Igor Pechtchanski wrote:
On Thu, 16 Sep 2004, Brian Dessent wrote:
lukekendallcisracanoncomau wrote:
  ^^
Tut-tut.  . ;-)
It occurred to me, while trying to work out why ssh isn't working on 
a
laptop that we installed Cygwin on recently, to wonder whether the
information at http://cygwin.com/faq/faq_2.html#SEC19 (How do I 
uninstall
all of Cygwin?) could be a little more helpful.

It gives good advice, but ends by saying:
It's up to you to deal with other changes you made to your
system, such as installing the inetd service, altering system
paths, etc. Setup would not have done any of these things
for you.
This is true.  But for ssh, and other packages, is there any useful
advice that could be given on how to uninstall?
I'm wondering how I get the machine back into a pristine state to 
try a
re-install, since perhaps some of our post-install changes screwed
things up.  (ssh normally works just fine.)
Remove any services you might have installed ("cygrunsrv -R ssh") and
FWIW, I have been thinking of implementing a --list option to cygrunsrv
that would list all the Cygwin services installed with cygrunsrv.  At 
this
point I have no implementation, though.
Another feature that would be helpful is an option to show what program 
and the options associated with the program.  It would prevent hunting 
through the registry when debugging problems.


remove all entries from the mount table ("umount -a") and that should
pretty much do it, assuming of course you removed the main 
installation
directory as well.
Well, one could always add an "Uninstall all" radio button to 
setup.exe's
action screen.   :-)
	Igor
--
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_		[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_		[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in 
doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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

A Møøse once bit my sister
--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Peter Rehley
On Sep 17, 2004, at 12:11 PM, Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of Igor Pechtchanski
Sent: 17 September 2004 19:50

FWIW, I have been thinking of implementing a --list option to
cygrunsrv
that would list all the Cygwin services installed with
cygrunsrv.  At this
point I have no implementation, though.
  Rather than run through the list of services and try and deduce 
which ones
are cygwin services, the simplest implementation might just be for 
cygrunsrv
to add a 'created_by_cygrunsrv' value into the service key in
HKLM/CCS/Services, which it can come back and look for later.
Looking for cygrunsrv is usually good enough.
cheers,
  DaveK
--
Can't think of a witty .sigline today
--
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/

A Møøse once bit my sister
--
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: Starting sshd with ipv6 address only

2004-09-17 Thread Corinna Vinschen
On Sep 17 15:33, dimitri berbanov wrote:
> Hi,
>  I'm running cygwin under Win XP, but I cannot get sshd to listen only on 
> ipv6 address. I've installed sshd as a service with "cygrunsrv -I sshd 
> --path /usr/sbin/sshd.exe -a -6" (in order to force sshd to use only IPv6 
> address), and I've modified sshd_config with "ListenAddress  global address>". But when I try to start sshd "process unexpectedly 
> terminates", and  in /var/log/sshd.log it says "bad addr or host:  ipv6 global address> (no address associated with host name)."
> 
>  What could have gone wrong? Any help would be mostly appreciated.

Cygwin doesn't support ipv6 and therefore Cygwin's OpenSSH doesn't suport
it, too.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: apache2 as service

2004-09-17 Thread Prakash Khemani
> Did you start cygserver?  Did you set the CYGWIN environment variable
to
> include "server"?  If not, then do so and try again.

Yes, I did set up cygserver. At the command line apache2/bin/httpd -k
start works fine.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
> Of Jason Tishler
> Sent: Friday, September 17, 2004 10:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: apache2 as service
> 
> On Fri, Sep 17, 2004 at 09:18:44AM -0700, Prakash Khemani wrote:
> > Nothing is written to /var/log/cygaapche.log or to
> > /usr/local/apache2/log/error_log
> 
> You should see errors in NT's event log, such as the following:
> 
> httpd : PID 7068 : starting service `httpd' failed: signal 12
raised.
> 
> > What am I doing wrong?
> 
> Did you start cygserver?  Did you set the CYGWIN environment variable
to
> include "server"?  If not, then do so and try again.
> 
> Jason
> 
> --
> PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
> Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
> 
> --
> 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 licensing issue

2004-09-17 Thread Shankar Unni
[EMAIL PROTECTED] wrote:
..."off the hook".
Think of a fish on a hook. If you're "off the hook", you're OK. (Or 
maybe you're dead, which comes to the same thing in the end, I suppose :-).

Just kidding. It just means you do not have (some) problem any more.
--
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: apache2 as service

2004-09-17 Thread Prakash Khemani

> I'll assume that it seemed to install correctly.  As a quick simple
> sanity check try typing the command in a bash prompt and see what
> happens.  Make sure that starts ok.  

Yes. It did start ok at the cmd prompt.

> will need to find the parameter that keeps apache in the foreground.
> cygrunsrv needs this.  Otherwise it can say that the service has not
> started when it is running.

I tried httpd -D FOREGROUND -k start

That keeps the httpd process in the foreground at the CLI.

But, even with -D FOREGROUND I get the same error when I tyr to run with cygrunsrv.

> Check the windows event viewer for more logs.  

Windows event viewer has errors saying that the cygapache service terminated 
unexpectedly.

> Configuration problems.  File permissions.  Check them all.

I doubt that this would be a problem. When I start it at the command line everything 
works fine.

Httpd spawns multiple processes. Can that be an issue?

Thanks,
Prakash

> -Original Message-
> From: Peter Rehley [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 9:46 AM
> To: Prakash Khemani
> Cc: [EMAIL PROTECTED]
> Subject: Re: apache2 as service
> 
> 
> On Sep 17, 2004, at 9:18 AM, Prakash Khemani wrote:
> 
> > Hi,
> >
> > I compiled & installed apache2 on cygwin+WinXP. I am able to use it
> > fine
> > - but I am not able to install it as a service.
> >
> > The run as User in the httpd.conf file is SYSTEM.
> >
> > I installed apache2 asa service using the following command
> >
> > cygrunsrv -I cygapache -p /usr/local/apache2/bin/httpd.exe -a "-k
> > start"
> > -t auto
> >
> I'll assume that it seemed to install correctly.  As a quick simple
> sanity check try typing the command in a bash prompt and see what
> happens.  Make sure that starts ok.  If it goes to the background, you
> will need to find the parameter that keeps apache in the foreground.
> cygrunsrv needs this.  Otherwise it can say that the service has not
> started when it is running.
> 
> > When I try to start it
> > cygrunsrv -S cygapache
> >
> > I get the following error
> >
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> > 1062:
> > The service has not been started.
> >
> > Nothing is written to /var/log/cygaapche.log or to
> > /usr/local/apache2/log/error_log
> >
> Check the windows event viewer for more logs.  Might be nothing, but
> might also give hints to what may be happening.
> 
> > The pid stored in httpd.pid changes but the httpd processes don't show
> > up on doing ps -ae
> >
> Almost sounds like apache wants to start, but is encountering a problem.
> 
> > What am I doing wrong?
> >
> > I compiled and installed apache2 as the network user ENG/khemani. I had
> > to change the permissions on apache2/logs directory to be able to run
> > apache2 as the user SYSTEM.
> >
> > What more should I do?
> Configuration problems.  File permissions.  Check them all.
> 
> >
> > Thanks,
> > Prakash
> >
> > --
> > 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/
> >
> >
> >
> A Møøse once bit my sister


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



[ANNOUNCEMENT] Updated: tetex-2.0.2-14

2004-09-17 Thread Jan Nieuwenhuizen

The tetex suite hase been updated to version 2.0.2-14.  This is a
bugfix release.

Changes

tetex-bin (2.0.2-14)

  * Fix xdvi script (reported by Gregory Borota).

tetex-texmf (2.0.2-14)

  * Add fonts cmr{5,6,7,8}.pfb, cmti{5,6}.pfb, cmtt{5,6,7,8,17}.pfb,
cmcsc8.pfb and cmss{5,6,7,8,9,10,12,14,17}.pfb to tetex-tiny (Mats
Bengtsson).
  * Also add cmb10.pfb, cmbxti8*
  * post-texmf.sh: Unset some environment variables that setup.exe may
leak, which break texconfig.

Enjoy,
Jan.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.


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


[EMAIL PROTECTED]

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

http://sources.redhat.com/lists.html#unsubscribe-simple

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


-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org


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



gtk 2?

2004-09-17 Thread Steve Kelem
Do you know what's needed to get gtk 2.0 to work with cygwin?
I need gtk 2 to get Dia (an open source diagramming package to displace 
Microsoft Visio). (http://www.gnome.org/projects/dia/)

Thanks,
Steve

--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Dave Korn wrote:

> > -Original Message-
> > From: cygwin-owner On Behalf Of Igor Pechtchanski
> > Sent: 17 September 2004 19:50
>
> > FWIW, I have been thinking of implementing a --list option to
> > cygrunsrv that would list all the Cygwin services installed with
> > cygrunsrv.  At this point I have no implementation, though.
>
>   Rather than run through the list of services and try and deduce which
> ones are cygwin services, the simplest implementation might just be for
> cygrunsrv to add a 'created_by_cygrunsrv' value into the service key in
> HKLM/CCS/Services, which it can come back and look for later.

All services created by cygrunsrv have "`cygpath -aw /`\bin\cygrunsrv.exe"
as the executable name.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: So how do you uninstall Cygwin?

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Peter Rehley wrote:

> On Sep 17, 2004, at 11:50 AM, Igor Pechtchanski wrote:
>
> > FWIW, I have been thinking of implementing a --list option to cygrunsrv
> > that would list all the Cygwin services installed with cygrunsrv.  At this
> > point I have no implementation, though.
>
> Another feature that would be helpful is an option to show what program
> and the options associated with the program.  It would prevent hunting
> through the registry when debugging problems.

Umm, yes, I was wondering whether I should have mentioned this one.  I was
thinking of adding this info to the "cygrunsrv -Q" option in verbose mode.
Thanks for bringing it up.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: Problem with cat under bash shell

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Lionel Barnett wrote:

> Dave Korn wrote:
>
> >   The fact that mounting your /tmp on a remote drive is a pretty rare thing
> > would be another reason.  Remote home dirs, yes, remote /bin dirs yes,
> > remote /tmp.. not so commonly done.  Owing to a) there's generally no
> > need nor use for sharing the contents of /tmp with other users and b) it
> > gets used pretty heavily and mostly for temporary files and data that are
> > going to be needed again imminently, so for efficiency purposes it would be
> > nice if the data didn't have to make a round-trip across the network to a
> > server and then back again when it could just stay on your local machine
> > where it's needed in the first place.
>
> Agreed - things are actually noticeably zippier with a local /tmp
> (particularly as our network is somewhat crapulous).
>
> As to how/why we ended up with a remote /tmp is as follows: our work setup is
> that most of our (shared) software - including Cygwin - sits on a shared drive
> on machine S, say. We generally terminal serve in to machines A, B, C, ...
> over the network and run stuff from there (which may access fs's on machines
> X, Y, Z...). Now since the default Cygwin install sets up /tmp as... well,
> /tmp, under our setup this means /tmp sits on machine S which will be remote
> as far as machines A, B, C are concerned. I wouldn't have thought this to be
> such an uncommon setup.
>
> Hence the solution to symlink /tmp to /cygdrive/c/temp, as this is guaranteed
> to be local. Perhaps this could get a mention in the FAQ/Install notes?

It's actually better to re-mount /tmp as a local dir instead, e.g.

mount -fsb c:/temp /tmp

That way you avoid one network access for each /tmp access (to read the
symlink).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: gtk 2?

2004-09-17 Thread Gerrit P. Haase
Hallo Steve,

Am Freitag, 17. September 2004 um 23:05 schriebst du:

> Do you know what's needed to get gtk 2.0 to work with cygwin?

Just install it with setup.exe?

> I need gtk 2 to get Dia (an open source diagramming package to displace
> Microsoft Visio). (http://www.gnome.org/projects/dia/)

All prerequisites are available as Cygwin packages, should be possible
to build it.  However, there were some issues the last time I tried to
build Dis, e.g. loading modules.  Please continue reporting how it is
going and don't hesitate to ask here or the Dia people for help if you
get errors.

Gerrit
-- 
=^..^=



--
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: automatic cronjob injection

2004-09-17 Thread Reini Urban
Dave Korn schrieb:
-Original Message-
From: cygwin-owner On Behalf Of Reini Urban
Sent: 17 September 2004 18:22
I know that it might be possible and I know that is not advisable,
  So why are you asking?  You know the ropes: what does it say at the top of
EVERY single file in /var/cron/tabs?
# DO NOT EDIT THIS FILE - edit the master and reinstall.
  If it's inadvisable, then it seems wildly reckless to attempt a flaky and
improper technique in a postinstall script, because such scripts are going
to be run by every conceivable kind of user in every conceivable combination
of environments and if something can go wrong, it will.  A postinstall
script should be utterly solid (well, as close to as possible) because it's
such a critical part of the cygwin distribution mechanism.  A broken
postinstall script that causes setup.exe to bomb out (rare, but I've seen it
happen) can get users stuck in an endless cycle of download megs of files -
get half-way through installing - setup crashes - restart setup and it
doesn't remember what it's done and needs to re-download everything again.
Of course not in a postinstall script, because the user should be able 
to see it and correct it.

But in the following installation steps.
I thought of:
/etc/rc.d/init.d/$package install
/etc/rc.d/init.d/$package installcron
/etc/rc.d/init.d/$package uninstall
("install" / "uninstall" just un-/installs the service, not the package)
So don't do it.  If you want to do this programatically, use "crontab -l"
to dump it to a file, use a sed script to edit it - I don't think blindly
appending a line without making sure you delete the old one would be good -
then "crontab edited-file" to update it.
Good idea. I'll do a grep before blindly adding a new line.
I just add a commented line to crontab, and called:
crontab -e so the user will get an idea what to do.
That doesn't seem to me any more hard than the three operations you have
in your way of doing it, and it's guaranteed to work.  What motivation for
doing it any other way could there be?
The motivation is: users prefer installers, which just do what they 
want, instead of reading docs about required installations steps.

And I wanted a place where all the logic which didn't fit into the 
postinstall script could be executed.
Give permissions to SYSTEM, run cygrunsrv --install with the correct 
settings, blabla.
it's about ten lines.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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


argv[0] drops extension?

2004-09-17 Thread Brian Ford
$ uname -a
CYGWIN_NT-5.1 fordpc 1.5.12(0.116/4/2) 2004-09-16 11:17 i686 unknown
unknown Cygwin

$ cat argv.c
#include 
#include 
#include 
#include 

int
main(int argc, char *argv[])
{
printf("argv[0]: %s\n", argv[0]);

if (open(argv[0], O_RDONLY|O_BINARY) < 0)
perror("open");

return 0;
}

$ gcc -o argv.exe -g -O2 argv.c

$ ./argv
argv[0]: ./argv
open: No such file or directory

$ ./argv.exe
argv[0]: ./argv
open: No such file or directory

Is this expected behavior?  Thanks.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: 1.5.11, I don't have .profile, .bashrc and .inputrc in my HOME

2004-09-17 Thread Brian Ford
On Fri, 17 Sep 2004, Bruce Hyatt wrote:

> can/how do I create the .profile, .bashrc and .inputrc files in my HOME?

Template files for these are found in /etc/skel.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: apache2 as service

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Prakash Khemani wrote:

> > Check the windows event viewer for more logs.
>
> Windows event viewer has errors saying that the cygapache service
> terminated unexpectedly.

What, no more information?

> > Configuration problems.  File permissions.  Check them all.
>
> I doubt that this would be a problem. When I start it at the command
> line everything works fine.

When you start it at the command line, it runs as you.  When you start it
as a service, it runs as a different user (SYSTEM).  Listen to what people
tell you -- check the file permissions.

> Httpd spawns multiple processes. Can that be an issue?
>
> Thanks,
> Prakash
>
> > -Original Message-
> > From: Peter Rehley [mailto:peterrehleynet]
> > Sent: Friday, September 17, 2004 9:46 AM
> > To: Prakash Khemani
> > Cc: cygwincygwincom

Oh, and .
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: apache2 as service

2004-09-17 Thread Peter Rehley
On Sep 17, 2004, at 3:11 PM, Igor Pechtchanski wrote:
On Fri, 17 Sep 2004, Prakash Khemani wrote:
Check the windows event viewer for more logs.
Windows event viewer has errors saying that the cygapache service
terminated unexpectedly.
What, no more information?
Actually, this is pretty normal.  Sometimes you might catch something.  
But in my experiences, those times have been rare.

--
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: argv[0] drops extension?

2004-09-17 Thread Christopher Faylor
On Fri, Sep 17, 2004 at 05:00:39PM -0500, Brian Ford wrote:
>$ ./argv.exe
>argv[0]: ./argv
>open: No such file or directory
>
>Is this expected behavior?  Thanks.

Yes.

cgf

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



Resolved: [automake-1.9] aclocal problems

2004-09-17 Thread Gerrit P. Haase
Hello All,

I wrote:

> I'm having problems with the new automake.  I'm getting no aclocal.m4
> file as usual and therefore, there are several unexpanded macros from
> configure.in which causes autoconf to fail.  It is nice to see that
> there are major aclocal bugs handled with this new release, but it
> seems that they also introduced new problems.

It resolved as I exited the subshell and used a new opened shell.  The
problem was that I did an `export LD=gcc` for a prvious build and
libtool thought that my linker cannot build shared executables


Gerrit
-- 
=^..^=



--
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: apache2 as service

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Peter Rehley wrote:

> On Sep 17, 2004, at 3:11 PM, Igor Pechtchanski wrote:
>
> > On Fri, 17 Sep 2004, Prakash Khemani wrote:
> >
> > > > Check the windows event viewer for more logs.
> > >
> > > Windows event viewer has errors saying that the cygapache service
> > > terminated unexpectedly.
> >
> > What, no more information?
>
> Actually, this is pretty normal.  Sometimes you might catch something.
> But in my experiences, those times have been rare.

Ah, right.  Sometimes you'd see something like "execv: operation not
permitted".  However, the "terminated unexpectedly" message seems to
indicate that apache doesn't start in the foreground...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: apache2 as service

2004-09-17 Thread Prakash Khemani
> What, no more information?

Actually there is more information in the Event Viewer under
Application.

The cygapache service gave out the following error message

"cygapache : PID 604 : starting service `cygapache' failed: signal 12
raised."

I am tring to run "httpd -k start -D FOREGROUND" as the cygapache
service.

Thanks,
Prakash

> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 3:12 PM
> To: Prakash Khemani
> Cc: Peter Rehley; [EMAIL PROTECTED]
> Subject: RE: apache2 as service
> 
> On Fri, 17 Sep 2004, Prakash Khemani wrote:
> 
> > > Check the windows event viewer for more logs.
> >
> > Windows event viewer has errors saying that the cygapache service
> > terminated unexpectedly.
> 
> What, no more information?
> 
> > > Configuration problems.  File permissions.  Check them all.
> >
> > I doubt that this would be a problem. When I start it at the command
> > line everything works fine.
> 
> When you start it at the command line, it runs as you.  When you start
it
> as a service, it runs as a different user (SYSTEM).  Listen to what
people
> tell you -- check the file permissions.
> 
> > Httpd spawns multiple processes. Can that be an issue?
> >
> > Thanks,
> > Prakash
> >
> > > -Original Message-
> > > From: Peter Rehley [mailto:peterrehleynet]
> > > Sent: Friday, September 17, 2004 9:46 AM
> > > To: Prakash Khemani
> > > Cc: cygwincygwincom
> 
> Oh, and .
>   Igor
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "Happiness lies in being privileged to work hard for long hours in
doing
> whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: apache2 as service

2004-09-17 Thread Prakash Khemani

> When you start it at the command line, it runs as you.  When you start
it
> as a service, it runs as a different user (SYSTEM).  Listen to what
people
> tell you -- check the file permissions.
>

Setting all permissions to 777 on /usr/, /usr/local/ and everything
under /usr/local/apache2 has not helped.

Thanks,
Prakash



> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 3:12 PM
> To: Prakash Khemani
> Cc: Peter Rehley; [EMAIL PROTECTED]
> Subject: RE: apache2 as service
> 
> On Fri, 17 Sep 2004, Prakash Khemani wrote:
> 
> > > Check the windows event viewer for more logs.
> >
> > Windows event viewer has errors saying that the cygapache service
> > terminated unexpectedly.
> 
> What, no more information?
> 
> > > Configuration problems.  File permissions.  Check them all.
> >
> > I doubt that this would be a problem. When I start it at the command
> > line everything works fine.
> 
> When you start it at the command line, it runs as you.  When you start
it
> as a service, it runs as a different user (SYSTEM).  Listen to what
people
> tell you -- check the file permissions.
> 
> > Httpd spawns multiple processes. Can that be an issue?
> >
> > Thanks,
> > Prakash
> >
> > > -Original Message-
> > > From: Peter Rehley [mailto:peterrehleynet]
> > > Sent: Friday, September 17, 2004 9:46 AM
> > > To: Prakash Khemani
> > > Cc: cygwincygwincom
> 
> Oh, and .
>   Igor
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "Happiness lies in being privileged to work hard for long hours in
doing
> whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: apache2 as service

2004-09-17 Thread Igor Pechtchanski
On Fri, 17 Sep 2004, Prakash Khemani wrote:

> > What, no more information?
>
> Actually there is more information in the Event Viewer under
> Application.
>
> The cygapache service gave out the following error message
>
> "cygapache : PID 604 : starting service `cygapache' failed: signal 12
> raised."

Heh, there you go.  You've seen
, right?

Try adding '-e CYGWIN="$CYGWIN"' to your cygrunsrv command line.

> I am tring to run "httpd -k start -D FOREGROUND" as the cygapache
> service.
>
> Thanks,
> Prakash
>
> > -Original Message-
> > From: Igor Pechtchanski [mailto:pechtchacsnyuedu]
> > Sent: Friday, September 17, 2004 3:12 PM
> > To: Prakash Khemani
> > Cc: Peter Rehley; cygwincygwincom

Ah, again, .
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: apache2 as service

2004-09-17 Thread Prakash Khemani


> Heh, there you go.  You've seen
> , right?
> 
> Try adding '-e CYGWIN="$CYGWIN"' to your cygrunsrv command line.

Bingo! That worked. In the Windows Environment variables (MyComputer ->
System Properties -> Advanced -> Environment Variables -> System
Variables)  I had CYGWIN set properly all this while - but I guess that
value is not picked up while running services.

Thank you all very much ! :) !

Regards,
Prakash


> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 4:24 PM
> To: Prakash Khemani
> Cc: [EMAIL PROTECTED]; Peter Rehley
> Subject: RE: apache2 as service
> 
> On Fri, 17 Sep 2004, Prakash Khemani wrote:
> 
> > > What, no more information?
> >
> > Actually there is more information in the Event Viewer under
> > Application.
> >
> > The cygapache service gave out the following error message
> >
> > "cygapache : PID 604 : starting service `cygapache' failed: signal
12
> > raised."
> 
> Heh, there you go.  You've seen
> , right?
> 
> Try adding '-e CYGWIN="$CYGWIN"' to your cygrunsrv command line.
> 
> > I am tring to run "httpd -k start -D FOREGROUND" as the cygapache
> > service.
> >
> > Thanks,
> > Prakash
> >
> > > -Original Message-
> > > From: Igor Pechtchanski [mailto:pechtchacsnyuedu]
> > > Sent: Friday, September 17, 2004 3:12 PM
> > > To: Prakash Khemani
> > > Cc: Peter Rehley; cygwincygwincom
> 
> Ah, again, .
>   Igor
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "Happiness lies in being privileged to work hard for long hours in
doing
> whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



python 2.3.4-1 on cygwin 1.5.11-1 exits when Thread exits

2004-09-17 Thread Dan H
Whenever any of my python threads exits, python exits, too (regardless of 
the main thread, for example). See below for details. How can I fix this?

Transcript of a python session on cygwin 1.5.11-1:
% python2.3
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
from threading import Thread
t = Thread()
t.start()
%
i.e. when thread t exited, so did python.
Doing the same thing on Linux, python does not exit:
% uname -srm
Linux 2.6.6-1-386 i686
% python2.3
Python 2.3.4 (#2, Jul  5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from threading import Thread
t = Thread()
t.start()
print "foo"
foo

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

--
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: python 2.3.4-1 on cygwin 1.5.11-1 exits when Thread exits

2004-09-17 Thread Dan H
This is on XP Pro 5.1.2600
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

--
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: python 2.3.4-1 on cygwin 1.5.11-1 exits when Thread exits

2004-09-17 Thread Christopher Faylor
On Sat, Sep 18, 2004 at 12:17:12AM +, Dan H wrote:
>Whenever any of my python threads exits, python exits, too (regardless of 
>the main thread, for example). See below for details. How can I fix this?

Try a snapshot:  http://cygwin.com/snapshots/

--
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: adding to and upgrading a cygwin installation...

2004-09-17 Thread Brian Dessent
e-head wrote:

> > > Also, is there any easy way to essentially just "upgrade" all of your
> > > currently installed cygwin packages ?
> >
> > setup.exe -R c:\cygwin -s ftp://mirrors.rcn.net -n -q
> >
> > works for me.  I have is as a shortcut in my Startup folder, so it runs with
> > every reboot.  (c:\cygwin is where cygwin is installed;
> > ftp://mirrors.rcn.net is my preferred mirror, change both as appropriate for
> > you.)  See http://www.cygwin.com/ml/cygwin/2002-11/msg01490.html for more.
> >
> > - Barry
> 
> Hi,
> this little upgrade tip seems to be working great (it's not finished
> yet) ... however, i have no idea what it is doing.

I have to say that running setup.exe unattended like that in an
automated way is just insane, in my opinion.  It may work but it's not
really supported, we're not at the state where you can really expect to
pull down periodic updates that way and not expect surprises every so
often.

> i would like to simply upgrade all of the packages i currently have
> installed. not install anything new, not uninstall anything i already
> have.

If you run setup.exe and select nothing but 'Next' on each page, then
that's just what you should get.  Why do you have belief otherwise?

> i couldn't find any info on command line switches to setup.
> setup -h,--help, /? did not show anything.
> further, i couldn't find any documentation on the cygwin site about
> this.

That's because they're unsupported.  They're only documented in the
mailing list archives and the source code.

> is there any way to "grap" single packages this way ?

(...assuming here you meant "grab" ...)

Run setup, find the individual package you want, click anywhere in the
"New" column to cycle from "Skip" to the current version.  If the
default "Category" view is scary then switch to "Full" or "Not
installed" if you prefer and you'll see them as a flat list instead of a
tree. Why don't you ask your setup.exe questions directly rather than
skirting the issue by trying to use other nonsupported methods for
getting packages?  Using setup in this manner is the only current sane
way to select packages.

Brian

--
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: Bash returns incorrect process status

2004-09-17 Thread Pierre A. Humblet
At 09:51 AM 9/17/2004 +0200, Peter Ekberg wrote:
>Pierre A. Humblet wrote:
>> FWIW, attached is a patch to bash that may improve its 
>> behavior on Cygwin.
>> The idea is that when a new process is stored in the memory array, any
>> existing process with the same pid is marked "reused". 
>> "reused" processes
>> are never considered when searching for a process by pid. 
>> They are still
>> still available, e.g. to get the status of processes in a job. 
>> 
>> It's a proof of principle code, not meant to be efficient. It 
>> can still print
>> a debug message on stderr.
>
>Tried it and it doesn't solve the problem for me. It shifts the trigger
>pattern though.

There was another problem. bash keeps track of the
"last_made_pid" and compares it to its previous value
to decide if it should wait on a process.

So if a new command has the same pid as the previous one,
bash won't wait on it.

You might think that this is OK as long as consecutive
forks return different pids. Wrong, because forks used
for some purposes, such as back tick evaluations,
don't count.

So bash is currently unreliable on any system where
processes don't have unique pids. If pid values are reused,
and all intervening forks serve only for backtick evaluations,
bash will return 0 status for a command.
Naturally this gets to be unlikely as the reuse period grows.

Here is another patch against the Cygwin release of bash.
It includes the previous one in this thread. Please try it.

Thanks to Bogdan Vacaliuc and Peter Ekberg for their help.

Pierre

--- configure.orig  2004-09-17 21:04:34.0 -0400
+++ configure   2004-09-17 21:25:24.0 -0400
@@ -19323,7 +19323,7 @@ lynxos*)LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
 linux*)LOCAL_LDFLAGS=-rdynamic ;;   # allow dynamic loading
 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix 
-lncurses" ;;
 powerux*)  LOCAL_LIBS="-lgen" ;;
-cygwin*)   LOCAL_CFLAGS="-DRECYCLES_PIDS" ;;
+cygwin*)   LOCAL_CFLAGS="" ;;
 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
 esac

--- execute_cmd.c.orig  2002-03-18 13:24:22.0 -0500
+++ execute_cmd.c   2004-09-17 22:03:44.0 -0400
@@ -468,7 +468,7 @@ execute_command_internal (command, async
 {
   int exec_result, invert, ignore_return, was_error_trap;
   REDIRECT *my_undo_list, *exec_undo_list;
-  volatile pid_t last_pid;
+  volatile upid_t last_pid;

   if (command == 0 || breaking || continuing || read_but_dont_execute)
 return (EXECUTION_SUCCESS);
@@ -646,13 +646,13 @@ execute_command_internal (command, async
/* XXX - this is something to watch out for if there are problems
   when the shell is compiled without job control. */
if (already_making_children && pipe_out == NO_PIPE &&
-   last_pid != last_made_pid)
+   (last_pid.pid != last_made_pid.pid || last_pid.seq != last_made_pid.seq))
  {
stop_pipeline (asynchronous, (COMMAND *)NULL);

if (asynchronous)
  {
-   DESCRIBE_PID (last_made_pid);
+   DESCRIBE_PID (last_made_pid.pid);
  }
else
 #if !defined (JOB_CONTROL)
@@ -663,7 +663,7 @@ execute_command_internal (command, async
/* When executing a shell function that executes other
   commands, this causes the last simple command in
   the function to be waited for twice. */
- exec_result = wait_for (last_made_pid);
+ exec_result = wait_for (last_made_pid.pid);
 #if defined (RECYCLES_PIDS)
  /* LynxOS, for one, recycles pids very quickly -- so quickly
 that a new process may have the same pid as the last one
--- jobs.c.orig 2002-05-09 11:56:20.0 -0400
+++ jobs.c  2004-09-17 21:45:16.0 -0400
@@ -187,11 +187,14 @@ int current_job = NO_JOB;
 int previous_job = NO_JOB;

 /* Last child made by the shell.  */
-pid_t last_made_pid = NO_PID;
+upid_t last_made_pid = NO_UPID;

 /* Pid of the last asynchronous child. */
 pid_t last_asynchronous_pid = NO_PID;

+/* Sequence number for unique pid identification */
+unsigned int pid_sequence = 0;
+
 /* The pipeline currently being built. */
 PROCESS *the_pipeline = (PROCESS *)NULL;

@@ -737,7 +740,35 @@ add_process (name, pid)
  char *name;
  pid_t pid;
 {
-  PROCESS *t, *p;
+  PROCESS *t, *p, * p_start;
+  register int i;
+
+  /* Mark any pid that is being reused */
+  for (i = -1; i < job_slots; i++)
+{
+  if (i < 0)
+{
+ if (!(p = the_pipeline))
+ continue;
+   }
+  else if (jobs[i])
+   p = jobs[i]->pipe;
+  else
+   continue;
+
+  p_start = p;
+  do
+{
+ if (p->pid == pid && !p->reused)
+   {
+ p->reused = 1;
+ goto done;
+   }
+ p = p->next;
+   }
+  while (p != p_start);
+}
+ done:

   t = (PROCESS *)xmalloc (sizeof (