Re: Using authentication under Apache for Cygwin

2003-09-30 Thread Stipe Tolj
> I would tend to agree except this config worked with Apache for Windows.

which does not mean that Apache for Cygwin acts the same way as the
native Win32 counterpart.

I'm not sure if you can use network resource location that way as you
can in Apache for Windows. I would guess not.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

--
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: *** unable to allocate heap, heap_chunk_size 0, Win32 error 0

2003-09-30 Thread Ronald van Gogh
First of all, sorry, but I didn't know how to post a reply, since I'm 
registered on the mailinglist in digestmode.

As I've told before we're collecting information on a dominoserver every 10 
minutes by running a bash script (cygwin) scheduled by Windows Scheduler 
(Splinterware). We noticed that sometimes (once or twice a day) this failed. 
To check the cause we created a new small shell script, which only writes a 
date and time to a file. Furthermore, to catch any stdout/stderr messages, 
we called the script by a batch file. The sources of both programs are 
described below.

schedule_chk.bat
---
@echo off
d:\cygwin\bin\bash.exe --login -i 
"d:/Lotus/Domino/Data/StatCollect/bin/schedule_chk.sh" 
>>d:\cygwin\tmp\schk.txt 2>&1

schedule_chk.sh
---
#!/usr/bin/ksh
echo $(date) >> /tmp/schedule_chk.log
This generated the following outputfiles (the file schk.txt contains the 
errors):

schedule_chk.log

Tue Sep 30 08:00:01 2003
Tue Sep 30 08:10:01 2003
Tue Sep 30 08:20:01 2003
Tue Sep 30 08:30:01 2003
Tue Sep 30 08:40:01 2003
Tue Sep 30 08:50:01 2003
Tue Sep 30 09:00:01 2003
Tue Sep 30 09:10:01 2003
Tue Sep 30 09:30:00 2003
Tue Sep 30 09:40:00 2003
Tue Sep 30 09:50:00 2003
Tue Sep 30 10:00:00 2003
Tue Sep 30 10:10:01 2003
Tue Sep 30 10:30:00 2003
schk.txt
---
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 384, 
Win32 error 0
d:\cygwin\bin\bash.exe: *** unable to allocate heap, heap_chunk_size 0, 
Win32 error 0

As you can see the log file sometimes contains gaps and errormessages are 
written to stderr.
I've attached a cygcheck.out file for more information.

Kind regards,  Ronald van Gogh

_

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Sep 30 10:23:43 2003
Windows 2000 Advanced Server Ver 5.0 Build 2195 Service Pack 3

Path:   D:\cygwin\usr\local\bin
D:\cygwin\bin
D:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
d:\Program Files\Support Tools\
d:\Program Files\Resource Kit\
d:\lotus\Domino\
d:\notrix
.
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
HOME = `D:\cygwin'
MAKE_MODE = `unix'
PWD = `/'
USER = `nly21479'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\nly21479\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `NLYEHVDMD1DSN04'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\nly21479'
LOGONSERVER = `\\NLYEHVSAQ1DC002'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `2'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 10 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0a01'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\nly21479\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\nly21479\LOCALS~1\Temp'
USERDNSDOMAIN = `code1.emi.philips.com'
USERDOMAIN = `CODE1'
USERNAME = `nly21479'
USERPROFILE = `C:\Documents and Settings\nly21479'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
 (default) = `/cygdrive'
 cygdrive flags = 0x0020
HKEY_LOCAL_MACHINE\SOF

FW: XFree86-bin-icons .. believe cygwin xfree86 a "red" herring ... this is I believe a cygwin problem

2003-09-30 Thread Alan Miles
All,

Relates to

http://cygwin.com/ml/cygwin/2003-09/msg01821.html

These are the cygcheck files gziped and non-full setup files gziped


_
Alan Miles
ICQ#: 171006836
More ways to contact me: http://wwp.icq.com/171006836
_


cygcheck_results_machine1_works.txt.gz
Description: Binary data


cygcheck_results_machine2_doesnt_work.txt.gz
Description: Binary data


setup_machine1_works.log.gz
Description: Binary data


setup_machine2_doesnt_work.log.gz
Description: Binary data
--
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: docbook-xsl-1.62.3-1

2003-09-30 Thread Marcel Telka
I've updated the docbook-xsl package to version 1.62.3-1.

docbook-xsl package contains XSL stylesheets for the DocBook XML DTD 
created by Norman Walsh and others.

Note: This package is independent on the cygwin kernel, so it should 
work with both 1.3.x and 1.5.x cygwin kernel series.

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.

If you have questions or comments, please send them to the Cygwin 
mailing list at: cygwin at cygwin dot com. I would appreciate it if you 
would use this mailing list rather than emailing me directly.

-- 
+---+
| Marcel Telka   e-mail:   [EMAIL PROTECTED]  |
|homepage: http://telka.sk/ |
|jabber:   [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/



foobaz-unsubscribe@sources.redhat.com

2003-09-30 Thread chignon mathieu
[EMAIL PROTECTED] 

=
Mathieu Chignon
Ingénieur Multimédia
Institut des Sciences de l'Homme,
14 avenue Berthelot, 69008 LYON
Tel : 04 72 72 79 02

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.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/



Files in /etc missing after new install

2003-09-30 Thread BUEHL,REINER (HP-Germany,ex1)
Hi all,

I just installed cygwin (Setup.exe v2.415). The installation went fine, no
errors, but all the files that should have been created during the
postinstall step are missing. There is no /etc/profile, no /etc/passwd, no
/etc/group and so on.
Can anybody help me to fix this? I already reinstalled twice... :-(

Best regards,
Reiner.

--
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: Convert Cygwin shortcuts to Unix symlinks ?

2003-09-30 Thread Corinna Vinschen
On Mon, Sep 29, 2003 at 03:09:06PM -0300, Fr?d?ric L. W. Meunier wrote:
> Anybody know how (better if recursively) ? I extracted a
> tarball under Cygwin and later copied it to a Linux partition.
> Obviously all Cygwin shortcuts created at extract time are
> copied, breaking it.

tar it up on one machine, untar it on the other machine.  cp doesn't
keep shortcuts.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[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: Hello and cygwin quesiton

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Yap on ExactGeom wrote:

> Dear Igor,
>
> How are you?  I noticed that you are an active developer of cygwin.
> I really liked this platform and our Core Library is developed
> on this mainly.   I have a question:
>
> In my recent (June) installation of cygwin, there was an annoying
> bug -- many of the files that I create are automatically given
> the execute permission.  [Since my "ls" will automatically show
> me which files are executable, this is VERY annoying.]
> But this behavior is not universal.  If I have a non-executable
> file, and I exit it using gvim, the file will become executable.
> But using vim, it remains non-executable.  But I don't think
> the program is with a bad installation of gvim, because this
> phenomenon shows up in other places.
>
> Heard of this bug before?
> Thanks, Chee

Hi, Chee,

Great to hear from you.

I'm redirecting this reply to the general Cygwin list, mostly to get this
into the archives (because I know others are having this same problem).
Also, this brings your question up before a large body of expertise --
perhaps someone else will find something I've missed.

This is not a bug, but rather an artifact of the default permissions files
get when written by Windows programs.  Gvim is a pure Windows program, in
contrast with vim, which is a Cygwin one.  Also, vim writes files
in-place, whereas gvim creates a new copy -- hence the change in
permissions.  Unfortunately, there isn't anything you can easily do to fix
this.  I have a script (attached) that I run periodically on my system to
fix the executable permissions.  It's not foolproof, but it's better than
nothing (and it should err on the conservative side).
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton#!/bin/sh
#
# A script to fix up executable permissions.
#
# Copyright (c) 2002, 2003, Igor Pechtchanski
#
# Written by Igor Pechtchanski <[EMAIL PROTECTED]>
#
# This program is distributed under the terms of the GNU General Public
# License.  For more information see .
#

PROGNAME="`basename "$0"`"
USAGE="Usage: $PROGNAME [-v|--verbose] [-n|--dry-run] [-b|--batch] [dirs]"
DASH_PRINT=
ECHO=
TEE=cat
BATCH=
dup2() {
#  xargs -r -0 -n 1 perl -e 'exit unless ($a=shift);print STDERR "$a\n";print "$a\0"'
#  xargs -r -0 -n 100 perl -e 'foreach(@ARGV){print STDERR "$_\n";print "$_\0"}'
  perl -e '$/="\0";while(<>){chomp();print STDERR "$_\n";print "$_\0"}'
}
while [ -n "$1" ]; do
  case "$1" in
-h|--help) echo "$USAGE" >&2 ; exit 0 ;;
-v|--verbose) DASH_PRINT="-print" ; TEE=dup2 ;;
-n|--dry-run) ECHO="echo" ;;
-b|--batch) BATCH="true" ;;
--) shift ; break ;;
-*) echo "Invalid flag: $1" >&2 ; echo "$USAGE" >&2 ; exit 2 ;;
*) break ;;
  esac
  shift
done

DIRS="${@:-.}"

#EXEEXT="sh exe bat com dll"
EXEEXT="exe bat com dll"
EXTFILTER="$(echo "$EXEEXT" | perl -pe 's/(\w+)/-name \\*.$1 -o/g')"

#DBGPRG='-exec echo CAUGHT ".(++$i)." {} \\;'
EXEPAT='^#! */^: *Use */eval.*exec'
#PATPRG='-exec perl -ne 
\"BEGIN{\\\$s=1};\\\$.=1&&/$p/&&exit(\\\$s=0);exit(\\\$s);END{exit(\\\$s)}\" {} \\;';
PATPRG='-exec awk \"BEGIN{S=1}NR=1&&/$p/{S=0;exit(0)}{exit(S)}END{exit(S)}\" {} \\;';
PATFILTER="$(echo "$EXEPAT" | perl -pe 's/\n$//;@p=split(//);foreach 
$p(@p){$p=~s@(['"'"'"/])@[EMAIL PROTECTED];$p="'"$PATPRG $DBGPRG"' -o";};$_=join(" 
",@p)')"

eval "set -- $EXTFILTER $PATFILTER"

for DIR in $DIRS; do
  if [ -d "$DIR" -o -h "$DIR" ]; then
FILTER="-type f"
  elif [ -f "$DIR" ]; then
FILTER="-maxdepth 1"
  fi
  if [ -z "$BATCH" ]; then
find "$DIR" $FILTER -perm -0100 \( "$@" \( $DASH_PRINT -exec $ECHO chmod a-x {} \; 
\) \)
  else
find "$DIR" $FILTER -perm -0100 \( "$@" -print0 \) | $TEE | xargs -r -0 -n 1000 
$ECHO chmod a-x --
  fi
done

--
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: munmap bug test program

2003-09-30 Thread Corinna Vinschen
On Tue, Sep 30, 2003 at 10:06:11AM +0800, peter garrone wrote:
> This test program highlights the recent munmap problem addressed by Corinna.
> It works with the updated mmap, and with linux, fails on cygwin with the prior mmap.

What "updated" mmap are you talking about, your's or the one in CVS?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[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/



g++-2 causes a segmentation fault

2003-09-30 Thread James Begley
Hi,

I have an application that segfaults when I run it, if its compiled with gcc2 
(2.95.3-10), but will run fine it its compiled with gcc (3.3.1-2).  If I 
uninstall gcc 3.3.1-2, and install gcc 2.95.3-5 (from my archive of old set-ups) 
then the application will run fine, regardless of whether it is compiled with 
gcc or gcc2.

Searching the archives, I find that this was reported, along with a simple test 
case, on the 24th of September (see 
http://www.cygwin.com/ml/cygwin/2003-09/msg01533.html ).  There is no solution 
in the archives - but I note that there were no posts at all for over 5 hours 
just after that message, which suggests that there may have been a problem with 
the cygwin mailing lists and a solution has been posted, but lost.

The output from cygcheck -svr is attached.

Is is possible to get gcc2 and the latest gcc to reside happily on the machine?

Thanks for any help,
James.

James Begley

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Sep 30 12:47:50 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   .
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Perl\bin\
c:\WINNT\Tcl\bin
c:\MikTex\miktex\bin
c:\WINNT\system32
c:\WINNT
c:\Program Files\Common Files\Adaptec Shared\System
c:\Program Files\doxygen\bin
c:\Program Files\TortoiseCVS
c:\Program Files\Java\j2re1.4.2_01\bin
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 15530(james) GID: 545(Users)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 15530(james) GID: 545(Users)
545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\james'
MAKE_MODE = `unix'
PWD = `/home/james'
USER = `james'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\james\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `HAFNASANDUR'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `Y:'
HOMEPATH = `\.profiles'
HOMESHARE = `\\hafkaldi\james'
HOSTNAME = `hafnasandur'
LOGONSERVER = `\\HAFRO'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/gadget/fleksibest'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = 
`.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyc;.pyo;.pyw;.pys;.tcl'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b01'
PROGRAMFILES = `C:\Program Files'
PS1 = `\[\033]0;\w\007
\033[32m\]\w \[\033[33m\t\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\Temp'
TERM = `cygwin'
TMP = `c:\Temp'
USERDOMAIN = `HAF'
USERNAME = `james'
USERPROFILE = `C:\Documents and Settings\james'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   10001Mb  64% CP CS UN PA FC JUMBO
d:  cd   N/AN/A
e:  net NTFS   44285Mb  99% CP CSPAjames
f:  cd   N/AN/A
h:  net NTFS   137816Mb  66% CP CSPAhaf
m:  net NTFS   34185Mb  74% CP CSPApakkar
r:  net NTFS   68314Mb  66% CP CSPAreikn
u:  net NTFS   68314Mb  66% CP CSPAu2
y:  net NTFS   44285Mb  99% CP CSPAjames

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
  "cygbz2-1.dll" v0.0 ts=2003/8/9 6:35
   14k

Re: Files in /etc missing after new install

2003-09-30 Thread John Morrison

>From a bash prompt
/etc/postinstall/base-files-mketc.sh.done
/etc/postinstall/base-files-profile.sh.done

should create them, if the files don't exist with a .done
extension then postinstall wasn't called.  If they don't
exist then you didn't install the base-files package.

J.

On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:

> Hi all,
>
> I just installed cygwin (Setup.exe v2.415). The installation went fine, no
> errors, but all the files that should have been created during the
> postinstall step are missing. There is no /etc/profile, no /etc/passwd, no
> /etc/group and so on.
> Can anybody help me to fix this? I already reinstalled twice... :-(
>
> Best regards,
> Reiner.
>
> --
> 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: Files in /etc missing after new install

2003-09-30 Thread Igor Pechtchanski
Also
/etc/postinstall/passwd-grp.sh.done

which comes from the "base-passwd" package.
Igor

On Tue, 30 Sep 2003, John Morrison wrote:

> From a bash prompt
> /etc/postinstall/base-files-mketc.sh.done
> /etc/postinstall/base-files-profile.sh.done
>
> should create them, if the files don't exist with a .done
> extension then postinstall wasn't called.  If they don't
> exist then you didn't install the base-files package.
>
> J.
>
> On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:
>
> > Hi all,
> >
> > I just installed cygwin (Setup.exe v2.415). The installation went fine, no
> > errors, but all the files that should have been created during the
> > postinstall step are missing. There is no /etc/profile, no /etc/passwd, no
> > /etc/group and so on.
> > Can anybody help me to fix this? I already reinstalled twice... :-(
> >
> > Best regards,
> > Reiner.

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Files in /etc missing after new install

2003-09-30 Thread BUEHL,REINER (HP-Germany,ex1)
If I run /etc/postinstall/base-files-mketc.sh.done from bash promt I get the
following error messages:

/bin/uname: not found
/bin/cygpath: not found
Unknown system type ; exiting

PATH is set to /bin:/usr/bin and "ls /bin" shows that uname.exe and
cygpath.exe exist there. All files in /etc/postinstall have the .done
extension and base-files package has been installed. Any ideas?

Best regards,
Reiner. 

> -Original Message-
> From: John Morrison [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 4:52 PM
> To: BUEHL,REINER (HP-Germany,ex1)
> Cc: [EMAIL PROTECTED]
> Subject: Re: Files in /etc missing after new install
> 
> 
> 
> From a bash prompt
> /etc/postinstall/base-files-mketc.sh.done
> /etc/postinstall/base-files-profile.sh.done
> 
> should create them, if the files don't exist with a .done 
> extension then postinstall wasn't called.  If they don't 
> exist then you didn't install the base-files package.
> 
> J.
> 
> On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:
> 
> > Hi all,
> >
> > I just installed cygwin (Setup.exe v2.415). The installation went 
> > fine, no errors, but all the files that should have been created 
> > during the postinstall step are missing. There is no 
> /etc/profile, no 
> > /etc/passwd, no /etc/group and so on. Can anybody help me 
> to fix this? 
> > I already reinstalled twice... :-(
> >
> > Best regards,
> > Reiner.
> >
> > --
> > Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> > Problem reports:   http://cygwin.com/problems.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ:   http://cygwin.com/faq/
> >
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 

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



RE: Files in /etc missing after new install

2003-09-30 Thread Igor Pechtchanski
Reiner,

Please read and follow the problem reporting guidelines at
, especially the bit about attaching (as
an uncompressed text *attachment*) the output of "cygcheck -svr".
Igor

On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:

> If I run /etc/postinstall/base-files-mketc.sh.done from bash promt I get
> the following error messages:
>
> /bin/uname: not found
> /bin/cygpath: not found
> Unknown system type ; exiting
>
> PATH is set to /bin:/usr/bin and "ls /bin" shows that uname.exe and
> cygpath.exe exist there. All files in /etc/postinstall have the .done
> extension and base-files package has been installed. Any ideas?
>
> Best regards,
> Reiner.
>
> > -Original Message-
> > From: John Morrison [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 30, 2003 4:52 PM
> > To: BUEHL,REINER (HP-Germany,ex1)
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Files in /etc missing after new install
> >
> >
> >
> > From a bash prompt
> > /etc/postinstall/base-files-mketc.sh.done
> > /etc/postinstall/base-files-profile.sh.done
> >
> > should create them, if the files don't exist with a .done
> > extension then postinstall wasn't called.  If they don't
> > exist then you didn't install the base-files package.
> >
> > J.
> >
> > On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:
> >
> > > Hi all,
> > >
> > > I just installed cygwin (Setup.exe v2.415). The installation went
> > > fine, no errors, but all the files that should have been created
> > > during the postinstall step are missing. There is no /etc/profile, no
> > > /etc/passwd, no /etc/group and so on. Can anybody help me to fix this?
> > > I already reinstalled twice... :-(
> > >
> > > Best regards,
> > > Reiner.

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Files in /etc missing after new install

2003-09-30 Thread Christopher Faylor
On Tue, Sep 30, 2003 at 11:09:06AM -0400, Igor Pechtchanski wrote:
>Please read and follow the problem reporting guidelines at
>, especially the bit about attaching (as
>an uncompressed text *attachment*) the output of "cygcheck -svr".

This is good advice but isn't this the usual confusion between "download"
and "install" in setup?

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: Files in /etc missing after new install

2003-09-30 Thread BUEHL,REINER (HP-Germany,ex1)
/etc/postinstall/base-files-profile.sh.done worked, both other scripts
mentioned had errors:

/bin/uname: not found
/bin/cygpath: not found
Unknown system type ; exiting

and

/bin/mkpasswd: not found
/bin/mkgroup: not found

Even though all files exist in /bin (with .exe ending). It seems to be a
permission problem of some kind because if I do a ls -l in /etc I see this:

bash-2.05b$ ls -l /etc
total 114
--1 reibuehl mkpasswd 2810 Sep 30 17:05 DIR_COLORS
d-   13 reibuehl 42949672950 Sep 30 13:54 X11
--1 reibuehl mkpasswd   28 Sep 30 17:05 bash.bashrc
d-3 reibuehl 42949672950 Sep 30 13:52 defaults
d-2 reibuehl 42949672950 Sep 30 13:54 fonts
--1 reibuehl 4294967295 4415 Mar 10  2003 man.config
--1 reibuehl 429496729588039 Sep 16 23:25 moduli
d-2 reibuehl 42949672950 Sep 30 17:06 postinstall
--1 reibuehl mkpasswd 5886 Sep 30 17:05 profile
d-2 reibuehl 42949672950 Sep 30 13:53 profile.d
d-2 reibuehl 42949672950 Sep 30 13:57 setup
d-2 reibuehl 42949672950 Sep 30 17:05 skel
--1 reibuehl 429496729512546 Jul 16 19:27 termcap

Attached is the output of cygcheck -svr.

Best Regards,
Reiner.


> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 5:05 PM
> To: John Morrison
> Cc: BUEHL,REINER (HP-Germany,ex1); [EMAIL PROTECTED]
> Subject: Re: Files in /etc missing after new install
> 
> 
> Also
> /etc/postinstall/passwd-grp.sh.done
> 
> which comes from the "base-passwd" package.
>   Igor
> 
> On Tue, 30 Sep 2003, John Morrison wrote:
> 
> > From a bash prompt
> > /etc/postinstall/base-files-mketc.sh.done
> > /etc/postinstall/base-files-profile.sh.done
> >
> > should create them, if the files don't exist with a .done extension 
> > then postinstall wasn't called.  If they don't exist then 
> you didn't 
> > install the base-files package.
> >
> > J.
> >
> > On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:
> >
> > > Hi all,
> > >
> > > I just installed cygwin (Setup.exe v2.415). The installation went 
> > > fine, no errors, but all the files that should have been created 
> > > during the postinstall step are missing. There is no 
> /etc/profile, 
> > > no /etc/passwd, no /etc/group and so on. Can anybody help 
> me to fix 
> > > this? I already reinstalled twice... :-(
> > >
> > > Best regards,
> > > Reiner.
> 
> -- 
>   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!
> 
> "I have since come to realize that being between your mentor 
> and his route to the bathroom is a major career booster."  -- 
> Patrick Naughton
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Sep 30 17:13:07 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\bin
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(reibuehl) GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(reibuehl) GID: 401(mkpasswd)
401(mkpasswd)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\Documents and Settings\reibuehl'
PWD = `/etc'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\reibuehl\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `NSMSE46'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\reibuehl'
LOGONSERVER = `\\BBNBDC01'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0207'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\Temp'
TERM = `cygwin'
TMP = `c:\Temp'
USERDOMAIN = `EUROPE2'
USERNAME = `reibuehl'
USERPROFILE = `C:\Documents and Settings\reibuehl'
WINDIR = `C:\WINDOWS'
_ = `/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCA

Re: Files in /etc missing after new install

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Christopher Faylor wrote:

> On Tue, Sep 30, 2003 at 11:09:06AM -0400, Igor Pechtchanski wrote:
> >Please read and follow the problem reporting guidelines at
> >, especially the bit about attaching (as
> >an uncompressed text *attachment*) the output of "cygcheck -svr".
>
> This is good advice but isn't this the usual confusion between "download"
> and "install" in setup?
>
> cgf

The cygcheck output would have shown these packages as not installed if
this were the case.  It would also show the information about mounts,
users, etc.  I was about to ask a whole bunch of questions, but then
realized that the cygcheck output will contain the answers for most of
them, hence the advice.

FWIW, it doesn't look like a download vs install issue, since the original
poster did say that the files exist in /bin.  It's more likely a
permission problem.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 of cron in cygwin xp

2003-09-30 Thread Chunyu Liu
Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error, 
but does not start the service either.

6. How to get the SYSTEM-owned shell?

I've spent hours trying to find the answer to all the problems in the 
sea of questions & answers, and can't make it.
It's really a headache.

Chunyu



Igor Pechtchanski wrote:

Chunyu,

Please do not send Cygwin questions in personal mail unless specifically
requested.  All discussion of cygwin-related topics should happen on the
Cygwin list unless specifically requested otherwise.  One of the benefits
is that the discussion ends up in the list archives.  Another is that you
have access to the expertise of many people instead of just one.
For your convenience, I'm redirecting this query to the Cygwin list.  More
replies below.
On Mon, 29 Sep 2003, Chunyu Liu wrote:

 

Dear Igor Pechtchanski,

I noticed that you've been trying discussed this problem in the forum.
But I don't know whether you had the conclusion on this.
Would you mind helping me?
I have tried
cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron
and set /var/run/cron.pid to a+rw,

At the "-S cron" step, I can even see the new record in the log file at
/var/log, saying
[1652] cron started
But cygwin pompts:
"cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started."
And "ps" does not show job of cron running. The cron does not do any
scheduled work either.
I checked Windows Services control panel, the cron is associated with
cygrunsrv there. But whenever it's "started", it stopped immediately.
Any help would be greatly appreciated!
Chunyu Liu
   

Is there any information in the log on why the cron program couldn't run?
Can you run cron from the command line?  ...From a SYSTEM-owned shell?
Did you search the list archives for a similar problem?  Did you run Mark
Harig's "cron_diagnose.sh"?
Also, please read and follow the Cygwin problem reporting guidelines at
.
	Igor
 


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Sep 30 10:11:33 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\oracle\ora81\bin
c:\Program Files\Oracle\jre\1.1.7\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
"C
C:\cygwin\Program Files\Common Files\Adaptec Shared\System"
"C
C:\cygwin\PROGRA~1\ULTRAE~1"
"C
C:\cygwin\Program Files\Symantec\Norton Ghost 2003\"
d:\PROGRA~1\PYROSE~1\PSQ96M~1.0
c:\Program Files\Common Files\Roxio Shared\DLLShared
"C
C:\cygwin\Program Files\j2sdk1.4.1_02\bin"
c:\PROGRA~1\COMMON~1\MGISHA~1\Video
C:\cygwin\usr\X11R6\bin
c:\Program Files\j2sdk1.4.1_02\bin
.

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1005(cliu) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1005(cliu) GID: 513(None)
513(None)544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\cliu'
MAKE_MODE = `unix'
PWD = `/cygdrive/d/system_manager'
USER = `cliu'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Chunyu Liu\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `MOON'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Chunyu Liu'
HOSTNAME = `MOON'
LOGONSERVER = `\\MOON'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/d'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0207'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
PS5ROOT = `C:\Program Files\Roxio\Easy CD Creator 6\PhotoSuite\'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\CHUNYU~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\CHUNYU~1\LOCALS~1\Temp'
USERDOMAIN = `MOON'
USERNAME = `Chunyu Liu'
USERPROFILE = `C:\Documents and Settings\Chunyu Liu'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_C

Changed: perl-5.8.1 debugging version available

2003-09-30 Thread Gerrit P. Haase
Hello,

After I learned now that ftp.cpan.org is a distributed server, you may
use these URLs to get it from your local mirror:

ftp://ftp.cpan.org/authors/id/G/GE/GERRIT/CHECKSUMS
ftp://ftp.cpan.org/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2.tar.bz2
ftp://ftp.cpan.org/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2-src.tar.bz2
ftp://ftp.cpan.org/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2-srctree.tar.bz2


Old infos:
> Now after perl-5.8.1 was finally released, I've made a debugging
> version available at first.  This will not be distributed via the
> Cygwin mirrors and is not installable via setup.exe.

> But you can fetch it from the CPAN mirror which is nearest to you:

>   $CPAN/authors/id/G/GE/GERRIT/CHECKSUMS
>   $CPAN/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2.tar.bz2
>   $CPAN/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2-src.tar.bz2
>   $CPAN/authors/id/G/GE/GERRIT/perl_debug-5.8.1-2-srctree.tar.bz2
  
> where $CPAN is the mirror you select from the list of 238 mirrors
> here:  http://www.cpan.org/SITES.html

> Extract the perl_debug-5.8.1-2-srctree.tar.bz2 from the Cygwin root
> directory, it will create a tree under /tmp/perl/...
> Do the same with perl_debug-5.8.1-2.tar.bz2, it will install into
> /usr/bin/..., /usr/lib/perl5/... and /usr/share/doc/perl-5.8.1/...

> The perl_debug-5.8.1-2-src.tar.bz2 contains all the source packages
> and scripts which are needed to rebuild from scratch.

> This release is mainly for Nicholas Wourms and other Win98/Cygwin/Perl
> users who reported problems with Cygwin Perl releases and who may be
> interested in debugging the problems with Perl under Win98 like
> systems.

> Please try this first release of the final perl-5.8.1 and report back
> if it works for you or not.

> Some technical information:
> It is compiled with gcc-3.3.1 under cygwin-1.5.5, linked against
> libcrypt and libutil, some modules are linked against zlib, libdb4 and
> libgdbm4, I used the latest binutils.

> I'm interested in: i.e.
>- are your favourite modules building?
>- is it possible to build modules using e.g. gcc-3.2?
>- is it possible to run /usr/bin/cpan to install modules (i.e with
>  Win98SE/WinME)?
>- your favourite topic here ...


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: Files in /etc missing after new install

2003-09-30 Thread Igor Pechtchanski
Reiner,

Yes, it certainly does look like a permission issue (as I guessed in my
reply to CGF -- I should learn to read all the messages in the thread
before replying).  Since you said you've already reinstalled a couple of
times, and, at a guess, are willing to do so again if needed, as the
simplest course of aciton I'd suggest removing everything under c:\cygwin
(but leaving the directory itself), changing the permissions of that
directory to something more liberal (IMO, read and execute access for at
least "Authenticated Users" or "Users", write access for the owner, and
check the "inherited by children" box), and reinstalling.

Please let the list know if this works, since this kind of problem has
cropped up from time to time, and it's good to have something definite in
the archives.
Igor
P.S. As suggested in ,
this would be a good functionality to have in setup.

On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:

> /etc/postinstall/base-files-profile.sh.done worked, both other scripts
> mentioned had errors:
>
> /bin/uname: not found
> /bin/cygpath: not found
> Unknown system type ; exiting
>
> and
>
> /bin/mkpasswd: not found
> /bin/mkgroup: not found
>
> Even though all files exist in /bin (with .exe ending). It seems to be a
> permission problem of some kind because if I do a ls -l in /etc I see this:
>
> bash-2.05b$ ls -l /etc
> total 114
> --1 reibuehl mkpasswd 2810 Sep 30 17:05 DIR_COLORS
> d-   13 reibuehl 42949672950 Sep 30 13:54 X11
> --1 reibuehl mkpasswd   28 Sep 30 17:05 bash.bashrc
> d-3 reibuehl 42949672950 Sep 30 13:52 defaults
> d-2 reibuehl 42949672950 Sep 30 13:54 fonts
> --1 reibuehl 4294967295 4415 Mar 10  2003 man.config
> --1 reibuehl 429496729588039 Sep 16 23:25 moduli
> d-2 reibuehl 42949672950 Sep 30 17:06 postinstall
> --1 reibuehl mkpasswd 5886 Sep 30 17:05 profile
> d-2 reibuehl 42949672950 Sep 30 13:53 profile.d
> d-2 reibuehl 42949672950 Sep 30 13:57 setup
> d-2 reibuehl 42949672950 Sep 30 17:05 skel
> --1 reibuehl 429496729512546 Jul 16 19:27 termcap
>
> Attached is the output of cygcheck -svr.
>
> Best Regards,
> Reiner.
>
>
> > -Original Message-
> > From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 30, 2003 5:05 PM
> > To: John Morrison
> > Cc: BUEHL,REINER (HP-Germany,ex1); [EMAIL PROTECTED]
> > Subject: Re: Files in /etc missing after new install
> >
> >
> > Also
> > /etc/postinstall/passwd-grp.sh.done
> >
> > which comes from the "base-passwd" package.
> >   Igor
> >
> > On Tue, 30 Sep 2003, John Morrison wrote:
> >
> > > From a bash prompt
> > > /etc/postinstall/base-files-mketc.sh.done
> > > /etc/postinstall/base-files-profile.sh.done
> > >
> > > should create them, if the files don't exist with a .done extension
> > > then postinstall wasn't called.  If they don't exist then
> > you didn't
> > > install the base-files package.
> > >
> > > J.
> > >
> > > On Tue, 30 Sep 2003, BUEHL,REINER (HP-Germany,ex1) wrote:
> > >
> > > > Hi all,
> > > >
> > > > I just installed cygwin (Setup.exe v2.415). The installation went
> > > > fine, no errors, but all the files that should have been created
> > > > during the postinstall step are missing. There is no /etc/profile,
> > > > no /etc/passwd, no /etc/group and so on. Can anybody help me to fix
> > > > this? I already reinstalled twice... :-(
> > > >
> > > > Best regards,
> > > > Reiner.

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 of cron in cygwin xp

2003-09-30 Thread Igor Pechtchanski
Chunyu,

Does the Windows event log contain any clues?

Cron from the command line wouldn't start a service -- it'll start the
application itself...  Which should be enough to ascertain whether your
crontab works.
The instructions for getting a system-owned shell can easily be found by
searching Google for "system-owned shell cygwin".
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error,
but does not start the service either.
6. How to get the SYSTEM-owned shell?

I've spent hours trying to find the answer to all the problems in the
sea of questions & answers, and can't make it.
It's really a headache.
Chunyu



Igor Pechtchanski wrote:

>Chunyu,
>
>Please do not send Cygwin questions in personal mail unless specifically
>requested.  All discussion of cygwin-related topics should happen on the
>Cygwin list unless specifically requested otherwise.  One of the benefits
>is that the discussion ends up in the list archives.  Another is that you
>have access to the expertise of many people instead of just one.
>
>For your convenience, I'm redirecting this query to the Cygwin list.  More
>replies below.
>
>On Mon, 29 Sep 2003, Chunyu Liu wrote:
>
>
>
>>Dear Igor Pechtchanski,
>>
>>I noticed that you've been trying discussed this problem in the forum.
>>But I don't know whether you had the conclusion on this.
>>Would you mind helping me?
>>
>>I have tried
>>cygrunsrv -I cron -p /usr/sbin/cron -a -D
>>cygrunsrv -S cron
>>
>>and set /var/run/cron.pid to a+rw,
>>
>>At the "-S cron" step, I can even see the new record in the log file at
>>/var/log, saying
>>[1652] cron started
>>But cygwin pompts:
>>"cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
>>The service has not been started."
>>
>>And "ps" does not show job of cron running. The cron does not do any
>>scheduled work either.
>>
>>I checked Windows Services control panel, the cron is associated with
>>cygrunsrv there. But whenever it's "started", it stopped immediately.
>>
>>Any help would be greatly appreciated!
>>Chunyu Liu
>>
>>
>
>Is there any information in the log on why the cron program couldn't run?
>Can you run cron from the command line?  ...From a SYSTEM-owned shell?
>Did you search the list archives for a similar problem?  Did you run Mark
>Harig's "cron_diagnose.sh"?
>
>Also, please read and follow the Cygwin problem reporting guidelines at
>.
>   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!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton
--
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/


CVS tag for 1.5.5-1

2003-09-30 Thread Jeff Baker
Is there a tag or a specific date I can check out of CVS to get the source
that was used to build cygwin 1.5.5-1?

--
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 of cron in cygwin xp

2003-09-30 Thread Chunyu Liu
Igor,

windows event log does contain something, but I can't understand them.
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found. 
The local computer may not have the necessary registry information or 
message DLL files to display messages from a remote computer. You may be 
able to use the /AUXSOURCE= flag to retrieve this description; see Help 
and Support for details. The following information is part of the event: 
cron : PID 3248 : `cron' service stopped.".

I don't know how to search "at /interactive" on "cygwin.com".  In 
cygwin.com, no search engine is provided.

Chunyu

Igor Pechtchanski wrote:

Chunyu,

Does the Windows event log contain any clues?

Cron from the command line wouldn't start a service -- it'll start the
application itself...  Which should be enough to ascertain whether your
crontab works.
The instructions for getting a system-owned shell can easily be found by
searching Google for "system-owned shell cygwin".
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 
1062:
The service has not been started.

4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error,
but does not start the service either.
6. How to get the SYSTEM-owned shell?

I've spent hours trying to find the answer to all the problems in the
sea of questions & answers, and can't make it.
It's really a headache.
Chunyu



Igor Pechtchanski wrote:

>Chunyu,
>
>Please do not send Cygwin questions in personal mail unless 
specifically
>requested.  All discussion of cygwin-related topics should happen on 
the
>Cygwin list unless specifically requested otherwise.  One of the 
benefits
>is that the discussion ends up in the list archives.  Another is 
that you
>have access to the expertise of many people instead of just one.
>
>For your convenience, I'm redirecting this query to the Cygwin 
list.  More
>replies below.
>
>On Mon, 29 Sep 2003, Chunyu Liu wrote:
>
>
>
>>Dear Igor Pechtchanski,
>>
>>I noticed that you've been trying discussed this problem in the forum.
>>But I don't know whether you had the conclusion on this.
>>Would you mind helping me?
>>
>>I have tried
>>cygrunsrv -I cron -p /usr/sbin/cron -a -D
>>cygrunsrv -S cron
>>
>>and set /var/run/cron.pid to a+rw,
>>
>>At the "-S cron" step, I can even see the new record in the log 
file at
>>/var/log, saying
>>[1652] cron started
>>But cygwin pompts:
>>"cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 
error 1062:
>>The service has not been started."
>>
>>And "ps" does not show job of cron running. The cron does not do any
>>scheduled work either.
>>
>>I checked Windows Services control panel, the cron is associated with
>>cygrunsrv there. But whenever it's "started", it stopped immediately.
>>
>>Any help would be greatly appreciated!
>>Chunyu Liu
>>
>>
>
>Is there any information in the log on why the cron program couldn't 
run?
>Can you run cron from the command line?  ...From a SYSTEM-owned shell?
>Did you search the list archives for a similar problem?  Did you run 
Mark
>Harig's "cron_diagnose.sh"?
>
>Also, please read and follow the Cygwin problem reporting guidelines at
>.
>   Igor




--
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: ln and mkshortcut inconsistent in handling of .exe extension

2003-09-30 Thread Larry Hall
At 06:02 PM 9/29/2003, Matt Swift you wrote:

>>> "L" == Larry wrote:
>
>L> 'ln' and 'mkshortcut' have different behavior for a reason.  See 
>L> .
>L> The difference is why 'mkshortcut' exists.  Otherwise, we'd just have
>L> 'ln' (which is all we had for quite some time until the need for 
>L> different behavior was realized).
>
>
>
>I had seen that discussion.  I found no discussion of the particular
>interaction of shortcuts/symlinks and the special handling of the .exe
>extension.  To predict the results of the commands I listed, I had to
>experiment.
>
>Second, I still don't understand why `ln' shouldn't behave the way I
>suggested: how is it better the way it is than if `ln -s' never
>created broken shortcuts 


The documentation I directed you to explains why 'ln -s' functions as it
does and from that follows the need for 'mkshortcut'.  'ln -s' doesn't
create 'broken shortcuts'.  It creates symbolic links with UNIX semantics.  
That's the goal.  If you want/need a Windows-style shortcut with all the 
semantics that implies, use 'mkshortuct'.  Is that the point you were 
missing?


>and 'ln' (hardlink) defaulted to a target of
>"foo.exe" when the supplied target "foo" doesn't exist?  


I'm inclined to agree on this.  I think symmetry here would be a good thing.
Still, I haven't done any real investigation of this issue so I was 
withholding any bold proclamation on it.  I'm sure it fits into the 
category of  if you're inclined to 
investigate further.



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


--
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 of cron in cygwin xp

2003-09-30 Thread Igor Pechtchanski
Chunyu,

The main part of the event is "cron : PID 3248 : `cron' service stopped.",
so this is not quite what you're looking for.  Are there other events from
cron around that time in the event log?  Did you look at the system log,
or the application one?

Google allows you to restrict the search to a particular domain (see
).  So, you'd search
for something like '"at /interactive" site:cygwin.com'.
Igor

On Tue, 30 Sep 2003, Chunyu Liu wrote:

> Igor,
>
> windows event log does contain something, but I can't understand them.
> "The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. You may be
> able to use the /AUXSOURCE= flag to retrieve this description; see Help
> and Support for details. The following information is part of the event:
> cron : PID 3248 : `cron' service stopped.".
>
> I don't know how to search "at /interactive" on "cygwin.com".  In
> cygwin.com, no search engine is provided.
>
> Chunyu
>
>
> Igor Pechtchanski wrote:
>
> > Chunyu,
> >
> > Does the Windows event log contain any clues?
> >
> > Cron from the command line wouldn't start a service -- it'll start the
> > application itself...  Which should be enough to ascertain whether your
> > crontab works.
> >
> > The instructions for getting a system-owned shell can easily be found by
> > searching Google for "system-owned shell cygwin".
> > Igor
> >
> > On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >
> >> Igor,
> >>
> >> Thank you for the help.
> >>
> >> I tried to follow your instruction, but no luck to get it work.
> >> 1. cron_diagnosis.sh does not find any problem.
> >> 2. the cygcheck is attached.
> >> 3. The only error message I got is:
> >>
> >> $ cygrunsrv --start cron
> >> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> >> 1062:
> >> The service has not been started.
> >>
> >> 4. cron.log is fine.
> >>
> >> [1732] cron started
> >> [1652] cron started
> >> [1920] cron started
> >> [3668] cron started
> >> [264] cron started
> >> [3668] cron started
> >> [2284] cron started
> >>
> >> 5. cron from the command line  looks fine, does not report any error,
> >> but does not start the service either.
> >>
> >> 6. How to get the SYSTEM-owned shell?
> >>
> >> I've spent hours trying to find the answer to all the problems in the
> >> sea of questions & answers, and can't make it.
> >> It's really a headache.
> >>
> >> Chunyu
> >>
> >>
> >> Igor Pechtchanski wrote:
> >>
> >> >Chunyu,
> >> >
> >> >Please do not send Cygwin questions in personal mail unless specifically
> >> >requested.  All discussion of cygwin-related topics should happen on the
> >> >Cygwin list unless specifically requested otherwise.  One of the benefits
> >> >is that the discussion ends up in the list archives.  Another is that you
> >> >have access to the expertise of many people instead of just one.
> >> >
> >> >For your convenience, I'm redirecting this query to the Cygwin list.  More
> >> >replies below.
> >> >
> >> >On Mon, 29 Sep 2003, Chunyu Liu wrote:
> >> >
> >> >>Dear Igor Pechtchanski,
> >> >>
> >> >>I noticed that you've been trying discussed this problem in the forum.
> >> >>But I don't know whether you had the conclusion on this.
> >> >>Would you mind helping me?
> >> >>
> >> >>I have tried
> >> >>cygrunsrv -I cron -p /usr/sbin/cron -a -D
> >> >>cygrunsrv -S cron
> >> >>
> >> >>and set /var/run/cron.pid to a+rw,
> >> >>
> >> >>At the "-S cron" step, I can even see the new record in the log file at
> >> >>/var/log, saying
> >> >>[1652] cron started
> >> >>But cygwin pompts:
> >> >>"cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> >> >>The service has not been started."
> >> >>
> >> >>And "ps" does not show job of cron running. The cron does not do any
> >> >>scheduled work either.
> >> >>
> >> >>I checked Windows Services control panel, the cron is associated with
> >> >>cygrunsrv there. But whenever it's "started", it stopped immediately.
> >> >>
> >> >>Any help would be greatly appreciated!
> >> >>Chunyu Liu
> >> >
> >> >Is there any information in the log on why the cron program couldn't run?
> >> >Can you run cron from the command line?  ...From a SYSTEM-owned shell?
> >> >Did you search the list archives for a similar problem?  Did you run Mark
> >> >Harig's "cron_diagnose.sh"?
> >> >
> >> >Also, please read and follow the Cygwin problem reporting guidelines at
> >> >.
> >> >   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!

"I have since come to realize that being between your mentor

Re: CVS tag for 1.5.5-1

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Jeff Baker wrote:

> Is there a tag or a specific date I can check out of CVS to get the source
> that was used to build cygwin 1.5.5-1?

Do you Google:  ?
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



How does the windows specific aspects of nice work?

2003-09-30 Thread Jason House
I did a search online and found the following message (but no reply to 
it).  Does anyone know the particulars about nice?  If it still works as 
they describe (with 2 non-normal priorities), does anyone know when it 
will allow the full range of window supported priorities?

* From: "Thomas Chadwick" 
* To: cygwin at cygwin dot com
* Date: Mon, 06 Jan 2003 14:44:37 -0500
* Subject: nice command?
* Bcc:
I got to playing around with Windows 2000 Task Manager the other day and 
discovered that you can change the priority of a running task. This led 
me to discover that you can specify the priority of a task when you 
launch it by way of the windows start command using one of the following 
options:

LOW Start application in the IDLE priority class
NORMAL Start application in the NORMAL priority class
HIGH Start application in the HIGH priority class
REALTIME Start application in the REALTIME priority class
ABOVENORMAL Start application in the ABOVENORMAL priority class
BELOWNORMAL Start application in the BELOWNORMAL priority class
WAIT Start application and wait for it to terminate
I then got to playing with nice (under Cygwin) to see what I could do 
about setting the priority of a Cygwin task. I used the following syntax 
and tried a number of values of x:

nice -n x programname.exe

I found that specify a value of x=0 results in NORMAL priority. For any 
value of x > 0, I found I got a priority of LOW. For any value of x < 0, 
I found I got a priority of HIGH.

I tried "man nice" and "info nice" and got scant documentation. I'm just 
curious if this is the expected behavior of nice? Is my analysis 
correct, or are there other values of "x" that will get me the other 
Windows priorities? FWIW, there's a Cygwin task I'd like to launch with 
AboveNormal priority.



--
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 of cron in cygwin xp

2003-09-30 Thread Chunyu Liu
Igor,

This is a error in the application one:
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found. 
The local computer may not have the necessary registry information or 
message DLL files to display messages from a remote computer. You may be 
able to use the /AUXSOURCE= flag to retrieve this description; see Help 
and Support for details. The following information is part of the event: 
cron : PID 3248 : starting service `cron' failed: execv: 1, Operation 
not permitted."

I checked system log, no error there.

For SYSTEM-owned shell, are you talking about this method?
$ at /interactive 12:19 c:\cygwin\bin\bash --login -i
Invalid command.
$ at /interactive 12:19 /cygdrive/c/cygwin/bin/bash --login -i
Invalid command.
Did I miss anything?

Chunyu

Igor Pechtchanski wrote:

Chunyu,

The main part of the event is "cron : PID 3248 : `cron' service stopped.",
so this is not quite what you're looking for.  Are there other events from
cron around that time in the event log?  Did you look at the system log,
or the application one?
Google allows you to restrict the search to a particular domain (see
).  So, you'd search
for something like '"at /interactive" site:cygwin.com'.
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

 

Igor,

windows event log does contain something, but I can't understand them.
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3248 : `cron' service stopped.".
I don't know how to search "at /interactive" on "cygwin.com".  In
cygwin.com, no search engine is provided.
Chunyu

Igor Pechtchanski wrote:

   

Chunyu,

Does the Windows event log contain any clues?

Cron from the command line wouldn't start a service -- it'll start the
application itself...  Which should be enough to ascertain whether your
crontab works.
The instructions for getting a system-owned shell can easily be found by
searching Google for "system-owned shell cygwin".
   Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

 

Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.
4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error,
but does not start the service either.
6. How to get the SYSTEM-owned shell?

I've spent hours trying to find the answer to all the problems in the
sea of questions & answers, and can't make it.
It's really a headache.
Chunyu

Igor Pechtchanski wrote:

   

Chunyu,

Please do not send Cygwin questions in personal mail unless specifically
requested.  All discussion of cygwin-related topics should happen on the
Cygwin list unless specifically requested otherwise.  One of the benefits
is that the discussion ends up in the list archives.  Another is that you
have access to the expertise of many people instead of just one.
For your convenience, I'm redirecting this query to the Cygwin list.  More
replies below.
On Mon, 29 Sep 2003, Chunyu Liu wrote:

 

Dear Igor Pechtchanski,

I noticed that you've been trying discussed this problem in the forum.
But I don't know whether you had the conclusion on this.
Would you mind helping me?
I have tried
cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron
and set /var/run/cron.pid to a+rw,

At the "-S cron" step, I can even see the new record in the log file at
/var/log, saying
[1652] cron started
But cygwin pompts:
"cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started."
And "ps" does not show job of cron running. The cron does not do any
scheduled work either.
I checked Windows Services control panel, the cron is associated with
cygrunsrv there. But whenever it's "started", it stopped immediately.
Any help would be greatly appreciated!
Chunyu Liu
   

Is there any information in the log on why the cron program couldn't run?
Can you run cron from the command line?  ...From a SYSTEM-owned shell?
Did you search the list archives for a similar problem?  Did you run Mark
Harig's "cron_diagnose.sh"?
Also, please read and follow the Cygwin problem reporting guidelines at
.
 Igor
 

 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/prob

Re: How does the windows specific aspects of nice work?

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Jason House wrote:

> I did a search online and found the following message (but no reply to
> it).  Does anyone know the particulars about nice?  If it still works as
> they describe (with 2 non-normal priorities), does anyone know when it
> will allow the full range of window supported priorities?
>
>  * From: "Thomas Chadwick" 
>  * To: cygwin at cygwin dot com
>  * Date: Mon, 06 Jan 2003 14:44:37 -0500
>  * Subject: nice command?
>  * Bcc:
>
> I got to playing around with Windows 2000 Task Manager the other day and
> discovered that you can change the priority of a running task. This led
> me to discover that you can specify the priority of a task when you
> launch it by way of the windows start command using one of the following
> options:
>
> LOW Start application in the IDLE priority class
> NORMAL Start application in the NORMAL priority class
> HIGH Start application in the HIGH priority class
> REALTIME Start application in the REALTIME priority class
> ABOVENORMAL Start application in the ABOVENORMAL priority class
> BELOWNORMAL Start application in the BELOWNORMAL priority class
> WAIT Start application and wait for it to terminate
>
> I then got to playing with nice (under Cygwin) to see what I could do
> about setting the priority of a Cygwin task. I used the following syntax
> and tried a number of values of x:
>
> nice -n x programname.exe
>
> I found that specify a value of x=0 results in NORMAL priority. For any
> value of x > 0, I found I got a priority of LOW. For any value of x < 0,
> I found I got a priority of HIGH.
>
> I tried "man nice" and "info nice" and got scant documentation. I'm just
> curious if this is the expected behavior of nice? Is my analysis
> correct, or are there other values of "x" that will get me the other
> Windows priorities? FWIW, there's a Cygwin task I'd like to launch with
> AboveNormal priority.

I suspect it's a  situation...  The
implementation of the "nice()" syscall simply doesn't know about the
AboveNormal priority value (see winsup/cygwin/syscalls.cc:2512).  There is
a more fine-grained control mechanism in the "sched_setparam()" Cygwin API
call, but the "nice" program doesn't use it.
Igor
P.S. Another thing that's missing is a "renice" program.  Also PTC.
-- 
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: How does the windows specific aspects of nice work?

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Igor Pechtchanski wrote:

> On Tue, 30 Sep 2003, Jason House wrote:
>
> > I did a search online and found the following message (but no reply to
> > it).  Does anyone know the particulars about nice?  If it still works as
> > they describe (with 2 non-normal priorities), does anyone know when it
> > will allow the full range of window supported priorities?
> >
> >  * From: "Thomas Chadwick" 
> >  * To: cygwin at cygwin dot com
> >  * Date: Mon, 06 Jan 2003 14:44:37 -0500
> >  * Subject: nice command?
> >  * Bcc:
> >
> > I got to playing around with Windows 2000 Task Manager the other day and
> > discovered that you can change the priority of a running task. This led
> > me to discover that you can specify the priority of a task when you
> > launch it by way of the windows start command using one of the following
> > options:
> >
> > LOW Start application in the IDLE priority class
> > NORMAL Start application in the NORMAL priority class
> > HIGH Start application in the HIGH priority class
> > REALTIME Start application in the REALTIME priority class
> > ABOVENORMAL Start application in the ABOVENORMAL priority class
> > BELOWNORMAL Start application in the BELOWNORMAL priority class
> > WAIT Start application and wait for it to terminate
> >
> > I then got to playing with nice (under Cygwin) to see what I could do
> > about setting the priority of a Cygwin task. I used the following syntax
> > and tried a number of values of x:
> >
> > nice -n x programname.exe
> >
> > I found that specify a value of x=0 results in NORMAL priority. For any
> > value of x > 0, I found I got a priority of LOW. For any value of x < 0,
> > I found I got a priority of HIGH.
> >
> > I tried "man nice" and "info nice" and got scant documentation. I'm just
> > curious if this is the expected behavior of nice? Is my analysis
> > correct, or are there other values of "x" that will get me the other
> > Windows priorities? FWIW, there's a Cygwin task I'd like to launch with
> > AboveNormal priority.
>
> I suspect it's a  situation...  The
> implementation of the "nice()" syscall simply doesn't know about the
> AboveNormal priority value (see winsup/cygwin/syscalls.cc:2512).  There is
> a more fine-grained control mechanism in the "sched_setparam()" Cygwin API
> call, but the "nice" program doesn't use it.
> Igor
> P.S. Another thing that's missing is a "renice" program.  Also PTC.

Oh, and this is relevant too:
.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 of cron in cygwin xp

2003-09-30 Thread Igor Pechtchanski
Chunyu,

Do you Google:
?

As for the "at" problem, you need to escape the backslashes when you're
running it from a bash shell.  So, either use

$ at /interactive 12:19 'c:\cygwin\bin\bash' --login -i

or

$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i

or run it from a command prompt.
Igor

On Tue, 30 Sep 2003, Chunyu Liu wrote:

> Igor,
>
> This is a error in the application one:
> "The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. You may be
> able to use the /AUXSOURCE= flag to retrieve this description; see Help
> and Support for details. The following information is part of the event:
> cron : PID 3248 : starting service `cron' failed: execv: 1, Operation
> not permitted."
>
> I checked system log, no error there.
>
> For SYSTEM-owned shell, are you talking about this method?
> $ at /interactive 12:19 c:\cygwin\bin\bash --login -i
> Invalid command.
>
> $ at /interactive 12:19 /cygdrive/c/cygwin/bin/bash --login -i
> Invalid command.
>
> Did I miss anything?
>
> Chunyu
>
> Igor Pechtchanski wrote:
>
> >Chunyu,
> >
> >The main part of the event is "cron : PID 3248 : `cron' service stopped.",
> >so this is not quite what you're looking for.  Are there other events from
> >cron around that time in the event log?  Did you look at the system log,
> >or the application one?
> >
> >Google allows you to restrict the search to a particular domain (see
> >).  So, you'd search
> >for something like '"at /interactive" site:cygwin.com'.
> >   Igor
> >
> >On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >
> >
> >
> >>Igor,
> >>
> >>windows event log does contain something, but I can't understand them.
> >>"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
> >>The local computer may not have the necessary registry information or
> >>message DLL files to display messages from a remote computer. You may be
> >>able to use the /AUXSOURCE= flag to retrieve this description; see Help
> >>and Support for details. The following information is part of the event:
> >>cron : PID 3248 : `cron' service stopped.".
> >>
> >>I don't know how to search "at /interactive" on "cygwin.com".  In
> >>cygwin.com, no search engine is provided.
> >>
> >>Chunyu
> >>
> >>
> >>Igor Pechtchanski wrote:
> >>
> >>
> >>
> >>>Chunyu,
> >>>
> >>>Does the Windows event log contain any clues?
> >>>
> >>>Cron from the command line wouldn't start a service -- it'll start the
> >>>application itself...  Which should be enough to ascertain whether your
> >>>crontab works.
> >>>
> >>>The instructions for getting a system-owned shell can easily be found by
> >>>searching Google for "system-owned shell cygwin".
> >>>Igor
> >>>
> >>>On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >>>
> >>>
> >>>
> Igor,
> 
> Thank you for the help.
> 
> I tried to follow your instruction, but no luck to get it work.
> 1. cron_diagnosis.sh does not find any problem.
> 2. the cygcheck is attached.
> 3. The only error message I got is:
> 
> $ cygrunsrv --start cron
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> 1062:
> The service has not been started.
> 
> 4. cron.log is fine.
> 
> [1732] cron started
> [1652] cron started
> [1920] cron started
> [3668] cron started
> [264] cron started
> [3668] cron started
> [2284] cron started
> 
> 5. cron from the command line  looks fine, does not report any error,
> but does not start the service either.
> 
> 6. How to get the SYSTEM-owned shell?
> 
> I've spent hours trying to find the answer to all the problems in the
> sea of questions & answers, and can't make it.
> It's really a headache.
> 
> Chunyu
> 
> 
> Igor Pechtchanski wrote:
> 
> 
> 
> >Chunyu,
> >
> >Please do not send Cygwin questions in personal mail unless specifically
> >requested.  All discussion of cygwin-related topics should happen on the
> >Cygwin list unless specifically requested otherwise.  One of the benefits
> >is that the discussion ends up in the list archives.  Another is that you
> >have access to the expertise of many people instead of just one.
> >
> >For your convenience, I'm redirecting this query to the Cygwin list.  More
> >replies below.
> >
> >On Mon, 29 Sep 2003, Chunyu Liu wrote:
> >
> >
> >
> >>Dear Igor Pechtchanski,
> >>
> >>I noticed that you've been trying discussed this problem in the forum.
> >>But I don't know whether you had the conclusion on this.
> >>Would you mind helping me?
> >>
> >>I have tried
> >>cygrunsrv -I cron 

Re: gcc-3.2: gcc driver doesn't pick up crt0.a from /usr/lib

2003-09-30 Thread Doru Carastan
This is a followup to my "gcc-3.2: gcc driver doesn't pick up crt0.a 
from /usr/lib" message.

I have found that configure sets GCC_FOR_TARGET to the cross-compiler I 
use in the root Makefile.

GCC_FOR_TARGET = i686-pc-cygwin-gcc

Then gcc/Makefile is using it to create the spec file

specs: xgcc$(exeext)
$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
mv tmp-specs specs
and obviously the spec file defines:

*cross_compile:
1
which makes gcc drop /lib and /usr/lib from the 'libraries:' search path.

IMO this is wrong considering that the configure line was:

"$r/src/$gcc/configure" --build=i686-pc-linux-gnu \
  --host=i686-pc-cygwin --target=i686-pc-cygwin \
  --prefix=/usr --includedir=/nonexistent/include \
  --enable-languages=c,c++ \
  --enable-threads=posix \
  --with-system-zlib \
  --enable-nls \
  --without-included-gettext \
  --disable-version-specific-runtime-libs \
  --enable-shared \
  --enable-haifa \
  --enable-interpreter
Can someone shed some light here? Why GCC_FOR_TARGET is not left as 
defined in the gcc/Makefile?

GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem 
$(build_tooldir)/include -isystem $(build_tooldir)/sys-include

TIA,

--
Doru Carastan
*\\\///* WinHost Contractor
||\\//|| 408-992-4497
|||\/||| [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: gcc-3.2: gcc driver doesn't pick up crt0.a from /usr/lib

2003-09-30 Thread Christopher Faylor
On Tue, Sep 30, 2003 at 10:48:15AM -0700, Doru Carastan wrote:
>This is a followup to my "gcc-3.2: gcc driver doesn't pick up crt0.a 
>from /usr/lib" message.
>
>I have found that configure sets GCC_FOR_TARGET to the cross-compiler I 
>use in the root Makefile.
>
>GCC_FOR_TARGET = i686-pc-cygwin-gcc
>
>Then gcc/Makefile is using it to create the spec file
>
>specs: xgcc$(exeext)
>$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
>mv tmp-specs specs
>
>and obviously the spec file defines:
>
>*cross_compile:
>1
>
>which makes gcc drop /lib and /usr/lib from the 'libraries:' search path.
>
>IMO this is wrong considering that the configure line was:
>
>"$r/src/$gcc/configure" --build=i686-pc-linux-gnu \
>  --host=i686-pc-cygwin --target=i686-pc-cygwin \
>  --prefix=/usr --includedir=/nonexistent/include \
>  --enable-languages=c,c++ \
>  --enable-threads=posix \
>  --with-system-zlib \
>  --enable-nls \
>  --without-included-gettext \
>  --disable-version-specific-runtime-libs \
>  --enable-shared \
>  --enable-haifa \
>  --enable-interpreter
>
>Can someone shed some light here? Why GCC_FOR_TARGET is not left as 
>defined in the gcc/Makefile?
>
>GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem 
>$(build_tooldir)/include -isystem $(build_tooldir)/sys-include

The gcc mailing list is a more appropriate place for these types of
questions.  gcc at gcc dot gnu dot org.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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: problem of cron in cygwin xp, final solution!

2003-09-30 Thread Chunyu Liu
Igor,

This link you gave me is the final solution.  I experienced exactly the 
same problem as Andrew described.
To make the life easier for the other followers:
1. Need to set the mode of cygwin1.dll

$ chmod +x /bin/cygwin1.dll
2. Need to create another directory 
$ mkdir /etc/cron.d
Also make it accessible, by changing the permission.
3. Then, follow the standard guideline to start cron service, as
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ cygrunsrv --install cron -p /usr/sbin/cron -a -D
$ cygrunsrv --start cron

Hopefully, this troubling problem can be solved in the next version 
cygwin setup.

But the "at" function still does not work:
$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i
Invalid command.
I tried it under DOS command envn, same error.

Anyway, the cron eventually worked. 
Many thanks for the help!

Chunyu

Igor Pechtchanski wrote:

Chunyu,

Do you Google:
?
As for the "at" problem, you need to escape the backslashes when you're
running it from a bash shell.  So, either use
$ at /interactive 12:19 'c:\cygwin\bin\bash' --login -i

or

$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i

or run it from a command prompt.
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

 

Igor,

This is a error in the application one:
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3248 : starting service `cron' failed: execv: 1, Operation
not permitted."
I checked system log, no error there.

For SYSTEM-owned shell, are you talking about this method?
$ at /interactive 12:19 c:\cygwin\bin\bash --login -i
Invalid command.
$ at /interactive 12:19 /cygdrive/c/cygwin/bin/bash --login -i
Invalid command.
Did I miss anything?

Chunyu

Igor Pechtchanski wrote:

   

Chunyu,

The main part of the event is "cron : PID 3248 : `cron' service stopped.",
so this is not quite what you're looking for.  Are there other events from
cron around that time in the event log?  Did you look at the system log,
or the application one?
Google allows you to restrict the search to a particular domain (see
).  So, you'd search
for something like '"at /interactive" site:cygwin.com'.
 Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:



 

Igor,

windows event log does contain something, but I can't understand them.
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3248 : `cron' service stopped.".
I don't know how to search "at /interactive" on "cygwin.com".  In
cygwin.com, no search engine is provided.
Chunyu

Igor Pechtchanski wrote:



   

Chunyu,

Does the Windows event log contain any clues?

Cron from the command line wouldn't start a service -- it'll start the
application itself...  Which should be enough to ascertain whether your
crontab works.
The instructions for getting a system-owned shell can easily be found by
searching Google for "system-owned shell cygwin".
  Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:



 

Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.
4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error,
but does not start the service either.
6. How to get the SYSTEM-owned shell?

I've spent hours trying to find the answer to all the problems in the
sea of questions & answers, and can't make it.
It's really a headache.
Chunyu

Igor Pechtchanski wrote:



   

Chunyu,

Please do not send Cygwin questions in personal mail unless specifically
requested.  All discussion of cygwin-related topics should happen on the
Cygwin list unless specifically requested otherwise.  One of the benefits
is that the discussion ends up in the list archives.  Another is that you
have access to the expertise of many people instead of just one.
For your convenience, I'm redirecting this query to the Cygwin list.  More
replies below.
On Mon, 

Re: problem of cron in cygwin xp, final solution!

2003-09-30 Thread Igor Pechtchanski
Chunyu,

Just to close on the "at" issue.  You were getting "invalid command"
because you needed to put the time *before* the "/interactive".  Another
problem was that you needed to add the ".exe" to "bash".  So, a command
that just worked for me (from bash) was:

at 14:51 /interactive 'c:\cygwin\bin\bash.exe' --login -i

FWIW, if you tried to run cron from the SYSTEM-owned shell, you should
have gotten the error about cygwin1.dll.  Hope this helps,
Igor

On Tue, 30 Sep 2003, Chunyu Liu wrote:

> Igor,
>
> This link you gave me is the final solution.  I experienced exactly the
> same problem as Andrew described.
> To make the life easier for the other followers:
> 1. Need to set the mode of cygwin1.dll
>
> $ chmod +x /bin/cygwin1.dll
> 2. Need to create another directory
> $ mkdir /etc/cron.d
> Also make it accessible, by changing the permission.
> 3. Then, follow the standard guideline to start cron service, as
> $ cygrunsrv --stop cron
> $ cygrunsrv --remove cron
> $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
> $ cygrunsrv --start cron
>
>
> Hopefully, this troubling problem can be solved in the next version
> cygwin setup.
>
> But the "at" function still does not work:
> $ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i
> Invalid command.
>
> I tried it under DOS command envn, same error.
>
> Anyway, the cron eventually worked.
> Many thanks for the help!
>
> Chunyu
>
> Igor Pechtchanski wrote:
>
> >Chunyu,
> >
> >Do you Google:
> >?
> >
> >As for the "at" problem, you need to escape the backslashes when you're
> >running it from a bash shell.  So, either use
> >
> >$ at /interactive 12:19 'c:\cygwin\bin\bash' --login -i
> >
> >or
> >
> >$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i
> >
> >or run it from a command prompt.
> >   Igor
> >
> >On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >
> >
> >
> >>Igor,
> >>
> >>This is a error in the application one:
> >>"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
> >>The local computer may not have the necessary registry information or
> >>message DLL files to display messages from a remote computer. You may be
> >>able to use the /AUXSOURCE= flag to retrieve this description; see Help
> >>and Support for details. The following information is part of the event:
> >>cron : PID 3248 : starting service `cron' failed: execv: 1, Operation
> >>not permitted."
> >>
> >>I checked system log, no error there.
> >>
> >>For SYSTEM-owned shell, are you talking about this method?
> >>$ at /interactive 12:19 c:\cygwin\bin\bash --login -i
> >>Invalid command.
> >>
> >>$ at /interactive 12:19 /cygdrive/c/cygwin/bin/bash --login -i
> >>Invalid command.
> >>
> >>Did I miss anything?
> >>
> >>Chunyu
> >>
> >>Igor Pechtchanski wrote:
> >>
> >>
> >>
> >>>Chunyu,
> >>>
> >>>The main part of the event is "cron : PID 3248 : `cron' service stopped.",
> >>>so this is not quite what you're looking for.  Are there other events from
> >>>cron around that time in the event log?  Did you look at the system log,
> >>>or the application one?
> >>>
> >>>Google allows you to restrict the search to a particular domain (see
> >>>).  So, you'd search
> >>>for something like '"at /interactive" site:cygwin.com'.
> >>>  Igor
> >>>
> >>>On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> Igor,
> 
> windows event log does contain something, but I can't understand them.
> "The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. You may be
> able to use the /AUXSOURCE= flag to retrieve this description; see Help
> and Support for details. The following information is part of the event:
> cron : PID 3248 : `cron' service stopped.".
> 
> I don't know how to search "at /interactive" on "cygwin.com".  In
> cygwin.com, no search engine is provided.
> 
> Chunyu
> 
> 
> Igor Pechtchanski wrote:
> 
> 
> 
> 
> 
> >Chunyu,
> >
> >Does the Windows event log contain any clues?
> >
> >Cron from the command line wouldn't start a service -- it'll start the
> >application itself...  Which should be enough to ascertain whether your
> >crontab works.
> >
> >The instructions for getting a system-owned shell can easily be found by
> >searching Google for "system-owned shell cygwin".
> >   Igor
> >
> >On Tue, 30 Sep 2003, Chunyu Liu wrote:
> >
> >
> >
> >
> >
> >>Igor,
> >>
> >>Thank you for the help.
> >>
> >>I tried to follow your instruction, but no luck to get it work.
> >>1. cron_diagnosis.sh does not find any problem.
> >>2. the cygcheck is attached.
> >>

How install a older version of cygwin

2003-09-30 Thread Fabio Tesser
Hi all,
Anyone know if is it possible to install a older version of cygwin
(cygwin-1.3.22-1) with setup.exe?
I know that in setup.ini there is the list of all the "coerent" packages
anyone know if is it possible to donwload the setup.ini for
cygwin-1.3.22-1?

thanks in advance
Fabio
Tesser


--
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 of cron in cygwin xp, final solution!

2003-09-30 Thread Chunyu Liu
Igor,

Thank you for giving me the final solution for this problem too.
Yes. It works now.
I appreciate all the help.
Chunyu

Igor Pechtchanski wrote:

Chunyu,

Just to close on the "at" issue.  You were getting "invalid command"
because you needed to put the time *before* the "/interactive".  Another
problem was that you needed to add the ".exe" to "bash".  So, a command
that just worked for me (from bash) was:
at 14:51 /interactive 'c:\cygwin\bin\bash.exe' --login -i

FWIW, if you tried to run cron from the SYSTEM-owned shell, you should
have gotten the error about cygwin1.dll.  Hope this helps,
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:

 

Igor,

This link you gave me is the final solution.  I experienced exactly the
same problem as Andrew described.
To make the life easier for the other followers:
1. Need to set the mode of cygwin1.dll
$ chmod +x /bin/cygwin1.dll
2. Need to create another directory
$ mkdir /etc/cron.d
Also make it accessible, by changing the permission.
3. Then, follow the standard guideline to start cron service, as
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ cygrunsrv --install cron -p /usr/sbin/cron -a -D
$ cygrunsrv --start cron
Hopefully, this troubling problem can be solved in the next version
cygwin setup.
But the "at" function still does not work:
$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i
Invalid command.
I tried it under DOS command envn, same error.

Anyway, the cron eventually worked.
Many thanks for the help!
Chunyu

Igor Pechtchanski wrote:

   

Chunyu,

Do you Google:
?
As for the "at" problem, you need to escape the backslashes when you're
running it from a bash shell.  So, either use
$ at /interactive 12:19 'c:\cygwin\bin\bash' --login -i

or

$ at /interactive 12:19 c:\\cygwin\\bin\\bash --login -i

or run it from a command prompt.
 Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:



 

Igor,

This is a error in the application one:
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3248 : starting service `cron' failed: execv: 1, Operation
not permitted."
I checked system log, no error there.

For SYSTEM-owned shell, are you talking about this method?
$ at /interactive 12:19 c:\cygwin\bin\bash --login -i
Invalid command.
$ at /interactive 12:19 /cygdrive/c/cygwin/bin/bash --login -i
Invalid command.
Did I miss anything?

Chunyu

Igor Pechtchanski wrote:



   

Chunyu,

The main part of the event is "cron : PID 3248 : `cron' service stopped.",
so this is not quite what you're looking for.  Are there other events from
cron around that time in the event log?  Did you look at the system log,
or the application one?
Google allows you to restrict the search to a particular domain (see
).  So, you'd search
for something like '"at /interactive" site:cygwin.com'.
Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:





 

Igor,

windows event log does contain something, but I can't understand them.
"The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3248 : `cron' service stopped.".
I don't know how to search "at /interactive" on "cygwin.com".  In
cygwin.com, no search engine is provided.
Chunyu

Igor Pechtchanski wrote:





   

Chunyu,

Does the Windows event log contain any clues?

Cron from the command line wouldn't start a service -- it'll start the
application itself...  Which should be enough to ascertain whether your
crontab works.
The instructions for getting a system-owned shell can easily be found by
searching Google for "system-owned shell cygwin".
 Igor
On Tue, 30 Sep 2003, Chunyu Liu wrote:





 

Igor,

Thank you for the help.

I tried to follow your instruction, but no luck to get it work.
1. cron_diagnosis.sh does not find any problem.
2. the cygcheck is attached.
3. The only error message I got is:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.
4. cron.log is fine.

[1732] cron started
[1652] cron started
[1920] cron started
[3668] cron started
[264] cron started
[3668] cron started
[2284] cron started
5. cron from the command line  looks fine, does not report any error,
but does not start the service either.
6. How to ge

Re: How install a older version of cygwin

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Fabio Tesser wrote:

> Hi all,
> Anyone know if is it possible to install a older version of cygwin
> (cygwin-1.3.22-1) with setup.exe?
> I know that in setup.ini there is the list of all the "coerent" packages
> anyone know if is it possible to donwload the setup.ini for
> cygwin-1.3.22-1?
>
> thanks in advance
> Fabio Tesser

Do you Google: ?
This one might also be helpful: 
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



To create a SYSTEM-owned bash prompt (RE: problem of cron in cygwin xp)

2003-09-30 Thread Hannu E K Nevalainen \(garbage mail\)

 Feel free to include the attached script wherever it "fits".

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE-- 

sysbash
Description: Binary data
--
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: openssl-0.9.7b-1, openssl-devel-0.9.7b-1

2003-09-30 Thread Corinna Vinschen
I've updated the version of OpenSSL to 0.9.7c-1.  This also includes the
openssl-devel package.

This is a bugfix and security update.

The Cygwin version matches the official source tree except for a minor
tweak in the top level Makefile.

=
IMPORTANT NOTE:

There will be no 0.9.6j compatibility package anymore.  The 0.9.6
package is only kept for backward compatibility of packages built
for Cygwin 1.3.x.  I strongly recommend to upgrade packages to
Cygwin 1.5.x and then automatically to OpenSSL-0.9.7c ASAP.

THIS APPLIES ESPECIALLY FOR CYGWIN DISTRIBUTION PACKAGE MAINTAINERS!
=

The official release announcement text as of today follows:

  OpenSSL version 0.9.7c and 0.9.6k released
  ==

  OpenSSL - The Open Source toolkit for SSL/TLS
  http://www.openssl.org/

  The OpenSSL project team is pleased to announce the release of
  version 0.9.7c of our open source toolkit for SSL/TLS.  This new
  OpenSSL version is a security and bugfix release and incorporates
  changes and bugfixes to the toolkit (for a complete list see
  http://www.openssl.org/source/exp/CHANGES ).

  We also release 0.9.6k, which contains the same security bugfix as
  0.9.7c and a few more small bugfixes compared to 0.9.6j.

  For more details of the security issues being fixed in this release
  please see http://www.openssl.org/news/secadv_20030930.txt

  The most significant changes are:

o Security: fix vulnerabilities in ASN.1 parsing
  CAN-2003-0543, CAN-2003-0544[0.9.7c & 0.9.6k] 
o Security: fix additional vulnerability in ASN.1 parsing
  CAN-2003-0545[0.9.7c]
o Only accept a client cert if the server requests one[0.9.7c & 0.9.6k] 
o Various S/MIME bug and compatibility fixes   [0.9.7c]

  We consider OpenSSL 0.9.7c to be the best version of OpenSSL available
  and we strongly recommend that users of older versions upgrade as
  soon as possible.  OpenSSL 0.9.7c is available for download via HTTP
  and FTP from the following master locations (you can find the various
  FTP mirrors under http://www.openssl.org/source/mirror.html):

o http://www.openssl.org/source/
o ftp://ftp.openssl.org/source/

  For those who want or have to stay with the 0.9.6 series of OpenSSL,
  we strongly recommend that you upgrade to OpenSSL 0.9.6k as soon as
  possible.  It's available in the same location as 0.9.7c.


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.  Once you've downloaded setup.exe, run it and select "Net"
("Devel" for the openssl-devel package) and then click on the appropriate
field until the above announced version number appears if it is not
displayed already.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  I would appreciate it if you would
use this mailing list rather than emailing me directly.  This includes
ideas and comments about the setup utility or Cygwin in general.

If you want to make a point or ask a question, the Cygwin mailing list
is the appropriate place.

  *** 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 this URL.

I implore you to READ this information before sending email about how
you "tried everything" to unsubscribe.  In 100% of the cases where
people were unable to unsubscribe, the problem was that they hadn't
actually read and comprehended the unsubscribe instructions.

If you need to unsubscribe from cygwin-announce or any other mailing
list, reading the instructions at the above URL is guaranteed to
provide you with the info that you need.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[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: How install a older version of cygwin

2003-09-30 Thread fergus
> Anyone know if is it possible to install a older version
> of cygwin (cygwin-1.3.22-1) with setup.exe?

As it happens I did keep just about the last version of setup.ini
(cygwin-1.3.22-1) before the official move to what I guess was 1.5.2-1. The
timestamp is 1062247815 which is, dunno, mid-August or something? You can
have it if you like. I've also got all the associated *.bz2, though I don't
fancy sending too many of them winging round the net any more than you
probably want to receive them. But you're welcome to setup.ini and if the
demand was minimal I s'pose I could make a CD or something. (Yes, *.src as
well.)

Hmm. I just tried attaching the old setup.ini but it's too big to get past
the cygwin gateway. Let me know if you want it.

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: ln and mkshortcut inconsistent in handling of .exe extension

2003-09-30 Thread Matt Swift

>> "L" == Larry wrote:

L> If you want/need a Windows-style shortcut with all the
L> semantics that implies, use 'mkshortuct'.  Is that the point
L> you were missing?

I am not asking for "all the semantics", just the ones that are
documented (user guide 3.5) to exist for all Cygwin symlinks.

I really don't think you understood my first report, and haven't
realized it yet.  I will make my point again in laborious detail.


>> Second, I still don't understand why `ln' shouldn't behave the
>> way I suggested: how is it better the way it is than if `ln -s'
>> never created broken shortcuts

L> The documentation I directed you to explains why 'ln -s'
L> functions as it does and from that follows the need for
L> 'mkshortcut'.  'ln -s' doesn't create 'broken shortcuts'.  It
L> creates symbolic links with UNIX semantics.  That's the goal.

That's only part of the stated goals of 'ln'.  When CYGWIN contains
"winsymlinks" (or more accurately, does not contain "nowinsymlinks"
since "winsymlinks" is the stated default), symbolic links are
supposed to function both as Cygwin symbolic link and as Windows
Shortcuts.  This is true most of the time, but it is NOT true when the
symlink target's name given to ln is the name of an executable without
its .exe extension.  In this case, the file created by ln functions as
a Cygwin symbolic link as expected but contrary to expectation does
*not* function as a Windows Shortcut.  The file created by 'ln',
considered as a Windows Shortcut, is broken.  My points are

(1) the independent documentation of how .exe extensions are handled
(user guide 3.4.3) and how symlinks are handled (3.5, 3.7.5) does
not address their conjunction, a case which does not work as
expected.  The documentation on .exe extensions says that
"install" and "strip" are the exceptions to transparent handling
of .exe extensions.  'ln' should be included, and this case should
be mentioned or cross-referenced in 3.5 and 3.7.5 as well.

(2) instead of changing documentation per (1), it is reasonable to
change the behavior of 'ln -s' so that the file it creates in the
case under discussion is not only a Cygwin symbolic link but also
a valid Windows Shortcut.  NOT a full-fledged Windows Shortcut
with icon and so on, of the kind mkshortcut creates, and the kind
which you have repeatedly mistaken me to mean -- but simply a
valid one, which points to the expected file, just like ALL the
files that 'ln -s' creates EXCEPT in the particular case that the
target's name is an executable without an .exe extension.  The
change I propose does not change how the files 'ln -s' creates
function as Cygwin symlinks; it changes how a certain small
anomalous category of files that 'ln -s' creates function as
Windows Shortcuts, in a way that brings this case into conformity
with the others it creates.  When Cygwin follows a symlink, it
examines the pathname that appears in the "Comment" field if you
examine the file as a Windows Shortcut.  When Windows follows a
shortcut, it examines the contents of the "Target" field.  'ln'
always puts the correct value in "Comment" and USUALLY puts the
correct value in "Target", but not in the case under discussion.
Wishing that 'ln' always put the right thing in both places is NOT
wishing that ln were mkshortcut, it's wishing that ln behave
consistently with all other Cygwin programs ("install" and "strip"
being the documented exceptions), which are indifferent to whether
.exe extensions are omitted or explicitly given.


>> and 'ln' (hardlink) defaulted to a target of
>> "foo.exe" when the supplied target "foo" doesn't exist?  

L> I'm inclined to agree on this.  I think symmetry here would be a good thing.

If you agree about that, I am very sure you will agree with my other
point, once you undertsand it, because it does not even involve the
small change to Cygwin semantics that the second point does (the
second point involves a change to Cygwin semantics because you would
get no error and a hardlink in certain cases where before you got an
error; my first point suggests a change that has an effect from
Windows only, not from Cygwin).




--
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 connection close when _any_ user logs out of W2K

2003-09-30 Thread Matthew Hilty
Hello,
I've noticed on a recent installation of OpenSSH under cygwin
(followed  http://tech.erdelynet.com/cygwin-sshd.html) that users
connected to the server via SSH have their connections closed if any
Windows user logs out of the desktop. The SSHD daemon still functions,
it just closes active sessions.  After this, I can SSH back to the
server and my session stays active until I intentionally log out, or
another Windows users logs in, then out.  Any insights or references
would be wonderful; I've been combing mailing lists and usenet and can't
find a similar description.


-- 
Matt Hilty
Network Administrator
The Art Institute of Chicago
tel: (312)899-7431
fax: (312)641-3406
email: [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: Using authentication under Apache for Cygwin

2003-09-30 Thread Andrew DeFaria
S. L. wrote:

[...]

# Secure addbug form

AuthName "permission to add a bug"
AuthType Basic
AuthUserFile /etc/apache/addbug_users
Require valid-user

However that fails to work.
[...]

An "AllowOverride AuthConfig" directive, must also be placed. E.g.


Options Indexes FollowSymLinks
AllowOverride AuthConfig
order deny,allow
allow from all

and placing all authentication stuff in .htaccess, should do it.
Actually my  had AllowOverried all. I tried:

# Secure addbug form

   Options Indexes FollowSymLinks
   AllowOverride AuthConfig
   order deny,allow
   allow from all
   AuthName "permission to add a bug"
   AuthType Basic
   AuthUserFile /etc/apache/addbug_users
   Require valid-user

And

# Secure addbug form

   Options Indexes FollowSymLinks
   AllowOverride AuthConfig
   order deny,allow
   allow from all
#AuthName "permission to add a bug"
#AuthType Basic
#AuthUserFile /etc/apache/addbug_users
#Require valid-user

With the .htaccess file. Neither method worked. I was allowed in without 
any authentication.
===
There's too much blood in my caffeine system.



--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Andrew DeFaria
Stipe Tolj wrote:

I would tend to agree except this config worked with Apache for Windows.
which does not mean that Apache for Cygwin acts the same way as the 
native Win32 counterpart.

I'm not sure if you can use network resource location that way as you 
can in Apache for Windows. I would guess not.
Well I can use the network resource location in the sense that the 
server does read the web pages/scripts and presents/executes them. It's 
just the authentication that fails. If it can read 
//server/share/path/index.html then why can't is read 
//server/share/path/.htaccess?

Besides I recreated a bare environment and copied my stuff from the 
server to /var/www/htdocs/addbug with the same error.
===
Error, no keyboard - press F1 to continue.



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


home directory not created in cygwin installation

2003-09-30 Thread Ji-Wei Wu
I downloaded and installed the latest cygwin today on my computer.  I 
followed all defaults during installation (in c:\cygwin).  After that, I 
started a cygwin bash shell but found that it did not start in the 
/home/$USER directory ($USER means the user name I use to log onto my 
computer).  The actual directory is /sygdrive/c, which means the c: drive 
on my computer.  What went wrong in my installation and can anyone help me?

Thanks.

--
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 of cron in cygwin xp, final solution!

2003-09-30 Thread Andrew DeFaria
Chunyu Liu wrote:

Igor,

This link you gave me is the final solution.  I experienced exactly 
the same problem as Andrew described. 
BTDT! Glad my troubles helped you get cron working.

To make the life easier for the other followers:
1. Need to set the mode of cygwin1.dll
$ chmod +x /bin/cygwin1.dll
2. Need to create another directory $ mkdir /etc/cron.d
Also make it accessible, by changing the permission.
3. Then, follow the standard guideline to start cron service, as
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ cygrunsrv --install cron -p /usr/sbin/cron -a -D
$ cygrunsrv --start cron
Hopefully, this troubling problem can be solved in the next version 
cygwin setup. 
Maybe such things should be added to Mark Harig's "cron_diagnose.sh"?
===
"Very funny, Scotty. Now beam down my clothes."


--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Andrew DeFaria wrote:

> Stipe Tolj wrote:
>
> >> I would tend to agree except this config worked with Apache for Windows.
> >
> > which does not mean that Apache for Cygwin acts the same way as the
> > native Win32 counterpart.
> >
> > I'm not sure if you can use network resource location that way as you
> > can in Apache for Windows. I would guess not.
>
> Well I can use the network resource location in the sense that the
> server does read the web pages/scripts and presents/executes them. It's
> just the authentication that fails. If it can read
> //server/share/path/index.html then why can't is read
> //server/share/path/.htaccess?
>
> Besides I recreated a bare environment and copied my stuff from the
> server to /var/www/htdocs/addbug with the same error.

Andrew,

Could this be a text vs. binary issue?  I'm grasping at straws here...
It's good that you've moved everything to the local disk - it helps to
eliminate as many variables as possible.  Did you get an authenticated
access webpage (.html, as opposed to a CGI script) working?  Can you
initially create the user file in the directory where you're trying to set
up authentication (for testing purposes)?  Can you show the output of "ls
-la" in that directory?
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Stipe Tolj
Andrew DeFaria wrote:
> 
> Besides I recreated a bare environment and copied my stuff from the
> server to /var/www/htdocs/addbug with the same error.

at least you're the first reporting this kind of behaviour.

Did you try to use the httpd.conf.dist "distribution configuration"?

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

--
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: home directory not created in cygwin installation

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Ji-Wei Wu wrote:

> I downloaded and installed the latest cygwin today on my computer.  I
> followed all defaults during installation (in c:\cygwin).  After that, I
> started a cygwin bash shell but found that it did not start in the
> /home/$USER directory ($USER means the user name I use to log onto my
> computer).  The actual directory is /sygdrive/c, which means the c: drive
> on my computer.  What went wrong in my installation and can anyone help me?
>
> Thanks.

At a guess, your HOME is set incorrectly in Windows.
Please read and follow the Cygwin problem reporting guidelines at
.  This will provide enough information
to venture a better guess or to find a solution for your problem.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 connection close when _any_ user logs out of W2K

2003-09-30 Thread Larry Hall
At 05:23 PM 9/30/2003, Matthew Hilty you wrote:
>Hello,
>I've noticed on a recent installation of OpenSSH under cygwin
>(followed  http://tech.erdelynet.com/cygwin-sshd.html) that users
>connected to the server via SSH have their connections closed if any
>Windows user logs out of the desktop. The SSHD daemon still functions,
>it just closes active sessions.  After this, I can SSH back to the
>server and my session stays active until I intentionally log out, or
>another Windows users logs in, then out.  Any insights or references
>would be wonderful; I've been combing mailing lists and usenet and can't
>find a similar description.


If you followed installation instructions for OpenSSH from another site,
then you should direct your questions about problems with OpenSSH to that
site.  tech.erdelynet.com is not cygwin.com and this list, as a result,
can't support information for it.  My best recommendation, if you'd like
someone on this list to entertain the notion of investigating your problem,
is to uninstall and reinstall OpenSSH via setup and then to configure it 
as /usr/share/doc/Cygwin/openssh-*.README suggests.  If you still see the
same problem, you'll want to visit  first
and then follow-up with this list providing the information requested 
there.  FWIW, I just tried a quick test here and I don't see the situation
you described.  I can't say that this is significant.  Only that I can't
reproduce the problem with the information given and my Cygwin-supported
install. ;-)



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


--
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: Future of OpenGL package

2003-09-30 Thread Andre Bleau
Brian Ford wrote:
...
>Even, with 1.4 headers, you would sill need to jump through hoops to use
>1.4 functionality. You will still need to load the functions dynamicaly
>before using them. You wouldn't be able to simply call the functions as
>when developing for UNIX.
>
A lot of the functionallity I need is just the defines.  Ex:
GL_MIRRORED_REPEAT_ARB  Here, I don't need to load any extensions.
When I do need to load extensions, having the defines for the
proper prototypes around would be nice.
1.2 and 1.3 defines & prototypes are already there in 
/usr/include/w32api/GL/glext.h

...
>>As for the extension loading library, it's a don't care for me.
>
>Then, I guess you never had to work with extensions...
>
No, I just don't think it is that hard to write code for it.
It's not hard to write new code that uses GL 1.2+ that targets only the 
Cygwin and Mingw platforms. What's hard is to port some code for UNIX that 
calls GL 1.2+ functions. You have to track each call and modify it to load 
the function first when compiled for Cygwin.

...
>So, I propose to make a quick update of the OpenGL package ASAP, while we
>wait for freeglut. To quick update would:
>
>- Remove /usr/include/GL and rely on /usr/include/w32api/GL from the
>w32api package, that would be set as requesite
>
Ok, but...
>- Add glut.h to /usr/include/w32api/GL
>
That may not fly.  As I understand it, the w32api directories are only for
headers/import libraries for DLLs that ship with MS, or at least mingw.
Old version sof the w32api package didn't provide any GL headers, so the 
OpenGL package was (and still is) creating a symlink from 
/usr/include/w32api/GL to /usr/include/GL. Then newer versions of the 
w32api package started to include GL headers in /usr/include/w32api/GL. As 
the last version of that package is newer than the last version of the 
OpenGL package, most people have the w32api headers instead of the symlink, 
but if you reinstall the OpenGL package, you will loose those headers and 
get the symlink.

So, there is a precedent for a glut.h in /usr/include/w32api/GL, in the 
form of a symlink.

Is the glut DLL -mno-cygwin safe?  Then it might work if glut became part of
mingw.
Yup. The GLUT dll does not depend on Cygwin, so compiling with -mno-cygwin 
works.


Earnie?
Yeah, Earnie, where are you?

...
BTW, I guess you're probably not interested from your previous comments
on the subject, but an Xfree based glut would be great to have.  I got a
working imake compile once without too much trouble from the Nate Robins
version.  If your still not interested in putting it in your glut package,
maybe I'll propose to maintain one for Xfree.
The problem is that an XFree GLUT could only draw using an XFree GL. And 
XFree GL does not support hardware acceleration, so it is slower by a 
factor 10 to 100 when compared to Windows'GL. That's the main reason why I 
don't think an XFree GLUT is worth the trouble.



André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [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: Future of OpenGL package (Earnie, please read this)

2003-09-30 Thread Andre Bleau
Igor Pechtchanski wrote:

On Fri, 26 Sep 2003, Andre Bleau wrote:

> ...
> Even, with 1.4 headers, you would sill need to jump through hoops to use
> 1.4 functionality. You will still need to load the functions dynamicaly
> before using them. You wouldn't be able to simply call the functions as
> when developing for UNIX.
André,

Cygwin DLL uses the autoload functionality for some of the required
functions, so that they can simply be called after a test (i.e., something
like
if (hasSomeFunction())
  callSomeFunction();
Perhaps this could be employed in the OpenGL library layer as well...  I
don't know enough off-hand about the autoloading process, but there is a
fairly detailed description in winsup/cygwin/how-autoload-works.txt in the
Cygwin sources.  Might be worth investigating...
Well, that's exactly what packages like extgl provide: an easier way to 
test if some functionality is available, and if it is, to load it and use it.

I was thinking of including extgl in the next major release of the OpenGL 
package.

However, porting UNIX program that uses GL 1.2+ functions would still be a 
pain, although a somewhat lower pain. Say you have a UNIX program with a 
line like this:

glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);

The Cygwin version would be, if we would use something like extgl:

Option A:

if (hasNewFunctionThatDrawsACompleteKitchenIncludingTheSink)
   glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);
else {
   fprintf(stderr, "Sorry, can't draw your kitchen. Please update your GL 
drivers and come again.\n");
   exit(1);
}

or, Option B:
if (hasNewFunctionThatDrawsACompleteKitchenIncludingTheSink)
   glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);
else
   myOwn2000LinesOfCodeFunction(GL_KITCHEN_COLOR_PATTERN);
There are dozens of GL 1.2+ functions now. If you select Option A, 
rewriting some program to use them conditionally can be a major task. As 
for Option B, it is a task of Herculean proportions.


> [snip]
>
> I think we waited long enough for freeglut and some update of GLUT and GLUI
> is overdue.
>
> So, I propose to make a quick update of the OpenGL package ASAP, while we
> wait for freeglut. To quick update would:
>
> - Remove /usr/include/GL and rely on /usr/include/w32api/GL from the w32api
>   package, that would be set as requesite
> - Add glut.h to /usr/include/w32api/GL
So you need to coordinate with Earnie on this (as the subject says).
Yup.


> - Update the GLUT dll to Nate Robin's 3.7.6
> - Have GLUI and GLUIX libs compiled for gcc 3.3
You will probably also need to release the old libraries as compatibility
packages for those who still use the pre-gcc-3.3 OpenGL binaries.
So, you suggest that I provide:
libglui.a and libgluix.a for the last version of gcclibglui-gcc3_2.a and 
libgluix-gcc3_2.a for gcc 3.2
libglui-gcc2_95.a and libgluix-gcc2_95.a for gcc 2.95
???
None would be bigger than 500k, so the package would still be manageable.


> - Move the doc to /usr/share/doc

This would be useful.

Just my 2c.
Igor
After the long silence that followed my last posting to cygwin-apps about 
these issues, it's good to receive some feedback. Thanks Igor and Brian.



André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [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/


FW: XFree86-bin-icons .. believe cygwin xfree86 a "red" herring ... this is I believe a cygwin problem

2003-09-30 Thread Alan Miles
All,

This is attempt 4 - I cannot seem to get the attachment there, since I get:

Hi. This is the qmail-send program at sources.redhat.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
ezmlm-reject: fatal: Sorry, I don't accept messages larger than 10 bytes
(#5.2.3)

<[EMAIL PROTECTED]>:
ezmlm-reject: fatal: Sorry, I don't accept messages larger than 5 bytes
(#5.2.3)

--- Enclosed are the original headers of the message.

and according to my emailer the attachment is 777kB.

I did try and send the cygcheck etc.
-Original Message-
From: Alan Miles [mailto:[EMAIL PROTECTED]
Sent: September 29, 2003 23:34
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: FW: XFree86-bin-icons .. believe cygwin xfree86 a "red" herring
... this is I believe a cygwin problem


All,

This is attempt 3 ... the previous attempts failed because the emailer said
the messages, with the uncompressed log files was too big, and thus would
send them.

I have tarred and compressed them into the logs.tgz file - manifest:

logs/
logs/cygcheck_results_machine1_works.txt
logs/cygcheck_results_machine2_doesnt_work.txt
logs/setup_machine1_works.log
logs/setup_machine1_works.log.full
logs/setup_machine2_doesnt_work.log
logs/setup_machine2_doesnt_work.log.full


Alan
-Original Message-
From: Alan Miles [mailto:[EMAIL PROTECTED]
Sent: September 29, 2003 23:11
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: XFree86-bin-icons .. believe cygwin xfree86 a "red" herring
... this is I believe a cygwin problem


All,

I believe this problem relates to the items listed in

http://cygwin.com/ml/cygwin/2003-09/msg01680.html - RE: Install gets to 99%
and then stops
http://www.cygwin.com/ml/cygwin/2003-09/msg00747.html - Setup 2.358 Hangs
During Post-Install Script

Additionally I have two separate machines, one fully updated on 26-Sep-2003
(which exhibits the problem) and one updated today that doesn't.

Differences:

1/ The 26-Sep-2003 machine uses the ** latest ** setup.exe (files labelled
machine2, doesnt_work)
2/ Today's update use the previous older version (file labelled
machine1_work)
3/ I built special private install packages for 26-Sep-2003 machine which I
have uses successfully for several months which do ** NOT ** involve
XFree86 and these packages also exhibit:

Something strange is going on here... setup.exe says "Running: No
Package /etc/postinstal/".  What is up with the "No
Package"?

My packages deal with my special problem with the password file (published
on this list), the jar command, script etc. The setup.log.full contains the
/usr/bin/bash -x dump of the /etc/postinstall/ files.
4/ When investigating, the problem in 3, I to found the 'cygpath' problem in
** my ** private packages (which as stated do ** NOT ** involve XFree86)

This leads me to believe that there is some kind of interaction between the
new setup.exe and cygpath that is causing the problem.

I am attaching both sets of setup.log, setup.log.full, and the cygcheck
output for both machines.

Also I noticed within the file setup_machine2_doesnt_work.log.full:

Transcript written on amstex.log.
fmtutil: /usr/share/texmf/web2c/lambda.oft installed.
fmtutil: /usr/share/texmf/web2c/omega.oft installed.
fmtutil: /usr/share/texmf/web2c/amstex.fmt installed.
fmtutil: /usr/share/texmf/web2c/latex.fmt installed.
fmtutil: /usr/share/texmf/web2c/pdflatex.fmt installed.
fmtutil: /usr/share/texmf/web2c/pdftex.fmt installed.
fmtutil: /usr/share/texmf/web2c/tex.fmt installed.
fmtutil: /usr/share/texmf/web2c/elatex.efmt installed.
fmtutil: /usr/share/texmf/web2c/etex.efmt installed.
fmtutil: /usr/share/texmf/web2c/pdfelatex.efmt installed.
fmtutil: /usr/share/texmf/web2c/pdfetex.efmt installed.
fmtutil: /usr/share/texmf/web2c/mpost.mem installed.
fmtutil: /usr/share/texmf/web2c/mf.base installed.
fmtutil: /usr/share/texmf/web2c/mfw.base installed.
install_link failed for /usr/bin/latex. File already exists.
Checking for psfonts.map in config.ps... no.  Adding ... done
2003/09/27 00:32:49 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/postinstall-lilypond.sh
find: paths must precede expression
Usage: find [path...] [expression]
rm: too few arguments
Try `rm --help' for more information.
2003/09/27 00:32:50 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/proftpd.sh
2003/09/27 00:32:50 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/robots.sh
2003/09/27 00:32:51 running: H:\cygwin\bin\sh.exe -c /etc/postinstall/rpm.sh
2003/09/27 00:32:52 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/splint.sh
2003/09/27 00:32:52 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/squid-postinstall.sh
will not overwrite existing /etc/squid.conf
will not overwrite existing /etc/mime.conf
2003/09/27 00:32:52 running: H:\cygwin\bin\sh.exe -c
/etc/postinstall/sysvinit.sh
Creating /usr/bin/init-config
Creating default /etc/rc file

There is an issue w

Re: FW: XFree86-bin-icons .. believe cygwin xfree86 a "red" herring ... this is I believe a cygwin problem

2003-09-30 Thread Alexander Gottwald
On Tue, 30 Sep 2003, Alan Miles wrote:

> All,
> 
> This is attempt 4 - I cannot seem to get the attachment there, since I get:
> 
> <[EMAIL PROTECTED]>:
> ezmlm-reject: fatal: Sorry, I don't accept messages larger than 5 bytes
> (#5.2.3)

You can place the files somewhere on the web and post a link to these files.

I dislike having to pull 700kb over a 64k line

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723

--
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:munmap bug test program

2003-09-30 Thread peter garrone
>On Tue, Sep 30, 2003 at 10:06:11AM +0800, peter garrone wrote:
>> This test program highlights the recent munmap problem addressed by Corinna.
>> It works with the updated mmap, and with linux, fails on cygwin with the prior mmap.
>
>What "updated" mmap are you talking about, your's or the one in CVS?
>
>Corinna

It works with both. I am using your fix, ie the one in CVS.

-- 
__
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Andrew DeFaria
Igor Pechtchanski wrote:

Andrew,

Could this be a text vs. binary issue? I'm grasping at straws here... 
It's good that you've moved everything to the local disk - it helps to 
eliminate as many variables as possible. Did you get an authenticated 
access webpage (.html, as opposed to a CGI script) working? Can you 
initially create the user file in the directory where you're trying to 
set up authentication (for testing purposes)? Can you show the output 
of "ls -la" in that directory?
It seems to be an issue of using a UNC path. The following works fine:


 ServerName adefaria
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot "/var/www/htdocs"
#  DocumentRoot "//sonscentral/users/adefaria/www"
 
#  
   Options Indexes FollowSymLinks MultiViews ExecCGI
 

#
   Options Indexes FollowSymLinks MultiViews ExecCGI
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all



If, however, I uncomment the things like DocumentRoot, etc and comment 
out their corresponding line then it fails to work. Note that the 
directory "addbug" was simply copied over so the contents are the same. 
Text vs. binary does not seem to be the issue.

It's funny because the server itself can get html files from a UNC path 
but seems to trip up when attempting to get the .htaccess file (I guess).

Note that originally I was not using .htaccess files at all, instead I 
would code the Auth stuff directly into the  directive. But 
that wasn't working. So I switched to trying the .htaccess method. It 
seems that using .htaccess does not work if the path is a UNC path. 
Tomorrow I'll try to find out why using Auth... in the  
directive didn't work either.

To me this seems like a bug in Apache for Cygwin. Either it should 
support UNC paths fully or not at all.

Again, as I said before, when using Apache for Windows (and using UNCs 
with \\ as Windows likes) it worked fine (with the Auth stuff in 
).

Oh and the observent will not that yes I am using Virtual hosts. Perhaps 
that's another factor.
===
Change is inevitable, except from a vending machine.



--
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: munmap bug test program

2003-09-30 Thread peter garrone
I said this test program works with both my own and corinna's fix, but in fact I have 
only
actually tested it with corinna's fix, since I discarded my own.
-- 
__
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

--
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: Future of OpenGL package (Earnie, please read this)

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Andre Bleau wrote:

> Igor Pechtchanski wrote:
>
> >On Fri, 26 Sep 2003, Andre Bleau wrote:
> >
> > > ...
> > > Even, with 1.4 headers, you would sill need to jump through hoops to use
> > > 1.4 functionality. You will still need to load the functions dynamicaly
> > > before using them. You wouldn't be able to simply call the functions as
> > > when developing for UNIX.
> >
> >André,
> >
> >Cygwin DLL uses the autoload functionality for some of the required
> >functions, so that they can simply be called after a test (i.e., something
> >like
> >
> >if (hasSomeFunction())
> >   callSomeFunction();
> >
> >Perhaps this could be employed in the OpenGL library layer as well...  I
> >don't know enough off-hand about the autoloading process, but there is a
> >fairly detailed description in winsup/cygwin/how-autoload-works.txt in the
> >Cygwin sources.  Might be worth investigating...
> >
>
> Well, that's exactly what packages like extgl provide: an easier way to
> test if some functionality is available, and if it is, to load it and use it.
>
> I was thinking of including extgl in the next major release of the OpenGL
> package.
>
> However, porting UNIX program that uses GL 1.2+ functions would still be a
> pain, although a somewhat lower pain. Say you have a UNIX program with a
> line like this:
>
> glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);
>
> The Cygwin version would be, if we would use something like extgl:
>
> Option A:
>
> if (hasNewFunctionThatDrawsACompleteKitchenIncludingTheSink)
> glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);
> else {
> fprintf(stderr, "Sorry, can't draw your kitchen. Please update your GL drivers 
> and come again.\n");
> exit(1);
> }
>
> or, Option B:
> if (hasNewFunctionThatDrawsACompleteKitchenIncludingTheSink)
> glNewFunctionThatDrawsACompleteKitchenIncludingTheSink(GL_KITCHEN_COLOR_PATTERN);
> else
> myOwn2000LinesOfCodeFunction(GL_KITCHEN_COLOR_PATTERN);
>
> There are dozens of GL 1.2+ functions now. If you select Option A,
> rewriting some program to use them conditionally can be a major task. As
> for Option B, it is a task of Herculean proportions.

Well, I was actually thinking of the GL library having a wrapper for each
function that did the check and either called the real function or failed.
The UNIX code won't change at all, and the wrappers in your library will
initially look like Option A above.  Then whoever needs the functionality
can send you implementations of "myOwn2000LinesOfCodeFunction"s, which you
can add as you see fit.

> [snip]
> > > - Update the GLUT dll to Nate Robin's 3.7.6
> > > - Have GLUI and GLUIX libs compiled for gcc 3.3
> >
> >You will probably also need to release the old libraries as compatibility
> >packages for those who still use the pre-gcc-3.3 OpenGL binaries.
>
> So, you suggest that I provide:
> libglui.a and libgluix.a for the last version of gcclibglui-gcc3_2.a and
> libgluix-gcc3_2.a for gcc 3.2
> libglui-gcc2_95.a and libgluix-gcc2_95.a for gcc 2.95
> ???
> None would be bigger than 500k, so the package would still be manageable.

Sure...  You could coordinate the recompile with a major release, and then
name the DLLs after the older version that each represents (e.g., see
openssl-096.dll).
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Igor Pechtchanski
On Tue, 30 Sep 2003, Andrew DeFaria wrote:

> Igor Pechtchanski wrote:
>
> > Andrew,
> >
> > Could this be a text vs. binary issue? I'm grasping at straws here...
> > It's good that you've moved everything to the local disk - it helps to
> > eliminate as many variables as possible. Did you get an authenticated
> > access webpage (.html, as opposed to a CGI script) working? Can you
> > initially create the user file in the directory where you're trying to
> > set up authentication (for testing purposes)? Can you show the output
> > of "ls -la" in that directory?
>
> It seems to be an issue of using a UNC path. The following works fine:
>
> 
>   ServerName adefaria
>   ServerAdmin [EMAIL PROTECTED]
>   DocumentRoot "/var/www/htdocs"
> #  DocumentRoot "//sonscentral/users/adefaria/www"
>   
> #  
> Options Indexes FollowSymLinks MultiViews ExecCGI
>   
> 
> #
> Options Indexes FollowSymLinks MultiViews ExecCGI
> AllowOverride AuthConfig
> Order allow,deny
> Allow from all
> 
>
> 
>
> If, however, I uncomment the things like DocumentRoot, etc and comment
> out their corresponding line then it fails to work. Note that the
> directory "addbug" was simply copied over so the contents are the same.
> Text vs. binary does not seem to be the issue.
>
> It's funny because the server itself can get html files from a UNC path
> but seems to trip up when attempting to get the .htaccess file (I guess).
>
> Note that originally I was not using .htaccess files at all, instead I
> would code the Auth stuff directly into the  directive. But
> that wasn't working. So I switched to trying the .htaccess method. It
> seems that using .htaccess does not work if the path is a UNC path.
> Tomorrow I'll try to find out why using Auth... in the 
> directive didn't work either.
>
> To me this seems like a bug in Apache for Cygwin. Either it should
> support UNC paths fully or not at all.
>
> Again, as I said before, when using Apache for Windows (and using UNCs
> with \\ as Windows likes) it worked fine (with the Auth stuff in
> ).
>
> Oh and the observent will not that yes I am using Virtual hosts. Perhaps
> that's another factor.

Andrew,

Perhaps you could try playing with the permissions on the .htaccess file
to see if you can reproduce the problem in your local directory.  If you
manage to do that, you could see if this is a "smbntsec" issue.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Postinstall hangs with bash

2003-09-30 Thread Bertalan Fodor
I've overwritten sh.exe with bash.exe

With this setting cygpath hangs in myPostinstall.sh:

ROOT=$(cygpath -w /)

It is interesting.

Using sh it is ok.

Bert


--
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: Hello and cygwin quesiton

2003-09-30 Thread Yap on ExactGeom
Dear Igor,
Nice to hear from you, and thanks for the clarification!
I understand your explanation of the difference between
gvim and vim.  But there is still a mystery.
In my previous installation of cygwin, no such problems
arise.  The difference is that my previous system was Windows 2000
and my current one is Windows XP.  Can you explain this?
Thanks,
--Chee
Igor Pechtchanski wrote:

On Tue, 30 Sep 2003, Yap on ExactGeom wrote:

 

Dear Igor,

How are you?  I noticed that you are an active developer of cygwin.
I really liked this platform and our Core Library is developed
on this mainly.   I have a question:
In my recent (June) installation of cygwin, there was an annoying
bug -- many of the files that I create are automatically given
the execute permission.  [Since my "ls" will automatically show
me which files are executable, this is VERY annoying.]
But this behavior is not universal.  If I have a non-executable
file, and I exit it using gvim, the file will become executable.
But using vim, it remains non-executable.  But I don't think
the program is with a bad installation of gvim, because this
phenomenon shows up in other places.
Heard of this bug before?
Thanks, Chee
   

Hi, Chee,

Great to hear from you.

I'm redirecting this reply to the general Cygwin list, mostly to get this
into the archives (because I know others are having this same problem).
Also, this brings your question up before a large body of expertise --
perhaps someone else will find something I've missed.
This is not a bug, but rather an artifact of the default permissions files
get when written by Windows programs.  Gvim is a pure Windows program, in
contrast with vim, which is a Cygwin one.  Also, vim writes files
in-place, whereas gvim creates a new copy -- hence the change in
permissions.  Unfortunately, there isn't anything you can easily do to fix
this.  I have a script (attached) that I run periodically on my system to
fix the executable permissions.  It's not foolproof, but it's better than
nothing (and it should err on the conservative side).
	Igor
 



#!/bin/sh
#
# A script to fix up executable permissions.
#
# Copyright (c) 2002, 2003, Igor Pechtchanski
#
# Written by Igor Pechtchanski <[EMAIL PROTECTED]>
#
# This program is distributed under the terms of the GNU General Public
# License.  For more information see .
#
PROGNAME="`basename "$0"`"
USAGE="Usage: $PROGNAME [-v|--verbose] [-n|--dry-run] [-b|--batch] [dirs]"
DASH_PRINT=
ECHO=
TEE=cat
BATCH=
dup2() {
#  xargs -r -0 -n 1 perl -e 'exit unless ($a=shift);print STDERR "$a\n";print "$a\0"'
#  xargs -r -0 -n 100 perl -e 'foreach(@ARGV){print STDERR "$_\n";print "$_\0"}'
 perl -e '$/="\0";while(<>){chomp();print STDERR "$_\n";print "$_\0"}'
}
while [ -n "$1" ]; do
 case "$1" in
   -h|--help) echo "$USAGE" >&2 ; exit 0 ;;
   -v|--verbose) DASH_PRINT="-print" ; TEE=dup2 ;;
   -n|--dry-run) ECHO="echo" ;;
   -b|--batch) BATCH="true" ;;
   --) shift ; break ;;
   -*) echo "Invalid flag: $1" >&2 ; echo "$USAGE" >&2 ; exit 2 ;;
   *) break ;;
 esac
 shift
done
DIRS="${@:-.}"

#EXEEXT="sh exe bat com dll"
EXEEXT="exe bat com dll"
EXTFILTER="$(echo "$EXEEXT" | perl -pe 's/(\w+)/-name \\*.$1 -o/g')"
#DBGPRG='-exec echo CAUGHT ".(++$i)." {} \\;'
EXEPAT='^#! */^: *Use */eval.*exec'
#PATPRG='-exec perl -ne 
\"BEGIN{\\\$s=1};\\\$.=1&&/$p/&&exit(\\\$s=0);exit(\\\$s);END{exit(\\\$s)}\" {} \\;';
PATPRG='-exec awk \"BEGIN{S=1}NR=1&&/$p/{S=0;exit(0)}{exit(S)}END{exit(S)}\" {} \\;';
PATFILTER="$(echo "$EXEPAT" | perl -pe 's/\n$//;@p=split(//);foreach $p(@p){$p=~s@(['"'"'"/])@[EMAIL 
PROTECTED];$p="'"$PATPRG $DBGPRG"' -o";};$_=join(" ",@p)')"
eval "set -- $EXTFILTER $PATFILTER"

for DIR in $DIRS; do
 if [ -d "$DIR" -o -h "$DIR" ]; then
   FILTER="-type f"
 elif [ -f "$DIR" ]; then
   FILTER="-maxdepth 1"
 fi
 if [ -z "$BATCH" ]; then
   find "$DIR" $FILTER -perm -0100 \( "$@" \( $DASH_PRINT -exec $ECHO chmod a-x {} \; 
\) \)
 else
   find "$DIR" $FILTER -perm -0100 \( "$@" -print0 \) | $TEE | xargs -r -0 -n 1000 
$ECHO chmod a-x --
 fi
done
 



--
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: Perl - trying to install libwin32

2003-09-30 Thread Charles Owens
Howdy,

I'm also seeing the same problem as Paul when trying to compile 
libwin32-0.191 (patched) on cygwin.  This is with both gcc 3.3.1 and gcc 
3.2 20020927 (prerelease) .

Any suggestions?  Here's what "make" is giving me (with gcc 3.2):

make[1]: Entering directory `/home/owensc/dev/libwin32-0.191/APIFile'
rm -f ../blib/arch/auto/Win32API/File/File.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib File.o  -o ../blib/arch/auto/Win32API/Fi
le/File.dll  /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a
gcc -shared -o  File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols
-Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib File.o  /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl
.dll.a
Creating library file: libFile.dll.a
File.o(.text+0x50a):File.c: undefined reference to `_CloseHandle'
File.o(.text+0x651):File.c: undefined reference to `_GetLastError'
File.o(.text+0xab2):File.c: undefined reference to `_CopyFileA'

 many more like lines 

File.o(.text+0x18b51):File.c: undefined reference to `_GetLastError'
File.o(.text+0x18d8a):File.c: undefined reference to `_SetErrorMode'
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o  File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols
-Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib File.o  /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl
.dll.a
make[1]: *** [../blib/arch/auto/Win32API/File/File.dll] Error 1
make[1]: Leaving directory `/home/owensc/dev/libwin32-0.191/APIFile'
make: *** [subdirs] Error 2


Thanks much,

--
-
 Charles N. OwensEmail: [EMAIL PROTECTED]
http://www.enc.edu/~owensc
 Senior Technology Officer
 Information Technology Services  Eastern Nazarene College
-


--
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: Hello and cygwin quesiton

2003-09-30 Thread Igor Pechtchanski
Chee,

Well, there are people on this list who are more versed in Windows
permissions issues than I, and hopefully they'll intervene and either
confirm or refute my answer.  If I had to guess, I'd say this has to do
with inheritable permissions -- if a directory has an execute permission
and the flag is set that makes all files and subdirectories inherit that
permission, all your files will be marked executable.  You can try to use
the Windows permissions dialog to uncheck the "allow objects to inherit
permissions" box, and this might solve the problem.  I'm not sure why you
didn't have this problem on Win2k (I do), but it could be because of some
unique permissions setup.

Hope this helps,
Igor

On Wed, 1 Oct 2003, Yap on ExactGeom wrote:

> Dear Igor,
> Nice to hear from you, and thanks for the clarification!
>
> I understand your explanation of the difference between
> gvim and vim.  But there is still a mystery.
>
> In my previous installation of cygwin, no such problems
> arise.  The difference is that my previous system was Windows 2000
> and my current one is Windows XP.  Can you explain this?
>
> Thanks,
> --Chee
>
> Igor Pechtchanski wrote:
>
> >On Tue, 30 Sep 2003, Yap on ExactGeom wrote:
> >
> >>Dear Igor,
> >>
> >>How are you?  I noticed that you are an active developer of cygwin.
> >>I really liked this platform and our Core Library is developed
> >>on this mainly.   I have a question:
> >>
> >>In my recent (June) installation of cygwin, there was an annoying
> >>bug -- many of the files that I create are automatically given
> >>the execute permission.  [Since my "ls" will automatically show
> >>me which files are executable, this is VERY annoying.]
> >>But this behavior is not universal.  If I have a non-executable
> >>file, and I exit it using gvim, the file will become executable.
> >>But using vim, it remains non-executable.  But I don't think
> >>the program is with a bad installation of gvim, because this
> >>phenomenon shows up in other places.
> >>
> >>Heard of this bug before?
> >>Thanks, Chee
> >
> >Hi, Chee,
> >
> >Great to hear from you.
> >
> >I'm redirecting this reply to the general Cygwin list, mostly to get this
> >into the archives (because I know others are having this same problem).
> >Also, this brings your question up before a large body of expertise --
> >perhaps someone else will find something I've missed.
> >
> >This is not a bug, but rather an artifact of the default permissions files
> >get when written by Windows programs.  Gvim is a pure Windows program, in
> >contrast with vim, which is a Cygwin one.  Also, vim writes files
> >in-place, whereas gvim creates a new copy -- hence the change in
> >permissions.  Unfortunately, there isn't anything you can easily do to fix
> >this.  I have a script (attached) that I run periodically on my system to
> >fix the executable permissions.  It's not foolproof, but it's better than
> >nothing (and it should err on the conservative side).
> > Igor
> >[fixexec script snipped]

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Using authentication under Apache for Cygwin

2003-09-30 Thread Andrew DeFaria
Igor Pechtchanski wrote:

Andrew,

Perhaps you could try playing with the permissions on the .htaccess 
file to see if you can reproduce the problem in your local directory. 
If you manage to do that, you could see if this is a "smbntsec" issue.
Hmmm... As I said it appears to work in the local case. Or are you 
saying I should try to break that by playing with permissions? Are there 
any examples of "smbntsec" issues?

I mean I suspect that if I do something as small as remove read 
permission for other on .htaccess then the server will not be able to 
read the file thus it would break. But what would that tell me? What 
exactly am I looking for?

I may play with this as you suggest tomorrow at work. At home I don't 
use SMB for my web site - at least not yet.
===
Obligatory witty line: Backup not found: (A)bort (R)etry (P)anic



--
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: Perl - trying to install libwin32

2003-09-30 Thread Paul W
On Wed, 2003-10-01 at 04:57, Charles Owens wrote:
> Howdy,
> 
> I'm also seeing the same problem as Paul when trying to compile 
> libwin32-0.191 (patched) on cygwin.  This is with both gcc 3.3.1 and gcc 
> 3.2 20020927 (prerelease) .

As a followup to my last message,

The reason that I wanted libwin32 was to drive Word and Excel via COM. I
discovered that COM was somehow borked (didn't work properly under VB
either). I assumed that the perl compile problem was due to bitrot on
that box and I've switched to another machine, which has ActivePerl
installed on it. I'd prefer to use Cygwin's perl for CPAN and
consistency with Linux, but it's all working so I don't want to rock the
boat at the moment...
-- 
Paul W

   "How long the road is. But, for all the time the journey has already 
taken, how you have needed every second of it in order to learn what 
the road passes by."




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