Re: tetex 3.0.0-3 format file problem [tetex maintainer -- please respond]

2005-05-20 Thread Jan Nieuwenhuizen
Christopher Faylor writes:

> Jan, can you provide any insight here?

What happened here is that the latex FMT file was somehow produced by
plain tex, not by pdfetex.  In tetex-2.x, latex was a symlink to tex,
whereas in 3.0 it is a symlink to pdfetex.

The FMT files are produced by running texconfig-sys init, which is run
during postinstall.  The latex-pdfetex version chokes on the invalid
FMT file, so that file must be regenerated.

The most common problems have to do with file permissions or manually
edited config files.

Easiest is to rerun setup.exe and reinstall the tetex-base package and
see if that works.  Otherwise, remove the latex.fmt file (`kpsewhich
latex.fmt' prints the full file name).  Run `texconfig-sys init' to
generate the latex.fmt file.

I'd be interested to learn what exactly did not work, or what fixed
it.

Jan.

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

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



Re: tetex 3.0.0-3 format file problem

2005-05-20 Thread Jan Nieuwenhuizen
Robert A. Mcdougall writes:

>Anyhow, cleaning out the old config files got LaTeX working again for
>me; YMMV.

What config files did you have to remove?  It would be nice to check
for those in the postinstall script.

Jan.

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

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



cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053

2005-05-20 Thread Morten Kjærulff




Hi,

When I try to stop my cygrunsrv I get the following error:
cygrunsrv: Error stopping a service: QueryServiceStatus:  Win32 error 1053:
The service did not respond to the start or control request in a timely fashion.

I get the same error if try to stop from the windows service panel.

I have also tried with the previous version of cygrunsrv, same result.

Below is the commands i used, and the result.

Thanks.

/Morten


[EMAIL PROTECTED] ~/cygwindowsservice
$ ls -l
total 9
-rwxr-xr-x  1  mkgroup-l-d 488 May 20 09:02 mkjservice.sh
-rwxr-xr-x  1  mkgroup-l-d 305 Feb 24 12:23 serviceinstall
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicequery
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 serviceremove
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicestart
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:01 servicestop

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat servicequery
#!/bin/sh

cygrunsrv -Q mkjservice

[EMAIL PROTECTED] ~/cygwindowsservice
$ ./servicequery
Service mkjservice exists
Type: Own Process
Current State   : Stopped
Controls Accepted   :

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat serviceremove
#!/bin/sh

cygrunsrv -R mkjservice

[EMAIL PROTECTED] ~/cygwindowsservice
$ ./serviceremove

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat serviceinstall
#!/bin/sh

cygrunsrv -I mkjservice \
  -t manual \
  -o \
  -n \
  -p /cygdrive/d/mkj/cygwindowsservice/mkjservice.sh \
  -a "arg1 arg2" \
  -1 /cygdrive/d/mkj/cygwindowsservice/mkjservice.out \
  -2 /cygdrive/d/mkj/cygwindowsservice/mkjservice.err

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat mkjservice.sh
#!/bin/sh

# Handle signals
signalhandler () {
  echo "`date` OEnding HOME=$HOME CMDPWD=`pwd` *=$*"
  echo "`date` EEnding HOME=$HOME CMDPWD=`pwd` *=$*" 1>&2
  exit 1
}
trap signalhandler 2 15

echo "`date` OStarting HOME=$HOME CMDPWD=`pwd` *=$*"
echo "`date` EStarting HOME=$HOME CMDPWD=`pwd` *=$*" 1>&2

cd `dirname $0`

while true ; do
  echo "`date` ORunning HOME=$HOME CMDPWD=`pwd` *=$*"
  echo "`date` ERunning HOME=$HOME CMDPWD=`pwd` *=$*" 1>&2
  sleep 10
done

[EMAIL PROTECTED] ~/cygwindowsservice
$ ./serviceinstall

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat servicestart
#!/bin/sh

cygrunsrv -S mkjservice

[EMAIL PROTECTED] ~/cygwindowsservice
$ ./servicestart

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat servicestop
#!/bin/sh

cygrunsrv -E mkjservice

[EMAIL PROTECTED] ~/cygwindowsservice
$ ./servicestop
cygrunsrv: Error stopping a service: QueryServiceStatus:  Win32 error 1053:
The service did not respond to the start or control request in a timely fashion.

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat mkjservice.out
Fri May 20 09:45:30 RDT 2005 OStarting HOME=/ CMDPWD=/cygdrive/c/WINNT/system32
*=arg1 arg2
Fri May 20 09:45:30 RDT 2005 ORunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:45:40 RDT 2005 ORunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:45:50 RDT 2005 ORunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:46:00 RDT 2005 ORunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:46:11 RDT 2005 ORunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:46:19 RDT 2005 OEnding HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsser
vice *=

[EMAIL PROTECTED] ~/cygwindowsservice
$ cat mkjservice.err
Fri May 20 09:45:30 RDT 2005 EStarting HOME=/ CMDPWD=/cygdrive/c/WINNT/system32
*=arg1 arg2
Fri May 20 09:45:30 RDT 2005 ERunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:45:40 RDT 2005 ERunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:45:50 RDT 2005 ERunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:46:00 RDT 2005 ERunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Fri May 20 09:46:11 RDT 2005 ERunning HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsse
rvice *=arg1 arg2
Signal 15
Fri May 20 09:46:19 RDT 2005 EEnding HOME=/ CMDPWD=/cygdrive/d/mkj/cygwindowsser
vice *=

[EMAIL PROTECTED] ~/cygwindowsservice
$ ls -l
total 17
-rw-r--r--  1 SYSTEM   root680 May 20 09:46 mkjservice.err
-rw-r--r--  1 SYSTEM   root670 May 20 09:46 mkjservice.out
-rwxr-xr-x  1  mkgroup-l-d 488 May 20 09:02 mkjservice.sh
-rwxr-xr-x  1  mkgroup-l-d 305 Feb 24 12:23 serviceinstall
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicequery
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 serviceremove
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicestart
-rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:01 servicestop

[EMAIL PROTECTED] ~/cygwindowsservice
$ cygcheck -s -v -r > cygcheck.out

[EMAIL PROTECTED] ~/cygwindowsservice
$ ls -l
total 33
-rw-r--r--  1 mkj008   mkgroup-l-d 15440 May 20 09:49 cygcheck.out
-rw-r--r--  1 SYSTEM   root  680 M

Re: [patch] several new features for cygrunsrv

2005-05-20 Thread Corinna Vinschen
On May 19 20:08, Igor Pechtchanski wrote:
> On Thu, 19 May 2005, Brian Dessent wrote:
> Since some services have spaces in their names, it might perhaps be a
> better idea to output one service name per line (I would even go so far as
> add a -0/--null option to end lines with '\0', but that's for a later
> patch).  If one wanted them on one line, something like

There's a -0 option already.  Otherwise, a line per service sounds good.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
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: CPIO with solaris 9 flash archives

2005-05-20 Thread Corinna Vinschen
On May 19 17:44, Peter A. Castro wrote:
> On Wed, 18 May 2005, Clemson, Chris wrote:
> >E:\>cpio -ivF v240-disbox-v1-08-archive /etc/release
> >cpio: warning: skipped 90486 bytes of junk
> >cpio: warning: archive header has reverse byte-order
> >cpio: warning: skipped 188023 bytes of junk
> >cpio: warning: skipped 1360 bytes of junk
> >cpio: warning: skipped 146962 bytes of junk
> >cpio: premature end of file
> 
> How did you get the file to your PC?  Did you FTP it?  Did you remember
> to use binary mode? As an experiment, I FTP'd a Solaris 8 CPIO file in
> ASC mode and ran cpio against it.  The results are similar to what you
> show above.

And just for the records, Solaris usually creates cpio archives which are
compatible with Cygwin.  The output of file shows:

Solaris$ find . | cpio -o > x.cpio
Cygwin$ file x.cpio
x.cpio: byte-swapped cpio archive

Solaris$ find . | cpio -oc > x.cpio
Cygwin$ file x.cpio
x.cpio: ASCII cpio archive (SVR4 with no CRC)

I just tried it, out of curiosity.  Both variations are readable by
GNU cpio.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
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: cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053

2005-05-20 Thread Brian Dessent
Morten Kjærulff wrote:

> -rwxr-xr-x  1  mkgroup-l-d 488 May 20 09:02 mkjservice.sh
> -rwxr-xr-x  1  mkgroup-l-d 305 Feb 24 12:23 serviceinstall
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicequery
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 serviceremove
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicestart
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:01 servicestop

You should fix your passwd and group files.

> cygrunsrv -I mkjservice \
>   -t manual \
>   -o \
>   -n \
>   -p /cygdrive/d/mkj/cygwindowsservice/mkjservice.sh \
>   -a "arg1 arg2" \
>   -1 /cygdrive/d/mkj/cygwindowsservice/mkjservice.out \
>   -2 /cygdrive/d/mkj/cygwindowsservice/mkjservice.err

It may not work to start a script directly.  Start the shell that
executes the script.

-p /bin/sh \ 
-a "-c '/cygdrive/d/mkj/cygwindowsservice/mkjservice.sh arg1 arg2'" \

Brian

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



Re: New call: Please test latest snapshot

2005-05-20 Thread Andrew Schulman
> Just for the records: It should also fix the socket problem on 
> postgresql, loosing the socket file attributes on touch().

Yes, I had the same problem with screen, and it is fixed in 2005-05-17.


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



Command to move groups of files

2005-05-20 Thread Jonathan Arnold
Somone a month or so ago posted a list of little known Cygwin
commands, and in that list was a cool command that allowed you
to rename a list of files, like thus:
 cmd First*.* Second*.*
which would rename all files starting with "First" to be "Second".
I used this command a bit, and then promptly forgot about it until
I really needed to use it yesterday.
Could someone remind me of the name of that command?
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Amazing Developments   http://www.buddydog.org
Life can only be understood backwards; but it must be
lived forwards. -- Soren Kierkegaard
--
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: Command to move groups of files

2005-05-20 Thread Igor Pechtchanski
On Fri, 20 May 2005, Jonathan Arnold wrote:

> Somone a month or so ago posted a list of little known Cygwin
> commands, and in that list was a cool command that allowed you
> to rename a list of files, like thus:
>
>  cmd First*.* Second*.*
>
> which would rename all files starting with "First" to be "Second".
> I used this command a bit, and then promptly forgot about it until
> I really needed to use it yesterday.
>
> Could someone remind me of the name of that command?

You must be thinking of "rename" from the new cygutils.  FWIW, a Google
search for "zzapper commands cygwin rename" brought it up as the first
hit (I just happened to remember exactly *who* posted that list). :-)
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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: Command to move groups of files

2005-05-20 Thread Jonathan Arnold
Igor Pechtchanski wrote:
On Fri, 20 May 2005, Jonathan Arnold wrote:

Somone a month or so ago posted a list of little known Cygwin
commands, and in that list was a cool command that allowed you
to rename a list of files, like thus:
cmd First*.* Second*.*
which would rename all files starting with "First" to be "Second".
I used this command a bit, and then promptly forgot about it until
I really needed to use it yesterday.
Could someone remind me of the name of that command?

You must be thinking of "rename" from the new cygutils.  FWIW, a Google
search for "zzapper commands cygwin rename" brought it up as the first
hit (I just happened to remember exactly *who* posted that list). :-)
I'm not sure that's the exact post, but it's ironic that cgf's reply
to it says that the challenge will be to remember the command exists! Well,
I remembered it existed, just not what it was.
But I did try "man -k files", and I now notice that rename doesn't show up
in the list. Is there something I'm supposed to run to update the -k
database?
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Amazing Developments   http://www.buddydog.org
Life can only be understood backwards; but it must be
lived forwards. -- Soren Kierkegaard
--
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: CPIO with solaris 9 flash archives

2005-05-20 Thread Clemson, Chris
> >
> > both the file and the drive I am reading it with work fine.
> > I can't say I've used cpio much, but the man pages say that 
> it should recognise the format automatically.
> > any ideas what I'm doing wrong?
> > thanks,
> 
> How did you get the file to your PC?  Did you FTP it?  Did 
> you remember
> to use binary mode? As an experiment, I FTP'd a Solaris 8 CPIO file in
> ASC mode and ran cpio against it.  The results are similar to what you
> show above.

hmm, no I got it straight off the dvd it was burnt to.
maybe it just doesn't like flar files.

--
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: Command to move groups of files

2005-05-20 Thread Andrew Schulman

> Somone a month or so ago posted a list of little known Cygwin
> commands, and in that list was a cool command that allowed you
> to rename a list of files, like thus:
> 
>   cmd First*.* Second*.*
> 
> which would rename all files starting with "First" to be "Second".
> I used this command a bit, and then promptly forgot about it until
> I really needed to use it yesterday.
> 
> Could someone remind me of the name of that command?

Yes, I remember the command.  Its name is:

for ff in First*.* ; do
  mv $ff Second${ff#First}
done

Works for me, I use it all the time :)


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



Re: [ANNOUNCEMENT] Updated: cygutils-1.2.8-1

2005-05-20 Thread zzapper
On Mon, 16 May 2005 23:05:16 +0200 (CEST),  wrote:

>The cygutils package has been updated to 1.2.8. This is a bugfix release.
>
>o Changes from version 1.2.7-1
>
>- cygstart.exe: improve operation with 'mount -X' (Michael Schaap)
>- dump.exe: bugfix for mingw compatibility (Kees Zeelenberg)
>
The CygUtils package includes: 
ascii: simple utility for displaying the ASCII character set 
banner: prints a message to the terminal in large characters (contributed by 
Joerg Schaible) 
cal: displays a calendar 
col: filter reverse line feeds from input (contributed by David A. Willis) 
colcrt: filter nroff output for CRT previewing 
colrm: remove columns from a file 
column: columnate lists 
conv: a utility for converting line endings between DOS and UNIX format 
cygstart: a cygwin replacement for the windows 'start' command 
d2u, dos2unix: a copy of conv which defaults to converting DOS->UNIX 
ddate: converts boring normal dates to fun Discordian Date 
dump: simple utility for displaying a nicely formatted hexdump of a file 
getclip: copy Windows clipboard to stdout 
getopt: parse command options (enhanced) (contributed by Egor Duda) 
lpr: spool a file to a windows printer (contributed by Rick Rankin) 
mcookie: generate magic cookies for xauth 
mkshortcut: create a windows shortcut (contributed by Joshua Daniel Franklin) 
namei: follow a pathname until a terminal point is found 
putclip: copy stdin to the Windows clipboard 
realpath: convert pathname argument to absolute path, with all reference to 
`.', `..', and symlinks
resolved. 
readshortcut: read a windows shortcut (contributed by Joshua Daniel Franklin) 
rev: reverse lines of a file 
u2d, unix2dos: a copy of conv which defaults to converting UNIX->DOS


-- 
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success tips


--
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: tetex 3.0.0-3 format file problem

2005-05-20 Thread Mcdougall, Robert A.
"Jan Nieuwenhuizen"  wrote:

> What config files did you have to remove?  It would be nice to
> check for those in the postinstall script.

First (ref. messages 943, 789), I suspect now I was in error in
saying that removing config files fixed the problem.  In fact I
nuked a whole '$TEXMFLOCAL/web2c' directory; I suspect now that
the operative change was removing '$TEXMFLOCAL/web2c/latex.fmt'.

On the other hand, at some earlier point (ref. messages 789,
769), teTeX 3 had installed a set of tex-generated (therefore
pdfetex- incompatible) format files in '$TEXMFVAR'.  Maybe stale
config files contributed to that; I couldn't really say.

> I'd be interested to learn what exactly did not work, or what
> fixed it.

The story goes like this:

*   Upgrade from teTeX 2 to teTeX 3.0.0-[12].  Can't LaTeX anything.
Observe that the old '$TEXMFMAIN/web2c/texmf.cnf' file is out of
date (and that the new 'texmf.cnf.cygwin-*' is much improved).
Replace the old with the new.  Problem is gone.

*   Upgrade from teTex 3.0.0-[12] to teTeX 3.0.0-3.  Can't LaTeX
anything.   On Jan Nieuwenhuizen's advice, remove
'$TEXMFVAR/web2c/latex.fmt'; now the operative LaTeX format file
is '$TEXMFLOCAL/web2c/latex.fmt'.  Still can't LaTeX anything.
After much threshing around, remove 'web2c/latex.fmt' (and all
the rest of 'web2c', and all '*/config' directories) from
'$TEXMFLOCAL' and reinstall teTeX.  Problem is gone.

--
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: CPIO with solaris 9 flash archives

2005-05-20 Thread Clemson, Chris
> And just for the records, Solaris usually creates cpio 
> archives which are
> compatible with Cygwin.  The output of file shows:

> I just tried it, out of curiosity.  Both variations are readable by
> GNU cpio.

hmm, it must just not like flar archives.
thanks for checking it out.

chris

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



New error: chmod: changing permissions of `/tmp': Permission denied

2005-05-20 Thread Sean Aitken
Good morning,
I have just recently started banging away at a problem with sshd and 
Windows Server 2003 again.  This has been a difficult journey, but I 
feel we're making progress.

Today, I noticed for the first time the following error message appears 
when a non-admin user logs in to cygwin:

--
chmod: changing permissions of `/tmp': Permission denied
--
This seems to be caused by this line in the /etc/profile file:
[/etc/profile] ===
...
if [ -d "/tmp" ]; then
chmod 1777 /tmp
fi
...
==
Should I just ignore this warning? I had this problem with an existing 
install on cygwin, and with a completely fresh install (after mkgroup / 
mkpasswd), it happens also!

The permissions on the root are:
.
.
total 8
drwxr-x---+  9 saitken Users   0 May 17 10:32 .
drwxr-x---+  9 saitken Users   0 May 17 10:32 ..
drwxr-x---+  2 saitken Users   0 May 17 10:37 bin
-rwxr-x---+  1 saitken Users  57 May 17 10:27 cygwin.bat
-rwxr-x---+  1 saitken Users7022 May 17 10:38 cygwin.ico
drwxr-x---+ 10 saitken Users   0 May 17 10:34 etc
drwxrwxrwx+  4 saitken Domain Users0 May 17 10:34 home
drwxr-x---+  5 saitken Users   0 May 17 10:24 lib
drwxrwxrwt+  2 saitken Users   0 May 17 10:34 tmp
drwxr-x---+ 14 saitken Users   0 May 17 10:24 usr
drwxr-x---+  7 saitken Users   0 May 17 10:24 var
.
.
Any ideas would be appreciated. For the time being, I will just ignore 
the error.

Best regards,
-Sean
--
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: New call: Please test latest snapshot

2005-05-20 Thread Christopher Faylor
On Fri, May 20, 2005 at 01:33:29AM +0200, Gerrit P. Haase wrote:
>[EMAIL PROTECTED] /
>$ ls -l /usr/bin/cygcheck.exe
>-rwxr-xr-x  1 gerrit Dom?nen-Admins 2833975 May 19 07:46 
>/usr/bin/cygcheck.exe*
>
>And I get a crash when I run `cygcheck -svr'.

Corinna guided me towards reproducing this problem so it will
be fixed in the next snapshot.

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: Command to move groups of files

2005-05-20 Thread Igor Pechtchanski
On Fri, 20 May 2005, Jonathan Arnold wrote:

> Igor Pechtchanski wrote:
> > On Fri, 20 May 2005, Jonathan Arnold wrote:
> >
> > > Somone a month or so ago posted a list of little known Cygwin
> > > commands, and in that list was a cool command that allowed you
> > > to rename a list of files, like thus:
> > >
> > > cmd First*.* Second*.*
> > >
> > > which would rename all files starting with "First" to be "Second".
> > > I used this command a bit, and then promptly forgot about it until
> > > I really needed to use it yesterday.
> > >
> > > Could someone remind me of the name of that command?
> >
> > You must be thinking of "rename" from the new cygutils.  FWIW, a Google
> > search for "zzapper commands cygwin rename" brought it up as the first
> > hit (I just happened to remember exactly *who* posted that list). :-)
>
> I'm not sure that's the exact post,

Yeah, Google's a bit off (it gets you the thread, though).  Searching for
"zzapper cygwin rename" *does* get you the exact post, FWIW.

> but it's ironic that cgf's reply to it says that the challenge will be
> to remember the command exists! Well, I remembered it existed, just not
> what it was.
>
> But I did try "man -k files", and I now notice that rename doesn't show
> up in the list. Is there something I'm supposed to run to update the -k
> database?

I believe it's /usr/sbin/makewhatis, but I could be wrong.
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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: New error: chmod: changing permissions of `/tmp': Permission denied

2005-05-20 Thread Dave Korn
Original Message
>From: Sean Aitken
>Sent: 17 May 2005 16:42


> Today, I noticed for the first time the following error message appears
> when a non-admin user logs in to cygwin:
> 
> --
> chmod: changing permissions of `/tmp': Permission denied
> --

> Should I just ignore this warning? I had this problem with an existing
> install on cygwin, and with a completely fresh install (after mkgroup /
> mkpasswd), it happens also!

> Any ideas would be appreciated. For the time being, I will just ignore
> the error.


  I notice from the directory listing that some of the dirs belong to
"Users" yet the home directory belongs to "Domain Users".  Looks like you
were logged in as a local user when you installed, but you were logged in as
a domain user when you ran mkpasswd/mkgroup for the first time and the
/etc/skel scripts created the home dirs.

  Do domain users have write access rights to your local HD?  Did you run
both mkpasswd and mkgroup using *both* the '-l' *and* the '-d' options to
get full listings?  What does 'getfacl /tmp' tell you?  What does 'cd / ;
cacls tmp' show?


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


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



Re: New error: chmod: changing permissions of `/tmp': Permission denied

2005-05-20 Thread Corinna Vinschen
On May 20 17:59, Dave Korn wrote:
> >From: Sean Aitken
> > chmod: changing permissions of `/tmp': Permission denied
> 
>   I notice from the directory listing that some of the dirs belong to
> [...]

This is just the problem with chmod in the base-files package.
Upgrade to base-files 3.4-2 using setup.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
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/



Using Perl to access serial ports

2005-05-20 Thread Jason Pearce
There was some recent discussion about serial ports and Perl.
   http://sourceware.org/ml/cygwin/2005-05/msg00013.html
But I did not see any resolution.
Did anyone end up porting either Win32::SerialPort or Win32API::CommPort 
as Reini suggested?

I need to talk to a thermometer via a serial link. The protocol is not 
very complex.
Could I just use a system call to stty to set the baudrate and then pipe 
the thermometer comand to /dev/ttyS0 and read the response from 
/dev/ttyS0 using file handles?

Reini - you suggested adding cygwin support for Device::SerialPort would 
be the easiest route. Do you still recommend this? I am not very 
familiar with Windows API library, but could I just use Win32::API to 
call some already existing entry points in Windows?

Regards,
Jason



--
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: cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053

2005-05-20 Thread René Berber
Brian Dessent wrote:

> It may not work to start a script directly.

Yes it works, but I have only used it with bash.
-- 
René Berber


--
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: Please help us with a "make" command error

2005-05-20 Thread Christopher Faylor
On Fri, May 20, 2005 at 02:56:04PM -0400, Lingzi Li wrote:
>Dear Cygwin,
>
>We are trying to compile c codes with cygwin on WinXP by following the 
>steps below:
>
>   a) ./configure ( the results can be seen in the attached file)
>   b) edit Makefile ( we edited all the created Makefiles as indicated in 
>configure results )
>   c) make ( it reports error: command not found )
>
>Could you help us how to move forward? 

You have to install make!  Run setup.exe again, and click on "Devel"
when you get to "Select Packages".  Then select make.  If you are missing
something this basic then you probably need to install gcc, too.

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: cygrunsrv: Error stopping a service: QueryServiceStatus: Win32 error 1053

2005-05-20 Thread Johnson, Matt \(GE Healthcare\)
I've had problems with the -n option.  Try taking it out and see what happens.  

-Original Message-
From: Brian Dessent [mailto:[EMAIL PROTECTED]
Sent: Friday, May 20, 2005 6:19 AM
To: cygwin@cygwin.com
Subject: Re: cygrunsrv: Error stopping a service: QueryServiceStatus:
Win32 error 1053


Morten Kjærulff wrote:

> -rwxr-xr-x  1  mkgroup-l-d 488 May 20 09:02 mkjservice.sh
> -rwxr-xr-x  1  mkgroup-l-d 305 Feb 24 12:23 serviceinstall
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicequery
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 serviceremove
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:02 servicestart
> -rwxr-xr-x  1  mkgroup-l-d  35 Feb 24 10:01 servicestop

You should fix your passwd and group files.

> cygrunsrv -I mkjservice \
>   -t manual \
>   -o \
>   -n \
>   -p /cygdrive/d/mkj/cygwindowsservice/mkjservice.sh \
>   -a "arg1 arg2" \
>   -1 /cygdrive/d/mkj/cygwindowsservice/mkjservice.out \
>   -2 /cygdrive/d/mkj/cygwindowsservice/mkjservice.err

It may not work to start a script directly.  Start the shell that
executes the script.

-p /bin/sh \ 
-a "-c '/cygdrive/d/mkj/cygwindowsservice/mkjservice.sh arg1 arg2'" \

Brian

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



Problem: cygwin without gcc

2005-05-20 Thread Lingzi Li
Dear Cygwin,

We just sent you an email titled "Please help us with a 'make' command error". 
Now we found another problem with cygwin. We just noticed that there is no gcc 
compiler in cygwin's directory. We don't know how to move forward without gcc. 
Could you please help us out? Really appreciate it!

Sandy & Ling



This mail sent through www.mywaterloo.ca

--
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: Spam::Problem: cygwin without gcc

2005-05-20 Thread Robb, Sam
> Dear Cygwin,
> 
> We just sent you an email titled "Please help us with a 
> 'make' command error". 
> Now we found another problem with cygwin. We just noticed 
> that there is no gcc 
> compiler in cygwin's directory. We don't know how to move 
> forward without gcc. 
> Could you please help us out? Really appreciate it!
> 
> Sandy & Ling

Please read the FAQ:

  http://cygwin.com/faq/faq_2.html

Specifically:

  http://cygwin.com/faq/faq_2.html#SEC13

  [ Summary: make and gcc aren't installed by default.
You will have to run the cygwin setup program again
and install make, gcc, and any other development
utilities you are interested in. ]

-Samrobb

--
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: Please help us with a "make" command error

2005-05-20 Thread Buchbinder, Barry (NIH/NIAID)
At Friday, May 20, 2005 3:01 PM, Christopher Faylor wrote:
> On Fri, May 20, 2005 at 02:56:04PM -0400, Lingzi Li wrote:
>> Dear Cygwin,
>> 
>> We are trying to compile c codes with cygwin on WinXP by following
>> the steps below: 
>> 
>>   a) ./configure ( the results can be seen in the attached file)
>>   b) edit Makefile ( we edited all the created Makefiles as
>>   indicated in configure results ) c) make ( it reports error:
>> command not found ) 
>> 
>> Could you help us how to move forward?
> 
> You have to install make!  Run setup.exe again, and click on "Devel"
> when you get to "Select Packages".  Then select make.  If you are
> missing something this basic then you probably need to install gcc,
> too. 
> 
> cgf

After you install make and gcc (Chris displayed his powers of prescience!)
and re-run configure again, you probably run make without editing the
Makefile.  As I understand it, configure is creating a Makefile that is
adjusted for what is available on your system.

configure seemed to look for automake and autoconf, so you might want to
install those packages, too.  It should make make report some "yes"es where
it currently reports "no"s.

--
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: Please help us with a "make" command error

2005-05-20 Thread Lingzi Li
Dear Sir,

We really appreciate your help!

Sandy & Ling


Quoting Christopher Faylor <[EMAIL PROTECTED]>:

> On Fri, May 20, 2005 at 02:56:04PM -0400, Lingzi Li wrote:
> >Dear Cygwin,
> >
> >We are trying to compile c codes with cygwin on WinXP by following the 
> >steps below:
> >
> >   a) ./configure ( the results can be seen in the attached file)
> >   b) edit Makefile ( we edited all the created Makefiles as indicated in 
> >configure results )
> >   c) make ( it reports error: command not found )
> >
> >Could you help us how to move forward? 
> 
> You have to install make!  Run setup.exe again, and click on "Devel"
> when you get to "Select Packages".  Then select make.  If you are missing
> something this basic then you probably need to install gcc, too.
> 
> cgf
> 





This mail sent through www.mywaterloo.ca

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



OLOCA

2005-05-20 Thread Ash
Hey. Just thought that you might be able to include this one. It's not a 
real big one, but I use it from time to time, and it's probably already 
well known.

"SOL" - meaning shit outa luck
Hope that helps!
Ash Furrow
[EMAIL PROTECTED]
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 5/19/2005
--
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 Perl to access serial ports

2005-05-20 Thread Corinna Vinschen
On May 20 19:25, Jason Pearce wrote:
> There was some recent discussion about serial ports and Perl.
>http://sourceware.org/ml/cygwin/2005-05/msg00013.html
> 
> But I did not see any resolution.
> Did anyone end up porting either Win32::SerialPort or Win32API::CommPort 
> as Reini suggested?
> 
> I need to talk to a thermometer via a serial link. The protocol is not 
> very complex.
> Could I just use a system call to stty to set the baudrate and then pipe 
> the thermometer comand to /dev/ttyS0 and read the response from 
> /dev/ttyS0 using file handles?

Why don't you try it?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
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/



New User question

2005-05-20 Thread mimiller
I've checked the docs, faq and google, but can't find an exact answer...
I have a program vic that transmits/receives video over a multicast network 
connection.  The program runs fine when I'm in cygwin, but the larger 
package I am using expects it to run in windows.  So to make the 
integration work, I'd like to find a way to run cygwin and my vic program 
then have the cygwin environment quit when I quit the vic program.  My 
first guess was;
c:cygwin\bin>cygwin vic
but I get an error: cannot execute binary file
I also tried
c:cygwin\bin>bash vic
and got the same error.

I'm hoping I've explained what I want to do clearly.  If more info is 
needed, please let me know.  I know this a roundabout way to get this done, 
but the source is not available.

Thanx,
Michael Miller
System Engineer
Video Technology Services
Persistent Infrastructure Directorate
National Center for Supercomputing Applications
University of Illinois - UC
217-649-0747
"If you're clear in your vision and trust the people in your team with 
clear objectives, they will invariably do their best to achieve everything 
desired, and usually deliver everything you could have hoped for and even 
more." -Paul Debevec 

--
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 SSH connection timeout

2005-05-20 Thread Singh, Mahendra
 Hello, 
I have installed CYGWIN on my XP box.  I have also successfully setup CVS
and added various projects to it.
I am attempting to allow remote users access to my CVS respositiory.  I do
this by running the sshd server and allow users to connect via ssh.
This was working fine a few days ago, but no, when users try to connect by
specifying my Interenet IP, a connection refused occurs.
I have confired that my firewall and router is allowing access to port 22.

Anyone have any thoughts on why this is happening?

Also, how can I create a group, assign users to that group and have that
group be the owner of the CVS repository directories and files?
I would like to try this to see if it would help. Thank you.

--
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 SSH connection timeout

2005-05-20 Thread Singh, Mahendra
 Hello, 
I have installed CYGWIN on my XP box.  I have also successfully setup CVS
and added various projects to it.
I am attempting to allow remote users access to my CVS respositiory.  I do
this by running the sshd server and allow users to connect via ssh.
This was working fine a few days ago, but no, when users try to connect by
specifying my Interenet IP, a connection refused occurs.
I have confired that my firewall and router is allowing access to port 22.
I am able to ssh to localhost.

Anyone have any thoughts on why this is happening?

Also, how can I create a group, assign users to that group and have that
group be the owner of the CVS repository directories and files?
I would like to try this to see if it would help. Thank you.

--
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: Path problems with trailing dot

2005-05-20 Thread Christopher Faylor
On Mon, May 16, 2005 at 10:19:34AM -0400, Christopher Faylor wrote:
>On Mon, May 16, 2005 at 06:53:26AM -0600, Eric Blake wrote:
>>According to Stefan Schuerger on 5/15/2005 4:41 PM:
>>>bash: test./test2: No such file or directory
>>>
>>>The trailing dot disappears and cannot be used in paths.  This seems to
>>>be a DOS legacy of either NTFS or Windows.
>>
>>Yes - Windows strips all trailing spaces and dots.  So `mkdir test.'
>>and `mkdir test' are identical in behavior in creating `test/', unless
>>you use managed mounts (where cygwin does some magic to overcome the
>>Windows limitations).
>>
>>It looks like the cygwin path-normalization code is not stripping
>>trailing dots/spaces from non-final directory components in a
>>non-managed path name.  Care to contribute a patch?
>>http://cygwin.com/acronyms/#SHTDI
>
>Sorry, but it's not that simple.
>
>We're discussing this in cygwin-developers now.  We'll have some kind
>of resolution in 1.5.17.

Btw, recent snapshots should cause test./test2 to be equivalent to test/test2 .
This will be the behavior in 1.5.17.

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: CPIO with solaris 9 flash archives

2005-05-20 Thread Peter A. Castro
On Fri, 20 May 2005, Clemson, Chris wrote:
And just for the records, Solaris usually creates cpio
archives which are
compatible with Cygwin.  The output of file shows:

I just tried it, out of curiosity.  Both variations are readable by
GNU cpio.
hmm, it must just not like flar archives.
thanks for checking it out.
Can you give the command that was used to create the flar ?  I'll try and
reproduce it.
chris
--
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
--
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/


Splint parseerror with

2005-05-20 Thread only4
Splint parseerror with 

VERSION: Splint: 3.1.1

DESCRIPTION:
Every C code that imports  causes an unrecoverable parse error.
#include 

REPRODUCTION:
To reproduce the error:
write this file.c:
---
#include 
int main() { return 0; }
---

then 'splint file.c'
Splint 3.1.1 --- 02 May 2003

/usr/include/pthread.h:75:43: Parse Error. (For help on parse errors, see
   splint -help parseerrors.)
*** Cannot continue.

Splint 3.1.1 --- 02 May 2003

SOLUTION:
Explicitly define __CYGWIN__ flag for splint.
otherwise your system headers will not be processed right.

splint +D__CYGWIN__ file.c

LOG OF FIXING PROCEDURE:

USERS ARE NOT REQUIRED TO READ THIS.
INTENDED FOR DEVELOPERS AID.

# 15-may-2005:

in my installation, a grep -n into pthread.h at lines 70-80 looks:

70-#define PTHREAD_SCOPE_PROCESS 0
71-#define PTHREAD_SCOPE_SYSTEM 1
72-
73-
74-/* Attributes */
75:int pthread_attr_destroy (pthread_attr_t *);
76-int pthread_attr_getdetachstate (const pthread_attr_t *, int *);
77-int pthread_attr_getinheritsched (const pthread_attr_t *, int *);
78-int pthread_attr_getschedparam (const pthread_attr_t *, struct
sched_param *)
;
79-int pthread_attr_getschedpolicy (const pthread_attr_t *, int *);
80-int pthread_attr_getscope (const pthread_attr_t *, int *);

So the problematic row is
int pthread_attr_destroy (pthread_attr_t *);
where ')' is the 43-th char.

# 16 may 2005:
with other splint options:
$ splint +posixlib
$ splint +posixstrictlib
$ splint +trytorecover
remains the same, but with:

$ splint +posixlib +trytorecover
$ splint +posixstrictlib +trytorecover
the error shift to line 79:

Splint 3.1.1 --- 02 May 2003

/usr/include/pthread.h:79:56: Parse Error.  Too many errors, giving up.
*** Cannot continue.

that is on character ',':
79-int pthread_attr_getschedpolicy (const pthread_attr_t *, int *);

So the error is clearly placed after a declaration of pointer pthread_attr_t
*.
Why complain about a ')' or ',' there?
What is Splint expecting there?

# 17 may 2005:
now a trip in sys/types.h, where you will find pthread_attr_t is defined as
a struct:

308-typedef struct {
309-  int is_initialized;
310-  void *stackaddr;
311-  int stacksize;
312-  int contentionscope;
313-  int inheritsched;
314-  int schedpolicy;
315-  struct sched_param schedparam;
316-
317-  /* P1003.4b/D8, p. 54 adds cputime_clock_allowed attribute.  */
318-#if defined(_POSIX_THREAD_CPUTIME)
319-  int  cputime_clock_allowed;  /* see time.h */
320-#endif
321-  int  detachstate;
322-
323:} pthread_attr_t;

But this isn't true, sys/types.h don't define pthread_attr_t, in Cygwin!
Go up until a of a top-level

#if defined(_POSIX_THREADS) && !defined(__CYGWIN__)

with a meaningful comment:

/* Cygwin will probably never have full posix compliance due to little
things
 * like an inability to set the stackaddress. Cygwin is also using void *
 * pointers rather than structs to ensure maximum binary compatability with
 * previous releases.
 * This means that we don't use the types defined here, but rather in
 * 
 */

So, the real target is: grep -n pthread_attr /usr/include/cygwin/types.h

212:typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;

ok, it's a dummy one, but I don't see language-specific errors here.

# 19 may 2005:
CATCHED
I re-read the directive
#if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
and realized that splint may have not __CYGWIN__ setted...

splint +D__CYGWIN__ file.c

WORKS!
This can suggest further investigation, to find
why the missing __CYGWIN__ ?
are there other missing flags too?

# 20-may-2005:
I'm now investigatin who sets __CYGWIN__, and why splint don't have it.

-- 
--
I use PGP/GPG. Ask for my key if interested.
-




--
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: New User question

2005-05-20 Thread René Berber
[EMAIL PROTECTED] wrote:

[snip]  The program runs fine when I'm in cygwin, but the
> larger package I am using expects it to run in windows.

Uh?  Cygwin is running under windows, what you really mean is that you want your
program to be executed by another program or only under the windows command 
prompt.

> So to make the
> integration work, I'd like to find a way to run cygwin and my vic
> program then have the cygwin environment quit when I quit the vic
> program.  My first guess was;
> c:cygwin\bin>cygwin vic
> but I get an error: cannot execute binary file
> I also tried
> c:cygwin\bin>bash vic
> and got the same error.

You don't say if this test is under the windows cmd.exe (aka. Command Prompt),
but it looks like it is... so first you opened the "Command Prompt", changed dir
to cygwin, saw that there was a cygwin.bat and tried to run it with vic as
parameter... no luck, cygwin.bat doesn't work like that but, did you notice that
the bash prompt came and you changed directory to your home directory? that's
what cygwin.bat does.

Second test... well bash is not used like that either, if you want bash to
execute a command (look at man bash) you have to use, for instance, "bash -c 
vic".

> I'm hoping I've explained what I want to do clearly.

No, you didn't.

Have you tried just running your program?  It should work, with or without a
cygwin window (which is runnig bash or rxvt and bash or any other of the many
possibilities).  What's the catch? that it will only run in machines that have
the necessary cygwin libraries (dll), that usually means in machines that have
Cygwin instaled but you can transport your program with the necessary libraries.

HTH
-- 
René Berber


--
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: CVS SSH connection timeout

2005-05-20 Thread René Berber
Singh, Mahendra wrote:

> I have installed CYGWIN on my XP box.  I have also successfully setup CVS
> and added various projects to it.
> I am attempting to allow remote users access to my CVS respositiory.  I do
> this by running the sshd server and allow users to connect via ssh.
> This was working fine a few days ago, but no, when users try to connect by
> specifying my Interenet IP, a connection refused occurs.
> I have confired that my firewall and router is allowing access to port 22.
> I am able to ssh to localhost.

So this proves that sshd is running.

> Anyone have any thoughts on why this is happening?

Windows XP firewall, most likely.

I had this problem, perhaps caused by testing stunnel, the solution was to add
(again) sshd.exe to the list of exceptions in Winblows firewall settings.

Just as a note, I'm using port forwarding at my router since my computer is
behind NATP.

> Also, how can I create a group, assign users to that group and have that
> group be the owner of the CVS repository directories and files?
> I would like to try this to see if it would help. Thank you.

Just create the user and group under windows, re-run mkpasswd and mkgroup (just
append the new user and group), then configure cvs to use those (usually in the
repository passwd file).

Regards.
-- 
René Berber


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

2005-05-20 Thread Igor Pechtchanski
On Fri, 20 May 2005, Ash wrote:

> Hey. Just thought that you might be able to include this one. It's not a
> real big one, but I use it from time to time, and it's probably already
> well known.
>
> "SOL" - meaning shit outa luck

I usually include acronyms as I encounter them on the list.  This
particular acronym I haven't seen used yet.  If you do use it, I'll be
sure to add it to the OLOCA.

FWIW, I've changed the wording at the bottom of the OLOCA a while ago to
clarify when acronym suggestions should be sent.  Please read it
carefully.
HTH,
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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: CVS SSH connection timeout

2005-05-20 Thread Singh, Mahendra
Thanks much.  The problem was that my router had an IP filter to block port
22 (must have been caused by me screwing around, cause it was working last
week)

Regarding the Groups and password.  I have created a Group called Developers
and added 3 users to it.  You mention "configure cvs to use those".  How do
I go about doing this?  There is no password file in my cvs repository or
any of the subdirectories under there  (the repository is located at
/home/cvsroot) .

Thanks much, I appreciate the help

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
René Berber
Sent: Friday, May 20, 2005 6:09 PM
To: cygwin@cygwin.com
Subject: Re: CVS SSH connection timeout

Singh, Mahendra wrote:

> I have installed CYGWIN on my XP box.  I have also successfully setup 
> CVS and added various projects to it.
> I am attempting to allow remote users access to my CVS respositiory.  
> I do this by running the sshd server and allow users to connect via ssh.
> This was working fine a few days ago, but no, when users try to 
> connect by specifying my Interenet IP, a connection refused occurs.
> I have confired that my firewall and router is allowing access to port 22.
> I am able to ssh to localhost.

So this proves that sshd is running.

> Anyone have any thoughts on why this is happening?

Windows XP firewall, most likely.

I had this problem, perhaps caused by testing stunnel, the solution was to
add
(again) sshd.exe to the list of exceptions in Winblows firewall settings.

Just as a note, I'm using port forwarding at my router since my computer is
behind NATP.

> Also, how can I create a group, assign users to that group and have 
> that group be the owner of the CVS repository directories and files?
> I would like to try this to see if it would help. Thank you.

Just create the user and group under windows, re-run mkpasswd and mkgroup
(just append the new user and group), then configure cvs to use those
(usually in the repository passwd file).

Regards.
--
René Berber


--
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: CVS SSH connection timeout

2005-05-20 Thread Igor Pechtchanski
Ugh, top-posting.  Reformatted.

On Fri, 20 May 2005, Singh, Mahendra wrote:

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of René Berber
> Sent: Friday, May 20, 2005 6:09 PM
> To: [EMAIL PROTECTED]

.  Thanks.

> Subject: Re: CVS SSH connection timeout
>
> > Singh, Mahendra wrote:
> >
> > > I have installed CYGWIN on my XP box.  I have also successfully
> > > setup CVS and added various projects to it. I am attempting to allow
> > > remote users access to my CVS respositiory.  I do this by running
> > > the sshd server and allow users to connect via ssh. This was working
> > > fine a few days ago, but no, when users try to connect by specifying
> > > my Interenet IP, a connection refused occurs. I have confired that
> > > my firewall and router is allowing access to port 22. I am able to
> > > ssh to localhost.
> >
> > So this proves that sshd is running.
> >
> > > Anyone have any thoughts on why this is happening?
> >
> > Windows XP firewall, most likely.
> >
> > I had this problem, perhaps caused by testing stunnel, the solution
> > was to add (again) sshd.exe to the list of exceptions in Winblows
> > firewall settings.
> >
> > Just as a note, I'm using port forwarding at my router since my
> > computer is behind NATP.
> >
> > > Also, how can I create a group, assign users to that group and have
> > > that group be the owner of the CVS repository directories and files?
> > > I would like to try this to see if it would help. Thank you.
> >
> > Just create the user and group under windows, re-run mkpasswd and
> > mkgroup (just append the new user and group), then configure cvs to
> > use those (usually in the repository passwd file).
>
> Thanks much.  The problem was that my router had an IP filter to block
> port 22 (must have been caused by me screwing around, cause it was
> working last week)
>
> Regarding the Groups and password.  I have created a Group called
> Developers and added 3 users to it.  You mention "configure cvs to use
> those".  How do I go about doing this?  There is no password file in my
> cvs repository or any of the subdirectories under there (the repository
> is located at /home/cvsroot) .

The easiest thing to do would be to make the CVS repository owned by the
Developers group, with the setgid flag set (i.e., "chmod g+s"), readable
and writeable to the group.  Then any user that belongs to the Developers
group should be able to ssh in and access the repository (using the :ext:
method with ssh).

The cvs passwd is used in the :pserver: method, which you probably don't
want to use.
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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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/

arc profiling: output fails with -mno-cygwin

2005-05-20 Thread Richard Copley
My executables compiled with -fprofile-arcs and -mno-cygwin fail to
output the profiling information. I include, below, a sample session
illustrating my program. The first "a.exe" creates "main.da" okay. The
second doesn't. Can you help?

Regards,
Richard Copley.

[EMAIL PROTECTED] ~/projects/cxx/testcase
$ cat > main.cpp < #include 
> int main ()
> {
>   std::cout << "Hello, World!\n";
> }
> EOF

[EMAIL PROTECTED] ~/projects/cxx/testcase
$ g++ -fprofile-arcs main.cpp && ./a
Hello, World!

[EMAIL PROTECTED] ~/projects/cxx/testcase
$ g++ -fprofile-arcs -mno-cygwin main.cpp && ./a ## Here's the problem.
Hello, World!
arc profiling: Can't open output file /home/Owner/projects/cxx/testcase/main.da.

[EMAIL PROTECTED] ~/projects/cxx/testcase
$ cygcheck -s -v -r > cygcheck.out ## See attachment.
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1005

--
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 Perl to access serial ports

2005-05-20 Thread David Christensen
Jason Pearce wrote:
> ... serial ports and Perl. ...

It's been a while, but I was only able to get Win32::SerialPort working under
ActiveState Perl.  The same goes for Tk.


David


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



Verify JiDGxokc for REMOVETHISWORD cygwin@sources.redhat.com

2005-05-20 Thread Verify Processor
Hi!

Your message has been received, but it hasn't been delivered to me
yet.  As I don't have any record of you sending me mail from this
address before, I need to verify that you're not a spammer. Please
reply and alter the Subject line to remove the word REMOVETHISWORD,
and your previous message will be delivered, as will all your future
messages.

Thanks, and apologies for the inconvenience.

Arthur Scott.


Note: your original message is appended below.

If it didn't originate from you, then a spammer is probably
impersonating your address.

In which case please ignore this message.

 Original Message 

Received: by staff.cs.usyd.edu.au with postie; Sat, 21 May 2005 
13:13:25 +1100
Received: from adsl-63-203-88-10.dsl.snfc21.pacbell.net. [63.203.88.10] 
by staff.cs.usyd.edu.au.; Sat, 21 May 2005 13:13:22 +1000
X-Claimed-Received: from xgbcx.com
From: cygwin@sources.redhat.com
To: [EMAIL PROTECTED]
Date: Sat, 21 May 2005 03:11:37 UTC
Subject: 60 Jahre Befreiung: Wer feiert mit?
Importance: Normal
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
MIME-Version: 1.0
Message-ID: <[EMAIL PROTECTED]>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"


http://www.unserforum.com/aff/include.php?path=content/content.php&contentid=149


http://www.unserforum.com/aff/include.php?path=content/content.php&contentid=54


http://www.unserforum.com/aff/include.php?path=content/content.php&contentid=55


http://www.unserforum.com/aff/include.php?path=content/content.php&contentid=56

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