Re: automated cygwin install

2011-09-12 Thread Csaba Raduly
On Fri, Sep 9, 2011 at 9:26 PM, Warren Young  wrote:

 Step 2: A script that can write out such a script to clone an existing
 installation.  Just translate the contents of /etc/setup/installed.db to the
 form --packages wants.

 Step 3: Modify the script to find the last-used setup.ini (registry?), put
 the packages there into a dependency graph, then compute the minimum set of
 packages needed to clone the installation.


Step 4: Profit !

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
Ok, it boots. Which means it must be bug-free and perfect.  -- Linus Torvalds
People disagree with me. I just ignore them. -- Linus Torvalds

--
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: Launch of gdb from eclipse takes a long time

2011-09-12 Thread David

I can debug from the commandline really fast with

gdb Debug/myprogram

Does gdb rely on some environment variables might not set by eclipse?

Den 11-09-2011 18:28, David skrev:

I have
$ gdb -v
GNU gdb 6.8.0.20080328-cvs (cygwin-special)

and eclipse helios
Helios Service Release 2
GDB Common 7.0.0.201102110609

My application I try to debug takes 8MB with debugging information.

Every time I try to launch the debugger I have to wait for several
minutes. Why is it so?






--
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: unexpected token error (cygwin 2.738 make)

2011-09-12 Thread Tim Prince

On 9/12/2011 5:24 AM, Gwen Morse wrote:

I installed cygwin 2.738 on a new Windows 7 system and tried to build
a project from source. I have been able to do this in the past, I
wanted to check if there's any problems with this newer version of
cygwin.

when I type make I get an error message about an unexpected token with
an open parenthesis.

$ make
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `cd src; PATH=/usr/local/bin:/usr/bin:/
cygdrive/c/Program F
iles (x86)/Windows Resource Kits/Tools:/cygdrive/c/Windows/system32:/cygdrive/c/
Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPo
werShell/v1.0:/cygdrive/c/Program Files/WIDCOMM/Bluetooth Software:/cygdrive/c/P
rogram Files/WIDCOMM/Bluetooth Software/syswow64:/cygdrive/c/Program Files (x86)
/Common Files/Roxio Shared/DLLShared:/cygdrive/c/Program Files (x86)/Calibre2:/c
ygdrive/c/Program Files (x86)/HMA! Pro VPN/bin:/usr/lib/lapack:@PATH@ make files
'
This looks like problems with failing to quote paths with embedded 
spaces, lack of escapes on wild card characters, items on path which one 
would hope have no relevance to your build, 

Difficult to believe it is a cygwin version problem.


--
Tim Prince

--
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: admin privileges when logging in by ssh?

2011-09-12 Thread Andrew Schulman
 When a user with administrative privileges logs in to sshd, it seems that the 
 user is only granted
 standard user privileges for that session.  Is there a way around that?  How 
 can I get the admin
 privileges for that session?

Winding this up:

Password authentication to sshd is all that's needed to be granted the 
account's admin privileges on
login.  I was mistaken about UAC:  unlike at the console, when you log in by 
ssh, the account's
admin privileges are granted at login, without needing any further 
authentication to UAC.

Thanks very much Eliot and Karl, for your answers about UAC.  Although it turns 
out that they're not
needed in this case, they're likely to be useful some other time.

Andrew.


--
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: debugging SIGSEV on pclose

2011-09-12 Thread Marco atzeri

On 9/8/2011 8:22 PM, Christopher Faylor wrote:

On Thu, Sep 08, 2011 at 07:16:17PM +0200, Marco atzeri wrote:

On 9/8/2011 6:52 PM, Christopher Faylor wrote:

As I said, on Linux, if you call pclose twice in succession you get a
SEGV.  I am comfortable with Cygwin's behavior especially since you
seem to be seeing an actual program problem.


unlikely a octave issue as it SEGFAULT's only on cygwin, and all the
other platforms are fine: Linux, BSD, Apple.

I suspect more a borderline cygwin issue that octave is just hitting.
But of course I could be wrong.


Sure it could be but adding a band-aid to work around the issue is not
the way to go.

cgf



Cgf,

If I am not fooling myself, octave sequence is this:

- popen , creating pipe 5 and 6 (handle 0x20204F9C)
  (pipe 5 is closed as the communication is unidirectional)

- fdopen (6) duplicating the handle (new handle 0x2020500C)

- a lot of writing to 6

- fclose (0x2020500C)
  this is causing fclose to call : close(6)
---
Run till exit from #0  fclose (fp=0x2020500c)
at ../../../../../src_new/newlib/libc/stdio/fclose.c:116

Breakpoint 6, close (fd=6)
at /pub/cygwin/cvs/src_new/winsup/cygwin/syscalls.cc:1214


- pclose(0x20204F9C)
  that SEGFAULT's as fd=6 is already closed

The close(6) seems an abnormal beahviour of fclose as there is another
FILE handle still open.

How does cygwin track the number of open FILE handles for each
file descriptor  ?

Regards
Marco





--
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: core dump using Make 3.81

2011-09-12 Thread Aaron Watry
Hello all,

Matthias Bauer had reported an error in the OpenOffice.org build using
Make 3.81 back in February [1].  I'm writing today to mention that I
ran into what I believe to be the same issue when working on another
project.  I'm working on an OpenCL program that is being built under
Cygwin in Windows. Make 3.81 crashes every time that I try to use it
to build my program:

/bin/sh: line 1:   232 Aborted(core dumped)
/usr/bin/make --no-print-directory target=$t
make: *** [.DEFAULT] Error 134

I downloaded the source for Make 3.82 from gnu.org, installed it to
/usr/local/bin, and the crash goes away as Matthias also reported for
OO.o.  Is there any reason to not bump cygwin up to the latest
upstream release?

Thanks,
Aaron Watry

[1] http://cygwin.com/ml/cygwin/2011-02/msg00398.html

System:
Windows 7 64-bit
AMD Phenom II x6 1055T
Radeon 6850
Freshly updated Cygwin with make 3.81-2

Project:
http://github.com/awatry/libvpx.opencl

Reproduction:
I'm assuming you've got Windows on C:\, and Program Files is also on
C:\. If not, change step 2, and also change the line with cygdrive in
build/make/configure.sh.

1) You'll need to have AMD's APP SDK installed (OpenCL library for
Radeons and x86 CPUs). I haven't tested with Nvidia/others.
2) export LD_LIBRARY_PATH=/cygdrive/c/Windows/System32; export
C_INCLUDE_PATH=/cygdrive/c/Program\ Files\ \(x86\)/AMD\ APP/include
3) Clone the project listed above using git
4) cd libvpx.opencl  ./configure --enable-opencl
5) make
6) *crash*

--
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: unexpected token error (cygwin 2.738 make)

2011-09-12 Thread Nellis, Kenneth
 From: Gwen Morse
 
 I installed cygwin 2.738 ...

How's that? What exactly is 2.738 the version of? Certainly not Cygwin.

--Ken Nellis



nosleep command

2011-09-12 Thread Andrew Schulman
I'd like to provide a 'nosleep' command for Cygwin, that will prevent the host 
from sleeping or
hibernating while a command executes.  I haven't seen anything in Cygwin that 
currently does this,
but please enlighten me if I'm wrong.

Looking around for how to do this, I see two basic approaches:

(1) Run SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED) to try to 
convince the computer
not to sleep or hibernate, while the desired command executes.  See for example 
[1], which does
this.  I haven't tested it yet.  Looking at the documentation of 
SetThreadExecutionState() [2], it
seems that this approach will keep the computer from sleeping when it's idle, 
but not when the user
closes a laptop lid or pushes the power button.

(2) Use the powercfg command (or PowerDuplicateScheme(), etc.) to create a 
temporary power scheme
with sleep and hibernation disabled, then restore the original power scheme 
after the command has
finished.  See for example [3], which does this (that particular implementation 
needs work -
powercfg needs different options in Windows XP and earlier).

Which approach do people think is better?  Or is there another, better way?

#2 seems more fragile, in the sense that it will fail to restore the original 
power scheme if the
parent process is killed before it finishes executing.  By contrast, #1 doesn't 
have any cleanup to
do at the end, so there's no harm done if the parent process is killed.

#2 will prevent the user from manually putting the computer to sleep or 
hibernating, but I'm not
sure if that's an advantage.  Users won't necessarily know why their computer 
won't go to sleep when
they tell it to, or why after a while it starts to work again.  Whether it's 
worthwhile may depend
on how important it is for the requested command to finish - although that 
still isn't guaranteed
under #2, since the user can still shut the machine down.

Finally, it seems likely that #1 needs lower privileges than #2, although I'm 
not sure about that
yet.

[1]
http://www.vistax64.com/general-discussion/222308-vista-goes-sleep-while-burning-dvd.html#post1022013
[2] http://msdn.microsoft.com/en-us/library/aa373208(v=vs.85).aspx
[3] http://superuser.com/questions/90415/prevent-sleep-in-scripts/90432#90432


--
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: unexpected token error (cygwin 2.738 make)

2011-09-12 Thread Marco atzeri

On 9/12/2011 7:36 PM, Nellis, Kenneth wrote:

From: Gwen Morse

I installed cygwin 2.738 ...


How's that? What exactly is 2.738 the version of? Certainly not Cygwin.

--Ken Nellis



cygwin setup version
;-)

cygwin version is given by

uname -vr

Regards

--
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: unexpected token error (cygwin 2.738 make)

2011-09-12 Thread Christopher Faylor
On Mon, Sep 12, 2011 at 07:42:10PM +0200, Marco atzeri wrote:
On 9/12/2011 7:36 PM, Nellis, Kenneth wrote:
 From: Gwen Morse

 I installed cygwin 2.738 ...

 How's that? What exactly is 2.738 the version of? Certainly not Cygwin.

 --Ken Nellis


cygwin setup version
;-)

cygwin version is given by

uname -vr

That's the Cygwin DLL version.  It has no bearing on the make version.

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



Re: problem with ownership on samba mounted file systems after cygwin upgrade

2011-09-12 Thread Larry Hall (Cygwin)

On 9/12/2011 3:08 PM, Eric S. Johnson wrote:

Ive looked around the archives and the FAQ's. I can't seem to
figure this out. I must be missing some simple clue here.

I have some windows XP clients of a samba server. I recently
upgraded one from cygwin 1.5(ish?) to cygwin 1.7 latests.

On the upgraded system ls/getfcal seems to think all the
files on the server are owned by nobody (4294967295).


Try mounting the SAMBA server directory and using the 'noacl' option for
that mount point.  See the Users Guide for details on setting up a
new mount point in Cygwin 1.7.  Be careful not to mount the SAMBA
server directory under /cgdrive.

--
Larry

_

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

--
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: Cygwin now licensed under GPLv3+

2011-09-12 Thread Luke Kendall

Corinna Vinschen wrote:

Hi Cygwin friends and users,


I'm happy to announce that, effective immediately, Red Hat has
relicensed Cygwin from GNU Public License version 2 (GPLv2) to
GNU Public License version 3 or later (GPLv3+).

  


What does that mean in terms of Cygwin components?  Each component 
normally has its own license, so does the above statement mean that 
things like the Cygwin DLL and other Cygwin-only components are under GPLv3?


Is there an explicit list or a precise description of what parts of 
Cygwin are covered by GPLv3?


Regards,

luke


The Open Source Licensing Exception persists, as well as the
availability of the Cygwin Alternative License, as described on
http://cygwin.com/licensing.html

This shouldn't affect a lot of you, but if you're concerned that this
change in the Cygwin license might affect you and your projects, see
http://www.gnu.org/licenses/ in the first place.  You can also ask
questions on the cygwin or cygwin-licensing mailing list, but be aware
that we can't give valid legal advice.  It's always better to ask
a lawyer who's specialized in licensing questions.


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=yourdomain@cygwin.com

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

http://sourceware.org/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