Re: distro apache2 will not start

2010-09-17 Thread Paul McFerrin

Al wrote:

The apache2 package is orphaned for this long period of time already.
Maybe it's time to pull it from the distro, unless somebody would
like to take over maintainership.




There is an oss freak in Thuringia, currently working out the idea of
a common patch repository to bring the DRY principle to patch
maintenance and to lower the work for each Distro. I think the idea is
interesting at least and could help in cases like this.

http://www.metux.de/download/oss-qm/normalized_repository.pdf

Al

--
  


Al:
This sounds like the reduce work on future maintenance might be a 
blessing.  As for orphaning the product, I would hate to see that 
happen..My current version is presently 1.3.22 and I have on many 
occasions attempted to build a version 2 apache only not to make it.  It 
was only within the past two years I discovered that a version 2 was 
available so I put this project on my to do list.


The MAJOR reason I'm hanging on 1.3.22 for cygwin is that it supports 
true Unix-style symbolic links.  It saves a lot of data movement and/or 
duplication.


If you don't have anyone to volunteer the work on apache 2, I'll just 
keep my 1.3.22 system.  It has been a very reliable product.  I don't 
use any transaction nor SSL.apps.


P.S.  I can't volunteer any time on this due to my health.


--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


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



distro apache2 will not start

2010-09-16 Thread Paul McFerrin

Hello:

I'm trying to upgrade my apache from version 1.3.22 to version Server 
version: Apache/2.2.6 (Unix) that I just downloaded using setup.exe.  
At present, it can not kill of the children nor start them without 
getting the error Bad system call.  I've yet to get anywhere.  Version 
2 is dead in the water.


I noticed that /usr/sbin/apachectl2 had no .exe suffix so I ran file 
on and it reported
/usr/sbin/httpd2: PE32 executable for MS Windows (console) Intel 80386 
32-bit


I'm running cygwin 1.7.7-1 on a Win XP pro with SP3

A cygchech -s output is attached.
No other errors were reported when I did a apachectl2 start

--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


Cygwin Configuration Diagnostics
Current System Time: Thu Sep 16 18:11:52 2010

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:   C:\cygwin\bin
C:\cygwin\lbin
C:\cygwin\bin\X11
C:\cygwin\lbin
C:\cygwin\bin
C:\Program Files\WinOne
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
C:\Program Files\Common Files\Acronis\SnapAPI\
C:\Program Files\QuickTime\QTSystem\
C:\Program Files\Acronis\BackupAndRecovery\
.\

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

CYGWIN = 'tty'
HOME = '/home/Paul'
PWD = '/c/tmp'
MAKE_MODE = 'UNIX'

Use '-r' to scan registry

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 172d431784c9776c Path: H:\cygwinV (ORPHANED)
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin
  System: Key: 8906c960e8a52c64 Path: G:\cygwin_USB
  System: Key: 6e042ace4f7ac114 Path: C:\cygwin_1.5

a:  fd N/AN/A
c:  hd  NTFS 51997Mb  60% CP CS UN PA FC 
d:  cd  CDFS 0Mb -2147483548%CS  Audio CD
e:  hd  NTFS211502Mb  39% CP CS UN PA FC New Volume
f:  hd  NTFS211502Mb   2% CP CS UN PA FC New Volume
g:  hd  NTFS 51199Mb  58% CP CS UN PA FC System
h:  hd  NTFS107520Mb  84% CP CS UN PA FC Volume1
k:  hd  NTFS107520Mb  82% CP CS UN PA FC Volume2
l:  hd  NTFS210696Mb  12% CP CS UN PA FC Volume3
r:  net NTFS211502Mb  39% CP CS UN PA FC New Volume
y:  net NTFS 40970Mb  62% CP CS UN PA FC 
z:  net NTFS111576Mb  56% CP CS UN PA FC Local Disk

C:\cygwin/  system  binary,auto
a:   /a system  binary
\bin /bin   system  binary
C:   /c system  binary
D:   /d system  binary
E:   /e system  binary
\etc /etc   system  binary
F:   /f system  binary
G:   /g system  binary
H:   /h system  binary
I:   /i system  binary
J:   /j system  binary
K:   /k system  binary
L:   /l system  binary
\lib /lib   system  binary
M:   /m system  binary
N:   /n system  binary
O:   /o system  binary
P:   /p system  binary
Q:   /q system  binary
R:   /r system  binary
\usr /usr   system  binary
C:\cygwin\bin/usr/bin   system  binary,auto
C:\cygwin\lib/usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  userbinary,auto

Found: C:\cygwin\bin\awk
Found: C:\cygwin\bin\awk
 - C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\cpp.exe
 - \etc\alternatives\cpp
Not Found: cpp (good!)
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gcc.exe
 - \etc\alternatives\gcc
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi
Found: C:\cygwin\lbin\vi.exe
Found: 

Re: distro apache2 will not start

2010-09-16 Thread Paul McFerrin

Sorry for double posting, went to wrong mailing list!!
-

Hello:
I guess I should have attached my httpd.conf file since I had to make 
changes in my configuration to avoid more changes..
For the record, both access_log and error_log were empty.  I tried using 
-e 999 and -E /tmp/file but all I got was the help screen.  Acts 
like those options (regardless) aren't in there.  I tried everything to 
get more error info.


All other options in the HELP screen seemed to work except for anything 
that has to do with error_level or -E.
Supplying -k start on the httpd2 directly produces the same bad 
system call error as supplying start to apachectl2.
One more thing, running httpd2 in debug mode (-X) produces same error 
message.


Jas anyone else gotten apache 2.2.6 working under cygwin 1.7.7X.  It was 
built over 3 years ago; prior to 1.7?


-Paul

=   httpd.conf   file===



#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See URL:http://httpd.apache.org/docs/2.2 for detailed information.
# In particular, see 
# URL:http://httpd.apache.org/docs/2.2/mod/directives.html

# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#

# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so 
/var/log/apache2/foo.log
# with ServerRoot set to /usr will be interpreted by the
# server as /usr//var/log/apache2/foo.log.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot /usr/share/apache2

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.

#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# /usr/lib/apache2
LoadModule authn_file_module /usr/lib/apache2/mod_authn_file.so
LoadModule authn_dbm_module /usr/lib/apache2/mod_authn_dbm.so
LoadModule authn_anon_module /usr/lib/apache2/mod_authn_anon.so
LoadModule authn_dbd_module /usr/lib/apache2/mod_authn_dbd.so
LoadModule authn_default_module /usr/lib/apache2/mod_authn_default.so
LoadModule authz_host_module /usr/lib/apache2/mod_authz_host.so
LoadModule authz_groupfile_module /usr/lib/apache2/mod_authz_groupfile.so
LoadModule authz_user_module /usr/lib/apache2/mod_authz_user.so
LoadModule authz_dbm_module /usr/lib/apache2/mod_authz_dbm.so
LoadModule authz_owner_module /usr/lib/apache2/mod_authz_owner.so
LoadModule authz_default_module /usr/lib/apache2/mod_authz_default.so
LoadModule auth_basic_module /usr/lib/apache2/mod_auth_basic.so
LoadModule auth_digest_module /usr/lib/apache2/mod_auth_digest.so
LoadModule dbd_module /usr/lib/apache2/mod_dbd.so
LoadModule dumpio_module /usr/lib/apache2/mod_dumpio.so
LoadModule ext_filter_module /usr/lib/apache2/mod_ext_filter.so
LoadModule include_module /usr/lib/apache2/mod_include.so
LoadModule filter_module /usr/lib/apache2/mod_filter.so
LoadModule deflate_module /usr/lib/apache2/mod_deflate.so
LoadModule log_config_module /usr/lib/apache2/mod_log_config.so
LoadModule log_forensic_module /usr/lib/apache2/mod_log_forensic.so
LoadModule logio_module /usr/lib/apache2/mod_logio.so
LoadModule env_module /usr/lib/apache2/mod_env.so
LoadModule mime_magic_module /usr/lib/apache2/mod_mime_magic.so
LoadModule cern_meta_module /usr/lib/apache2/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache2/mod_expires.so
LoadModule headers_module /usr/lib/apache2/mod_headers.so
LoadModule ident_module /usr/lib/apache2/mod_ident.so
LoadModule usertrack_module /usr/lib/apache2/mod_usertrack.so
LoadModule unique_id_module 

Creating a file within Cygwin with setting SYSTEM attribute

2010-08-28 Thread Paul McFerrin
I have access to cpio sources that I would like to add support for 
copying/creating Cygwin's symbolic links.  At present, any files I 
create would be as regular files.  Any hints as how I would set this 
attribute so I could create these symbolic links.  Does setting _IFLNK 
in the mode automatically perform setting SYSTEM attribute?


--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


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



symlinks in 1.5 not readable in 1.7

2010-08-26 Thread Paul McFerrin

I've been working for months on this problem since 1.7 went official..

I'm runningWin XP Pro sp3 on an all NTFS filesystems.  I was a beta 
tester for several months before 1.7 went official.  In all of my 
testing as beta, my 1.5 symlinks worked in both 1.5 and 1.7.  After (or 
during) the 1.7 becoming official, my many 1.5 symlinks were no longer 
working.  I have spent considerable time attempting to find and fix 
these 1.5 created symlinks (300+ total) I was quite taken back that such 
a major change would be thrown in at the last minute.  Mabe it was just 
an oversight.


I am quoting from web page titled: 
  What's new and what changed in Cygwin 1.7

   Chapter 1. Cygwin Overview

In one of the bullet items on the first page, it states :
   Cygwin 1.7 can read all old style symlinks, but the new style is not 
compatible with older Cygwin releases.


If this is true, then why am I having these problems now, a few months 
after 1.7 release?  Has anyone else experience these problems or an I 
just a heavy user of symlinks?  Has anyone written a tool that will find 
and fix these 1.5 symlinks?


Note:  cygcheck -s is attached.





















web page titled:

--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


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



1.5 symlinks not readable in 1.7

2010-08-26 Thread Paul McFerrin

Sorry for re-submission.  Forgot the attachment.

I've been working for months on this problem since 1.7 went official..

I'm runningWin XP Pro sp3 on an all NTFS filesystems.  I was a beta 
tester for several months before 1.7 went official.  In all of my 
testing as beta, my 1.5 symlinks worked in both 1.5 and 1.7.  After (or 
during) the 1.7 becoming official, my many 1.5 symlinks were no longer 
working.  I have spent considerable time attempting to find and fix 
these 1.5 created symlinks (300+ total) I was quite taken back that such 
a major change would be thrown in at the last minute.  Mabe it was just 
an oversight.


I am quoting from web page titled:   What's new and what 
changed in Cygwin 1.7

  Chapter 1. Cygwin Overview

In one of the bullet items on the first page, it states :
  Cygwin 1.7 can read all old style symlinks, but the new style is not 
compatible with older Cygwin releases.


If this is true, then why am I having these problems now, a few months 
after 1.7 release?  Has anyone else experience these problems or an I 
just a heavy user of symlinks?  Has anyone written a tool that will find 
and fix these 1.5 symlinks?


Note:  cygcheck -s is attached.

--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


Cygwin Configuration Diagnostics
Current System Time: Thu Aug 26 09:58:50 2010

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:   C:\cygwin\bin
C:\cygwin\lbin
C:\cygwin\bin\X11
C:\cygwin\lbin
C:\cygwin\bin
C:\Program Files\WinOne
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
C:\Program Files\Common Files\Acronis\SnapAPI\
C:\Program Files\Acronis\BackupAndRecovery\
.\

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

CYGWIN = 'tty'
HOME = '/home/Paul'
PWD = '/home/Paul'
MAKE_MODE = 'UNIX'

Use '-r' to scan registry

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 172d431784c9776c Path: H:\cygwinV (ORPHANED)
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin
  System: Key: 8906c960e8a52c64 Path: G:\cygwin_USB
  System: Key: 6e042ace4f7ac114 Path: C:\cygwin_1.5

a:  fd N/AN/A
c:  hd  NTFS 51997Mb  61% CP CS UN PA FC 
d:  cd N/AN/A
e:  hd  NTFS211502Mb  38% CP CS UN PA FC New Volume
f:  hd  NTFS211502Mb   2% CP CS UN PA FC New Volume
g:  hd  NTFS 51199Mb  58% CP CS UN PA FC System
h:  hd  NTFS107520Mb  84% CP CS UN PA FC Volume1
k:  hd  NTFS107520Mb  66% CP CS UN PA FC Volume2
l:  hd  NTFS210696Mb  12% CP CS UN PA FC Volume3
r:  net NTFS211502Mb  38% CP CS UN PA FC New Volume
y:  net NTFS 40970Mb  61% CP CS UN PA FC 
z:  net NTFS111576Mb  56% CP CS UN PA FC Local Disk

C:\cygwin/  system  binary,auto
a:   /a system  binary
\bin /bin   system  binary
C:   /c system  binary
D:   /d system  binary
E:   /e system  binary
\etc /etc   system  binary
F:   /f system  binary
G:   /g system  binary
H:   /h system  binary
I:   /i system  binary
J:   /j system  binary
K:   /k system  binary
L:   /l system  binary
\lib /lib   system  binary
M:   /m system  binary
N:   /n system  binary
O:   /o system  binary
P:   /p system  binary
Q:   /q system  binary
R:   /r system  binary
\usr /usr   system  binary
C:\cygwin\bin/usr/bin   system  binary,auto
C:\cygwin\lib/usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  userbinary,auto

Found: C:\cygwin\bin\awk
Found: C:\cygwin\bin\awk
 - C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\cpp.exe
 - \etc\alternatives\cpp
Not Found: cpp (good!)
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gcc.exe
 - \etc\alternatives\gcc
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe

Why did cal disappear in disrto??

2010-08-01 Thread Paul McFerrin

Could I get some from authority to address this issue?

I noticed that when download the latest Cygwin distro the other day into 
a new PC, the cal package was nolonger included in any packages.  
However during the entire Beta test of Cygwin, it was there.  Why was 
there a package removal a f t e r  beta testing.  It appears to be a 
disconnect for me.  It would appears to me that for a new release to be 
made that a freeze date be observed in which major changes (command 
removal) would not be introduced.  Only fixes, omissions, and upgrades 
would be allowed.


Maybe I'm being to paranoid about this.  But it would sound logical that 
a freeze date would mean this.  Does it??
It appears that another command also disappeared but after a 14-week 
stay in a nursing I'm clueless as to what it was.


--
http://genealogy.mcferrin.org/  # McFerrin Family History, Public View


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



missing dependency in setup.ini

2010-06-15 Thread Paul McFerrin
I did a total install of 1.7 and founf a missing dependency.  for he 
man command.  It failed to download the gunzip command.


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



Re: missing dependency in setup.ini

2010-06-15 Thread Paul McFerrin

Here is my useage:

/c/cygwin/updates.$ man sort
/bin/sh: /usr/bin/gunzip: No such file or directory
fgets: No such file or directory
Error reading man page /usr/share/man/man1/sort.1.gz
No manual entry for sort

??  huh ???


Christopher Faylor wrote:

On Tue, Jun 15, 2010 at 11:11:40AM -0400, Paul McFerrin wrote:
  
I did a total install of 1.7 and founf a missing dependency.  for he 
man command.  It failed to download the gunzip command.



gzip is a dependency of man and it is part of Base so it really should
be there.  gunzip is a shell script so maybe you're trying to run it
from the windows command prompt or something.

cgf

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


  



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



can't find online mainling list

2010-03-21 Thread Paul McFerrin



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



Can't find mailist archives

2010-03-21 Thread Paul McFerrin
I can't find the mailing lists archive.  Did they get moved but just 
didn't update the links??


I can't seem to Navigate around to find the pages entitled Mailing List 
Archive
s.  When ever I click upon it's link (discussion) , it taked me to the 
top of

it's current page which is at: http://cygwin.com/lists.html#see-above.

At page 
http://sourceware.org/cgi-bin/ml-request?listname=cron+usageusername=o

peration=subscribesubmit=Send+in+the+request,
,  there is ONE link on the page
labeled sourceware mailing list FAQ which is BROKEN.

At page 
http://sourceware.org/cgi-bin/ml-request?listname=cron+usageusername=o
peration=subscribesubmit=Send+in+the+request, I wanted to search the 
mailing
list which I have always done by clicking on link discussion takes me 
to an

different area on the same page.  My primary entry point to the discussion
lists: I have finally found at:   
http://sourceware.org/cgi-bin/search.cgi?form=extended


I'm done chirping now.
~  


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



can't find documentation on cron command

2010-03-21 Thread Paul McFerrin
I've delayed many months for installing the /usr/sbin/cron.exe 
command.  Mainly due to lack of documentation.  Bam, at my weakest 
moment, . I found the documentation embeeded in the cron command 
itself.  Just by adding a -? or --help I got two pages of very helpfull 
output.  Just about when I was going to offer my assistance to another 
user, I couldn't find it again.  There has been no man pages on 
/sbin/cron.  Never has as I can tell..  Back in 2006 there were gripes 
in the mailing list indicating documentation missing for /sbin/cron and 
/bin/at.


Well, I guess I had it when I needed it.  Do you know what happened?

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



Program cgystart does not recognize .pl file type; gets mime type incorrect

2010-03-08 Thread Paul McFerrin
I ran into my first real problem with cygstart.  When I execute 
cygstart with the argument:

   sendemail.pl

The browser window has the source-code being displayed.  If I copy from 
browser window back to an rxvt window, I get my source code back.


I received no error messages from cygwin.  Here is the source I was 
trying to execute:


#!/bin/perl
{
  print Content-type: text/html\n\n;
   srand();
   $k = rand() * 32767;
   $m = $k % 26;
   $m = int($m);
   $s = abcdefghijklmnopqrstuvwxyz12;
   $sub = substr($s, $m, 1);

   open(OUT, ../htdocs/tmp/_$sub_email.dat);
   $value = hex($k) + 0x06;
   print OUT Input type=hidden name=codewans value=\$value\;
   for ($k=0; $k=5; $k++) {
   $c = substr($value, $k, 1);
   printf OUT img 
src=\/web_images/Image-%s.jpg\nbsp;, $c;

   }
   close(OUT);
   open(OUT, | cat - ../htdocs/email2.html | sed  -e 
\/BEGIN_/r .

./htdocs/tmp/_$sub_email.dat202\ ../htdocs/tmp/email2.htm);
   print OUT \n;
   close(OUT);

   open(MYINPUTFILE,  ../htdocs/tmp/email2.htm);
   my(@lines) = MYINPUTFILE; # read file into list
   foreach $line (@lines) { # loop thru list
   print $line; # print
   }
   close(MYINPUTFILE);
   exit(0);
}


Of course, LF were masked by the browser.


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



Error about syntax on fstab when cygwin1.dll gets loaded

2010-03-03 Thread Paul McFerrin

Every time my cygwin system comes back up, I aways get these 2 messages:

   3 [main] ksh 2964 read_flags: invalid fstab option - 'type'
   160 [main] ksh 2964 read_flags: invalid fstab option - 'type'

I looked into /etc/fstab and did not find the text 'type'.  However in 
/etc/fstab.d/Paul, the following was found:

   R: on /cygdrive/r type ntfs (binary,posix=0,user,noumount,auto)
   Z: on /cygdrive/z type ntfs (binary,posix=0,user,noumount,auto)
Is this what is being ^^^complained about??  If so, who wrote this 
file??  It's time for a shoot-down. (just kidding)


I've been seeing these 2 error message for 2 days now.  Well I removed 
the file 'Paul' and it went away and stayed away.  I guess problem solved.



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



pipes are still buggy in 1.7

2010-03-02 Thread Paul McFerrin

Hi folks:

I've been tryinh to get the following code to work.  What I trying to do 
is to run a ps command 2 times (with 3 secs separation) and have the awk 
program capture the output kill all processes for a shutdown script.  
Something is hanging.  It does not run and control-C  controol-\ does 
not work.  Here is the script:

.$ cat /lbin/shutdown
#!/bin/bash
#
#   Shutdown the cygwin system
#
#   First we send SIGKILL to all process NOT in our process
#   group.  Then after a 5-second sleep, we send SIGKILL.
#
#   The last step is to kill off our process group.
#
#   Written: Paul E. McFerrin  02/15/02
#

ME=`basename $0`
TMP=/tmp/${ME}_tmp # generated script name
$TMP
if [ -z $CONSOLE_TTY ]
then
   echo You must execute $ME in the console (first) window!!
   exit 2
fi
echo -e \nShutting down CYGWIN ...
PATH=/usr/local/apache/bin:$PATH
if [ -f /usr/local/apache/bin/apachectl ]
then
   apachectl stop
fi
AWKPGM='
# PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
#  442949   1  442949 42944618430  500 02:35:28 /usr/bin/KSH
#  652513   1  652513 42943238670  500 02:35:43 /usr/bin/RXVT
/PID/ { next }
{
   if( $1 == pid ) {
   ourpgrp = $3
   }
   pgroup[$3 ] = $3
   #next
}
{
   nonspec[$1 ] = $1
}
END {
   print exec 2/dev/null TMP
   print # Our process group =  ourpgrp TMP
   for( g in pgroup ) {
   if( g != ourpgrp ) {
   print echo + kill -15 - g TMP
   print kill -15 - g TMP
   }
   }
   print sleep 5 TMP
   for( g in pgroup ) {
   if( g != ourpgrp ) {
   print echo + kill -9 - g TMP
   print kill -9 - g TMP
   }
   }
   print # killing off our process group TMP
   for( g in pgroup ) {
   if( g == ourpgrp ) {
   print echo + kill -9 - g TMP
   print kill -9 - g TMP
   }
   print echo + kill ALL -9 1  TMP
   print kill -9 1 TMP
   }
   print # killing off remaining processes, if any TMP
   for( pid in nonspec ) {
   if( pid != $1 ) {
   print echo # nonspec =  pid TMP
   # kill all other processes, except for me
   if (NF == 8) {
   print echo + kill -9  pid TMP
   print kill -9  pid TMP
   }
   }
   }
}'
if [ -p /tmp/pipe1 ]
then
   rm -f /tmp/pipe1
fi
mknod /tmp/pipe1 p
exec 1/tmp/pipe1   # keep shell opened into pipe1
gawk $AWKPGM TMP=$TMP pid=$$ /tmp/pipe1
ps -a /tmp/pipe1
sleep 3
ps -a pipe1
1-# now we close the pipe1
rm -f /tmp/pipe1
if [ -s $TMP ]
then
   trap '' 15 # shields up!
   #/bin/sh $TMP
cat $TMP
fi
# in theory, the exit should not be reached as we should have been killed
exit 0


Is this a bug in pipes??

- Paul

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



tail command does not work as advertised

2010-03-02 Thread Paul McFerrin
The tail +4 commands does not work as advertised.  When given such 
command (advertised in man command), it complains it can't open the 
file.  With the command tail +5 -, it produces the desired output with 
some junk on standard output.


See examples:

$ ps -a | tail +5 -
tail: cannot open `+5' for reading: No such file or directory
== standard input ==
 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
5644   15644   5644?   18 20:24:45 /usr/bin/cygrunsrv
492856444928   4896?   18 20:24:45 /usr/sbin/cron
I5088   15088   5356  con 1003 21:02:39 /lbin/ksh
5808   15808   4996  con 1003 21:02:53 /usr/bin/rxvt
603658086036   55800 1003 21:02:53 /usr/bin/ksh
566860366036   56680 1003 21:32:28 /usr/bin/ksh
I506060366036   45440 1003 21:32:28 /usr/bin/tail
383256686036   23280 1003 21:32:28 /usr/bin/ps
/home/Paul.$ ps -a | tail +3
tail: cannot open `+3' for reading: No such file or directory

All examples are supposed to produced output from the beginning of the file.

- Paul


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



Feature Request: Allow cron to terminate with SIGHUP

2010-03-01 Thread Paul McFerrin
With every Cygwin session I have two windows opened:  One CONSOLE and 
the other a miscelanious windon running rxvt.  When I want to shut down 
Cygwin and it's web servers, I just exit the console window.  When I 
exit the console window, every process gets terminated with SIGHUP.  No 
exceptions get terminated until now.  The cron command is ignoring 
SIGHUP and thus causes extra stuff to be done to perform a gracefull 
shutdown.


Is there a reason to catch SIGHUP?  I would like to keep my running of 
cygwin.  I knew something changed, now I know.  With cron running all 
the time, it is more difficult to unload cygwin1.dll.


- Paul

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



changes in symbolic links

2010-02-28 Thread Paul McFerrin
Sometime within the past 1-2 years, the format of symbolic links must 
have changed.  I keep finding broken links in my web pages.  The 
directory bit is still set but the System attribute is not set anymore.


If it is true that symbolic links did change, I would like to know which 
cygwin1.dll implemented the change and if this dll is still available.  
I want to write a tool to search for these mangled links and fix them.  
I would like for all of my web pages to work. (unless someone already 
wrote such a tool.)


- Paul

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



I have a weird problem - double your files overnight with Perfect Disk - A Bug!!

2010-02-27 Thread Paul McFerrin
This is a weird problem.  Caused by interaction of cygwin 1.7 and 
Perfect Disk 7.0 (defragmeter).


A couple of days ago, I was defragmenting my drive C: when I discovered 
a copy of every cygwin's file with a naming convention of: 
AY63D92E~orig.file.name~.  The leading chars were 8 letters/numbers of 
uppercase.  The filename portion surrounded by the ~ character.  This 
happened only under the /cygwin tree while the MS-DOS (Win XP Pro) were 
unaffected.


All of these files were copies of cygwin's files (link count == 1).  
Now that Perfect Disk 7.0 is done with drive C:, I'm going to delete all 
47,000 of these burgers.


This a weird interaction between 1.7 and Perfect Disk.  The problem 
stopped happening when Perfect Disk finished with drive C:.  This is 
far from a feature, a definite bug.


One thing to note:  The mtimes of all of the duplicate files were 
current.  They did not reflect the mtime of the original file.


-rwxr-xr-x   1 Paul root 259 2010-02-25 18:05 L0QHCU1M~cygwin.bat~
-rwxr-xr-x   1 Paul root 248 2010-02-26 09:31 NFP7AJAE~cygwin.bat~~
-rwxr-xr-x   1 Paul root 248 2010-02-25 18:05 QHJ5D971~cygwin.bat~~
-rwxr-xr-x   1 Paul root 259 2010-02-26 09:31 U1GLPSA4~cygwin.bat~
-rwxr-xr-x   1 Paul root 248 2010-01-25 16:14 cygwin.bat~
-rwxr-xr-x   1 Paul root 259 2010-01-25 16:28 cygwin.bat
-rwxr-xr-x   1 Paul root 248 2010-02-26 09:57 
97CB2MO0~QHJ5D971~cygwin.bat~~~



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



Question: about /proc/mounts

2010-02-27 Thread Paul McFerrin
I discovered a read-only filesystem called /proc/mounts which is 
symbolically linked from /etc/mtab.


My question is: who populates this data??

I got a cyclic-loop caused by drive C being mounted twice.  as /c  and 
/cygdrive/c  I would like to get rid of the cygdrive one but it is 
special treatment when logoff.


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



Downloading cygwin 1.5.*

2010-02-27 Thread Paul McFerrin
Should I always receive the warning dialog about 1.7 even though I 
*think* I'm about to download 1.5.  That's a scary thought!  Well this 
dialog is preventing me from continuing.  I would feel much better if 
either: 1) dialog box suppressed  or 2) some other feedback that I'm 
downloading a 1.5 instance


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



test for hard links always fail with pdksh

2010-02-24 Thread Paul McFerrin
A new wrinkle with hard links.  If you are testing for them in pdksh, 
they will always fail.  I.E.:


   if test -L links/$filename.$inumb
   then :
   else
  ln $filename $filename.$inumb
   fi

The above test will always fail and thus will always attempt to 
re-create the hard link.


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



Re: Question about SIGEMT under Cygwin

2010-02-23 Thread Paul McFerrin

This is a FYI on subject:

Problem appears with httpd V2.0.63 as well as V2.2.2.  I have compiled 
both versions and they both act the same.  Sounds like a generic problem 
with cygwin, an educated guess.  There is some code in connection.c 
which comments the fact that you should define NO_LINGCLOSE for specific 
OS's so I added CYGWIN to the list.  No Change in behavior.


- Paul

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



Question about SIGEMT under Cygwin

2010-02-22 Thread Paul McFerrin
This question is for Larry Hall.  Does  signal SIGEMT mean anything 
under Cygwin?  I have a Webserver process (httpd) that is terminating 
with a signal SIGEMT?  When I looked at the code, I saw no use for 
SIGEMT.  I'm assuming the signal is generated external to the process.


- Paul

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



Re: Best way to backup 1.5 to go to 1.7

2010-01-22 Thread Paul McFerrin

If you have both 1.5  1.7, they can sorta co-exist.

Leave your 1.5 system alone.  Now crate  download 1.7 into a new node.  
(e.g./cygwinII).  Just make sure everything is separate, include your 
update nodes and create a new start icon for 1.7 only.  You might want 
to enforce separate executions of 1.5  1.7


I did this for the several months before switch-over and it worked 
perfectly.  If your machine is shared amoung users, them you will have 
to work that out.  My was a single-user system.


Frank Fesevur wrote:

2010/1/21 Brian Keener:
  

I want to upgrade to 1.7 but would like to get a backup of the full 1.5
install before hand.  I know in the past just doing copies some files
didn't or couldn't get copied.  Also in the unix world seems as though
I recall tar and cpio have difference in terms of what they will and
won't backup.

What the best way to get a good copy of my 1.5 in case I need/want to
get it back.



I have made a backup of 1.5 by 7-Zipping the entire directory and also
backup the mount v2 tree of Cygnus Solutions in the registry. I
have had problems upgrading to 1.7 on one pc and could successfully
restore my 1.5 installation.

Regards,
Frank

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


  


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



Re: slowdown in mv operation

2010-01-18 Thread Paul McFerrin
Since I've already opened my mouth on this subject, I thought I would 
elaborate some on this subject: performance.


I have setup two tests to execute on each of 1.5 and 1.7 cygwin 
systems.  In each of these tests, they are not exhaustive as they should 
be.  I developed these tests based upon a typical task that I would do.


They are scripting task's involving the movement of 4,178 music files 
each to another directory on the same file system.  In one script, it 
uses the basename program to create the next script which executes the 
ln command to link files to look different.  For each filename, there 
are a total of two commands for each file:  1) basename and 2) ln.   The 
total execution times for each are:

_Cygwin 1.5_ _Cygwin1.7_
  996** secs 1222 secs   (for the 
'basename')

  898 secs   900 secs   (for the ln)
** The system time command was
   not used.  Just unobserved clock
   awareness time.  For ln time, I'm
   calling it a dead-heat.

So it looks like the I/O times in my book for 1.7 compares closely to 
1.5.  There was no physical movement of data for these tests.
 
Paul McFerrin wrote:
I have over 12,000 music files I frequently move around using the mv 
command with both source  destination on the same FS.  Under Cygwin 
1.5, this script would act amazedly fast that it would be impossible 
to read your screen..  I do have trace turned on.


Now under Cygwin 1.7, my trace output scrools about 2 lines / second.  
Much slower than Cygwin 1.5.  Has anyone noticed this slow-down.  It 
is so slow that it is very obvious.  I've already destroyed my 1.5 
installation.


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




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



Can't find any info on eventvwr or syslog-ng or eventlog

2010-01-18 Thread Paul McFerrin

I discovered that cygwin has both packages for eventlog and syslog-ng.

I searched for cygwin documentation in man, info, and the command 
itself.  I have them both installed, (says setup.exe) but I can only 
find the command itself for syslog-ng.  With both packages installed, 
I can find limited info on just one of those commands.  Now the other 
command I can't find anything.


I just decided to do some learning.  It's hads to do without any 
documentation.  I'm interested in the cygwin's version as I have a lot 
of time on my hand.


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



Re: Can't find any info on eventvwr or syslog-ng or eventlog

2010-01-18 Thread Paul McFerrin

Subject  should read:  Can't find any info on eventlog and syslog-ng
 

Paul McFerrin wrote:

I discovered that cygwin has both packages for eventlog and syslog-ng.

I searched for cygwin documentation in man, info, and the command 
itself.  I ...


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



Can't ujnmount my /pc filesystem

2010-01-17 Thread Paul McFerrin

Folks:

I have an unwanted filesystem (NFS) mounted as /pc that I need to get it 
unmounted ASAP.  Here is the mount output:

a: /a some_fs binary 0 0
/bin /bin some_fs binary 0 0
C: /c some_fs binary 0 0
D: /d some_fs binary 0 0
E: /e some_fs binary 0 0
/etc /etc some_fs binary 0 0
F: /f some_fs binary 0 0
G: /g some_fs binary 0 0
H: /h some_fs binary 0 0
I: /i some_fs binary 0 0
J: /j some_fs binary 0 0
K: /k some_fs binary 0 0
/lib /lib some_fs binary 0 0
M: /m some_fs binary 0 0
\\linda\c /pc some_fs binary 0 0
N: /n some_fs binary 0 0
O: /o some_fs binary 0 0
P: /p some_fs binary 0 0
Q: /q some_fs binary 0 0
/usr /usr some_fs binary 0 0
# This is default anyway:
# none /cygdrive cygdrive binary,posix=0,user 0 0

Whenever I try to umount it, I get the error message:
.$ umount /pc
umount: /pc: Operation not permitted

It HAS BEEN removed (sometimes) from the mount command but I can still 
do a 'cd' to /pc and see my wife's root drive.  How can I make this 
hard-ass /pc filesystem completely be umounted.


I wana stay on my wife's good side.  A few months ago I did some serious 
damage in which I had to do a complete backup restore to get out of 
trouble.  Is the Operation not permitted normal.  The /pc never goes 
away and it always comes up mounted after a reboot.


Even if the /pc is not shown by /etc/fstab, it still showup in a find 
operation.


- paul


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



slowdown in mv operation

2010-01-17 Thread Paul McFerrin
I have over 12,000 music files I frequently move around using the mv 
command with both source  destination on the same FS.  Under Cygwin 
1.5, this script would act amazedly fast that it would be impossible to 
read your screen..  I do have trace turned on.


Now under Cygwin 1.7, my trace output scrools about 2 lines / second.  
Much slower than Cygwin 1.5.  Has anyone noticed this slow-down.  It is 
so slow that it is very obvious.  I've already destroyed my 1.5 
installation.


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



Lesson on internals; what associates /

2010-01-17 Thread Paul McFerrin

It's time for a lesson in cygwin internals.

What associates the root of a filesystem??

I'm getting an invalid value for /.  i.e.  When I do a cd /, it will 
fail.  I will get the error message: cd: / - No such file or 
directory.  Obviously there is something in the environment it doesn't 
like.  The current directory is at what the new root *should* be.  I'm 
running the latest Cygwin 1.7.1-1


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



I'm confussed: / vs. fstab

2010-01-17 Thread Paul McFerrin
My PC has two instances of cygwin.  My production is 1,7,1-1 while I'm 
trying to get my 1.5 working again.  For my 1.5, I have populated the 
/c/_cygwinCD/etc/fstab with the following contents:


/c/_cygwinCD/etc.$ cat fstab
C:/_cygwinCD/bin on /usr/bin type ntfs (binary,auto)
C:/_cygwinCD/lib on /usr/lib type ntfs (binary,auto)
C:/_cygwinCD on / type ntfs (binary,auto)
A: on /a type unknown (binary)
C: on /c type ntfs (binary)
D: on /d type unknown (binary)
E: on /e type ntfs (binary)
F: on /f type ntfs (binary)
G: on /g type ntfs (binary)
H: on /h type ntfs (binary)
I: on /i type ntfs (binary)
J: on /j type ntfs (binary)
K: on /k type ntfs (binary)

However when I startup the 1.5 system, the root (/) is set inproperly.  
A cd / fails. Some other particulars are:

  PATH=\_cygwinCD\bin;C:\Program Files;...   OK(DOS)
  HOME=/home/Paul
  cd /
  ksh: cd: / - No such file or directory
  ENV=/home/Paul/.bash_login
After reading the section on the mount-point, I thought that shed some 
light on the subject but apparently not.  I also linked etc/fstab to 
etc/fstab.d/Paul but that didn't help.  Can someone identify anything I 
missed in the mount-point section?


Another thought I'm uncertain about.  When you use mount -m as part of 
fstab construction, the mount command does not output the mounted 
filesystems on drive C:


When I re-read the mount-point section again, I discovered that words 
like on and type are not mentioned and should be omitted.  Thus my 
fstab looks like:

C:/_cygwinCD/bin /usr/bin   ntfs (binary,auto)
C:/_cygwinCD/lib /usr/lib   ntfs (binary,auto)
C:/_cygwinCD /   ntfs (binary,auto,override)
A: /a   unknown (binary)
C: /c   ntfs (binary)
D: /d   unknown (binary)
E: /e   ntfs (binary)
F: /f   ntfs (binary)
G: /g   ntfs (binary)
H: /h   ntfs (binary)
I: /i   ntfs (binary)
J: /j   ntfs (binary)
K: /k   ntfs (binary)

Note:  I know that 1.5  1.7 are mutually exclussive.

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



RE: Lesson on internals; what associates / with root

2010-01-17 Thread Paul McFerrin
Never mind.  It's one thing to read something that is written but 
something else when I make a connection.  I have connected.  The 
answer is: fstab.


Paul McFerrin wrote:

It's time for a lesson in cygwin internals.

What associates the root of a filesystem??

I'm getting an invalid value for /.  i.e.  When I do a cd /, it 
will fail.  I will get the error message: cd: / - No such file or 
directory.  Obviously there is something in the environment it 
doesn't like.  The current directory is at what the new root *should* 
be.  I'm running the latest Cygwin 1.7.1-1


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




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



can't umount my /pc filesystem

2010-01-16 Thread Paul McFerrin

Folks:

I have an unwanted filesystem (NFS) mounted as /pc that I need to get it 
unmounted ASAP.  Here is the mount output:

a: /a some_fs binary 0 0
/bin /bin some_fs binary 0 0
C: /c some_fs binary 0 0
D: /d some_fs binary 0 0
E: /e some_fs binary 0 0
/etc /etc some_fs binary 0 0
F: /f some_fs binary 0 0
G: /g some_fs binary 0 0
H: /h some_fs binary 0 0
I: /i some_fs binary 0 0
J: /j some_fs binary 0 0
K: /k some_fs binary 0 0
/lib /lib some_fs binary 0 0
M: /m some_fs binary 0 0
\\linda\c /pc some_fs binary 0 0
N: /n some_fs binary 0 0
O: /o some_fs binary 0 0
P: /p some_fs binary 0 0
Q: /q some_fs binary 0 0
/usr /usr some_fs binary 0 0
# This is default anyway:
# none /cygdrive cygdrive binary,posix=0,user 0 0

Whenever I try to umount it, I get the error message:
.$ umount /pc
umount: /pc: Operation not permitted

It HAS BEEN removed (sometimes) from the mount command but I can still 
do a 'cd' to /pc and see my wife's root drive.  How can I make this 
hard-ass /pc filesystem completely be umounted.


I wana stay on my wife's good side.  A few months ago I did some serious 
damage in which I had to do a complete backup restore to get out of 
trouble.  Is the Operation not permitted normal.  The /pc never goes 
away and it always comes up mounted after a reboot.


Even if the /pc is not shown by /etc/fstab, it still showup in a find 
operation.


- paul


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



minor error from /etc/fstab

2010-01-14 Thread Paul McFerrin
I always get the following error when cygwin1.dll gets loaded for the 
first time:


 1 [main] ksh 3000 read_flags: invalid fstab option - '0'

Anyone know why I see such a message.  On the flip side, every things 
else seems normal.  Here is my mount tab:


$ mount
C:/cygwinV/bin on /usr/bin type ntfs (binary,auto)
C:/cygwinV/lib on /usr/lib type ntfs (binary,auto)
C:/cygwinV on / type ntfs (binary,auto)
//linda/c on /pc type ntfs (binary)
A: on /a type unknown (binary)
C: on /c type ntfs (binary)
D: on /d type unknown (binary)
E: on /e type ntfs (binary)
F: on /f type ntfs (binary)
G: on /g type ntfs (binary)
H: on /h type ntfs (binary)
I: on /i type ntfs (binary)
J: on /j type ntfs (binary)
K: on /k type ntfs (binary)
M: on /m type unknown (binary)
N: on /n type unknown (binary)
O: on /o type unknown (binary)
P: on /p type ntfs (binary)
Q: on /q type unknown (binary)
R: on /cygdrive/r type ntfs (binary,posix=0,user,noumount,auto)



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



Re: Missing documentation on bash

2010-01-14 Thread Paul McFerrin
Folks: 

I'm still having problems getting these .bat files to work under MS 
scheduler.  Okay, I have swore off .bat files and have installed 
cron.  No more interactions between MS-DOS and Cygwin scripting.  
These scripts are totally cygwin scripting.  I'm a happy camper!!


As far as trying bash.  I didn't.

| Folks:
|
|  I can't seemed to find any man pages for bash or other |  |  |  
documentation. I'm having terriable problems is getting my |   .bat/.sh 
script working and I'm thinking changing shells. I |  normally use the 
same routine for all .bat scripts.
| 


| =backup_e.bat==
|  echo off
|  set ENV=/dev/null
|  set PATH=C:\cygwinV\bin;%PATH%
|  SET IS_CYGWIN=true
|  set HISTSIZE=1200
|  set HOME=/dev/null
|  set CYGWIN=tty
|  ksh -c echo off
|  set ENV=/dev/null
|  set PATH=C:\cygwinV\bin;%PATH%
|  SET IS_CYGWIN=true
|  set HISTSIZE=1200
|  set HOME=/dev/null
|  set CYGWIN=tty
|  ksh -c C:/cygwinV/backup_e

| 
|  were the bulk of cygwin's work in done by backup_e
|  until I officially cut over to 1.7. Now only the backup for |  e is 
working. Every other batch script is now fainling.
| 
|  In one batch script, I had to replace a link I used ksh. It |  is 
working now. In another case, I got permission denied with|   the target 
of ksh and mode 766.


|  I'm still playing with this one. If I can only get back to a |   
template that works, I'll be happy.


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



Missing documentation on bash

2010-01-10 Thread Paul McFerrin

Folks:

I can't seemed to find any man pages for bash or other documentation.  
I'm having terriable problems is getting my .bat/.sh script working and 
I'm thinking changing shells.  I normally use the same routine for all 
.bat scripts.


   =backup_e.bat==
echo off
set ENV=/dev/null
set PATH=C:\cygwinV\bin;%PATH%
SET IS_CYGWIN=true
set HISTSIZE=1200
set HOME=/dev/null
set CYGWIN=tty
ksh -c echo off
set ENV=/dev/null
set PATH=C:\cygwinV\bin;%PATH%
SET IS_CYGWIN=true
set HISTSIZE=1200
set HOME=/dev/null
set CYGWIN=tty
ksh -c C:/cygwinV/backup_e

were the bulk of cygwin's work in done by backup_e
until I officially cut over to 1.7.  Now only the backup for e is 
working.  Every other batch script is now fainling.


In one batch script, I had to replace a link I used with ksh.  It is 
working now.  In another case, I got permission denied with the target 
of ksh and mode 766.


I'm still playing with this one.  If I can only get back to a template 
that works, I'll be happy.



And the bulk of the cygwin's work is done by

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



What happens to disappearing programs when ones I used disappear from 1.7.1-1

2010-01-05 Thread Paul McFerrin

Fellows:

I from time to time miss some of my programs AND they are not listed in 
the http://cygwin.com/packages/ page.  One in particular which is a 
heavey hitter for me is col.exe.  I frequenly use the col commad as:


   man pdksh | col -b pdksh.man

It safely removes spaces / backspaces from your formatted text file is 
viewable with your favorite editor.  There might be more that have went 
this way.


Is there an alias that I can use for col.  I did have it in 1.5 but on 
my system, 1.5 was a real mess.


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



Need more instructions in setup.exe

2010-01-05 Thread Paul McFerrin

FOLKS:

How does one get to the util-linux package.  I can't find that 
category  using the standard setup.exe?  I keep seeing this category in 
setup.ini but know where else.


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



Re: C compiler is broken under 1.7.1-1

2009-12-30 Thread Paul McFerrin
Now that's been cleared up, I've reinstalled the default package and the 
C compiler now works.  Should have noticed the ps.exe missing  is a 
clue.  I'm off to getting PHP installed now.


Dave Korn wrote:

Paul McFerrin wrote:
  

Dave Korn wrote:


File crt0.o is missing.  Is it supposed to be?


Nope. It's part of the main cygwin package itself; try reinstalling that 
if it is indeed missing.
  
  
Yes, file crt0.o is missing. What specific package should I reinstall. 



  

Dave Korn wrote:



  

[ ... ] the main cygwin package itself [ ... ]
  


i.e. the cygwin-1.7.1-1 package, which contains the DLL itself along with
supporting headers and libs and utilities.

  

B Default?? ase Devel??



  Those are entire categories, not packages.

cheers,
  DaveK




  


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



Re: MyC Compiled can't compile {}

2009-12-28 Thread Paul McFerrin
I don't have a Linux,  This code has served me very well for years.  It 
is perfect.  I used to be a developer with Glenn Fowler and nmake 
developing compiler probe code for nmake.  If your compiler can't 
compile it, then something is wrong.


I also get error messages about the C compiler with reconfigure 
scripts used to reconfigure a makefile.


If someone can advised me of which packages to uninstall, I'll be happy 
to re-install then,


Christopher Faylor wrote:

On Sun, Dec 27, 2009 at 11:08:52PM -0500, Paul McFerrin wrote:
  

My C compiler is at:
$ ls -l /bin/cc.exe

lrwxrwxrwx 1 paul None 20 2009-12-23 16:09 /bin/cc.exe - 
/etc/alternatives/cc


From my years of experiences, {} is the simplest version of a 
to-be-compiled C program.  It is syntaxily correct.  in any case, the 
above DID work in 1.7-68.



It is not a syntactically correct C program.  Try it on linux if you
are not convinced.

cgf

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


  


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



Re: MyC Compiled can't compile {}

2009-12-28 Thread Paul McFerrin

Well, after all of this discussion, my C compiler IS BROKEN.  I.E.:

echo main{} test.c
/usr/local/mysql-5/mysql-5.1.41.$ cc -O test.c
test.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘{’ token

/usr/local/mysql-5/mysql-5.1.41.$ echo main(){} test.c
/usr/local/mysql-5/mysql-5.1.41.$ cc -O test.c
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: 
crt0.o: No such file: No such file or directory

collect2: ld returned 1 exit status

My suggestion is to completely UNINSTALL C Compiler packages and 
restalled then.  If others agree, could someome tell me which packages 
to uninstall?  Your installation may be working, but mine isn't.


Dave Korn wrote:

Paul McFerrin wrote:
  

I discover my C compiler is broken while performing a configure.



  The compiler is fine.

  

$ echo {} test.c



  Your testcase is nonsense.

  

$ cc -O test.c -o test
test.c:1: error: expected identifier or ‘(’ before ‘{’ token



  The compiler correctly told you so.  What were you expecting?  (Also, what
is 'cc'?  Softlink perhaps?)

cheers,
  DaveK

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


  


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



Re: C compiler is broken under 1.7.1-1

2009-12-28 Thread Paul McFerrin

$ cat test101.c
main(){}

$ cc -O test101.c
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: 
crt0.o: No such file: No such file or directory

collect2: ld returned 1 exit status

find /usr/lib/gcc -type f -name crt0.o -print
$

File crt0.o is missing.  Is it supposed to be?

In either case, file configure does not work (mysql-5.1.41).  It 
complains with:

  checking for C compiler default output file name...
  configure: error: in `/usr/local/mysql-5/mysql-5.1.41':
  configure: error: C compiler cannot create executables

I appreciate the discussion of my memory error, but my compiler is still 
broken!!!  I'm admitting to my memory error.  Let's move forward.


Reid Thompson wrote:

Paul McFerrin wrote:

My C compiler appears to be broken:

.$ cc -v -O test.c

what are the contents of  test.c

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




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



MyC Compiled can't compile {}

2009-12-27 Thread Paul McFerrin

I discover my C compiler is broken while performing a configure.

$ echo {} test.c
$ cc -O test.c -o test
test.c:1: error: expected identifier or ‘(’ before ‘{’ token
/usr/local/mysql-5/mysql-5.1.41.$ cc -V test.c -o test
cc: couldn't run 'i686-pc-cygwin-gcc-test.c': No such file or directory
/usr/local/mysql-5/mysql-5.1.41.$ cc -v test.c -o test
Using built-in specs.
Target: i686-pc-cygwin
Configured with: 
/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure 
--srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var 
--sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man 
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man 
-v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap 
--enable-version-specific-runtime-libs --with-slibdir=/usr/bin 
--libexecdir=/usr/lib --enable-static --enable-shared 
--enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld 
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions 
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers 
--enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp 
--enable-libada --enable-threads=posix --with-arch=i686 
--with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 
CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake 
GNATBIND_FOR_TARGET=gnatbind AS=/opt/gcc-tools/bin/as.exe 
AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe 
LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe 
--with-ecj-jar=/usr/share/java/ecj.jar

Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'test.exe' '-mtune=generic' '-march=i686'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/cc1.exe -quiet -v -D__CYGWIN32__ 
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/../../include/w32api 
test.c -quiet -dumpbase test.c -mtune=generic -march=i686 -auxbase test 
-version -o /c/DOCUME~1/Paul/LOCALS~1/Temp/ccb2jZrY.s
ignoring nonexistent directory 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/include
ignoring duplicate directory 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/../../include/w32api

#include ... search starts here:
#include ... search starts here:
/usr/local/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include-fixed
/usr/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api
End of search list.
GNU C (GCC) version 4.3.4 20090804 (release) 1 (i686-pc-cygwin)
compiled by GNU C version 4.3.4 20090804 (release) 1, GMP version 4.3.1, 
MPFR version 2.4.1-p5.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d5cdab7e958df0270fe64611765e0bb6
test.c:1: error: expected identifier or ‘(’ before ‘{’ token

This is a 1.7.1-1 system.


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



Re: Where did /bin/ps.exe go?

2009-12-27 Thread Paul McFerrin
What I was asking is WHERE IT WAS.  I could not find it.  So I created 
another instance of Cygwin and copied the missing items (~12).  Just 
trying to resolve the problem.


Larry Hall (Cygwin) wrote:

On 12/27/2009 12:18 AM, Gregg Levine wrote:

Paul that happens sometimes if the user simply runs the setup program
using the default setting, not the install setting. Try running
the setup program again and setting it towards the install setting.


Are you reporting a bug?  Do you have a procedure for reproducing this?



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



C compiler is broken under 1.7.1-1

2009-12-27 Thread Paul McFerrin

My C compiler appears to be broken:

.$ cc -v -O test.c
Using built-in specs.
Target: i686-pc-cygwin
Configured with: 
/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure 
--srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var 
--sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man 
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man 
-v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap 
--enable-version-specific-runtime-libs --with-slibdir=/usr/bin 
--libexecdir=/usr/lib --enable-static --enable-shared 
--enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld 
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions 
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers 
--enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp 
--enable-libada --enable-threads=posix --with-arch=i686 
--with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 
CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake 
GNATBIND_FOR_TARGET=gnatbind AS=/opt/gcc-tools/bin/as.exe 
AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe 
LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe 
--with-ecj-jar=/usr/share/java/ecj.jar

Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-O' '-mtune=generic' '-march=i686'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/cc1.exe -quiet -v -D__CYGWIN32__ 
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/../../include/w32api 
test.c -quiet -dumpbase test.c -mtune=generic -march=i686 -auxbase test 
-O -version -o /c/DOCUME~1/Paul/LOCALS~1/Temp/ccB5Y0S8.s
ignoring nonexistent directory 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/include
ignoring duplicate directory 
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/lib/../../include/w32api

#include ... search starts here:
#include ... search starts here:
/usr/local/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/include-fixed
/usr/include
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api
End of search list.
GNU C (GCC) version 4.3.4 20090804 (release) 1 (i686-pc-cygwin)
compiled by GNU C version 4.3.4 20090804 (release) 1, GMP version 4.3.1, 
MPFR version 2.4.1-p5.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d5cdab7e958df0270fe64611765e0bb6
test.c:1: error: expected identifier or ‘(’ before ‘{’ token


What gives? Here is my cygcheck outout that follows:

Cygwin Package Information
Package Version
_update-info-dir00838-1
abook   0.5.6-1
alternatives1.3.30c-10
annoyance-filter1.0d-1
archivemail 0.7.0-1
asciidoc8.4.5-1
aspell  0.60.5-1
aspell-en   6.0.0-1
atool   0.37.0-1
autoconf8-1
autoconf2.1 2.13-10
autoconf2.5 2.65-1
automake4-10
automake1.101.10.3-1
automake1.111.11.1-1
automake1.4 1.4p6-10
automake1.5 1.5-10
automake1.6 1.6.3-11
automake1.7 1.7.9-10
automake1.8 1.8.5-10
automake1.9 1.9.6-10
base-cygwin 2.0-1
base-files  3.9-3
base-passwd 3.1-1
bash3.2.49-23
bc  1.06-2
binutils2.19.51-1
bison   2.3-1
bsdcpio 2.7.1-10
bsdiff  4.3-4
bsdtar  2.7.1-10
bsfilter1.0.15-1
bvi 1.3.2-1
byacc   20090221-1
bzip2   1.0.5-10
cdargs  1.35-1
cdda2wav1.1.7.1-1
cdrkit  1.1.7.1-1
chere   1.1-1
chewmail1.2-1
clamav  0.95.3-1
clisp   2.48-3
coreutils   7.0-2
cpio2.9.90-5
cron4.1-57
crypt   1.1-1
csih0.9.1-1
ctags   5.8-1
curl7.19.6-1
cvs 1.12.13-10
cygutils1.4.1-2
cygwin  1.7.1-1
cygwin-doc

Re: MyC Compiled can't compile {}

2009-12-27 Thread Paul McFerrin

My C compiler is at:
$ ls -l /bin/cc.exe

lrwxrwxrwx 1 paul None 20 2009-12-23 16:09 /bin/cc.exe - 
/etc/alternatives/cc


From my years of experiences, {} is the simplest version of a 
to-be-compiled C program.  It is syntaxily correct.  in any case, the 
above DID work in 1.7-68.


I was doing a configure when it failed the first time:
checking for C compiler default output file name...
configure: error: in `/usr/local/mysql-5/mysql-5.1.41':
configure: error: C compiler cannot create executables
See `config.log' for more details.

== config.log  =
configure:4098: result: /bin/pdflatex
configure:4108: checking for makeindex
configure:4126: found /bin/makeindex
configure:4139: result: /bin/makeindex
configure:4395: checking whether build environment is sane
configure:4438: result: yes
configure:4441: checking whether make sets $(MAKE)
configure:4463: result: yes
configure:4539: checking for gawk
configure:4566: result: gawk
configure:4625: checking for gcc
configure:4641: found /bin/gcc
configure:4652: result: gcc
configure:4884: checking for C compiler version
configure:4892: gcc --version 5
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4896: $? = 0
configure:4903: gcc -v 5
Using built-in specs.

Does this help you???


Dave Korn wrote:

Paul McFerrin wrote:
  

I discover my C compiler is broken while performing a configure.



  The compiler is fine.

  

$ echo {} test.c



  Your testcase is nonsense.

  

$ cc -O test.c -o test
test.c:1: error: expected identifier or ‘(’ before ‘{’ token



  The compiler correctly told you so.  What were you expecting?  (Also, what
is 'cc'?  Softlink perhaps?)

cheers,
  DaveK

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


  


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



Where did /bin/ps.exe go?

2009-12-26 Thread Paul McFerrin
My .profile was setup to perform some intelligent switching between 
procps() and ps() when I discovered there was no ps.exe.  Did it really 
disappear??  Can't find it in setup2.ini.


Paul McFerrin wrote:
Doing my bi-weekly update of my 1.7 installation, I noticed that it 
download my whole installation again and took at least an hour to 
perform at RR speeds.  I was in the hospital for a while so I was out 
of it for a while when I deleted a bunch of old mail messageg but I 
looked first.

My cygwin1.dll is dated:
-rwxr-xr-x 1 paul root 2477884 2009-12-04 11:10 /bin/cygwin1.dll
and the sub-sersion is 68.  Did I catch it at the wrong time?
(That was an hour download at 55kb/sec)

Did I just pass thru the Twilight Zone?? :+)

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




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



Re: Where did /bin/ps.exe go?

2009-12-26 Thread Paul McFerrin

Ok.  What package do I have to reinstall to get my ps.exe back?

Christopher Faylor wrote:

On Sat, Dec 26, 2009 at 09:57:49PM -0500, Paul McFerrin wrote:
  
My .profile was setup to perform some intelligent switching between 
procps() and ps() when I discovered there was no ps.exe.  Did it really 
disappear??  Can't find it in setup2.ini.



1) There is no setup2.ini.

2) You wouldn't find ps.exe in setup since it is part of the cygwin
package itself.

cgf

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


  


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



Re: A question about setup.exe

2009-12-24 Thread Paul McFerrin
Does anyone know where the MTIMES of the installed packages are stored.  
I need to over-ride them all in order to re-install the packages.  I 
could NOT find the http/ftp directory containing the files installed.


So I went through to check reinstall on every package (whew) and 
downloaded the complete installation into a local directory.  Fine.


I just need to slightly adjust the MTIME to setup to reinstall the 
packages.  When I did a full-restore, the software used the current time 
as it's MTIME which has no meaning anymore.  If I can't get these issues 
resolved, I'll have to to a full install of 1.7 AND add back/test all of 
my local stuff.


Basically what I have:
   A full installation of 1.7.0-65 with current time as MTIME.
(useless)
  A full installation of Cygwin 1.7 download into local directory.
  No way to make #1  #2 to meet!!
 


Andy Koppe wrote:

2009/12/24 Paul McFerrin:
  

I did the upgrade to 1.7.1-1 without any problems.  During the remainder of
the day, I accidentally blew away my installation of 1.7.1-1.  I restored my
installation from a backup several days old (1.7.0-65).  Now I'm trying to
upgrade again.

Now the questions I have are:
When I run setup again, it downloads/installes everything in under a minute
instead of the hour previously.



It wouldn't need to download the packages again, because they should
still be stored in setup.exe's local package directory. So it only
needs to do the install.

  

How can I force all of my installed
packages obsolete to force a reload?



If the backup and restore went correctly, you shouldn't need to,
because the install state of all packages is stored in the cygwin
directory, in /etc/setup. You can see which packages are going to be
upgraded by switching to the Partial view on setup.exe's package
selection screen.

Andy

  


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



Re: A question about setup.exe

2009-12-24 Thread Paul McFerrin
OKAY... I finally realized that MTIME was not used by setup.  I now have 
my installation completely restored.  I used file 
/etc/setup/installed.db to trick setup to do a forced install.


1. Have a running cygwin system available
2. Run setup thru the Package Selection pages but NOT beyond
3. On your running cygwin system, delete all but 1st line in file 
/etc/setup/installed.db.

4. Shutdown your running cygwin sysrem
5.  Click the NEXT button in setup and your re-installation will begin.

Christopher Faylor wrote:

On Thu, Dec 24, 2009 at 03:05:57PM -0500, Paul McFerrin wrote:
  
Does anyone know where the MTIMES of the installed packages are stored.  
I need to over-ride them all in order to re-install the packages.  I 
could NOT find the http/ftp directory containing the files installed.



You're assuming a mechanism that doesn't exist.

Setup doesn't use MTIME.  It makes the decision to install based on
version numbering.  The information is stored in /etc/setup.

cgf

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


  


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



Borken link on cygwin.com home page

2009-12-23 Thread Paul McFerrin

On the home page for cygwin.com, these is a broken link at:

Latest Cygwin DLL release version is
  1.7.1-1  (broken link) 
http://cygwin.com/ml/cygwin-announce/2009-12/msg000XX.html


I'm cleaning up my 1.5 distro.  Boy I didn't tkink that day would come!
Good work to all you developers that contributed to this undertaking!

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



A question about setup.exe

2009-12-23 Thread Paul McFerrin
I did the upgrade to 1.7.1-1 without any problems.  During the remainder 
of the day, I accidentally blew away my installation of 1.7.1-1.  I 
restored my installation from a backup several days old (1.7.0-65).  Now 
I'm trying to upgrade again.


Now the questions I have are:
When I run setup again, it downloads/installes everything in under a 
minute instead of the hour previously.  How can I force all of my 
installed packages obsolete to force a reload?  I hate to spend all that 
time checking the 200+ boxes on the packages page?


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



Did I missing the official announcement that 1.7 went official?

2009-12-21 Thread Paul McFerrin
Doing my bi-weekly update of my 1.7 installation, I noticed that it 
download my whole installation again and took at least an hour to 
perform at RR speeds.  I was in the hospital for a while so I was out of 
it for a while when I deleted a bunch of old mail messageg but I looked 
first.

My cygwin1.dll is dated:
-rwxr-xr-x 1 paul root 2477884 2009-12-04 11:10 /bin/cygwin1.dll
and the sub-sersion is 68.  Did I catch it at the wrong time?
(That was an hour download at 55kb/sec)

Did I just pass thru the Twilight Zone?? :+)

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



Re: Can't build PHP 5.3.1 under Cygwin 1.7.0-68

2009-12-10 Thread Paul McFerrin


More obstacles.
Referring to libxml2, the xml-config scripts reports version 1.8.17 
while configure states minimum version 2.6.11.


I also looked at cygports site and afer 2 invocation of setup.exe where 
I usede the -X option, libxml2 disappeared from the download list.


Now I'm wondering what I would be missing if I use --disable_libxml2 
and forget about libxml2 all together.??


About setup.exe, is there a way to clear/uncheck everything when dealing 
with cygports?  I don't like wasting time  bandwidth for throw-aways.


Paul McFerrin wrote:
I have the 5.3.1 distro and also have libxml2 (2.7.4-1).  There is one 
major obstacle in the configure script.  Since the xml2 distro does 
NOT have a file named libxml2-configure, it gives up.  Where can I 
find a copy of this file???  I tried using --with-libxml-dir /bin 
without any sucess.


Was this an over-sight in the cygwin 1.7 distro??

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




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



Re: [REQ] Please package SendMail for Cygwin

2009-12-09 Thread Paul McFerrin

On another side note...
There is a product from sourceforge.net called msmtp which can be 
configured either as a smtp client or as a replacement for sendmail.  I 
myself downloaded the sources and sucessfully compiled it all under 
cygwin 1.7-67.  I've been using msmtp as a smtp client without any 
problems under cygwin1.7 for the past 2 months.  I believe the download 
link is at: 
https://sourceforge.net/projects/msmtp/files/msmtp/1.4.19/msmtp-1.4.19.tar.bz2/download


Enjoy...
Andy Koppe wrote:

2009/12/8 Chip Panarchy:
  

As I'm still having compilation problems, could someone else please
create a SendMail package for Cygwin?



While waiting for that to happen, have a look at exim, or – in case
all you actually need is forwarding to a remote server – ssmtp.

Andy

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


  


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



Can't build PHP 5.3.1 under Cygwin 1.7.0-68

2009-12-09 Thread Paul McFerrin
I have the 5.3.1 distro and also have libxml2 (2.7.4-1).  There is one 
major obstacle in the configure script.  Since the xml2 distro does 
NOT have a file named libxml2-configure, it gives up.  Where can I 
find a copy of this file???  I tried using --with-libxml-dir /bin 
without any sucess.


Was this an over-sight in the cygwin 1.7 distro??

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



Re: Defunct processes with 1.5.25-15; seemingly reproducible

2009-11-26 Thread Paul McFerrin
A defunct process is not necesarily the real problem.  All defunct 
process are processes that their parent has NOT done a wait(2) yet.  
Since these defunct processes have called exit(2), they must hang 
around until a wait(2) is completed so that the exit status can be 
returned to the parent.


   You need to understand more of the parent/child relationship before
   you can pass blame, if any.



Dave Steenburgh wrote:

cgf wrote:
  

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



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

Dave Steenburgh wrote:
  

$ ps
 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
...
416412887684   55046 1003 23:49:20
539232245984   61005 1003 23:49:06 defunct
145252405984   81045 1003 23:49:06 defunct
524032245984   45325 1003 23:49:06 defunct
...



...
  

The PIDs seem to be the same every time this happens.  Specifically, I
have seen 5240 and 1452 every time.  Whether that's significant, I
don't know.



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

$ ps
...
 524032245984   45325 1003 23:49:06 defunct
 416412887684   55046 1003 23:49:20 defunct
 539232245984   61005 1003 23:49:06 defunct
...

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

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


  


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



Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-66

2009-11-25 Thread Paul McFerrin
I just downloaded cygwin 1.7 and received version -65 instead from 
mirror.nyi.net (http).  What is wrong?


.$ uname -v
2009-11-19 10:07

Did I catch the download in the middle of a critical update?

Corinna Vinschen wrote:

Hi folks,


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

If this doesn't introduce any new regressions, this will (probably)
be the last test release.


Bugfixes in relation to 1.7.0-65:


- Fix the problem that 64 bit DLLs are accidentally getting a .exe
  suffix when renaming them.

- Fix two potential socket handle leaks introduced in -64.

- Fix security vulnerability in gdtoa:
  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689

The next bugfix had been applied to 1.7.0-65 already.  I just forgot
to mention it:

- Fix a bug in the fast math tan() implementation for x87 FPUs.


FAQ:


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

  A: The `uname -v' command prints 2009-11-25 13:41


Have fun,
Corinna


  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

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

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

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

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

  


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



Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-66

2009-11-25 Thread Paul McFerrin

I understand completely now that I know the mirrors operate in pull mode.

Larry Hall (Cygwin) wrote:

On 11/25/2009 04:30 PM, Christopher Faylor wrote:

On Wed, Nov 25, 2009 at 03:42:45PM -0500, Paul McFerrin wrote:

I just downloaded cygwin 1.7 and received version -65 instead from
mirror.nyi.net (http).  What is wrong?

.$ uname -v
2009-11-19 10:07

Did I catch the download in the middle of a critical update?


Huh?  No.  Mirrors use a pull mechanism, not a push mechanism.  If the
mirror doesn't have the latest version of cygwin that means it hasn't
pulled it from cygwin.com yet.


Chris, you just beat me to this. :-)  The only thing I'd add is you 
need to
either be more patient 
(http://cygwin.com/ml/cygwin/2009-11/msg00842.html)

or more vigilant/exhaustive in your search.  In the vigilant/exhaustive
category, you would have found what you were looking for with this mirror
http://cygwin.elite-systems.org/.  Of course, I'm not saying this 
mirror will

always be the most up-to-date.  That's where the exhaustive part comes
in. ;-)



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



Re: Parallel downloading of Cygwin packages

2009-10-30 Thread Paul McFerrin

Don't you mean, Stand in line? :)

Christopher Faylor wrote:

On Fri, Oct 30, 2009 at 01:19:58PM +0100, Ron de Bruijn wrote:
  

I use the latest installer, but it only uses one mirror to download
packages from at the same time.  I have the impression that the mirror
I selected only gives about 30KB/s, which makes installing Cygwin slow.
What I would like the installer to do is to download from all mirrors
in parallel different packages and in case one mirror doesn't respond
that it just drops that one and uses another one.  The mirrors together
should be able to saturate my connection.



I'd like the installer to use a more intuitive UI, be more capable of
running from the command line, and be able to handle RPMs.

FYI.

cgf

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


  


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



Re: cygcheck -cd : No setup information

2009-10-25 Thread Paul McFerrin

Here is my ENTIRE chgcheck -c output:
$ cygcheck -c
Cygwin Package Information
No setup information found

The -s option does provide system information but without the package 
info but at the end, I get the following:

Cygwin Package Information
No setup information found
Use -h to see help about each section
'id' program not found
'id' program not found
/etc/setup.$ type id
id is /bin/id
$ id
uid=1003(paul) gid=513(None) 
groups=0(root),544(Administrators),545(Users),1005(AcronisBackupServerUsers),513(None),544(Administrators),545(Users),1005(AcronisBackupServerUsers),513(None)


The installed.db contains 414 records including the following:
   INSTALLED.DB 2
   base-cygwin base-cygwin-2.0-1.tar.bz2 0
   cygwin cygwin-1.7.0-62.tar.bz2 0
   cygwin-doc cygwin-doc-1.5-1.tar.bz2 0

Now if we can only have better clues as to what is wrong.  The error 
message No setup information found is not a very helpful clue.

The same error as my fresh install on cygwin onto my USB Flash drive.


Dave Korn wrote:

Paul McFerrin wrote:

  

What setup information is chgcheck looking for?  File
/etc/setup/installed.db is present.  



  That's where it ought to be looking.  Does it contain a line with the cygwin
version?  Has something gone wrong with the mount points?  What do you see
when you run a plain cygcheck -cd without grepping it all away, is there a
package list at all or not?

cheers,
  DaveK

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


  


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



Re: cygcheck -cd : No setup information

2009-10-25 Thread Paul McFerrin

Well, in end the something changed and cygcheck is working again

I download the cygwin sources and rebuilt the whole source tree.  Once 
confident that cygcheck.exe built, I then modified dump_setup.cc and 
slightly modified the 3 possible error messages I was seeing.  This way 
I can know which one was printing.  Then rebuilt.


When I started testing, I realized that I was picking up the installed 
version in /bin.  It started working again without me making any changes.


Since I did however downloaded the sources, the following files were 
touched:


-rw-r--r-- 1 paul root   301 Oct 25 16:59 base-files.lst.gz
-rw-r--r-- 1 paul root 15528 Oct 25 17:02 installed.db
-rwxrwxrwx 1 paul None42 Oct 25 17:02 last-mirror
-rwxrwxrwx 1 paul None 0 Oct 25 17:02 last-extrakeys
-rwxrwxrwx 1 paul None 7 Oct 25 17:02 last-connection
-rwxrwxrwx 1 paul None19 Oct 25 17:02 last-cache
-rwxrwxrwx 1 paul None17 Oct 25 17:02 last-action

So just by downloading something, the problem went away  (Humm).  I 
can't explain this or reproduce it anymore



Paul McFerrin wrote:

Here is my ENTIRE chgcheck -c output:
$ cygcheck -c
Cygwin Package Information
No setup information found

The -s option does provide system information but without the package 
info but at the end, I get the following:

Cygwin Package Information
No setup information found
Use -h to see help about each section
'id' program not found
'id' program not found
/etc/setup.$ type id
id is /bin/id
$ id
uid=1003(paul) gid=513(None) 
groups=0(root),544(Administrators),545(Users),1005(AcronisBackupServerUsers),513(None),544(Administrators),545(Users),1005(AcronisBackupServerUsers),513(None) 



The installed.db contains 414 records including the following:
   INSTALLED.DB 2
   base-cygwin base-cygwin-2.0-1.tar.bz2 0
   cygwin cygwin-1.7.0-62.tar.bz2 0
   cygwin-doc cygwin-doc-1.5-1.tar.bz2 0

Now if we can only have better clues as to what is wrong.  The error 
message No setup information found is not a very helpful clue.

The same error as my fresh install on cygwin onto my USB Flash drive.


Dave Korn wrote:

Paul McFerrin wrote:

 

What setup information is chgcheck looking for?  File
/etc/setup/installed.db is present.  


  That's where it ought to be looking.  Does it contain a line with 
the cygwin
version?  Has something gone wrong with the mount points?  What do 
you see
when you run a plain cygcheck -cd without grepping it all away, is 
there a

package list at all or not?

cheers,
  DaveK

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


  


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




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



Re: cygcheck -cd : No setup information

2009-10-25 Thread Paul McFerrin
What gives.  I see thru-out the source code reference to fopen(a, ..., 
rt) but when I look at the various manual paes for fopen, I find 
nothing about the t.  What is t?  Any GURU want to answer?




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



Re: cygcheck -cd : No setup information

2009-10-25 Thread Paul McFerrin



Larry Hall (Cygwin) wrote:

On 10/25/2009 09:47 PM, Paul McFerrin wrote:

What gives.  I see thru-out the source code reference to fopen(a, ...,
rt) but when I look at the various manual paes for fopen, I find
nothing about the t. What is t? Any GURU want to answer?


The opposite of rb.  b = binary.  t = text.  Yes, I agree.  Yuck!

I'm glad there IS some logic to it.  The only thing could come up with 
is t for the sticky-bit.  That made no sense with me.  Thanks.


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



cygcheck -cd : No setup information

2009-10-24 Thread Paul McFerrin
I just got gone setting up a cygwin 1.7 installation on my USB flash 
drive.  Everything look good except for one thing.  When I do the following:


$ cygcheck -cd cygwin|sed -e 1,2d -re s/cygwin[ \t]+//   
$ cygcheck -cd cygwin

Cygwin Package Information
No setup information found

The flash drive was loaded running setup to download and install cygwin.

What setup information is chgcheck looking for?  File 
/etc/setup/installed.db is present.  The execution of setup-1.7.exe 
finished normally.



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



Re: gawk Has Problem With CRLF in Mixed Binary/Text Files

2009-10-22 Thread Paul McFerrin
I don't have an answer to your specific problem.  But as a side issue, I 
see that your PATH is very long.  You might consider using a lot of hard 
links say in a directory /lbin with a buch of hard links to the real 
executables in other directories.  You can then shorten PATH and remove 
those duplicate directories.  Just be sure that /bin:/lbin is in PATH.  
The hard links would have to be recreated if you perform any upgrades to 
some things.


Hard links works outside of cygwin since they are implemented at the MS 
filesystem level.  Cygwin symbolic links are different from MS symbolic 
links.  Choose wisely.  Reminder: hard links can't cross FS boundaries


P.A.Long wrote:

t.a.n.s.t.a.a@comcast.net wrote:

Hello!

I am using a gawk script on files that contain both printing 
characters and binary data.  Gawk is used to modify a few of the 
printing characters, and I expected that the binary data should be 
left alone.  For the most part, it is, but upon occasion a CRLF will 
appear inside some of the binary data.  All my mounts are binary (see 
cygcheck.srv, which is from my laptop), but as can be seen by the 
attached files, the downloaded 


 *** snip ***

sigh ... didn't get 'cygcheck.srv' attached; sorry about that!

Thx, Phil Long
  File:  cygcheck.srv 




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


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



Re: Contents of /usr/share/man/man2 is empty

2009-10-18 Thread Paul McFerrin
I already found a source: http://www.bigbiz.com/cgi-bin/listman?2 which 
contains ascii formatted man pages for Linux.  I used curl(1) to 
download the man pages, converted back to man(1) format, and installed 
them.  I'm sure there are other pages besides the syscall version.  At 
least I have a more current copy.  My old version is at least 10 years 
old. Before B20 of Cygwin.


Is Linux open-source??  Is is legal/possible to use these applicable pages?

Andy Koppe wrote:

2009/10/18 Paul McFerrin:
  

Yes, it is an emulation of a Kernel



No, there is no _syscall interface into the kernel as there is on
Linux and elsewhere. Cygwin emulates the C library layer instead.

However, looking at my Debian system after installing the
'manpages-dev' package, 'man 2' is actually taken to mean 'library
system calls', i.e. it contains all the C-level wrappers around the
actual syscalls. Those include many standard POSIX functions that
Cygwin does implement, i.e. the likes of fork() and mknod().

So I guess a volunteer is needed to identify the pages that do apply
and package them up.

Apart from that, I find the POSIX spec is a great resource for this
sort of thing, e.g.:
http://www.opengroup.org/onlinepubs/95399/functions/fork.html

And there are various online versions of the Linux man pages, e.g.:
http://linux.die.net/man/2

Andy

  


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



Re: Version error from set-1.7.exe

2009-10-18 Thread Paul McFerrin



Dave Korn wrote:

Paul McFerrin wrote:
  

What exactly is: local package directory.



  It's the directory where setup.exe keeps local copies of all the packages it
installs, which you select on the fourth screen of setup.exe.

  

  My directory (/updates) is
void of any *.ini files and it still complains.  The only file close
in my whole installation is a setup-2.ini which always seem to get
re-created.  Is maybe the mirror-site has an out-of-date .ini file? 
(/updates/ftp%3a%2f%2fmirror.internode.on.net%2fpub%2fcygwin%2f)



  Nah, it's maybe because I had my head on back-to-front when I wrote that
first reply:

  

  The current .ini file is from a newer version of setup.exe ...



  What you actually need to do is download a fresh copy of setup-1.7.exe from
the cygwin website.  'scuse my confusion.

cheers,
  DaveK
  


I'll postpone that activity til version cygwin 1.7 becomes official.

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


  


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



Re: Contents of /usr/share/man/man2 is empty

2009-10-18 Thread Paul McFerrin

FYI:

I'm making my work on this subject available to any one who want to 
download my work.  At

http://pmcferrin.homedns.org/lman2.cpio.gz
is a copy of the Linux/BSD manual pages of Section 2 of the man 
directory.  If these man pages symbols are NOT in cygwin1.dll file, the 
files has been moved to a .deleted directory.


Please be advised that this TOTALLY UNOFFICIAL.  They have NOT been 
reviewed for correctness with Cygwin.  They are however a valuable 
resource.   Enjoy.  I would advised putting these pages into a local man 
directory, separate from system installation.  They were downloaded from:

http://www.bigbiz.com/cgi-bin/listman?2
which were PRE pre-formatted .html files converted back to man files; 
including B  I processing for dumb rxvt windows.
   


Andy Koppe wrote:

2009/10/17 Paul McFerrin:
  

I noticed that /usr/share/man contains a man2 sub-directory but it is
empty.  Any particular reason?  I have Category Cygwin-doc installed for
cygwin 1.7 but I am missing all man pages for Section 2 of the manual.



Section 2 is system calls, which don't exist on Cygwin, because it's a
POSIX implementation on top of Win32 rather than an emulation of a
Unix kernel.

Andy

  


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



Re: How to deny directory-access for one dedicated user

2009-10-17 Thread Paul McFerrin
I agree with Dave with trying to deny access to a particular user under 
cygwin.  The support is not there.  I will touch on an actual feature 
that provides this capability.
Under Amdahl UTS Unix, e.g. SVR3 like, there was feature that relied on 
the proper implementation of the chroot(2) system call.  You can give 
the restricted user his own login space and make available certain other 
filesystems mounted for the restricted to give him/her what they 
actually  allowed to have access to, and no more.  Login was modified to 
look for a * in the password field to signify a sub-login with the 
passwd home directory as the argument to execute the chroot(2) system 
call and thereby execute login again under the new chroot.
In order for this to be effective, one must execute caution in setting 
up this painful and elaborate work in achieving the desired environment 
for the restricted user.  Without a real chroot(2) syscall, it really 
can't be done.


Cygwin as it stands today can't provide a true restricted environment if 
it provides general access to hard (C:/pathnames/) drives.  Unless the 
PC itself is restrictive (limited networking).


The above is my personal opinion on this subject and does not reflect  
management views.


Dave Korn wrote:

Matthias Meyer wrote:

  

How to solve my goal?
The user backup should backup all data but not certain directories.



  It cannot be done.  Your two requirements amount to:

1- I want the backup user to be able to access all files and directories
without restriction.
2- I want the backup user to be restricted from accessing certain files and
directories.

  As a matter of plain logic, these requirements just cannot both be satisfied
simultaneously in the same universe!  There is no means to give the backup
user privileges to access only-some-but-not-all of the files that the ACLs say
it should not have access to, because it would essentially require an entire
second level of ACLs on every file in the system to keep track of which files
the backup privilege gave access to and which files it did not.

cheers,
  DaveK


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


  


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



Contents of /usr/share/man/man2 is empty

2009-10-17 Thread Paul McFerrin
I noticed that /usr/share/man contains a man2 sub-directory but it is 
empty.  Any particular reason?  I have Category Cygwin-doc installed for 
cygwin 1.7 but I am missing all man pages for Section 2 of the manual.


I've been relying on the BSD distribution of the man pages and I get the 
Section 2 from there.


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



Version error from set-1.7.exe

2009-10-17 Thread Paul McFerrin
I need a little help is getting rid of a pop-box from setup-1.7.exe: 
stating:

  The current .ini file is from a newer version of setup.exe ...

I looked high  low for a setup.ini on my system and can not find one.  
Where is it locating one?  I've re-download setu-1.7.exe from the web 
site.and I still get the pop-up box.


I only wish that such pop-box's give the complete location of the file 
it is complaining about.


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



Re: Version error from set-1.7.exe

2009-10-17 Thread Paul McFerrin
What exactly is: local package directory.  My directory (/updates) is 
void of any *.ini files and it still complains.  The only file close 
in my whole installation is a setup-2.ini which always seem to get 
re-created.  Is maybe the mirror-site has an out-of-date .ini file?  
(/updates/ftp%3a%2f%2fmirror.internode.on.net%2fpub%2fcygwin%2f)


Dave Korn wrote:

  (Sorry, accidentally hit Ctrl+enter when I was trying to press Ctrl+v
followed by enter and ended up sending an empty reply.)

Paul McFerrin wrote:
  

I need a little help is getting rid of a pop-box from setup-1.7.exe:
stating:
  The current .ini file is from a newer version of setup.exe ...

I looked high  low for a setup.ini on my system and can not find one. 
Where is it locating one?  I've re-download setu-1.7.exe from the web

site.and I still get the pop-up box.

I only wish that such pop-box's give the complete location of the file
it is complaining about.



  The setup.ini file it is referring to is in your local package directory.
You could fix it by blowing that away, or by just downloading the newer
version of setup.exe.

cheers,
  DaveK



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


  


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



Re: Contents of /usr/share/man/man2 is empty

2009-10-17 Thread Paul McFerrin
I'm a retired programmer, disabled, and several strokes.   I find my use 
of man pages extremely useful.  More than usual.  Are you saying that 
Section 2 of the man pages really don't exist?  That's a shame.


I'm off looking for a more recent Unix version.

Dave Korn wrote:

Andy Koppe wrote:
  

2009/10/17 Paul McFerrin:


I noticed that /usr/share/man contains a man2 sub-directory but it is
empty.  Any particular reason?  I have Category Cygwin-doc installed for
cygwin 1.7 but I am missing all man pages for Section 2 of the manual.
  

Section 2 is system calls, which don't exist on Cygwin, because it's a
POSIX implementation on top of Win32 rather than an emulation of a
Unix kernel.



  ... so the answer to the question, Why is it there, would be that it's a
superfluous hanger on, debris, an epiphenomenal artifact of some build process
somewhere in some respect; i.e., best possible advice is Don't worry about it
nor waste time looking into it unless you care just to satisfy your
intellectual curiosity.

cheers,
  Dave

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


  


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



HELP- Can't umount wife pc as /pc

2009-10-09 Thread Paul McFerrin
The other week I mounted my wife's PC as /pc and when I was finished I 
completely forgot about it.  I was wonder why /pc was filled with a lot 
of stuff and didn't realized it was still mounted.


Now that I relized it, using umount V 1.10, I can NOT umount it without 
getting the error:

  umount: /pc: Operation not permitted

My pc was just booted 15 minutes earlier and can't umount it.  What do I 
do?  I tried moving it and got:

mv: cannot move `pc' to `...pc': Device or resource busy
I tried completely to unload/reload cygwin1.dll and no change.

The mount-point is fully operational:
 /pc.$ ls -l | head
total 2537878
drwxrwxrwt+ 1 Administrators SYSTEM0 Oct  9 18:18 4DEmbroidery
-rw-r--r--  1      0 Aug 11  2004 AUTOEXEC.BAT
-rw-r--r--  1      0 Aug 11  2004 CONFIG.SYS
drwxr-xr-x  1      0 Oct  1 17:03 Config.Msi
drwxrwxrwt+ 1      0 Oct  9 18:18 Corel
drwxrwxr-x+ 1 Administrators root  0 Nov 14  2008 Documents 
and Settings

drwxrwxrwt+ 1      0 Oct  9 18:26 MyFiles
-r--r--r--  1      47564 Aug  4  2004 NTDETECT.COM
drwxr-xr-x  1      0 Oct  1 17:03 Program Files


My chycheck -cd output follows:
===
$ cygcheck -cd
Cygwin Package Information
Package Version
_update-info-dir00833-1
abook   0.5.6-1
alternatives1.3.30c-10
annoyance-filter1.0d-1
archivemail 0.7.0-1
asciidoc8.4.5-1
aspell  0.60.5-1
aspell-en   6.0.0-1
atool   0.37.0-1
autoconf7-10
autoconf2.1 2.13-10
autoconf2.5 2.64-10
automake4-10
automake1.101.10.2-10
automake1.111.11-10
automake1.4 1.4p6-10
automake1.5 1.5-10
automake1.6 1.6.3-11
automake1.7 1.7.9-10
automake1.8 1.8.5-10
automake1.9 1.9.6-10
base-cygwin 2.0-1
base-files  3.8-4
base-passwd 3.1-1
bash3.2.49-23
bc  1.06-2
binutils2.19.51-1
bsdcpio 2.7.1-10
bsdiff  4.3-4
bsdtar  2.7.1-10
bsfilter1.0.15-1
bvi 1.3.2-1
bzip2   1.0.5-10
cdargs  1.35-1
cdda2wav1.1.7.1-1
cdrkit  1.1.7.1-1
chere   1.1-1
chewmail1.2-1
clamav  0.95.2-1
clisp   2.48-2
coreutils   7.0-2
cpio2.9.90-5
cron4.1-57
crypt   1.1-1
csih0.9.1-1
ctags   5.7-1
cvs 1.12.13-10
cygutils1.4.0-1
cygwin  1.7.0-62
cygwin-doc  1.5-1
cygwin-x-doc1.1.0-1
dash0.5.5.1-2
db2 2.7.7-5
deroff  1.1-1
desktop-file-utils  0.15-2
diffutils   2.8.7-1
e2fsprogs   1.35-3
ed  1.0-1
editres 1.0.3-2
editrights  1.01-2
email   3.1.2-2
exim4.69-51
expat   2.0.1-1
fcrackzip   0.3-1
fetchmail   6.3.9-1
fftw3   3.2.2-1
fftw3-doc   3.2.2-1
file5.00-3
findutils   4.5.4-1
font-adobe-dpi100   1.0.0-1
font-adobe-dpi751.0.0-1
font-alias  1.0.1-1
font-bh-dpi100  1.0.0-1
font-bh-dpi75   1.0.0-1
font-bh-lucidatypewriter-dpi100 1.0.0-1
font-bh-lucidatypewriter-dpi75  1.0.0-1
font-bitstream-vera-ttf 1.10-1
font-cursor-misc1.0.0-1
font-dec-misc   1.0.0-1
font-encodings  1.0.2-1
font-misc-misc  1.0.0-1
font-util   1.0.1-1
font-xfree86-type1  1.0.1-1
fontconfig  2.7.3-1
fortune 1.99.1-2
gamin   0.1.10-10
gawk3.1.7-1
gcc-core3.4.4-999
gcc-g++   

Re: [Bug-wget] Timeouts too long?

2009-10-03 Thread Paul McFerrin
I've written a small  nifty program that will terminate a command line 
after N seconds.  It was written nearly 18 years ago and has served me 
very well.  I'm not saying that you always live with bad program design, 
but having a solution is quite nice.  The usage is:

tcmd [-s {sig#}] [-t secs] [-x] cmd args ...

Ejoy.  This one is on me.

Here is the source, compile for yourselves.

#ident  @(#)tcmd.c - NCP 1.1  08/28/91  -  PEM

/*
   Execute the command line and terminate if it does
   not complete within a specified time limit.

   Usage:
   tcmd [-s signal] [-t secs] [-x] cmd args ...

   Upon timeout, signal signal (default is SIGTERM) is
   sent to all children in child process group.

   Exit codes:
 0 = success
   254 = timed-out
   253 = execvp() failed for cmd
   252 = fork() failed
   251 = usage() exit
   128-146 = cmd terminated with signal 'sig - 127'
   all_others = exit status of cmd

   Author: Paul E. McFerrin, 55821, Aug 27, 1991

*/


#include stdio.h
#include signal.h
#include errno.h

extern int errno, optind;
extern char *optarg;
int tlimit; /* allowed time limit */
int ksig;   /* signal to use to terminate */
int timeout();  /* alarm clock signal catcher */
int timedout;   /*  0 if execution timed out */
int childpid;   /* pid of chil process */
char*cmd;   /* the name of our process, argv[0] */

main( argc, argv )
int argc;
char*argv[];
{
   int xflag, opt, i, status, ws, myuid;

   myuid = getuid();   /* remember our real-uid */
   cmd = *argv;/* save our name is global area */
   tlimit = 30;/* default 30 seconds */
   ksig = SIGTERM; /* default terminate signal */
   xflag=0;
   timedout = 0;
   if( argc = 1 ) usage();/* no return */

   while ( (opt = getopt(argc, argv, s:t:x)) != EOF ) {
   switch (opt) {
   case 'x' :
   xflag = 1;
   break;
   case 't' :
   tlimit = atoi(optarg);
   if( tlimit = 0) {
   fprintf(stderr, %s: time limit must be 
 0\n,

   cmd);
   usage();
   }
   break;
   case 's' :
   ksig = atoi(optarg);
   if( ksig  1 || ksig  SIGUSR2 ) {
   fprintf(stderr, %s: bad signal number: 
%s\n,

   cmd, optarg);
   usage();
   }
   break;
   default:
   usage();
   }
   }
 
   if( xflag ) {

   fprintf(stderr, + );
   for(i=optind; iargc; i++) {
   fprintf(stderr, %s , argv[i]);
   }
   fprintf(stderr, \n);
   }
   childpid = fork();
   switch (childpid) {
   case -1  :
   fprintf(stderr, %s: can not fork()\n, cmd);
   perror();
   exit(252);
   break;
   case 0 :/* child */
   break;
   default :   /* parent */
   signal(SIGALRM, timeout);
   signal(SIGHUP, timeout);
   signal(SIGINT, timeout);
   signal(SIGTERM, timeout);
   signal(SIGQUIT, timeout);
   signal(SIGPIPE, timeout);
   signal(SIGUSR1, timeout);
   signal(SIGUSR2, timeout);
   alarm(tlimit);
   do {
   ws = wait(status);
   } while ( (ws != childpid)  (ws  0  errno == EINTR) );
   alarm(0);
   if( timedout == SIGALRM ) {
   if( xflag ) fprintf(stderr,
   %s: Command timed-out\n, cmd);
   exit(254);
   }
   exit( (status  255) ? status + 127 : status  8);
   break;
   }
/*
*  At this point, the child is executing this code.  Become
*  a process group leader to that our parent can kill all
*  of our processes not known by our parent.
*/
   setuid(myuid);  /* give up root access */
   setpgrp();
   execvp( argv[optind], argv[optind] );
   fprintf( stderr, %s: '%s' - not executed.  , cmd, argv[optind] );
   perror(  );
   exit( 253 );
}

usage()
{
   fprintf( stderr, Usage:  %s [-t secs] [-s signal] [-x] command 
[ arg ..

. ]\n, cmd );
   exit(251);
}

/*
*  signal trap handler.  If signal receive is SIGALRM then
*  we send ksig.  All other signals are sent as is to the
*  child 

Wrong permission on C:\, how to change it, possible OT

2009-10-03 Thread Paul McFerrin
I have a PC that is running Cygwin 1.5.25-15 on top of Windows XP Pro, 
SP2.  My problem is that it will not do a disk boot.  If I use the 
Windows XP Startup disk floppy, the hard-drive comes up fully with XP 
Pro, but only with the floppy.  I've tried using the Recovery Console 
BOOTCFG cmd but it fails when trying to write the boot.ini file.  I've 
tried changing the mode to 777 under Cygwin but it won't allow it (no 
error msg).


I'm not sure if I'm on the right track but I don't know of any other 
reason it got changed other than Cygwin or the constant powering up/down 
by the grandkids.  Does anyone know:

 1.)  If I'm on the right track?
 2). How do I open up write access to everyone?

If I didn't have Cygwin installed, then I know it is OT.  When I look at 
other systems, the mode is 1777.  If I don't get a resolution, I'll have 
to just leave a floppy in the drive.


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



Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-62

2009-10-03 Thread Paul McFerrin
What does all of these means for users converting from cygwin 1.5?  Do 
we have to change anything we are doing today?  I live in the good-ole 
US, speak/understanding english.  Did my ancesters get on the wrong boat?


Corinna Vinschen wrote:

Hi folks,


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

Apart from bugfixes, this patch contains a change to the
internationalization efforts in Cygwin which cristalized out of a couple
of longish discussions on the cygwin and cygwin-developer lists.

Here's how it's supposed to work in future:

- UTF-8 rules.

- System objects will always be *initially* translated using UTF-8. This
  includes file names, user names, and initial environment variables.
  This is also the rule for the consile window.

- By setting the locale environ variables you can switch the charset
  used in subsequent child processes in the console, as well as to
  translate filenames and other system objects.  The conversions in
  the current process are not affected by this.  Only the setting at
  process startup are binding.

  This is only a stop-gap measure, to allow to re-use old archives
  or scripts.  Those should be converted to UTF-8 ASAP!

- Consequentially, setlocale() calls in a process have only an effect on
  the process code itself, not on the system object conversions within
  Cygwin and in the console window.

- The C locale's default charset is UTF-8.

- Additionally there are now language-neutral C.charset locales
  (C.CP1252, C.EUCJP, etc).

- The user's ANSI codepage remain the default charset for
  language and language_TERRITORY locales.

- Due to potential collision problems, the special filename conversion
  of characters which are not available in the current character set
  is now prepended with a Ctrl-X character, rather than Ctrl-N.

I fixed the documentation in the user's guide accordingly:
http://cygwin.com/1.7/cygwin-ug-net/setup-locale.html
http://cygwin.com/1.7/cygwin-ug-net/using-specialnames.html#pathnames-unusual


Other changes:
=

- Stop faking hardlinks on filesystems not supporting them (FAT, FAT32)
  by copying the file.  Instead, the link(2) function returns EPERM,
  just as on Linux.

- Improve multibyte to widechar conversion and vice versa.


Bugfixes:
=

- Fix a typo in the extended attributes handling to support the setxattr
  call not only on Samba.

- Fix a few problems in signal handling.

- More workaround an issue with crashes due to invalid references to
  malloc functions when loading DLLs built against test versions of
  Cygwin between 1.7.0-49 and 1.7.0-57.

- Fix error handling in a couple of file-related functions.

- Avoid a failing recv function when trying to receive data on a socket
  connected via a child process.  This works around a WinSock bug.

- Fix a bug which disallowed to mq_open the smae message queue in different
  processes.

- Declare getpagesize correctly as int per POSIX.


FAQ:


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

  A: The `uname -v' command prints 2009-10-03 14:33


Have fun,
Corinna


  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

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

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

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

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

  


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



typeset sem-failures in PD KSH v5.2.14 99/07/13.2

2009-09-19 Thread Paul McFerrin

Hello:

The following simple script fails to produce a leading 0 on variable 
nextnum.  Am I doing something wrong or did I discover a bug?


PD KSH v5.2.14 99/07/13.2
/home/paul.$ cat /lbin/testit2
#!/bin/pdksh
n=06
typeset -L2 nextnum
nextnum=`expr $n + 01`
echo $nextnum

/home/paul.$  /lbin/testit2  
7


My cygcheck -c output is attached.



Cygwin Package Information
Package Version Status
_update-info-dir00828-1 OK
abook   0.5.6-1 OK
alternatives1.3.30c-10  OK
annoyance-filter1.0d-1  OK
archivemail 0.7.0-1 OK
asciidoc8.4.5-1 OK
atool   0.36.0-1OK
autoconf7-10OK
autoconf2.1 2.13-10 OK
autoconf2.5 2.64-10 OK
automake4-10OK
automake1.101.10.2-10   OK
automake1.111.11-10 OK
automake1.4 1.4p6-10OK
automake1.5 1.5-10  OK
automake1.6 1.6.3-11OK
automake1.7 1.7.9-10OK
automake1.8 1.8.5-10OK
automake1.9 1.9.6-10OK
base-cygwin 2.0-1   OK
base-files  3.8-4   OK
base-passwd 3.1-1   OK
bash3.2.49-23   OK
bc  1.06-2  OK
binutils2.19.51-1   OK
bsdcpio 2.7.1-10OK
bsdiff  4.3-4   OK
bsdtar  2.7.1-10OK
bsfilter1.0.15-1OK
bvi 1.3.2-1 OK
bzip2   1.0.5-10OK
cdargs  1.35-1  OK
cdda2wav1.1.7.1-1   OK
cdrkit  1.1.7.1-1   OK
chere   1.1-1   OK
chewmail1.2-1   OK
clamav  0.95.2-1OK
clisp   2.48-2  OK
coreutils   7.0-2   OK
cpio2.9.90-5OK
cron4.1-57  OK
crypt   1.1-1   OK
csih0.9.1-1 OK
cvs 1.12.13-10  OK
cygutils1.4.0-1 OK
cygwin  1.7.0-60OK
cygwin-doc  1.5-1   OK
dash0.5.5.1-2   OK
db2 2.7.7-5 OK
deroff  1.1-1   OK
diffutils   2.8.7-1 OK
e2fsprogs   1.35-3  OK
ed  1.0-1   OK
editrights  1.01-2  OK
email   3.1.2-2 OK
exim4.69-51 OK
expat   2.0.1-1 OK
fcrackzip   0.3-1   OK
fetchmail   6.3.9-1 OK
fftw3   3.2.1-3 OK
fftw3-doc   3.2.1-3 OK
file5.00-3  OK
findutils   4.5.4-1 OK
font-bitstream-vera-ttf 1.10-1  OK
fontconfig  2.6.0-1 OK
fortune 1.99.1-2OK
gawk3.1.7-1 OK
gcc-core3.4.4-999   OK
gcc-g++ 3.4.4-999   OK
gcc-mingw-core  20050522-1  Incomplete
gcc-mingw-g++   20050522-1  Incomplete
gcc4-core   4.3.2-2 OK
gcc4-g++4.3.2-2 OK
gcc4-runtime4.3.2-1 OK
gdb 6.8-2   OK
gdbm1.8.3-20OK
getmail 4.7.7-1 OK
gettext 0.17-11 OK
ghostscript 8.63-2  OK
ghostscript-fonts-other 6.0-1   OK
ghostscript-fonts-std   8.11-1  OK
glib1.2.10-4OK
glpk4.38-2 

[Fwd: Re: Automating a Cygwin Script From Windows]

2009-08-29 Thread Paul McFerrin


---BeginMessage---

Well there is more than one way to kill this cat.  Let me add my cocktail.

I have a need to automatically run scripts, totally written in cygwin 
using ksh as my shell.  For example I have a number of .bat files 
performing necessary startup functions:

   echo off
   set ENV=/dev/null
   set PATH=C:\cygwin\bin;%PATH%
   SET IS_CYGWIN=true
   set HISTSIZE=1200
   set HOME=/dev/null
   set CYGWIN=tty
   ksh -c C:/cygwin/backup_e

The above backup_e is the work horse.  It can be anything from a 
complicated script or starting up anything to running under cygwin.


In this case I'm not providing any parameters that can be added if you 
so desire.  Basically backup_e is an ordinary cygwin script:

   #!/bin/ksh
   #
   #   backup_e
   #
   #   Perform a incremental backup of drive e: of all
   #   files having the archive attribute set.
   #
   #   get list of files ready to archive
   exec 2/tmp/_backup_tracelog 12
   echo -e Started - `date`
   set -x
   cd /e
   /c/WINDOWS/system32/cmd /c dir /s/b/a:a * /tmp/_backupe_1
   if [ -s /tmp/_backupe_1 ]
   
   

Using this scheme does NOT require you to setup/configure cygwin's 
cron.  You can use Window's Scheduled Tasks feature under Control 
Panel.


- Paul


jprice wrote:

Mike Marchywka-2 wrote:
  




Date: Fri, 28 Aug 2009 13:04:44 -0700
From: ddjo...@gmail.com
To: cygwin@cygwin.com
Subject: Automating a Cygwin Script From Windows


I need to run a cygwin script directly via windows, probably via dos
prompt
or some other comparable method. This method needs to be automated and
kicked off in Windows at certain times, so executing Cygwin, then
manually
typing in the script to run in the Cygwin prompt is out of the question.

I was hoping there would be some way to execute Cygwin and concurrently
feed
it a string of commands to execute upon opening, but unfortunately I have
not had success with this. There seems to be lots of command line options
for setting display options but nothing that would allow me to feed in a
command.

Is there any method to do this? Thanks for your time.

  

If you have an icon on your desktop, type the target it should
be something like cygwin.bat. You should IIRC just be able
to invoke bash with whatever params you need.

I just tried it from dos prompt seems to work.





Can I invoke bash with scripts I want it to run as parameters? For instance,
if I'd like a bat file that would execute bash, and then proceed to
automatically run a cygwin script at at c:\foo, I'd want something like
this:

@echo off
C:
chdir C:\cygwin\bin
bash --login -i -execute c:\foo

Bash obviously doesn't contain an -execute option, but is there some
method to achieve this?

  



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

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-59

2009-08-18 Thread Paul McFerrin

I'm not making a feature request but rather some future discussion ideas.

We all seem to remember sub-version numbers like:
   1.7.0.-44
There is some benefits in using a consistant numbering scheme.  When I 
use the uname command, I don't care what date my dll was created.  I 
would like for uname to use the same format as we all talk about.  Would 
it be possible to get uname to report the full version with 
sub-version?  No more dates...  Without this feature, Im' going thru 
convuolutions to extract the full version and sub versions.


I like to be able to quickly view this information in the Windows 
banner/title area when running multiple instatnces of the OS.


Corinna Vinschen wrote:

Hi folks,


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

Just a bugfix update.

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

- Nothing.


Bugfixes:
=

- Fix a bug in wcsncpy where the function call wcsncpy (dest, src, n)
  could end up copying n+1 characters to dest.
  http://sourceware.org/ml/newlib/2009/msg00812.html

- The getsockname/getpeername patches added to -58 didn't return the
  correct length for unbound AF_LOCAL sockets (3 instead of 2).

- Fix a bug in readdir which could lead to incorrect inode numbers
  for . and .. entries on some remote filesystems (ext3 over
  NFS for instance).

- Fix a bug in readdir which could result in wrong inode numbers on remote
  NFS filesystems.  Also works around a bug in the Windows 7 NFS client.

- Fix popen problems with standard handles
  http://cygwin.com/ml/cygwin/2009-08/msg00582.html


FAQ:


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

  A: The `uname -v' command prints 2009-08-18 18:42


Have fun,
Corinna


  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

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

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

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

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

  


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



creating persistance mounts

2009-08-14 Thread Paul McFerrin
When I first generated my 1.7 cygwin system, it created the System mount 
points for me.  In looking the documentations for mount, I can not find 
the necessary info to create a persistance system mount.  Anything I 
mount get taged as a user mount.  What's the secret.  I use the -s 
options, it gets flagged as invalid arg.  I tried:

   mount -f -s R: /r  DOESN'T WORK
   mount -f -o -s R: /r   DOESN'T WORK
   mount -f -o --system R: /r   SAME
   mount -f --system R: /r   SAME
   mount -f R: /r   WORKS, except as user

The documentation does not help much (man pages  web page).  Can 
someone tell me how to mount a FS as system?


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



Minor diff: /bin/ksh.exe

2009-08-04 Thread Paul McFerrin

Just want to point out a slightly difference in behavior of ksh
   @(#)PD KSH v5.2.14 99/07/13.2
between Cygwin 1.5  1.7  First, the above is a older version of pdksh 
that I had to tweek the cygwin sources a l-o-n-g time ago.  Under 1.5, 
the following does work properly:

   $ cd /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/
I like using shell expansions a lot to save me a lot of typing and to 
avoid MS spaces in directory names.  Under 1.7, I have replace the above 
with the following:

   $ cd /c/Doc*
   $ cd Paul
   $ cd App*
   $ cd Moz*
   $ cd Fire*
   $ cd Pro*
   $ cd *.def*

Or I have completely type all of the expansions CORRECTLY.

It appears that you can't have multiple expansions within a single 
line.  It is the EXACT executable ksh.exe.  As you can see, you are 
forcing me *A LOT* of extra typing.  Makes me wonder what else might be 
broken.  Do we have an re-entrancy problem somewhere?.


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



Re: Minor diff: /bin/ksh.exe

2009-08-04 Thread Paul McFerrin



Paul McFerrin wrote:

Just want to point out a slightly difference in behavior of ksh
   @(#)PD KSH v5.2.14 99/07/13.2
between Cygwin 1.5  1.7  First, the above is a older version of pdksh 
that I had to tweek the cygwin sources a l-o-n-g time ago.  Under 1.5, 
the following does work properly:

   $ cd /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/
I like using shell expansions a lot to save me a lot of typing and to 
avoid MS spaces in directory names.  Under 1.7, I have replace the 
above with the following:

   $ cd /c/Doc*
   $ cd Paul
   $ cd App*
   $ cd Moz*
   $ cd Fire*
   $ cd Pro*
   $ cd *.def*

Or I have completely type all of the expansions CORRECTLY.

It appears that you can't have multiple expansions within a single 
line.  It is the EXACT executable ksh.exe.  As you can see, you are 
forcing me *A LOT* of extra typing.  Makes me wonder what else might 
be broken.  Do we have an re-entrancy problem somewhere?.


Just in case someone needs the cygcheck -s output of my 1.7 instance:
/home/paul.$ cygcheck -s

Cygwin Configuration Diagnostics
Current System Time: Tue Aug 04 16:15:55 2009

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:   C:\cygwinIV\bin
   C:\cygwinIV\bin\X11
   C:\cygwinIV\lbin
   C:\cygwinIV\bin
   C:\Program Files\WinOne
   C:\WINDOWS\system32
   C:\WINDOWS
   C:\WINDOWS\System32\Wbem
   C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
   C:\Program Files\Common Files\Ulead Systems\MPEG
   C:\Program Files\QuickTime\QTSystem\
   .\

Output from C:\cygwinIV\bin\id.exe (nontsec)
UID: 1003(paul)GID: 513(None)
0(root)544(Administrators)
545(Users) 1005(AcronisBackupServerUsers)
513(None)  544(Administrators)
545(Users) 1005(AcronisBackupServerUsers)
513(None)

Output from C:\cygwinIV\bin\id.exe (ntsec)
UID: 1003(paul)GID: 513(None)
0(root)544(Administrators)
545(Users) 1005(AcronisBackupServerUsers)
513(None)  544(Administrators)
545(Users) 1005(AcronisBackupServerUsers)
513(None)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

PWD = '/home/paul'
MAKE_MODE = 'UNIX'
CYGWIN = 'tty'
HOME = '/home/paul'

Use '-r' to scan registry

obcaseinsensitive set to 1

a:  fd N/AN/A   
c:  hd  NTFS 51199Mb  58% CP CS UN PA FC System
d:  cd N/AN/A   
e:  hd  NTFS107520Mb  68% CP CS UN PA FC Volume1

f:  hd  NTFS107520Mb   1% CP CS UN PA FC Volume2
g:  hd  NTFS210696Mb   7% CP CS UN PA FC Volume3
h:  hd  NTFS 51199Mb   1% CP CS UN PA FC Backup of System
i:  hd  NTFS107520Mb  65% CP CS UN PA FC Backup of Volume1
j:  hd  NTFS107520Mb   1% CP CS UN PA FC Backup of Volume2
k:  hd  NTFS210696Mb  25% CP CS UN PA FC Backup of Volume3
m:  fd  FAT32 7731Mb  42% CPUN   KINGSTON
o:  net NTFS 40970Mb  42% CP CS UN PA FC
p:  net NTFS111576Mb  12% CP CS UN PA FC


C:\cygwinIV  /  system  binary,auto
a:   /a system  binary
C:\cygwinIV\bin  /bin   system  binary
C:   /c system  binary
D:   /d system  binary
E:   /e system  binary
C:\cygwinIV\etc  /etc   system  binary
F:   /f system  binary
G:   /g system  binary
H:   /h system  binary
I:   /i system  binary
J:   /j system  binary
K:   /k system  binary
L:   /l system  binary
C:\cygwinIV\lib  /lib   system  binary
M:   /m system  binary
N:   /n system  binary
O:   /o system  binary
P:   /p system  binary
\\linda\c/pcsystem  binary
Q:   /q system  binary
C:\cygwinIV\u/u system  binary
C:\cygwinIV\usr  /usr   system  binary
C:/cygwinIV/bin  /usr/bin   system  binary
C:/cygwinIV/lib  /usr/lib   system  binary
cygdrive prefix  /cygdrive  userbinary,auto

Found: C:\cygwinIV\bin\awk.exe
Found: C:\cygwinIV\bin\awk.exe
- C:\cygwinIV\bin\gawk.exe
Found: C:\cygwinIV\bin\bash.exe
Found: C:\cygwinIV\bin\bash.exe
Found: C:\cygwinIV\bin\cat.exe
Found: C:\cygwinIV\bin\cat.exe
Found: C:\cygwinIV\bin\cp.exe
Found: C:\cygwinIV\bin\cp.exe
Found: C:\cygwinIV\bin\cpp.exe
Found: C:\cygwinIV\bin\cpp.exe
- C:\cygwinIV\etc\alternatives\cpp
- C:\cygwinIV\bin\cpp-3.exe
Found: C:\cygwinIV\bin\crontab.exe
Found: C:\cygwinIV\bin\crontab.exe
Found: C:\cygwinIV\bin\find.exe
Found: C:\cygwinIV\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Found: C:\cygwinIV\bin\gcc.exe
Found: C:\cygwinIV\bin\gcc.exe
- C:\cygwinIV\etc\alternatives\gcc
- C:\cygwinIV\bin\gcc-3.exe
Found: C:\cygwinIV\bin\gdb.exe
Found

Re: Minor diff: /bin/ksh.exe

2009-08-04 Thread Paul McFerrin
Dave:  Let's put this prob on hold for a while.  At least til I 
investigate it some more.  Something is acting weird.  This prob has 
disappeared!  I tried unloading everything just in case some name cache 
had it already expanded.  I did get correct results from using latest 
pdksh.  Weird.


Dave Korn wrote:

Paul McFerrin wrote:
  

Just want to point out a slightly difference in behavior of ksh
   @(#)PD KSH v5.2.14 99/07/13.2
between Cygwin 1.5  1.7  First, the above is a older version of pdksh
that I had to tweek the cygwin sources a l-o-n-g time ago.  Under 1.5,
the following does work properly:
   $ cd /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/



  LERN2SHELL.  Try echo /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/ to see if
you've actually got a real path there, or no matching path, or several matching
paths. Try stripping components off one by one and seeing which one you made a
mistake in.  The multiple expansions work just fine for me:

$ PS1=$  pdksh
$ cd /cygdrive/c/Doc*/Adm*/App*/Moz*/Fire*/Pro*/*default/
$ pwd
/cygdrive/c/Documents and Settings/Administrator/Application
Data/Mozilla/Firefox/Profiles/bfwp4loc.default
$

  Also, LERN2BUGREPORT.  You told us all about how you feel, but completely
omitted the crucial detail of WHAT ACTUALLY HAPPENS when you try it.  Error
message?  No error message?  Boxing glove on a spring comes out of your computer
and punches you in the nose?

cheers,
  DaveK

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


  


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



Re: Minor diff: /bin/ksh.exe

2009-08-04 Thread Paul McFerrin

I believe this is a non-problem.  The cause: human error.  Doing a
   cd  /c/Doc*/pa*/App*is not the same as
   cd  /c/Doc*/Pa*/App*
Wildcard lookups are always case sensitive.  I must not have been 
consistant when switching between Windows.


Paul McFerrin wrote:
Dave:  Let's put this prob on hold for a while.  At least til I 
investigate it some more.  Something is acting weird.  This prob has 
disappeared!  I tried unloading everything just in case some name 
cache had it already expanded.  I did get correct results from using 
latest pdksh.  Weird.


Dave Korn wrote:

Paul McFerrin wrote:
 

Just want to point out a slightly difference in behavior of ksh
   @(#)PD KSH v5.2.14 99/07/13.2
between Cygwin 1.5  1.7  First, the above is a older version of pdksh
that I had to tweek the cygwin sources a l-o-n-g time ago.  Under 1.5,
the following does work properly:
   $ cd /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/



  LERN2SHELL.  Try echo /c/Doc*/Paul/App*/Moz*/Fire*/Pro*/*default/ 
to see if
you've actually got a real path there, or no matching path, or 
several matching
paths. Try stripping components off one by one and seeing which one 
you made a

mistake in.  The multiple expansions work just fine for me:

$ PS1=$  pdksh
$ cd /cygdrive/c/Doc*/Adm*/App*/Moz*/Fire*/Pro*/*default/
$ pwd
/cygdrive/c/Documents and Settings/Administrator/Application
Data/Mozilla/Firefox/Profiles/bfwp4loc.default
$

  Also, LERN2BUGREPORT.  You told us all about how you feel, but 
completely
omitted the crucial detail of WHAT ACTUALLY HAPPENS when you try it.  
Error
message?  No error message?  Boxing glove on a spring comes out of 
your computer

and punches you in the nose?

cheers,
  DaveK

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


  


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




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



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

2009-08-02 Thread Paul McFerrin
Folks.  Try again with updating 1.7-56.  When it is downloaded from 
mirror: mirror.nyi.net, my 1.7 instance of cygwin will nolonger come up!!


Using my 1.5 instance,  and the strings command, I check the 1.7.0-56 
version of cygwin1.dll and it comes up with:

   /ext/build/netrel/src/cygwin-1.7.0-51,  NOT 56.

No comments about using strings.  If no windows are opening up, I 
can't do a uname -r on a dead system.  Unless someone comes up with a 
*good* reason NOT to use it, it stays in.


I've been using cygwin since the B20 days so I think I know a little 
about it.  I seemed to remember the days when uname -r never gave the 
complete version and sub-version.


I frequently perform updates of the 1.7 release,  This allow me just 
click-away and it is done.  I don't always fire it up as I'm frequently 
running my 1.5 system.  Yesterday was a bad day for this activity.


Frédéric Bron wrote:

It's worse than that.

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



Same issue with rxvt. Not only ls, but also vi, cat...

Frédéric

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


  


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



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

2009-08-02 Thread Paul McFerrin
I forced a REINSTALL of cygwin1.dll and this time it downloaded the 
correct version.  Everything is fine now.


Christopher Faylor wrote:

On Sun, Aug 02, 2009 at 05:15:33PM -0400, Paul McFerrin wrote:
  
Folks.  Try again with updating 1.7-56.  When it is downloaded from 
mirror: mirror.nyi.net, my 1.7 instance of cygwin will nolonger come up!!


Using my 1.5 instance,  and the strings command, I check the 1.7.0-56 
version of cygwin1.dll and it comes up with:

   /ext/build/netrel/src/cygwin-1.7.0-51,  NOT 56.

No comments about using strings.  If no windows are opening up, I 
can't do a uname -r on a dead system.  Unless someone comes up with a 
*good* reason NOT to use it, it stays in.



There is no mystery here.  The version of cygwin1.dll that you're
looking at came from the 1.7.0-51 release.  Maybe you're confused about
where you should be looking or maybe you have a process running which is
using this dll and, so, could not have been updated by setup.  If it is
the latter then rebooting would help.

Regardless, this isn't a problem with the release.  It's a problem with
your installation.

cgf

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


  


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



Mismatch cygwin1.dll

2009-08-01 Thread Paul McFerrin
After downloading the latest updates arount 7PM tonight, I ended up with 
strange version numbers:


For dll 1.5
   $ cd /c/cygwin/bin
   $ ls -lc cygwin1.dll
   -rwxr-xr-x 1 Paul Paul 1872884 Mar  4 04:01 cygwin1.dll
   $ strings /bin/cygwin1.dll | grep /cygwin-[0-9] | tail -1 | sed -e 
s/^.*\/cygwin-/ / -e s/\/.*$//

1.5.25-15

For cygwin 1.7
   cd /c/cygwinIV/bin
   $ ls -lc cygwin1.dll
-rwxr-xr-x 1 Paul Administrators 2464286 Jul 31 13:51 cygwin1.dll
   $ strings /bin/cygwin1.dll | grep /cygwin-[0-9] | tail -1 | s 
1.5.25-15

Every window that is opened displays the current Version string in the 
banner area.   What gives!!  Sizes are consistance but Version #?




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



Re: Mismatch cygwin1.dll

2009-08-01 Thread Paul McFerrin
Yes, it seams weird.  I'm checking the Version # being extracted from 
the DLL itself since I can't find any other way to get it.  My 
/cygwin/bin is 1.5 and /cygwinIV is 1.7-xx.  Here is cgychk from my 1.5 
release:

$ chgchk -s


Cygwin Configuration Diagnostics
Current System Time: Sat Aug 01 23:45:41 2009

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:   C:\cygwin\bin
   C:\cygwin\bin\X11
   C:\cygwin\lbin
   C:\cygwin\bin
   C:\Program Files\WinOne
   C:\WINDOWS\system32
   C:\WINDOWS
   C:\WINDOWS\System32\Wbem
   C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
   C:\Program Files\Common Files\Ulead Systems\MPEG
   C:\Program Files\QuickTime\QTSystem\
   .

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 501(Paul) GID: 401(Paul)
513(None)  544(Administrators)
545(Users) 1005(AcronisBackupServerUsers)

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

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

PWD = '/home/paul'
MAKE_MODE = 'UNIX'
CYGWIN = 'tty'
HOME = '/home/paul'

Use '-r' to scan registry

a:  fd N/AN/A   
c:  hd  NTFS 51199Mb  58% CP CS UN PA FC System
d:  cd N/AN/A   
e:  hd  NTFS107520Mb  68% CP CS UN PA FC Volume1

f:  hd  NTFS107520Mb   1% CP CS UN PA FC Volume2
g:  hd  NTFS210696Mb   7% CP CS UN PA FC Volume3
h:  hd  NTFS 51199Mb   1% CP CS UN PA FC Backup of System
i:  hd  NTFS107520Mb  65% CP CS UN PA FC Backup of Volume1
j:  hd  NTFS107520Mb   1% CP CS UN PA FC Backup of Volume2
k:  hd  NTFS210696Mb  25% CP CS UN PA FC Backup of Volume3
m:  fd  FAT32 7731Mb  42% CPUN   KINGSTON
o:  net NTFS 40970Mb  42% CP CS UN PA FC
p:  net NTFS111576Mb  12% CP CS UN PA FC


.  /cygdrive  userbinmode,cygdrive
C:\cygwin  /  system  binmode
a: /a system  binmode
C:\cygwin\bin  /bin   system  binmode
C: /c system  binmode
D: /d system  binmode
E: /e system  binmode
C:\cygwin\etc  /etc   system  binmode
F: /f system  binmode
G: /g system  binmode
H: /h system  binmode
I: /i system  binmode
J: /j system  binmode
K: /k system  binmode
C:\cygwin\lib  /lib   system  binmode
M: /m system  binmode
N: /n system  binmode
O: /o system  binmode
P: /p system  binmode
\\linda\c  /pcsystem  binmode
Q: /q system  binmode
C:\cygwin\usr  /usr   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\crontab.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\kill.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\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi.exe
Found: C:\cygwin\bin\vim.exe

cygwin   1.5.25-15
cygwin-doc   1.4-4
cygwin-x-doc 1.0.4-1

Now I'm running my cygwin 1.7 instance:

cygcheck -s 
Well with the corrupt DLL, I could NOT run any 1.7 environment shells to 
open up a window.  I did however restore from my Jul 29 backups a copy 
of the cygwin1.dll and I was able to start up my envorinment without any 
problems; and it is  1.7.0-51 !!!   Now the version is consistance with 
its size.  Has anyone else recently updated their cygwin1.dll to find it 
corrupt?  Regarding my arcane method'. do you know of any easier method 
to extract this information?  I'm listening.


I don't understand the cygwin's download that went haywired on me earlier.

- Pauo


Christopher Faylor wrote:

On Sat, Aug 01, 2009 at 09:50:13PM -0400, Paul McFerrin wrote:
  
After downloading the latest updates arount 7PM tonight, I ended up with 
strange version numbers:


For dll 1.5
   $ cd /c/cygwin/bin
   $ ls -lc cygwin1.dll
   -rwxr-xr-x 1 Paul Paul 1872884 Mar  4 04:01 cygwin1.dll
   $ strings /bin/cygwin1.dll | grep /cygwin-[0-9] | tail -1 | sed -e 
s/^.*\/cygwin

Protection mode: an inquiry

2009-07-01 Thread Paul McFerrin
Just one question...  Is there a good reason why http://cygwin.com/1.7/ 
and below have their permission set to no access?  My memory is not so 
good these days and I find directory searches are much easier than 
remembering their full names.  Makes me wonder What are you hiding.


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



Re: Protection mode: an inquiry

2009-07-01 Thread Paul McFerrin

Thanks.  I always wanted to know about bomb construction details. :+()

Corinna Vinschen wrote:

On Jul  1 14:16, Paul McFerrin wrote:
  
Just one question...  Is there a good reason why http://cygwin.com/1.7/  
and below have their permission set to no access?  My memory is not so  
good these days and I find directory searches are much easier than  
remembering their full names.  Makes me wonder What are you hiding.



Nothing unusual, just ripped videos, stolen music, bomb construction
manuals, you name it.

I added an index.html file.  Try http://cygwin.com/1.7/


Corinna

  


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



Re: Selling management on Cygwin

2009-05-14 Thread Paul McFerrin
If you are looking for technical reason to make cygwin the default, then 
give it up.  Of a person has spent years on a MS system, they will be 
reluctant to change.  Contrary to a person using a *Unix system will be 
very glad to use tools that they know.  You'll trying to force everyone 
to use one OS.


When I install cygwin on a new OS, I frequently swear  cuss because the 
MS tool set is extremely difficult compared to a *Unix system I have 
over 25 years experienced with *Unix.


I can't see any reason for making cygwin availablr to those that prefer 
to use it.  With many years of using both, cygwin definitely take the 
cake.  Those that choose cygwin, will quickly be more productive and 
learn how to cuss out MS!


Long live U N I X !

Andrew Schulman wrote:

No one here asked me whether it was safe to install open source software,
but if they had I was ready to explain that it's a well established and
stable product, I've been using it and contributing to it for many years,
and have never had a problem with it.



You might add that the applications distributed with Cygwin are used to
help run millions of *nix servers around the world.


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



How can I get the lynx command to display normal instead of reverse video

2009-04-19 Thread Paul McFerrin
To reduce the total amount to light in my eyes, I use reverse video for 
everything (fg:white).  When I view the cygwin's security html document 
using lynx, everything is reversed (fb:black).  This happens on both 
my mintty and rxvt windows.  Thus I am unable to use the man command 
to view html pages.


How can I get lynx to reverse the video?
How do I pass options to lynx when using the man command?

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



man does not recognise html files

2009-03-29 Thread Paul McFerrin
I think it is great for someone to add html file support to the man 
command.  As indicated in 
http://sourceware.org/ml/cygwin/2009-03/msg00300.html , the man command 
in 1.7 apparently does not work for html files.  If this was answered, 
please excuse me being hospitalized for more than a week but I failed to 
find an answer in the archives.


--
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: Clearing the Cygwin console

2009-03-21 Thread Paul McFerrin

What package contains cls.  Can't seem to find it.

Dave Korn wrote:

Thomas Wiedmann wrote:
  

cmd /c cls
doesn't work. It gives the output:
♀


 In a DOS console?
  

In the usual console of Windows XP (ok - DOS console) called with
cd /d %ProgramFiles%\Cygwin\bin
bash --login -i




  How thoroughly bizarre.  I haven't seen that on 1.5 or 1.7 on XP or W2k or
1.7 on win7beta.  Do you have any kind of extenders or plugins installed?

cheers,
  DaveK

--
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: Clearing the Cygwin console

2009-03-21 Thread Paul McFerrin
Oh, cls is one of those built-in commands.  Any hints as to where 
clear went?  Sorry 'bout not following the threads but after receiving 
over 400+ post after a hospital stay, I have no choice to delete about 
all of them.  I'm a little s-l-o-w in returning,


-Paul

Christopher Faylor wrote:


You're causing a discussion loop.  Please read the whole thread.

cls is obviously a Windows CMD command.  That's why you need to
use cmd to invoke it.

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/


  


--
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: minTTY will not interrupt 'locked' process

2009-03-10 Thread Paul McFerrin
I'll watch for it to occur again.  Is there anything I can collect for 
you in this besides a ps(1) showing the process is inactive or should I 
just forget it for now.


Christopher Faylor wrote:

On Mon, Mar 09, 2009 at 09:32:36PM +, Andy Koppe wrote:
  

Several times recently, I have executed a command on a file that was
apparently locked. ?Any attempts to perform any reads/opens on the file
would block. ?When it happens, the only was out is to terminate minTTY
session (no ctl-C or ctl-\ will terminate). ?Is this a normal situation?
  

I'm afraid I don't know about those locked files, but in any case this
sounds more like a general Cygwin question. When you press Ctrl-C or
Ctrl-\, MinTTY simply writes the corresponding control character to
the pty device connecting it to its child process. The terminal driver
normally turns that into a SIGINT or SIGQUIT, but applications can
override that, or choose to ignore signals. Also, Cygwin can't deliver
signals while a program is executing a Win32 function.



Right.  If a process is blocked in a situation where Cygwin isn't
expecting it, like when reading a disk file, then signals won't have
much effect.  This is actually more than a little like what happens
Linux when you try to access a file on, say, a bad disk.  Signals don't
allow you to stop the process there either.

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/


  


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



Can't get man to find local html pages

2009-03-09 Thread Paul McFerrin
When I create directories containing html pages, man can;t find them.  
I have added to /usr/share/misc/man.conf, the following entry: 
MANPATH  /usr/man/lman/htmlman1 and I placed the html file at: 
/usr/man/lman/htmlman1/ntsec.html.  I followed the following 
instructions per man man:


HTML PAGES
  Man will find HTML pages if they live in directories named as  
expected
  to  be  .html, thus a valid name for an HTML version of the 
ls(1) man

  page would be /usr/share/man/htmlman1/ls.1.html.

I also tried moving html1man1 directory up one level to:
/usr/man/htmlman1 with same effect.  What am I doing wrong??

Here is the tail end of man -d ntsec:


using /usr/bin/lynx -dump to dump HTML pages as text
adding /usr/man to manpath
adding /usr/share/man to manpath
adding /usr/local/apache/man to manpath
adding /usr/man/bsd_man to manpath
No manual entry for ntsec
$


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



  1   2   >