apache crashing on windows 2008 when listening on localhost

2008-07-03 Thread Steven Hartland

I'm trying to get our standard apache setup to run under windows 2008
and I've hit a strange issue it seems as soon as I have the following
in httpd.conf apache crashes out under Windows 2008 server:-

Listen 127.0.0.1:81

Removing this line seems to enable apache to at least fire up without
crashing, I need to do more tests to confirm its actually functioning.

This exact config runs fine under XP, 2003, 2003 R2 including 64bit
but under 2008 x64 its not a happy bunny.

The event log seems to indicate this is a crash in the main cygwin
dll so I was wondering if anyone had seen anything like this and
knew a fix?

[crash]
Faulting application httpd.exe, version 0.0.0.0, time stamp 0x432aedd4, 
faulting module cygwin1.dll, version 1005.25.0.0, time
stamp 0x48515e73, exception code 0xc005, fault offset 0x000b3f59, process 
id 0xba4, application start time 0x01c8dc98373a8e9b.
[/crash]

I see there was some updates for 2008 in 1.5.25-11 so I updated just
to be sure just now but no changes. Just in case its relevant as I
know it does change the way netcards are addressed I do have HyperV
install on this machine as well.

Any ideas?

   Regards
   Steve




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



Re: filenames containing ::, rsync and "file has vanished", ext2fsd being used

2008-07-03 Thread Reini Urban

[EMAIL PROTECTED] schrieb:

I have a weird problem that I cannot quite wrap my head around.

I'm in cygwin trying to rsync from /e/ to /f/,  using

rsync -Dogx -uav --delete /e/ /f/

I get a LOT of error messages of the type

file has vanished: "/e/usr/share/man/man3/Glib::Error.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::CodeGen.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::Entry.3pm.gz"

If I try to

ls /e/usr/share/man/man3/

then I *also* get lots of error messages that files such as the above
"do not exist". But of course they do exist, othwerwise ls would not
know that it should be complaining about them :). There is a whole
bunch of other files, in the same dir, NOT containing "::" in their 
names that is not being complained about.


What gives? It may be relevant that /e and /f are ext2 partitions that
are mounted using the ext2fsd package.

I do not think this is the "rsync unicode , file has vanished" problem
that I have read about on the web, since :: is not unicode.

Does anyone want to suggest a way to get around this? I think since
ls exhibits the same problem it should not be rsync's fault, but it may 
possibly relate to ext2fsd rather than cygwin.


Try mounting those two as managed.

mount -f -s -b -o managed "e:/usr" /e/usr
mount -f -s -b -o managed "f:/usr" /f/usr

--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

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



Installation on Vista stops

2008-07-03 Thread Kjeld Flarup Christensen
Hi

When I try to install 1.5.25-14 and runs setup.exe I never succeed. It
often stops with this error window:

[Window Title]
Microsoft Windows
[Main Instruction]
bash.exe has stopped working
[Content]
A problem caused the program to stop working correctly. Please close the
program.
[Close the program]

I also have an old installation image made on 1.5.24.2 from which I
tried to run xfree but that was unstable when the computer was locked
the x server went into 100% CPU load. 
Plus I have some tool chain which uses an unknown cygwin version, that
also have a sh.exe which stops. 

I'm quite interested in hearing other users experiences with Vista and
if there are some issues with Vista which I need to be aware of.


--- With Regards 
  Kjeld Flarup (Christensen), Specialist, Software Architecture and
Technology
  Ericsson Danmark A/S, PDU MSA
  Faelledvej 17, DK-7600 Struer, Phone +45 9786 9410, Mobile: +45 4029
4149 Fax +45 9785 4422
---| A small but great part of Ericsson
|



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



chmod permission denied on windows 2008

2008-07-03 Thread Steven Hartland

Running chmod under 2008 simply doesnt seem to work here,
which is really strange.

[EMAIL PROTECTED]/: id
uid=500(root) gid=513(None) groups=513(None),544(Administrators),545(testuser)

[EMAIL PROTECTED]/tmp: touch test

[EMAIL PROTECTED]/tmp: chown testuser test
chown: changing ownership of `test': Permission denied

[EMAIL PROTECTED]/tmp: ls -l test
-rw-r--r-- 1 root None 0 Jul  3 13:15 test
[EMAIL PROTECTED]/tmp:

[EMAIL PROTECTED]/tmp: grep testuser /etc/passwd
testuser:unused_by_nt/2000/xp:1002:513:Test 
User,U-BLADE0\testuser,S-1-5-21-1034854827-3221323542-428946914-1002:/usr/home/testuser:/bin/bash


[EMAIL PROTECTED]/: grep testuser /etc/group
testuser:S-1-5-32-545:545:

[EMAIL PROTECTED]/: ls -l |grep tmp
drwxrwxrwt+  3 Administrators None   4096 Jul  3 13:22 tmp

All this works fine on XP and 2003 but is there something silly
I'm missing for 2008?

   Regards
   Steve 




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



Re: chmod permission denied on windows 2008

2008-07-03 Thread Corinna Vinschen
On Jul  3 13:25, Steven Hartland wrote:
> Running chmod under 2008 simply doesnt seem to work here,
> which is really strange.
>
> [EMAIL PROTECTED]/: id
> uid=500(root) gid=513(None) 
> groups=513(None),544(Administrators),545(testuser)
>
> [EMAIL PROTECTED]/tmp: touch test
>
> [EMAIL PROTECTED]/tmp: chown testuser test
> chown: changing ownership of `test': Permission denied
>
> [EMAIL PROTECTED]/tmp: ls -l test
> -rw-r--r-- 1 root None 0 Jul  3 13:15 test
> [EMAIL PROTECTED]/tmp:
>
> [EMAIL PROTECTED]/tmp: grep testuser /etc/passwd
> testuser:unused_by_nt/2000/xp:1002:513:Test 
> User,U-BLADE0\testuser,S-1-5-21-1034854827-3221323542-428946914-1002:/usr/home/testuser:/bin/bash
>
> [EMAIL PROTECTED]/: grep testuser /etc/group
> testuser:S-1-5-32-545:545:

Huh?  Why did you do that?  This is the entry for the Users group.
It doesn't seem to make sense to rename it for Cygwin.

> [EMAIL PROTECTED]/: ls -l |grep tmp
> drwxrwxrwt+  3 Administrators None   4096 Jul  3 13:22 tmp
>
> All this works fine on XP and 2003 but is there something silly
> I'm missing for 2008?

Works fine for me on 2008 so I assume some local setting which
disallows this.  Did you remove the "Back up privileg and directories"
privilege from the admin's account, by any chance?

You could run this under strace and see what Win32 error message
you get.  It could be helpful.


Corinna

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

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



you will_bank with this one

2008-07-03 Thread cliff

Thurs Jul 3
MarktWat"ch right now

Company: HarrisExplorations
Tiker: [H|X|P|N]
Pirce: 0.02
Shorterm:  0.11

It's got powerful backin-g to its claims, read about it
This train is one you will r"egret missing
July, Thursd-ay 3



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



binutils: ld --export-dynamic

2008-07-03 Thread Yaakov (Cygwin Ports)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

cgf,

While you're waiting for the binutils list to get back to you, here's
another binutils issue.  This is not a regression in 2.18, but rather a
longstanding difference in Cygwin behaviour versus Linux.

When linking a program with -Wl,--export-dynamic, no symbols are
exported.  The problem arises when the executable needs to either dlopen
itself, or when it has plugins which are "linked" against it.  Both
scenarios are not uncommon, particularly with GNOME software.

While this does work on Linux, it does not work on Cygwin with
- --export-dynamic; only --export-all-symbols, an i386PE-specific flag,
will accomplish this.

I've attached a test case; it's a simplified version of the test used in
LT_SYS_DLOPEN_SELF (prev. AC_LIBTOOL_DLOPEN_SELF):

$ gcc -o test.exe dlopen-self.c && ./test.exe
status = 0

$ gcc -Wl,--export-dynamic -o test.exe dlopen-self.c && ./test.exe
status = 0

$ gcc -Wl,--export-all-symbols -o test.exe dlopen-self.c && ./test.exe
status = 1

Running 'objdump -p test.exe' will also show that the export table is
only generated in the last case.

I would appreciate your input on this issue.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkhs5L4ACgkQpiWmPGlmQSOGSQCdG2UioO9OvKGUS5ZbrDzYfdb/
2rgAoL9sMQjWxj4cf5ZwdwMTkopyQHak
=W78e
-END PGP SIGNATURE-
#include 
#include 
#include 

#define LT_DLUNKNOWN0
#define LT_DLNO_USCORE  1
#define LT_DLNEED_USCORE2

void
fnord()
{
  int i=42;
}

int
main ()
{
  void *self = dlopen (0, RTLD_GLOBAL|RTLD_LAZY);
  int status = LT_DLUNKNOWN;

  if (self)
{
  if (dlsym (self,"fnord"))  status = LT_DLNO_USCORE;
  else if (dlsym( self,"_fnord"))status = LT_DLNEED_USCORE;
}
  else
puts (dlerror ());

printf ("status = %i\n", status);
exit (0);
}

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

perl: ExtUtils-Liblist-Kid rejects $thislib.$so

2008-07-03 Thread Yaakov (Cygwin Ports)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Reini,

EU::Liblist::Kid refuses any linker flags which resemble $thislib.$so.
This is required by the Gtk2-Perl modules to link one against another OOTB.

I discussed this recently on gtk-perl-list.  The relevant thread:

http://mail.gnome.org/archives/gtk-perl-list/2008-March/msg00097.html
http://mail.gnome.org/archives/gtk-perl-list/2008-April/msg0.html


Yaakov

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkhs5yQACgkQpiWmPGlmQSNw9ACg1Br1gjO3gXwvP5045A3I0TLR
1zEAn3RVO8SSv+V+0no9mvLT9R+qz20I
=GHDk
-END PGP SIGNATURE-

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



Help on Windows-executable cygwin file/script

2008-07-03 Thread Francois Hill

Hi,
I hope I am not breaching too many of the rules for asking a question on 
Cygwin ... ;o)
I have looked up my problem but have not seemed to find an answer 
anywhere, so there goes :



Is there a way to make a Windows exectuable that would run a 'Cygwin 
program' ? That is, automatically (and possibly silently) launch Cygwin 
and make it execute a given script ?*

*

This could be easily done if specifying a file to execute to Cygwin.bat 
were possible :

   C:\ProgramFiles\Cygwin\Cygwin.bat -f myScriptToExecute.sh
but I have not been able to find any reference addressing such a 
possibility.


Thank you for your help,

François Hill




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



Re: perl: ExtUtils-Liblist-Kid rejects $thislib.$so

2008-07-03 Thread Reini Urban

Yaakov (Cygwin Ports) schrieb:

EU::Liblist::Kid refuses any linker flags which resemble $thislib.$so.
This is required by the Gtk2-Perl modules to link one against another OOTB.

I discussed this recently on gtk-perl-list.  The relevant thread:

http://mail.gnome.org/archives/gtk-perl-list/2008-March/msg00097.html
http://mail.gnome.org/archives/gtk-perl-list/2008-April/msg0.html


Ok, can you test this patch?

I just uploaded release -5 to my temp sourceware.org location,
but it was not a good sign obviously. I'll repackage.

The linker can swallow the link to the dll directly
(if EU::Liblist::Kid would behave correctly),
or we can generate convenience importlibs when used with 
EU::Liblist::Kid. I believe linking directly to the dll is easier.


But another core failure without testcase.
We have to get rid of all the wrong platform quirks for cygwin finally.
--
Reini Urban
http://phpwiki.org/  http://murbreak.at/
Yaakov Selkowitz:
EU::Liblist::Kid refuses any linker flags which resemble $thislib.$so.
This is required by the Gtk2-Perl modules to link one against another OOTB.

I discussed this recently on gtk-perl-list.  The relevant thread:

http://mail.gnome.org/archives/gtk-perl-list/2008-March/msg00097.html
http://mail.gnome.org/archives/gtk-perl-list/2008-April/msg0.html 

diff -u  perl-current/lib/ExtUtils/Liblist/Kid.pm.orig
--- perl-current/lib/ExtUtils/Liblist/Kid.pm.orig	2008-03-26 16:42:09.0 +
+++ perl-current/lib/ExtUtils/Liblist/Kid.pm	2008-07-03 15:57:38.265625000 +
@@ -132,6 +132,7 @@
 	} elsif (-f ($fullname="$thispth/lib$thislib$Config_libext")){
 	} elsif (-f ($fullname="$thispth/$thislib$Config_libext")){
 } elsif (-f ($fullname="$thispth/lib$thislib.dll$Config_libext")){
+} elsif (-f ($fullname="$thispth/$thislib.dll")){
 	} elsif (-f ($fullname="$thispth/Slib$thislib$Config_libext")){
 	} elsif ($^O eq 'dgux'
 		 && -l ($fullname="$thispth/lib$thislib$Config_libext")

--
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: Help on Windows-executable cygwin file/script

2008-07-03 Thread Thorsten Kampe
* Francois Hill (Thu, 03 Jul 2008 17:30:10 +0200)
> I have looked up my problem but have not seemed to find an answer
> anywhere, so there goes :
> 
> Is there a way to make a Windows exectuable that would run a 'Cygwin
> program' ? That is, automatically (and possibly silently) launch
> Cygwin and make it execute a given script ?*
> *

It's not really clear what you want? Make a script executable? 
Executable in Windows?
 
> This could be easily done if specifying a file to execute to
> Cygwin.bat were possible :
> C:\ProgramFiles\Cygwin\Cygwin.bat -f myScriptToExecute.sh
> but I have not been able to find any reference addressing such a
> possibility.

You should put Cygwin into ProgramFiles. It's an environment, not an 
application. If you just want to run a shell script, then specify the 
interpreter. Cygwin.bat starts a interactive session.

C:\cygwin\bash.exe myScriptToExecute.sh


--
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: Help on Windows-executable cygwin file/script

2008-07-03 Thread Dave Korn
Thorsten Kampe wrote on 03 July 2008 17:44:

>> This could be easily done if specifying a file to execute to Cygwin.bat
>> were possible : C:\ProgramFiles\Cygwin\Cygwin.bat -f
>> myScriptToExecute.sh 
>> but I have not been able to find any reference addressing such a
>> possibility.
> 
> You should put Cygwin into ProgramFiles. It's an environment, not an
  ^
  I think you meant to say "NOT" here!



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


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



Re: CRON can't cd to HOME

2008-07-03 Thread Kevin M

radski has brought this to us :

Pierre,

fantastic help, can't thank you enough - I didn't realize you could
explicitly set HOME in the crontab - adding 


set HOME=/home/xuser

worked a treat.

For future reference the error is below, hope it helps someone when they
google this.

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron: PID 966380: (CRON) error (can't cd to HOME).


Pierre A. Humblet wrote:


HOME can be specified in the crontab, else it is taken from /etc/passwd

You may have access issues if HOME is on a network drive.
If so, consider creating a different HOME on a local disk, or running cron
as yourself.

Pierre

- Original Message - 
From: "radski" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, July 01, 2008 8:58 AM
Subject: CRON can't cd to HOME




Hello,
I'm trying to CRON, but I'm receiving error in the windows log saying it
"can't cd to HOME"; yet cron_diagnose.sh completes without any errors. 
There doesn't seem to be much reference to this error out there, I've tried 
moving home from outside of the cygwin directory to inside and changed 
permissions but that does not seem to help.


Cron service runs as Local System and I'm not sure where it takes the home
setting from ? changeing it in passwd file doesn't seem to make any
difference.
--
View this message in context:  
http://www.nabble.com/CRON-can%27t-cd-to-HOME-tp18214359p18214359.html Sent 
from the Cygwin list mailing list archive at Nabble.com.



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




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





Hello,
Hopefully I'm supposed to post at the bottom of the page. I tried 
adding set HOME=/home/username and recieved a bad minute error? Is 
there some trick to this..


Thanks!




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



Poor man's mailer??

2008-07-03 Thread Kevin M

Hello,

A while ago Pierre gave me a "poor mans mailer" and I have lost he 
email that contained the instructions. Sorry about that. I recall 
setting up a MAILTO= something or another in the crontab file and after 
that I can't remember. Forgive me for losing the information can 
somebody help me.


Thanks!




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



Re: filenames containing ::, rsync and "file has vanished", ext2fsd being used

2008-07-03 Thread reikred

Larry Hall (Cygwin) wrote:

[EMAIL PROTECTED] wrote:

I have a weird problem that I cannot quite wrap my head around.

I'm in cygwin trying to rsync from /e/ to /f/,  using

rsync -Dogx -uav --delete /e/ /f/

I get a LOT of error messages of the type

file has vanished: "/e/usr/share/man/man3/Glib::Error.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::CodeGen.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::Entry.3pm.gz"

If I try to

ls /e/usr/share/man/man3/

then I *also* get lots of error messages that files such as the above
"do not exist". But of course they do exist, othwerwise ls would not
know that it should be complaining about them :). There is a whole
bunch of other files, in the same dir, NOT containing "::" in their 
names that is not being complained about.


What gives? It may be relevant that /e and /f are ext2 partitions that
are mounted using the ext2fsd package.

I do not think this is the "rsync unicode , file has vanished" problem
that I have read about on the web, since :: is not unicode.

Does anyone want to suggest a way to get around this? I think since
ls exhibits the same problem it should not be rsync's fault, but it 
may possibly relate to ext2fsd rather than cygwin.


You're certainly adding some interesting variables with ext2fsd involved,
particularly when it comes to permissions.  But in this case, ':' is a
special character in Windows so you're going to see trouble regardless
of your underlying file-system and driver.  The moral of the story is
don't try to do things on Windows that it's not good at. ;-)



Some more information: If I look at /e/usr/share/man/man3/ with 
Windows XP (File) Explorer, the :: files are in fact visible, but I 
cannot operate on them (for example, copy and paste) without getting 
error messages. So Ext2fsd is serving up the files, but some other 
part of the system is balking at the names.


I guess /bin/ls is similar in the sense that it "sees" the file, but 
when it tries to list the name, it runs into some restriction.


I wish there was a way to disable the restriction, maybe even just 
temporarily or on a per-program basis...






--
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: CRON can't cd to HOME

2008-07-03 Thread Larry Hall (Cygwin)

Kevin M wrote:

radski has brought this to us :

Pierre,

fantastic help, can't thank you enough - I didn't realize you could
explicitly set HOME in the crontab - adding
set HOME=/home/xuser

worked a treat.

For future reference the error is below, hope it helps someone when they
google this.

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry 
information or

message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see 
Help and

Support for details. The following information is part of the event:
/usr/sbin/cron: PID 966380: (CRON) error (can't cd to HOME).







Hello,
Hopefully I'm supposed to post at the bottom of the page. I tried adding 
set HOME=/home/username and recieved a bad minute error? Is there some 
trick to this..


Bottom posting is highly encouraged as well as selective trimming to keep
context for your reply and the message size manageable.

I guess we'd need to see your crontab file.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: Help on Windows-executable cygwin file/script

2008-07-03 Thread Thorsten Kampe
* Dave Korn (Thu, 3 Jul 2008 17:57:50 +0100)
> Thorsten Kampe wrote on 03 July 2008 17:44:
> >> This could be easily done if specifying a file to execute to Cygwin.bat
> >> were possible : C:\ProgramFiles\Cygwin\Cygwin.bat -f
> >> myScriptToExecute.sh 
> >> but I have not been able to find any reference addressing such a
> >> possibility.
> > 
> > You should put Cygwin into ProgramFiles. It's an environment, not an
>   ^
>   I think you meant to say "NOT" here!

Err, yes...

Thorsten


--
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: filenames containing ::, rsync and "file has vanished", ext2fsd being used

2008-07-03 Thread Larry Hall (Cygwin)

[EMAIL PROTECTED] wrote:

Larry Hall (Cygwin) wrote:

[EMAIL PROTECTED] wrote:

I have a weird problem that I cannot quite wrap my head around.

I'm in cygwin trying to rsync from /e/ to /f/,  using

rsync -Dogx -uav --delete /e/ /f/

I get a LOT of error messages of the type

file has vanished: "/e/usr/share/man/man3/Glib::Error.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::CodeGen.3pm.gz"
file has vanished: "/e/usr/share/man/man3/Gtk2::Entry.3pm.gz"







Does anyone want to suggest a way to get around this? I think since
ls exhibits the same problem it should not be rsync's fault, but it 
may possibly relate to ext2fsd rather than cygwin.


You're certainly adding some interesting variables with ext2fsd involved,
particularly when it comes to permissions.  But in this case, ':' is a
special character in Windows so you're going to see trouble regardless
of your underlying file-system and driver.  The moral of the story is
don't try to do things on Windows that it's not good at. ;-)



Some more information: If I look at /e/usr/share/man/man3/ with Windows 
XP (File) Explorer, the :: files are in fact visible, but I cannot 
operate on them (for example, copy and paste) without getting error 
messages. So Ext2fsd is serving up the files, but some other part of the 
system is balking at the names.


I guess /bin/ls is similar in the sense that it "sees" the file, but 
when it tries to list the name, it runs into some restriction.


I wish there was a way to disable the restriction, maybe even just 
temporarily or on a per-program basis...


That would be a Windows issue.  I don't know of any utility to make
this easier for you, though I wouldn't rule out that one exists.
You may find something on Windows forums.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: Poor man's mailer??

2008-07-03 Thread Dave Korn
Kevin M wrote on 03 July 2008 18:40:

> Hello,
> 
> A while ago Pierre gave me a "poor mans mailer" and I have lost he
> email that contained the instructions. Sorry about that. I recall
> setting up a MAILTO= something or another in the crontab file and after
> that I can't remember. Forgive me for losing the information can
> somebody help me.

  Have you ever heard of a thing called a "search engine"?  There's one
called "Google" that is quite well-known...

http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-G
B%3Aofficial&hs=XFT&q=%22poor+man%27s+mailer%22+pierre+kevin&btnG=Search&met
a=


[ or http://tinyurl.com/4883ml to avoid line-wrapping. ]

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


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



gzip --rsyncable patch

2008-07-03 Thread G.W. Haywood
Hi there,

The version of gzip packaged with cygwin doesn't accept --rsyncable.

I grabbed the latest version of RR's old patch from

http://ozlabs.org/~rusty/gzip.rsync.patch2

and hacked it until it applied cleanly with 'patch -p1 -l' in the
source directory of gzip-1.3.12.

If anyone is interested in applying it to the cygwin sources it's here:

http://www.jubileegroup.co.uk/JOS/misc/gzip.rsyncable.patch

If you'd like it cleaned up so patch doesn't need all those switches
I'll be happy to do that.

In view of the fundamental nature of gzip on most systems I'd strongly
recommend checking my modifications (and the patch) very carefully if
you intend to use it.

--

73,
Ged.

--
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: filenames containing ::, rsync and "file has vanished", ext2fsd being used

2008-07-03 Thread reikred

Reini Urban wrote:
r than cygwin.


Try mounting those two as managed.

mount -f -s -b -o managed "e:/usr" /e/usr
mount -f -s -b -o managed "f:/usr" /f/usr



Thanks, I saw this suggestion a bit late.
It did not seem to make a difference.

--
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: CRON can't cd to HOME

2008-07-03 Thread Pierre A. Humblet

- Original Message - 
From: "Kevin M" <>
To: 
Sent: Thursday, July 03, 2008 1:31 PM
Subject: Re: CRON can't cd to HOME


| radski has brought this to us :
| > Pierre,
| >
| > fantastic help, can't thank you enough - I didn't realize you could
| > explicitly set HOME in the crontab - adding 
| >
| > set HOME=/home/xuser
| >
| | 
| Hello,
| Hopefully I'm supposed to post at the bottom of the page. I tried 
| adding set HOME=/home/username and recieved a bad minute error? Is 
| there some trick to this..
| 
| Thanks!
| 

More likely radski added
HOME=/home/xuser
i.e. without "set"

Pierre


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



OpenMP and Cygwin

2008-07-03 Thread Ami Marowka
Dear ALL,

I would like to work with OpenMP-C++ on top of Cygwin.
I installed the LATEST full version of Cygwin.
when I tried to compile:
gcc -fopenmp pi.cpp

I got the message:  "cc1plus: warning: command line option "-fopenmp" is valid 
for D but not for C++"

I found that the gcc version is 3.4.4 !? Is there any reason why the LATEST 
version of Cygwin uses so old gcc version?
It seems that gcc version 3.4.4 does not support OpenMP.

How can install/update my Cygwin with the newest gcc version.

Thanks in advance.
Ami Marowka






--
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: filenames containing ::, rsync and "file has vanished", ext2fsd being used

2008-07-03 Thread Larry Hall (Cygwin)

[EMAIL PROTECTED] wrote:

Reini Urban wrote:
r than cygwin.


Try mounting those two as managed.

mount -f -s -b -o managed "e:/usr" /e/usr
mount -f -s -b -o managed "f:/usr" /f/usr



Thanks, I saw this suggestion a bit late.
It did not seem to make a difference.


This only works with files as they are created.  It won't work on
existing files.  It also munges the names so you won't be able to
read them as easily with non-Cygwin tools.  See

or the Users Guide for more details.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: OpenMP and Cygwin

2008-07-03 Thread Tim Prince

Ami Marowka wrote:



I got the message:  "cc1plus: warning: command line option "-fopenmp" is valid 
for D but not for C++"


I found that the gcc version is 3.4.4 !? Is there any reason why the LATEST 
version of Cygwin uses so old gcc version?

It seems that gcc version 3.4.4 does not support OpenMP.

You'll find the topics you raised beaten nearly to death in the mailing 
list archives.  While it's not too difficult to build current g++ (without 
cygwin special patches) on Cygwin, I haven't found anything but 
performance loss for the resulting OpenMP.  Others have discussed the 
weaknesses of the attempting increased usage of exception handling.


--
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: chmod permission denied on windows 2008

2008-07-03 Thread Steven Hartland


- Original Message - 
From: "Corinna Vinschen"



Works fine for me on 2008 so I assume some local setting which
disallows this.  Did you remove the "Back up privileg and directories"
privilege from the admin's account, by any chance?


The info from "whoami /all" indicates that you are correct but this
is appears to be the default as I'm not aware of any changes I've
made in this area

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>whoami /all

USER INFORMATION


User NameSID
 
blade0\administrator S-1-5-21-1034854827-3221323542-428946914-500


GROUP INFORMATION
-

Group NameType SID  Attributes
=   
===

Everyone  Well-known group S-1-1-0  Mandatory 
group, Enabled by default, Enabled group
BUILTIN\AdministratorsAliasS-1-5-32-544 Mandatory group, Enabled by default, Enabled group, Group 
owner

BUILTIN\Users AliasS-1-5-32-545 Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\REMOTE INTERACTIVE LOGON Well-known group S-1-5-14 Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\INTERACTIVE  Well-known group S-1-5-4  Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\Authenticated Users  Well-known group S-1-5-11 Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\This OrganizationWell-known group S-1-5-15 Mandatory 
group, Enabled by default, Enabled group
LOCAL Well-known group S-1-2-0  Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\NTLM Authentication  Well-known group S-1-5-64-10  Mandatory 
group, Enabled by default, Enabled group
Mandatory Label\High Mandatory Level  Unknown SID type S-1-16-12288 Mandatory 
group, Enabled by default, Enabled group


PRIVILEGES INFORMATION
--

Privilege Name  Description   State
=== = 

SeIncreaseQuotaPrivilegeAdjust memory quotas for a process
Disabled
SeSecurityPrivilege Manage auditing and security log  
Disabled
SeTakeOwnershipPrivilegeTake ownership of files or other objects  
Disabled
SeLoadDriverPrivilege   Load and unload device drivers
Disabled
SeSystemProfilePrivilegeProfile system performance
Disabled
SeSystemtimePrivilege   Change the system time
Disabled
SeProfileSingleProcessPrivilege Profile single process
Disabled
SeIncreaseBasePriorityPrivilege Increase scheduling priority  
Disabled
SeCreatePagefilePrivilege   Create a pagefile 
Disabled
SeBackupPrivilege   Back up files and directories 
Disabled
SeRestorePrivilege  Restore files and directories 
Disabled
SeShutdownPrivilege Shut down the system  
Disabled
SeDebugPrivilegeDebug programs
Disabled
SeSystemEnvironmentPrivilegeModify firmware environment values
Disabled
SeChangeNotifyPrivilege Bypass traverse checking  
Enabled
SeRemoteShutdownPrivilege   Force shutdown from a remote system   
Disabled
SeUndockPrivilege   Remove computer from docking station  
Disabled
SeManageVolumePrivilege Perform volume maintenance tasks  
Disabled
SeImpersonatePrivilege  Impersonate a client after authentication 
Enabled
SeCreateGlobalPrivilege Create global objects 
Enabled
SeIncreaseWorkingSetPrivilege   Increase a process working set
Disabled
SeTimeZonePrivilege Change the time zone  
Disabled
SeCreateSymbolicLinkPrivilege   Create symbolic links 
Disabled

C:\Users\Administrator> 




--
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: chmod permission denied on windows 2008

2008-07-03 Thread Steven Hartland
- Original Message - 
From: "Corinna Vinschen"

[EMAIL PROTECTED]/: grep testuser /etc/group
testuser:S-1-5-32-545:545:


Huh?  Why did you do that?  This is the entry for the Users group.
It doesn't seem to make sense to rename it for Cygwin.


Purely for compatibility reasons and has worked fine on XP & 2003
for years, so I dont think this is an issue.


All this works fine on XP and 2003 but is there something silly
I'm missing for 2008?


Works fine for me on 2008 so I assume some local setting which
disallows this.  Did you remove the "Back up privileg and directories"
privilege from the admin's account, by any chance?


Clean 2008 RTM install, very minimal changes.


You could run this under strace and see what Win32 error message
you get.  It could be helpful.


Below is the full strace of this, but I think the issue lies where
you suggested looking at:-
[log]
 716   22555 [main] chown 2524 seterrno_from_win_error: /ext/build/netrel/src/cygwin-1.5.25-15/winsup/cygwin/sec_helper.cc:422 
windows error 1300

 104   22659 [main] chown 2524 geterrno_from_win_error: unknown windows error 
1300, setting errno to 13
  95   22754 [main] chown 2524 __set_errno: void seterrno_from_win_error(const 
char*, int, DWORD):310 val 13
  94   22848 [main] chown 2524 set_privilege: -1 = set_privilege ((token 138) 
SeRestorePrivilege, 1)
2513   25361 [main] chown 2524 seterrno_from_win_error: /ext/build/netrel/src/cygwin-1.5.25-15/winsup/cygwin/sec_helper.cc:422 
windows error 1300

  93   25454 [main] chown 2524 geterrno_from_win_error: unknown windows error 
1300, setting errno to 13
  82   25536 [main] chown 2524 __set_errno: void seterrno_from_win_error(const 
char*, int, DWORD):310 val 13
 103   25639 [main] chown 2524 set_privilege: -1 = set_privilege ((token 138) 
SeBackupPrivilege, 1)
 103   25742 [main] chown 2524 set_privilege: 1 = set_privilege ((token 138) 
SeChangeNotifyPrivilege, 1)
[/log]


Hope this gets through the lists broken spam detection, and helps id the issue.

   Regards
   Steve


strace chown testuser test
**
Program name: C:\cygwin\bin\chown.exe (pid 2524, ppid 1)
App version:  1005.25, api: 0.156
DLL version:  1005.25, api: 0.156
DLL build:2008-06-12 19:34
OS version:   Windows NT-6.0
Heap size:402653184
Date/Time:2008-07-03 22:47:05
**
  77 767 [main] chown 2524 set_myself: myself->dwProcessId 2524
  91 858 [main] chown 2524 time: 1215121625 = time (0)
 6681526 [main] chown 2524 environ_init: GetEnvironmentStrings returned 0x847C28 - 
"ALLUSERSPROFILE=C:\ProgramData"
 1611687 [main] chown 2524 environ_init: 0x12C0238: 
ALLUSERSPROFILE=C:\ProgramData
 1531840 [main] chown 2524 environ_init: 0x12C0260: 
COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files
 1702010 [main] chown 2524 environ_init: 0x12C02A0: COMPUTERNAME=TEST0
 1582168 [main] chown 2524 environ_init: 0x12C02B8: 
COMSPEC=C:\Windows\system32\cmd.exe
 1492317 [main] chown 2524 environ_init: 0x12C02E0: CVS_RSH=/bin/ssh
 1742491 [main] chown 2524 parse_options: ntsec (called func)
 1642655 [main] chown 2524 parse_options: returning
  702725 [main] chown 2524 environ_init: 0x12C02F8: CYGWIN=ntsec
 1762901 [main] chown 2524 environ_init: 0x12C0320: HISTCONTROL=ignoredups
 2143115 [main] chown 2524 environ_init: 0x12C0340: HISTIGNORE=[   
]*:&:bg:fg:exit
 1563271 [main] chown 2524 getwinenv: can't set native for HOME= since no 
environ yet
 1583429 [main] chown 2524 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\root, no-keep-rel, no-add-slash)
  853514 [main] chown 2524 normalize_win32_path: C:\cygwin\root = 
normalize_win32_path (C:\cygwin\root)
 1103624 [main] chown 2524 mount_info::conv_to_posix_path: /root = 
conv_to_posix_path (C:\cygwin\root)
 2163840 [main] chown 2524 win_env::add_cache: posix /root
 1013941 [main] chown 2524 win_env::add_cache: native HOME=C:\cygwin\root
  734014 [main] chown 2524 posify: env var converted to HOME=/root
 1644178 [main] chown 2524 environ_init: 0x12C0380: HOME=/root
 1494327 [main] chown 2524 environ_init: 0x12C0368: HOMEDRIVE=C:
 1514478 [main] chown 2524 environ_init: 0x12C04B8: HOMEPATH=\cygwin\root
 1474625 [main] chown 2524 environ_init: 0x12C04D8: HOSTNAME=blade0
 1474772 [main] chown 2524 environ_init: 0x12C04F0: 
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:/usr/local/info:/usr/share/info:/usr/info:

 1654937 [main] chown 2524 environ_init: 0x12C05E8: LOGNAME=root
 1725109 [main] chown 2524 environ_init: 0x12C0600: LOGONSERVER=\\TEST0
 1455254 [main] chown 2524 environ_init: 0x12C0620: 
MAIL=/var/spool/mail/root
 1435397 [main] chown 2524 environ_init: 0x12C0640: MAKE_MODE=unix
 1465543 [main] chown

Re: chmod permission denied on windows 2008

2008-07-03 Thread Christopher Faylor
On Thu, Jul 03, 2008 at 11:22:03PM +0100, Steven Hartland wrote:
> Hope this gets through the lists broken spam detection, and helps id the 
> issue.

How to Win Friends and Influence People...

cgf

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



Re: perl: ExtUtils-Liblist-Kid rejects $thislib.$so

2008-07-03 Thread Yaakov (Cygwin Ports)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Reini Urban wrote:
| Ok, can you test this patch?

Your patch to EU::L::Kid together with my second proposed patch to EU::D
work.  But Kid still won't take a fully qualified path, e.g. with only
the first hunk of my patch.  Nor does it accept a -Wl, argument.

| The linker can swallow the link to the dll directly
| (if EU::Liblist::Kid would behave correctly),
| or we can generate convenience importlibs when used with
| EU::Liblist::Kid. I believe linking directly to the dll is easier.

Agreed.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkhtoY0ACgkQpiWmPGlmQSPNqgCg8O3LBe7LTktvGFSPqiB4/LTE
V/IAoL28NH+N93JLRiRpMzosvH1Y8/Wy
=yG1P
-END PGP SIGNATURE-

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



sunrpc: C++ guards

2008-07-03 Thread Yaakov (Cygwin Ports)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

The sunrpc headers do not contain C++ guards.  This causes compiling
errors when called from C++.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkhto+oACgkQpiWmPGlmQSO4rgCg3pA4GZTwdI56NlITGJ6bd/iD
gWcAoKed5c6FEHjteSGA7MdFyOlCyCPM
=aP81
-END PGP SIGNATURE-

--
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: sunrpc: C++ guards

2008-07-03 Thread Yaakov (Cygwin Ports)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Yaakov (Cygwin Ports) wrote:
| The sunrpc headers do not contain C++ guards.  This causes compiling
| errors when called from C++.

Actually, it's worse than that.  As the sunrpc headers use K&R syntax
(nonprototyped functions), g++ won't accept it either way.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkhtpkQACgkQpiWmPGlmQSM+XQCfUl1pAMaLu1VMTZ7UC6ZV37lB
GuQAoIxVFiRMCu/gBnGCFqcltEpjQYdM
=Zb+Z
-END PGP SIGNATURE-

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