Cygwin upgrade hangs at prermove step

2005-11-27 Thread Brett Binns
Brett  adelphia.net> writes:

I see that my problem was unrelated to the original I replied to this morning. 
I am still hopig someone has an idea for me to try.  Here are my symptoms again.

I am running a Win 2000 Professional box with Norton Antivirus 2003
professional.  I am behind a LynkSys WRT54GS Router/Firewall.  I had a
unctioning Cygwin install which I attempted to upgrade yesterday.  The upgrade
consistently hung.  I attempted to disable Norton without any effect.  The
remainder 

My install logs finish with:

   2005/11/26 19:55:43 Running preremove script for  gcc-mingw-ada
   2005/11/26 19:55:43 running: C:\cygwin\bin\bash.exe -c
/etc/preremove/gcc-mingw-ada.sh
   2005/11/26 21:00:22 Ending cygwin install
 
The installer will show the preremove step for many hours without progress.
 
Thanks,
Brett





--
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: mmap() on 64K aligned address fails

2005-11-27 Thread René Berber
Samuel Thibault wrote:
[snip]
> Memmapping to malloced memory could very well be forbidden. Why would
> one want to do this?

As I said before, the test is one that comes with gcc-4.0.2, it fails only on
Windows as far as I know.  To answer your question: is just a test, it should
work with some Windows related tweaking but it's just a test.

Besides, what other memory is there available that a process has under its
control?  Yes, I know, mmap() should be used w/o MAP_FIXED and let the OS choose
where to map, but the interesting part of this test is to use MAP_FIXED.
-- 
René Berber


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



Re: Norton Internet Security and Cygwin: What settings for NIS?

2005-11-27 Thread René Berber
surendar jeyadev wrote:
[snip]
> I have to try one more thing -- turn of Norton and
> unplug the cable. But there is something very fishy
> going one. When I tried to launch Cygwin a few minutes
> ago, Norton popped up a message saying 
> 'hostname.exe is trying to contact DNS server'. 

Bingo!  hostname is called from /etc/csh.cshrc and /etc/profile.d/complete.tcsh,
are you using csh or tcsh?  That would explain what is going on.

The solution would be to add hostname.exe to the list of programs allowed to use
the Internet (Windows firewall) or open the respective port (53 if it's using 
DNS).

HTH
-- 
René Berber


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



Re: mmap() on 64K aligned address fails

2005-11-27 Thread Samuel Thibault
René Berber, le Sun 27 Nov 2005 16:17:45 -0600, a écrit :
> Corinna Vinschen wrote:
> [snip]
> >>mmap(0x47, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 
> >>0L)
> >>somehow an invalid invocation.
> > 
> > 
> > I didn't inspect the testcase all too closely since it's annoyingly long
> > for such a simple test.  But what exactly do you expect when trying to
> > mmap an arbitrary memory address in the virtual address space which you
> > know nothing about?
> 
> It's not an arbitrary memory address, the 0x47 is the result of aligning a
> pagesize space into 17xpagesize malloced memory.

Memmapping to malloced memory could very well be forbidden. Why would
one want to do this?

Regards,
Samul

--
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: mmap() on 64K aligned address fails

2005-11-27 Thread René Berber
Corinna Vinschen wrote:
[snip]
>>mmap(0x47, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)
>>somehow an invalid invocation.
> 
> 
> I didn't inspect the testcase all too closely since it's annoyingly long
> for such a simple test.  But what exactly do you expect when trying to
> mmap an arbitrary memory address in the virtual address space which you
> know nothing about?

It's not an arbitrary memory address, the 0x47 is the result of aligning a
pagesize space into 17xpagesize malloced memory.

> The code is making invalid assumptions about the
> usage of the underlying memory layout.
> 
> Don't use MAP_FIXED unless you know what you're doing.

I'm not an expert but I think the example did comply with all the Windows
"granularity" requirements and unless I'm really missing something else it
should have worked without the invalid argument error.

Thanks for your reply.
-- 
René Berber


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



Re: /dev/console : permission denied -- SOMEWHAT RESOLVED

2005-11-27 Thread Christopher McIntosh

Christopher Faylor wrote:

Do I have to add a disclaimer to every mail and irc message on this
subject?

"I don't know"

http://sources.redhat.com/ml/cygwin/2005-11/msg00789.html

cgf


Hahaha... No, you need not.  I think it is implied.  :)

Anyway, after many headaches and not enough time to get too deep into 
the code...  I decided to do a fresh install.


I completely removed Cygwin and re-installed using Henrik Bengtsson's 
Fantastic technique (http://www.maths.lth.se/help/windows/cygwin/).  And 
the /dev/console : permission denied problem has faded into oblivion.


SOMEWHAT RESOLVED means that, although I cannot say for certain what 
caused that nastiness... I want to believe that it was due to 
un-synchronized installation of various packages.


When the install was synchronized (per Henrik's method), the problem is 
not rearing its head.


Thanks for everyone's input.

This did not resolve the crash that's happening with Cygcheck -svr 
though...  Suppose I'm constrained to switch to CMD.EXE when I need to 
run it.  :(


Christopher

-- eagerly awaiting the day when I can uninstall Windows and run 
Win-less Cyg!  ;) --



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



Re: How to use gpc ?

2005-11-27 Thread Gerrit P. Haase

Alireza Ghasemi wrote:


hello all,
I tried to compile a typical program with gpc, but I got the following error
:
" gpc: Internal GPC problem: internal option `--amtmpfile' not given "
Any idea about making it work ?
thanks


With the lack of more information about what you're trying to do I
cannot tell you what is wrong.  PLease send the output of the command
"cygcheck -svr > cygcheck.out" as an attachment!

Then provide more details, what command are you using to call gpc, what
shell.


Gerrit
--
=^..^=

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



Re: Norton Internet Security and Cygwin: What settings for NIS?

2005-11-27 Thread Dennis J. Darland
If I remember right (It's been a while - I don't update often) I have to 
disable NIS firewall to run (cygwin) setup.

After setup I am able to run cygwin with firewall enabled.

Dennis J. Darland
Treasurer of the Bertrand Russell Society, Inc.
[EMAIL PROTECTED]
Solve Systems of Ordinary Differential Equations (Sode)
(It's a free, open source, program. - Homepage) 
http://sode.sourceforge.net




surendar jeyadev wrote:


--- Brett <[EMAIL PROTECTED]> wrote:


 


I am having a similar problem and so far have no
solution.
But my circumstances are slightly different and
might
suggest, if the underlying problem is the same, that
the
problem resides in another direction.

I am running Windows 2000 Professional and Norton
AntiVirus
2003 Professional.  I am connected to the internet
and was
running a Cygwin upgrade directly from the Cygwin
site last
night.  The install keeps freezing and the log
indicates a
problem with "McShield".  Specifically, "Could not
open
service McShield for query, start and stop. McAfee
may not
be installed, or we don't have access.".  I do not
believe
McAfee has every been on this box.  I tried
   



Apparently, this is not a problem. Larry Hall replied
to
one of my earlier problems -- not being able to
install
Cygwin at all, which seems to be your case -- saying
this
was normal. I quote him below:

  These messages are no problem.  Setup checks for
McAfee
  because it is known to cause setup problems.  As
the
  message notes, "McAfee may not be installed,...",
which
  is true in your case.

 


dissabling both
"Auto-Protect" and "Script Blocking" in Norton
without luck.

If our problems are the same, this is not a network
issues.
I should note that I did a complete from-scratch
install of
Cygwin on my brother's Windows XP box last night
without any
problem.  I am not certain of his anti-virus
protection and
he is back on the road headed home this morning so I
can't
ask.

Hope this is helpful and that someone has an idea.
   



I have to try one more thing -- turn of Norton and
unplug the cable. But there is something very fishy
going one. When I tried to launch Cygwin a few minutes
ago, Norton popped up a message saying 
'hostname.exe is trying to contact DNS server'. 

Would anyone have an idea why a DNS sever is being 
contacted? It *appears* that my set up is behaving
not only as a network set up, but the the 
modem/Norton combination is coming into play. I do

not know what the modem is -- it was installed by
Roadrunner and has no name on it!

As my machine is very much an "out of the box,
plain XP" from Dell, I would guess that this should
not be an unusual case. But, maybe it is not  :-)

thanks
sj





__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/


--
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: Norton Internet Security and Cygwin: What settings for NIS?

2005-11-27 Thread surendar jeyadev


--- Brett <[EMAIL PROTECTED]> wrote:


> I am having a similar problem and so far have no
> solution.
> But my circumstances are slightly different and
> might
> suggest, if the underlying problem is the same, that
> the
> problem resides in another direction.
> 
> I am running Windows 2000 Professional and Norton
> AntiVirus
> 2003 Professional.  I am connected to the internet
> and was
> running a Cygwin upgrade directly from the Cygwin
> site last
> night.  The install keeps freezing and the log
> indicates a
> problem with "McShield".  Specifically, "Could not
> open
> service McShield for query, start and stop. McAfee
> may not
> be installed, or we don't have access.".  I do not
> believe
> McAfee has every been on this box.  I tried

Apparently, this is not a problem. Larry Hall replied
to
one of my earlier problems -- not being able to
install
Cygwin at all, which seems to be your case -- saying
this
was normal. I quote him below:

   These messages are no problem.  Setup checks for
McAfee
   because it is known to cause setup problems.  As
the
   message notes, "McAfee may not be installed,...",
which
   is true in your case.

> dissabling both
> "Auto-Protect" and "Script Blocking" in Norton
> without luck.
> 
> If our problems are the same, this is not a network
> issues.
> I should note that I did a complete from-scratch
> install of
> Cygwin on my brother's Windows XP box last night
> without any
> problem.  I am not certain of his anti-virus
> protection and
> he is back on the road headed home this morning so I
> can't
> ask.
> 
> Hope this is helpful and that someone has an idea.

I have to try one more thing -- turn of Norton and
unplug the cable. But there is something very fishy
going one. When I tried to launch Cygwin a few minutes
ago, Norton popped up a message saying 
'hostname.exe is trying to contact DNS server'. 

Would anyone have an idea why a DNS sever is being 
contacted? It *appears* that my set up is behaving
not only as a network set up, but the the 
modem/Norton combination is coming into play. I do
not know what the modem is -- it was installed by
Roadrunner and has no name on it!

As my machine is very much an "out of the box,
plain XP" from Dell, I would guess that this should
not be an unusual case. But, maybe it is not  :-)

thanks
sj





__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/

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



Re: ssh running Windows applications on XP

2005-11-27 Thread Corinna Vinschen
On Nov 27 11:54, Ivans Chou wrote:
> I cannot seem to open any Windows applications connecting to a Windows
> XP Pro machine running cygwin via ssh.  The applications appear to run,
> but the window does not appear on the screen. Is this not possible or am
> I doing something wrong?

It's not possible unless you start the sshd service with "Interact with
desktop" setting.  See Windows' services MMC snap-in.


Corinna

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

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



Re: faked inode numbers on network drives

2005-11-27 Thread Corinna Vinschen
On Nov 26 14:49, Martin Koeppe wrote:
> There is the following assumption:
>  /* Assume that if a drive has ACL support it MAY have valid "inodes".
>  It definitely does not have valid inodes if it does not have ACL
>  support. */
> 
> I think this assumption is wrong. Imagine a samba share without acl 
> support. It nevertheless has valid inode numbers.
> 
> Furthermore, in the following switch() statement, inode numbers on 
> network drives are always ignored.
> 
> And I ask why such an assumption is necessary at all.
> In the Windows API there is a function GetVolumeInformation
> which is supported from Win95 on and reports FILE_SUPPORTS_OBJECT_IDS 
> when inode numbers are valid.

Nope.  Object IDs are not inode numbers.  I suggest reading on object
IDs in MSDN.

> Is there a reason for not using this? GetVolumeInformation is already 
> used in several other places within cygwin.

Samba reports FS_PERSISTENT_ACLS, but the way has_acls() is treated
in case of CYGWIN=nosmbntsec (the default) disables its usage.  I think
I found a bug though, which might explain inconsistent behaviour.  I'm
looking into it.

But using FILE_SUPPORTS_OBJECT_IDS is definitely incorrect.  And, just
as a side note, the Samba version I'm using (3.0.20a) does not report
that it supports FILE_SUPPORTS_OBJECT_IDS.  The flags value returned
from GetVolumeInformation:

  11 == 0xb == FILE_CASE_SENSITIVE_SEARCH
   | FILE_CASE_PRESERVED_NAMES
   | FILE_PERSISTENT_ACLS


Corinna

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

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



Re: mmap() on 64K aligned address fails

2005-11-27 Thread Corinna Vinschen
On Nov 26 18:41, Ren? Berber wrote:
> René Berber wrote:
> [snip]
> > mmap() is returning an error code, probably EINVAL I just ddisn't care to 
> > look
> didn't
> > what was it because there shouldn't be an error.
> 
> Yes, using perror I get "Invalid argument", so the implementation considers
> mmap(0x47, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)
> somehow an invalid invocation.

I didn't inspect the testcase all too closely since it's annoyingly long
for such a simple test.  But what exactly do you expect when trying to
mmap an arbitrary memory address in the virtual address space which you
know nothing about?  The code is making invalid assumptions about the
usage of the underlying memory layout.

Don't use MAP_FIXED unless you know what you're doing.


Corinna

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

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



ssh running Windows applications on XP

2005-11-27 Thread Ivans Chou
I cannot seem to open any Windows applications connecting to a Windows
XP Pro machine running cygwin via ssh.  The applications appear to run,
but the window does not appear on the screen. Is this not possible or am
I doing something wrong?


--
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: Norton Internet Security and Cygwin: What settings for NIS?

2005-11-27 Thread Brett
Brett  adelphia.net> writes:

> 
> I am having a similar problem and so far have no solution.
> 
> Specifically, "Could not open
> service McShield for query, start and stop. McAfee may not
> be installed, or we don't have access.".
> 

Some more info:

I am behind a LynkSys WRT54GS Router/Firewall and my install
logs finish with:

  2005/11/26 19:55:43 Running preremove script for  gcc-mingw-ada
  2005/11/26 19:55:43 running: C:\cygwin\bin\bash.exe -c
/etc/preremove/gcc-mingw-ada.sh
  2005/11/26 21:00:22 Ending cygwin install

The installer will show the preremove step for many hours
without progress.

Thanks,
Brett


--
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: Norton Internet Security and Cygwin: What settings for NIS?

2005-11-27 Thread Brett
surendar jeyadev  yahoo.com> writes:

> 
> 
> But, I need to be
> completely exposed. Even if I turn on NIS after the
> shell
> initialises, it freezes and does not unfreeze.
> 
> So, my questions:
> 
> 1. What are the recommended settings for Norton?
> 2. Why is a connection to the Internet needed at all? 
>Should I not be able to work as a stand alone
> machine?
>It appears that Cygwin is attempting to contact a
>server.
> 3. Are there shell/environmental variables that I have
> to
>set to make it work as a stand alone installation?
> 
> 

I am having a similar problem and so far have no solution.
But my circumstances are slightly different and might
suggest, if the underlying problem is the same, that the
problem resides in another direction.

I am running Windows 2000 Professional and Norton AntiVirus
2003 Professional.  I am connected to the internet and was
running a Cygwin upgrade directly from the Cygwin site last
night.  The install keeps freezing and the log indicates a
problem with "McShield".  Specifically, "Could not open
service McShield for query, start and stop. McAfee may not
be installed, or we don't have access.".  I do not believe
McAfee has every been on this box.  I tried dissabling both
"Auto-Protect" and "Script Blocking" in Norton without luck.

If our problems are the same, this is not a network issues.
I should note that I did a complete from-scratch install of
Cygwin on my brother's Windows XP box last night without any
problem.  I am not certain of his anti-virus protection and
he is back on the road headed home this morning so I can't
ask.

Hope this is helpful and that someone has an idea.

Happy Holidays,
Brett


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