Re: Problem w/ built-in 'source' command in bash (version 3.2.9(11)-release

2007-02-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Craig Steury on 2/6/2007 10:35 PM:
> Hello,
> 
> I am having problems with 'source' (ie the built-in bash command) in version 
> 3.2.9(11).  My intent
> is to use this mechanism to setup the appropriate environment in the current 
> bash-shell.  If I
> source a test file containing nothing but 'ls'
> 
> I get the following output:  source dsg-tst
>: command not found

Actually, your file contained ls AND a carriage return, and resides on a
binary mount.  Search the archives for help on this issue.
(hint: http://cygwin.com/ml/cygwin-announce/2007-01/msg00015.html)

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyWtz84KuGfSFAYARAjTeAJ9ftUV5eBySGcwQ+LZwBDsV2mYk0gCfSSuC
Y5mQsODvVKt77md7agWYXX8=
=68Pe
-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: Cygwin bash-3.2

2007-02-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list.

According to Shakthi Poornima on 2/6/2007 6:12 PM:
> Hi Eric,
> 
> I updated Cygwin tonight and I am getting this at the command prompt
> 
>> bash3.2$
> 
> and none of the Unix commands (like ls, less, etc) work.
> How can I get back to a regular Unix shell, something like C:Cygwin>

bash IS a regular unix shell.  And if you really want to see C:Cygwin> as
your prompt, simply set PS1 to that value.

> from where I can access other directories and run commands?

I need more context as to what you have tried, what error messages (if
any) you are getting, and what you expected.

> 
> Please help!

For starters, asking an individual instead of the list is not the best
approach.  I recommend following the steps at
http://cygwin.com/problems.html, and including the output of 'cygcheck
- -svr' as a text attachment as part of your problem report.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyWsA84KuGfSFAYARAuHbAJ95yXNEjsjfRM7KU9HGIMlGYXkiDwCeLZ3N
7o3y9eSvTU2VQjIQ34zrguQ=
=gM6X
-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/



Problem w/ built-in 'source' command in bash (version 3.2.9(11)-release

2007-02-06 Thread Craig Steury
Hello,

I am having problems with 'source' (ie the built-in bash command) in version 
3.2.9(11).  My intent
is to use this mechanism to setup the appropriate environment in the current 
bash-shell.  If I
source a test file containing nothing but 'ls'

I get the following output:  source dsg-tst
   : command not found

What I've tried:
1. comment out all code in .bash_profile and .bashrc start a new shell, same 
problem with 'source'
2. Copied an older version of batch 3.1.17(6) into /usr/bin for 3.2.9(11) 
installation - this
works, as well as more elaborate files with environment variables, etc.
3. Just for grins I also tried: 'source dsg-tst' using zsh shell.  This works, 
as does the more
elaborate environment file.

I am mystified - has anyone seen this or have a suggestion?

Thanks,

Craig Steury


 

Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

cygcheck.out
Description: 3924260979-cygcheck.out
--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Igor Peshansky
On Tue, 6 Feb 2007, Eliah Kagan wrote:

> On 2/6/07, Frank Fesevur wrote:
> > If you want a use a popup, please make it aware of the --quiet option!
> > [snip]
> > And could the 'file in use' message box also respect the --quiet option?
>
> Perhaps there could be a flag to cause setup.exe to succeed quietly in
> spite of such warnings (update the package anyway), and another to
> cause setup.exe to "gracefully degrade" quietly in the face of them
> (continue but skip updating the package and skip other updates with
> the updated version of the package as a dependency).

The latter is not possible, since by the time the in-use file is detected,
setup may have upgraded the package that depends on it (when there are
circular dependencies).

> [snip]
> On the other hand, I suppose there is some question of whether or not
> additional structure should be added to the calling syntax of
> setup.exe until a silent mode is added whereby everything one can do
> in the interactive mode one can do in the silent mode (e.g. specifying
> packages and versions from the command line).

Yeah.  .
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
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: Writing to MVFS (clearcase) volumes from remote ssh

2007-02-06 Thread Larry Hall (Cygwin)

Max Kaehn wrote:

On Tue, 2007-02-06 at 17:31 -0600, Benedict, Michael wrote:

 Please bear with me, I am not sure if I am on the same page as you.

1) I can see the mount.  I can make it my working directory.  I can view
files in it.  I can even remove some files from it.  This is all from
the remote ssh session.
2) I downloaded WinObj, and am trying to use it.  I see no entries in
\Sessions\0\DosDevices that link to my Clearcase volume (M:).
\GLOBAL??\M: is a link to \Device\mvfs on my system.  In Cygwin, m: was
mounted on /cygdrive/m.  All my tests are nested deeply in
/cygdrive/m... Eg:


You'd see the link in Sessions if you have a view shortcut mounting
a drive letter.  Looks like you're using the MVFS drive, rather than
mapping a drive to a particular view, so that's not an issue.
(If there's a conflict, the drive letters in Sessions override those in
the global namespace.  Each logged in user gets their own session,
as does any service running as a user other than SYSTEM.)

Do you have the same user ID, group membership, etc. when logged
in via ssh as via the console?



Sorry, I'm joining the party late.  But we haven't established if Michael
is using password or public key authentication.  If he hasn't tried this,
it's worthwhile to do so.  If he has, well, then please carry on. ;-)

--
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: closing SSH session leaves a zombie bash process

2007-02-06 Thread Patrick Herbst

ok, i've determined it is a problem with the handling of signals.

here's the process list when i SSH in...

 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
227211202272   15320 1000 22:20:57 /usr/bin/bash
212022722120   19960 1000 22:21:07 /usr/bin/ps

once i X out of putty and come back in it looks like this...

 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
I2272   12272   15320 1000 22:20:57 /usr/bin/bash
183214441832   18641 1000 22:23:44 /usr/bin/bash
220818322208   20841 1000 22:23:46 /usr/bin/ps

so the Parent is lost... and somehow does not send SIGHUP or bash does
not acknowlege receiving SIGHUP and the parent is reassigned to
1...

if i start up a SSH session then go into a local session i get this ps -a

 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 956   1 956956?   18   Feb  5 /usr/bin/cygrunsrv
1096 9561096   1076?   18   Feb  5 /usr/sbin/sshd
144410961444   1840?   18 22:23:41 /usr/sbin/sshd
I183214441832   18641 1000 22:23:44 /usr/bin/bash
1668   11668   1668  con 1000 22:27:03 /usr/bin/bash
170016681700   2084  con 1000 22:27:08 /usr/bin/ps

i do a kill -HUP 1444 and i get...

 PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 956   1 956956?   18   Feb  5 /usr/bin/cygrunsrv
1096 9561096   1076?   18   Feb  5 /usr/sbin/sshd
I1832   11832   18641 1000 22:23:44 /usr/bin/bash
1668   11668   1668  con 1000 22:27:03 /usr/bin/bash
144416681444   2216  con 1000 22:28:33 /usr/bin/ps

bash's parent is reassigned to 1 and is left sitting there...

so. like i said before, i didn't have this problem with the
versions of everything that installed in november... so something
broke... and i'm guessing its cygwin considering the problems with
other people having bash zombies...

anyone know where else to look?  what else can be done?


DePriest, Jason R. wrote:


On 1/30/07, Patrick Herbst wrote:

   i just noticed this today after i updated my base cygwin yesterday.
   if i use putty to establish a ssh session and just hit the X to close
   (instead of typing 'exit'), the server leaves a copy of bash running
   till i go in an manually end process.


   i've tried reinstalling everything and still have the same problem

   i'm using the base install with only openssh added.

   i dont think i had this problem before i updated yesterday.

   can anyone duplicate this?  and does anyone have any idea about what
   could fix it?


   thanks,
   patrick


See if this helps: http://www.cygwin.com/ml/cygwin/2006-12/msg00261.html

I know the referenced message is rxvt + bash specific, but it should
give you some things to look for in putty + ssh + bash.


http://www.cygwin.com/ml/cygwin/2005-12/msg00209.html seems less relevant.

A search of the archives for zombie bash or zombie ssh gives tons of pointers.

Basically, don't hit the X, type in 'exit'.

-Jason



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



RE: Writing to MVFS (clearcase) volumes from remote ssh

2007-02-06 Thread Max Kaehn
On Tue, 2007-02-06 at 17:31 -0600, Benedict, Michael wrote:
>  Please bear with me, I am not sure if I am on the same page as you.
> 
> 1) I can see the mount.  I can make it my working directory.  I can view
> files in it.  I can even remove some files from it.  This is all from
> the remote ssh session.
> 2) I downloaded WinObj, and am trying to use it.  I see no entries in
> \Sessions\0\DosDevices that link to my Clearcase volume (M:).
> \GLOBAL??\M: is a link to \Device\mvfs on my system.  In Cygwin, m: was
> mounted on /cygdrive/m.  All my tests are nested deeply in
> /cygdrive/m... Eg:

You'd see the link in Sessions if you have a view shortcut mounting
a drive letter.  Looks like you're using the MVFS drive, rather than
mapping a drive to a particular view, so that's not an issue.
(If there's a conflict, the drive letters in Sessions override those in
the global namespace.  Each logged in user gets their own session,
as does any service running as a user other than SYSTEM.)

Do you have the same user ID, group membership, etc. when logged
in via ssh as via the console?


--
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: Writing to MVFS (clearcase) volumes from remote ssh

2007-02-06 Thread Benedict, Michael
 Please bear with me, I am not sure if I am on the same page as you.

1) I can see the mount.  I can make it my working directory.  I can view
files in it.  I can even remove some files from it.  This is all from
the remote ssh session.
2) I downloaded WinObj, and am trying to use it.  I see no entries in
\Sessions\0\DosDevices that link to my Clearcase volume (M:).
\GLOBAL??\M: is a link to \Device\mvfs on my system.  In Cygwin, m: was
mounted on /cygdrive/m.  All my tests are nested deeply in
/cygdrive/m... Eg:



SSH$ echo $SSH_CONNECTION;pwd;cp README.txt NEWFILE.txt;ls NEWFILE.txt
10.100.10.74 34389 10.100.3.212 22
/cygdrive/m/mbenedict_smira_dev_view/PRODUCT_DEVELOPMENT/SCE/S_MIRA/mira
_dev/ADLC
cp: cannot create regular file `NEWFILE.txt': Permission denied
/bin/ls: NEWFILE.txt: No such file or directory



LOCAL$ echo $SSH_CONNECTION;pwd;cp README.txt NEWFILE.txt;ls NEWFILE.txt

/cygdrive/m/mbenedict_smira_dev_view/PRODUCT_DEVELOPMENT/SCE/S_MIRA/mira
_dev/ADLC
NEWFILE.txt



I don't exactly understand how I would access my view via the view
drive, I think I only have a view drive(?)

Thank you for your help!
Michael

-Original Message-
From: Max Kaehn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 5:06 PM
To: Benedict, Michael
Cc: cygwin@cygwin.com
Subject: Re: Writing to MVFS (clearcase) volumes from remote ssh

On Tue, 2007-02-06 at 15:55 -0600, Benedict, Michael wrote:
> I have an ssh server running on a Windows XP Professional.  I also 
> have a Clearcase Dynamic view mounted to the M:\ drive.  From a Cygwin

> X-term (local), I am able to interact with files mostly as 
> expected(1).  If I ssh into Cygwin(2), I can list and read files fine.

> If I have permission, I can even unlink them!  However, I am not able 
> to open any files for writing, including creating new files.  Running 
> with smbntsec or nosmbntsec in the CYGWIN environment variable seems 
> to have no effect.  I am running with ntsec set in the CYGWIN
environment variable.
> I have tried running with and without privilege separation for sshd.

ClearCase dynamic views are mounted in the console session, not in the
global namespace.  e.g. my view slothman_main is mounted on drive S:,
with my MVFS drive as V:, and drive S: only exists in the
\Sessions\0\DosDevices\-bff9 as symbolic link from "S:" to
"\??\V:\slothman_main".  (You can see this using WinObj:
http://www.microsoft.com/technet/sysinternals/SystemInformation/WinObj.m
spx .) With sshd running as a service, it's not in the same session as
the console, so it can't see the mount.

I notice that the MVFS drive itself is mounted in the global namespace
(e.g.: \GLOBAL??\V: is a link to \Device\mvfs on my system).
Try accessing your view via the view drive (e.g. using V:\slothman_main
instead of S:); that worked on my system (running 1.5.19).




--
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: FAQ entry? [ Was: Re: trouble with bash / if in recent release / update ? ]

2007-02-06 Thread Matthew Woehlke

Darryl Okahata wrote:

Eric Blake <[EMAIL PROTECTED]> wrote:
Actually, it's not the version of cygwin, but the version of bash that matters 
in this instance.  Get your facts straight, and don't rehash something that has 
already been beaten to death on this list if you don't want to receive our 
annoyed responses.


 Well, I do appreciate the reply, and, if someone will tell me how,
I'll even write up an entry for submission to the FAQ.  (Yes, I've
searched, and found nothing that describes how to submit FAQ entries.)


...the problem is that you did not RTFRNBG. Maybe this *should* be a 
FAQ, although the aforementioned changes to setup would help. (Say, how 
come RTFRN isn't in the 'problem reporting' section at least? :-))


--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.


--
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: Writing to MVFS (clearcase) volumes from remote ssh

2007-02-06 Thread Max Kaehn
On Tue, 2007-02-06 at 15:55 -0600, Benedict, Michael wrote:
> I have an ssh server running on a Windows XP Professional.  I also have
> a Clearcase Dynamic view mounted to the M:\ drive.  From a Cygwin X-term
> (local), I am able to interact with files mostly as expected(1).  If I
> ssh into Cygwin(2), I can list and read files fine.  If I have
> permission, I can even unlink them!  However, I am not able to open any
> files for writing, including creating new files.  Running with smbntsec
> or nosmbntsec in the CYGWIN environment variable seems to have no
> effect.  I am running with ntsec set in the CYGWIN environment variable.
> I have tried running with and without privilege separation for sshd.

ClearCase dynamic views are mounted in the console session, not in the
global namespace.  e.g. my view slothman_main is mounted on drive S:,
with my MVFS drive as V:, and drive S: only exists in the
\Sessions\0\DosDevices\-bff9 as symbolic link from
"S:" to "\??\V:\slothman_main".  (You can see this using WinObj:
http://www.microsoft.com/technet/sysinternals/SystemInformation/WinObj.mspx .)
With sshd running as a service, it's not in the same session as the
console, so it can't see the mount.

I notice that the MVFS drive itself is mounted in the global
namespace (e.g.: \GLOBAL??\V: is a link to \Device\mvfs on my system).
Try accessing your view via the view drive (e.g. using V:\slothman_main
instead of S:); that worked on my system (running 1.5.19).


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



FAQ entry? [ Was: Re: trouble with bash / if in recent release / update ? ]

2007-02-06 Thread Darryl Okahata
Eric Blake <[EMAIL PROTECTED]> wrote:

> Actually, it's not the version of cygwin, but the version of bash that 
> matters 
> in this instance.  Get your facts straight, and don't rehash something that 
> has 
> already been beaten to death on this list if you don't want to receive our 
> annoyed responses.

 Well, I do appreciate the reply, and, if someone will tell me how,
I'll even write up an entry for submission to the FAQ.  (Yes, I've
searched, and found nothing that describes how to submit FAQ entries.)

 However:

* I looked through the (online) FAQ, and found nothing.

* I looked through the (online) documentation, and found nothing.

* I searched the mailing lists, and found nothing.

  [ Although, now that I know what to look for, it's obvious.  I
obviously did not use the right search terms.  ;-(  ]

* I just joined this list, and so I haven't seen the angry mobs beating
  this roadkill to death.  ;-)

I'm really not trying to be a PITA (really! ;-) but, if people really
don't want to be annoyed by questions like mine, then these common
questions should really be put into the FAQ 

-- 
Darryl Okahata
[EMAIL PROTECTED]

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.

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



ar 'unable to rename... Invalid cross-device link'

2007-02-06 Thread Matthew Woehlke
...anyone have any guesses why rename() can't rename files in the same 
directory, if the directory is an NFS mount? This causes 'ar' to fail 
with the error:


ar: unable to rename 'libcloudobj.a' reason: Invalid cross-device link

I see this in strace with both 'ar' and 'mv':

   46  371094 [main] ar 2588 rename: -1 = rename 
(h:\<...path...>\src\objects\stWBl4pj, 
h:\<...path...>\src\objects\libcloudobj.a)


This seems to happen when the file already exists, but rename() only 
fails on NFS mounts (not local drives). Is this a problem with 'ar', or 
Cygwin's rename()?


--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.


--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Kai Raphahn
Frank Fesevur wrote:

> At 5-2-2007 17:58, Charles Wilson wrote:
>> Sounds to me like we need to consider extending the setup.ini format
>> (and, by extension, the setup.hint format) to include an optional field:

>> popup: This package is a significant change from the previous release.
>> Please check http://cygwin.com/ml/cygwin-announce/2007-02/";>the
>>  mailing list for the related announcement before continuing.

> If you want a use a popup, please make it aware of the --quiet option!

> I run 'setup.exe --quiet' from a simple .bat script to update my
> installation (first stopping and afterwards starting again my sshd). And
> even that is not always free of popups (when files are still in use).

> Therefore I can't do a fully automatic update. And I know setup.exe is
> not designed for unattended usages, but with the current command line
> options it can act like it and I do use it that way.

> And could the 'file in use' message box also respect the --quiet option?

Why not writing this Warning and future popups into a Logfile if --quit is
set?


Kai

-- 
WCTYBTWHTKY
We Could Tell You - But Then We'd Have To Kill You

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



Re: OpenGL linker error

2007-02-06 Thread Brian Ford
On Tue, 6 Feb 2007, Brian Ford wrote:
> On Tue, 6 Feb 2007, Ritter, Nils wrote:
> > g++ -o out-glut/salmon out-glut/adjacency.o out-glut/assemble-matrix.o
> > out-glut/big-vector.o out-glut/bounding.o ... lots of object files ...
> > out-glut/wx-salmon.o -lXi -lXt -lICE -lXext -lXmu -lSM -lX11
> > -L/usr/X11R6/lib -L/lib/w32api -lglut -lopengl32 -lm
>
> Your first problem is that opengl32 is a Windows native library,
> not an X11 one.  The X11 one is named GL.  You should not have a
> -L/ib/w32api in this command.

Ah, ^l.

Also note that the proper link order is -lglut -lGL -lXstuff.

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
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: OpenGL linker error

2007-02-06 Thread Brian Ford
On Tue, 6 Feb 2007, Ritter, Nils wrote:

> we try to compile a cutting software named Salmon with Cygwin. All the
> source code files compile to .o object files. But when the linker try to
> build the binary, there're many openGL errors.
>
> This is the command:
>
> g++ -o out-glut/salmon out-glut/adjacency.o out-glut/assemble-matrix.o
> out-glut/big-vector.o out-glut/bounding.o ... lots of object files ...
> out-glut/wx-salmon.o -lXi -lXt -lICE -lXext -lXmu -lSM -lX11
> -L/usr/X11R6/lib -L/lib/w32api -lglut -lopengl32 -lm

Your first problem is that opengl32 is a Windows native library,
not an X11 one.  The X11 one is named GL.  You should not have a
-L/ib/w32api in this command.

Try reading /usr/share/doc/Cygwin/opengl*.README for clarification.

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Eliah Kagan

On 2/6/07, Frank Fesevur wrote:

If you want a use a popup, please make it aware of the --quiet option!

I run 'setup.exe --quiet' from a simple .bat script to update my
installation (first stopping and afterwards starting again my sshd). And
even that is not always free of popups (when files are still in use).

Therefore I can't do a fully automatic update. And I know setup.exe is
not designed for unattended usages, but with the current command line
options it can act like it and I do use it that way.

And could the 'file in use' message box also respect the --quiet option?

Regards,
Frank


Perhaps there could be a flag to cause setup.exe to succeed quietly in
spite of such warnings (update the package anyway), and another to
cause setup.exe to "gracefully degrade" quietly in the face of them
(continue but skip updating the package and skip other updates with
the updated version of the package as a dependency).

One of these flags could be --quiet, or the current behavior of
--quiet could be retained and two new flags such as --quietsucceed and
--quietfail could be added. Then --quiet would continue to behave as
people have learned it behaves. Perhaps it would even be useful to
have different flags to set the answer to the question of whether or
not to replace in-use files and to set the answer to the question of
whether or not to upgrade packages when there is a "significant
change."

On the other hand, I suppose there is some question of whether or not
additional structure should be added to the calling syntax of
setup.exe until a silent mode is added whereby everything one can do
in the interactive mode one can do in the silent mode (e.g. specifying
packages and versions from the command line).

-Eliah

--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Frank Fesevur

At 5-2-2007 17:58, Charles Wilson wrote:
Sounds to me like we need to consider extending the setup.ini format 
(and, by extension, the setup.hint format) to include an optional field:


popup: This package is a significant change from the previous release. 
Please check http://cygwin.com/ml/cygwin-announce/2007-02/";>the 
 mailing list for the related announcement before continuing.


If you want a use a popup, please make it aware of the --quiet option!

I run 'setup.exe --quiet' from a simple .bat script to update my 
installation (first stopping and afterwards starting again my sshd). And 
even that is not always free of popups (when files are still in use).


Therefore I can't do a fully automatic update. And I know setup.exe is 
not designed for unattended usages, but with the current command line 
options it can act like it and I do use it that way.


And could the 'file in use' message box also respect the --quiet option?

Regards,
Frank

--
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: OpenGL linker error

2007-02-06 Thread René Berber
Ritter, Nils wrote:

> we try to compile a cutting software named Salmon with Cygwin. All the source
> code files compile to .o object files. But when the linker try to build the
> binary, there're many openGL errors.
> 
> This is the command:
> 
> g++  -o out-glut/salmon out-glut/adjacency.o out-glut/assemble-matrix.o
> out-glut/big-vector.o out-glut/bounding.o ... lots of object files ...
> out-glut/wx-salmon.o -lXi -lXt -lICE -lXext -lXmu -lSM  -lX11
> -L/usr/X11R6/lib -L/lib/w32api -lglut -lopengl32 -lm
[snip]

I'm not sure if this is the problem, if it was then you should have seen a very
clear error message about not finding the library but, aren't you missing
"-L/usr/lib/w32api" ?

-- 
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: How to list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread zzapper
"Dave Korn" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> 
> (cd / && ls -1 usr/bin/* ) >a.txt
> gunzip -c /etc/setup/*.lst.gz  | grep '^usr/bin/.' > b.txt
> cat a.txt b.txt | sort | uniq -u
> 
> ... although this will also find anything that was created by a
> postinstall script as well: shortcuts in particular.  (There may be
> other false pos/neg-atives, I haven't been thorough...)
> cheers,
>   DaveK
DaveK

Thanks I was too shy to ask for a turnkey solution! 

-- 
zzapper
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


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



OpenGL linker error

2007-02-06 Thread Ritter, Nils

Hello,

we try to compile a cutting software named Salmon with Cygwin. All the source 
code files compile to .o object files. But when the linker try to build the 
binary, there're many openGL errors.

This is the command: 

g++  -o out-glut/salmon out-glut/adjacency.o out-glut/assemble-matrix.o 
out-glut/big-vector.o out-glut/bounding.o ... lots of object files ... 
out-glut/wx-salmon.o -lXi -lXt -lICE -lXext -lXmu -lSM  -lX11  -L/usr/X11R6/lib 
-L/lib/w32api -lglut -lopengl32 -lm

This procudes lots of errors:

out-glut/closest-vertex-selector-visualization.o: In function 
`_ZNSt23_Rb_tree_const_iteratorISt4pairIK7SimplexP17Edge_i
ntersectionEEC1EPKSt13_Rb_tree_nodeIS5_E':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:239: undefined 
reference to `_glPointSize'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:239: undefined 
reference to `_glBegin'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:239: undefined 
reference to `_glColor4f'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:239: undefined 
reference to `_glVertex3dv'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:239: undefined 
reference to `_glEnd'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer12set_frustrumEv':
/salmon/salmon-0.1/fem-drawer.cc:170: undefined reference to `_glMatrixMode'
/salmon/salmon-0.1/fem-drawer.cc:171: undefined reference to `_glLoadIdentity'
/salmon/salmon-0.1/fem-drawer.cc:174: undefined reference to `_gluPerspective'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer10set_cameraEi':
/salmon/salmon-0.1/fem-drawer.cc:193: undefined reference to `_glMatrixMode'
/salmon/salmon-0.1/fem-drawer.cc:197: undefined reference to `_glLoadIdentity'
/salmon/salmon-0.1/fem-drawer.cc:200: undefined reference to `_glTranslated'
/salmon/salmon-0.1/fem-drawer.cc:203: undefined reference to `_glRotated'
/salmon/salmon-0.1/fem-drawer.cc:206: undefined reference to `_glMultMatrixf'
/salmon/salmon-0.1/fem-drawer.cc:210: undefined reference to `_glTranslated'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer12draw_featureEv':
/salmon/salmon-0.1/fem-drawer.cc:248: undefined reference to `_glPointSize'
/salmon/salmon-0.1/fem-drawer.cc:249: undefined reference to `_glBegin'
/salmon/salmon-0.1/fem-drawer.cc:251: undefined reference to `_glEnd'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer5setupEv':
/salmon/salmon-0.1/fem-drawer.cc:265: undefined reference to `_glClear'
/salmon/salmon-0.1/fem-drawer.cc:266: undefined reference to `_glDisable'
/salmon/salmon-0.1/fem-drawer.cc:267: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:268: undefined reference to `_glBlendFunc'
/salmon/salmon-0.1/fem-drawer.cc:269: undefined reference to `_glClearColor'
/salmon/salmon-0.1/fem-drawer.cc:270: undefined reference to `_glFlush'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer13draw_triangleEP8Triangleb':
/salmon/salmon-0.1/fem-drawer.cc:284: undefined reference to `_glBegin'
/salmon/salmon-0.1/fem-drawer.cc:286: undefined reference to `_glBegin'
/salmon/salmon-0.1/fem-drawer.cc:315: undefined reference to `_glNormal3dv'
/salmon/salmon-0.1/fem-drawer.cc:322: undefined reference to `_glNormal3dv'
/salmon/salmon-0.1/fem-drawer.cc:326: undefined reference to `_glEnd'
/salmon/salmon-0.1/fem-drawer.cc:335: undefined reference to `_glBegin'
/salmon/salmon-0.1/fem-drawer.cc:339: undefined reference to `_glEnd'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer12enter_vertexE7Vector3':
/salmon/salmon-0.1/fem-drawer.cc:347: undefined reference to `_glVertex3dv'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer4drawEv':
/salmon/salmon-0.1/fem-drawer.cc:384: undefined reference to `_glDrawBuffer'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer10draw_frameEv':
/salmon/salmon-0.1/fem-drawer.cc:398: undefined reference to `_glClear'
/salmon/salmon-0.1/fem-drawer.cc:399: undefined reference to `_glClear'
/salmon/salmon-0.1/fem-drawer.cc:411: undefined reference to `_glFlush'
out-glut/fem-drawer.o: In function `_ZN10Fem_drawer12set_lightingEv':
/salmon/salmon-0.1/fem-drawer.cc:434: undefined reference to `_glClearColor'
/salmon/salmon-0.1/fem-drawer.cc:437: undefined reference to `_glFrontFace'
/salmon/salmon-0.1/fem-drawer.cc:439: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:440: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:441: undefined reference to `_glLightfv'
/salmon/salmon-0.1/fem-drawer.cc:442: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:443: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:444: undefined reference to `_glEnable'
/salmon/salmon-0.1/fem-drawer.cc:445: undefined reference to `_glShadeModel'
/salmon/salmon-0.1/fem-drawer.cc:449: undefined reference to `_glShadeModel'
/salmon/salmon-0.1/fem-drawer.cc:450: undefined reference to `_glDisable'
/salmon/salmon-0.1/fem-drawer.cc:451: undefined reference to `_glDisable'
out-glut/fem-drawer.o: In function `_ZN

Re: less doesn't recognize capabilities of remote terminal

2007-02-06 Thread Gary Johnson
On 2007-02-06, Lev Bishop wrote:
> On 2/5/07, Gary Johnson wrote:
> > On 2007-02-05, Gary Johnson wrote:
> > > I recently got Cygwin's sshd running on my Windows XP machine.  It
> > > seems to basically work fine, allowing me to login from any of
> > > several machines running various flavors of Unix.  Cygwin's less
> > > command, however, doesn't seem to recognize the capabilities of my
> > > remote terminal.
> > >
> > > For example, I often use ssh to login to my Windows machine from
> > > another machine running SunOS 5.8, using an xterm version "XFree86
> > > 4.1.0(165)".  When I use less to read a file, I get a warning
> > > message:
> > >
> > > $ less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README
> > > WARNING: terminal is not fully functional
> > > /usr/share/doc/Cygwin/terminfo-5.5_20061104.README  (press RETURN)
> >
> > Update:  If I simply set TERM=xterm (instead of xterm-16color), less
> > works fine:
> >
> > TERM=xterm less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README
> >
> > The difference between the two terminfo entries is:
> 

> The cygwin-distributed less doesn't use terminfo. It was built with
> -ltermcap. The cygwin-distributed /etc/termcap doesn't have an entry
> for xterm-16color. Thus, less complains. Possible solutions inlclude
> adding an xterm-16color line to /etc/termcap (could just be an
> additional alias to xterm), or installing libncurses-devel,
> downloading the less source package and building it yourself (the
> build process will automatically use ncurses if it's available).

Thank you very much.  With that, it turned out to be an easy fix.  I 
read the termcap(3) and infocmp(1) man pages, then executed this in 
my HOME directory:

TERM=xterm-16color infocmp -Cr > .termcap

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA

--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Matthew Woehlke

Igor Peshansky wrote:

On Tue, 6 Feb 2007, Matthew Woehlke wrote:

...but doesn't the script itself involve a fork? On a big project, with
an extra fork for every source file, that can still add up.


Don't forget that invoking the gcc executable from make or the shell
involves a fork anyway.  If gcc is 'exec'ed from the script, there will
only be the fork that invokes the shell, versus the fork that would have
invoked the executable.


Hmm, ok, I was never convinced that bash's exec builtin didn't still 
involve fork()ing. Now I am (having taken a closer look at it).


--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.


--
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: sshd exits during login attempt on WinXP 2003 x64 if user running sshd is different from user running ssh

2007-02-06 Thread Corinna Vinschen
On Feb  6 09:29, Brian Kasper wrote:
> If I run "c:\cygwin\usr\sbin\sshd -d" in a Windows command prompt 
> started as user "administrator" and then run "ssh -l kasper localhost" 
> in another command prompt started as user "administrator", the session 
> FAILS with the message "/bin/bash: Permission denied".
> 
> If I run "c:\cygwin\usr\sbin\sshd -d" in a Windows command prompt 
> started as user "administrator" and then run "ssh localhost" in a 
> command prompt started as user "kasper", the session FAILS after these 
> sshd debugging messages:

This won't work.  By default, no user has the required permissions to
change the user context.  Start here:

  $ less /usr/share/doc/Cygwin/openssh.README

and here:

  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch

and install sshd as service using the ssh-host-config script.


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/



Re: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Igor Peshansky
On Tue, 6 Feb 2007, Matthew Woehlke wrote:

> Igor Peshansky wrote:
> > On Sun, 4 Feb 2007, Yaakov (Cygwin Ports) wrote:
> > > Will using shell wrappers noticably slow down calls to gcc?  Or should
> > > we just start explicitly calling i686-pc-cygwin-gcc instead?  (FWIW
> > > Gentoo does the equivalent of the latter.)
> >
> > I don't think speed itself will be a problem, unless the scripts are
> > really naive and involve lots of forks.  However, as I noted before,
> > scripts cannot be invoked from non-Cygwin programs.
>
> ...but doesn't the script itself involve a fork? On a big project, with
> an extra fork for every source file, that can still add up.

Don't forget that invoking the gcc executable from make or the shell
involves a fork anyway.  If gcc is 'exec'ed from the script, there will
only be the fork that invokes the shell, versus the fork that would have
invoked the executable.

I was referring to the scripts calling "grep", "sed", etc, to process the
options instead of using the bash builtin commands which don't involve
forks.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
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: Eliminating -mno-cygwin from gcc.

2007-02-06 Thread Matthew Woehlke

Igor Peshansky wrote:

On Sun, 4 Feb 2007, Yaakov (Cygwin Ports) wrote:

Will using shell wrappers noticably slow down calls to gcc?  Or should
we just start explicitly calling i686-pc-cygwin-gcc instead?  (FWIW
Gentoo does the equivalent of the latter.)


I don't think speed itself will be a problem, unless the scripts are
really naive and involve lots of forks.  However, as I noted before,
scripts cannot be invoked from non-Cygwin programs.


...but doesn't the script itself involve a fork? On a big project, with 
an extra fork for every source file, that can still add up.


--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.


--
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 list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread Dave Korn
On 06 February 2007 14:54, zzapper wrote:

> Tim Prince <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> 
>> I may not be catching your intent; why not sort by .dll dependencies?
> I want to find out what non-cygwin apps I will have to manually install on
> my new PC
> 
>> why not sort by .dll dependencies
> How?
> 

  Tim may have been thinking of non-cygwin apps, i.e. non *cygwin* apps, i.e.
apps that do not use or link against cygwin1.dll, i.e. win32 apps, rather than
non-cygwin apps, i.e. *non-cygwin* apps, i.e. ones that aren't from official
packages.  So I guess the answer is

(cd / && ls -1 usr/bin/* ) >a.txt
gunzip -c /etc/setup/*.lst.gz  | grep '^usr/bin/.' > b.txt
cat a.txt b.txt | sort | uniq -u

... although this will also find anything that was created by a postinstall
script as well: shortcuts in particular.  (There may be other false
pos/neg-atives, I haven't been thorough...)


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: How to list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread DePriest, Jason R.

On 2/6/07, zzapper  wrote:

Tim Prince  wrote in news::

> I may not be catching your intent; why not sort by .dll dependencies?
I want to find out what non-cygwin apps I will have to manually install on my
new PC

> why not sort by .dll dependencies
How?



--
zzapper
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips




You could run
cygcheck /usr/bin/*
and look for things that don't depend on \cygwin\bin\cygwin1.dll

-Jason

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



Re: less doesn't recognize capabilities of remote terminal

2007-02-06 Thread Lev Bishop

On 2/5/07, Gary Johnson wrote:

On 2007-02-05, Gary Johnson wrote:
> I recently got Cygwin's sshd running on my Windows XP machine.  It
> seems to basically work fine, allowing me to login from any of
> several machines running various flavors of Unix.  Cygwin's less
> command, however, doesn't seem to recognize the capabilities of my
> remote terminal.
>
> For example, I often use ssh to login to my Windows machine from
> another machine running SunOS 5.8, using an xterm version "XFree86
> 4.1.0(165)".  When I use less to read a file, I get a warning
> message:
>
> $ less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README
> WARNING: terminal is not fully functional
> /usr/share/doc/Cygwin/terminfo-5.5_20061104.README  (press RETURN)

Update:  If I simply set TERM=xterm (instead of xterm-16color), less
works fine:

TERM=xterm less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README

The difference between the two terminfo entries is:



That xterm-16color terminfo is from Cygwin's /usr/lib/terminfo.  The
xterm-16color terminfo from the xterm-165 release that I have on the
Sun machine is different, but its setb and setf strings also lack
the leading \E's.  The same is true for the xterm-16color terminfo
from a Red Hat Linux 9 machine with xterm-174.

This is just a guess, but I wonder if the setb and setf entries are
long-standing errors in the xterm terminfo data that haven't been
detected because applications use setab and setaf instead.  But then
why does only Cygwin's less complain?


The cygwin-distributed less doesn't use terminfo. It was built with
-ltermcap. The cygwin-distributed /etc/termcap doesn't have an entry
for xterm-16color. Thus, less complains. Possible solutions inlclude
adding an xterm-16color line to /etc/termcap (could just be an
additional alias to xterm), or installing libncurses-devel,
downloading the less source package and building it yourself (the
build process will automatically use ncurses if it's available).

Lev

--
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.5.24: Exiting less (381), vim (7.0.122), and man (1.6d) sets the console background color to black

2007-02-06 Thread Chris Cole
When you exit vim, less, man, and possibly other applications the background
color is set to black regardless of the setting in the shortcut that
launches the console.  The clear command returns the background to the
correct color.  This problem was first reported in Oct 2005 but was
incorrectly attributed to settings in the PS1 environment variable, which
are not the cause of the problem.



--
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: Re: How to list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread Jörg Schaible
A list of the intsalled files for each package is available in /etc/setup.

zzapper wrote on Tuesday, February 06, 2007 3:54 PM:

> Tim Prince <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> 
>> I may not be catching your intent; why not sort by .dll
> dependencies?
> I want to find out what non-cygwin apps I will have to
> manually install on my
> new PC
> 
>> why not sort by .dll dependencies
> How?
> 
> 
> 
> --
> zzapper
> http://successtheory.com/tips/ Vim, Zsh, MySQL Tips

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



Re: How to list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread zzapper
Tim Prince <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:

> I may not be catching your intent; why not sort by .dll dependencies?
I want to find out what non-cygwin apps I will have to manually install on my 
new PC

> why not sort by .dll dependencies
How? 



-- 
zzapper
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


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



Re: svn on cygwin related problem.

2007-02-06 Thread Frodak

--- Luca Cappa wrote:

> Hello all,
> 
> I am using the svn package provided by cygwin (svn
> --help reports "version  
> 1.4.2 (r22196) compiled Dec  2 2006, 14:28:55"), and
> I encountered the  
> following problem while exporting the content of my
> Subversion repository.
> 
> In the repository, I have a directory T which
> contains another file called  
> X.exe and a directory called X. When I export the
> content of the whole  
> repository (svn export --force
> svn://localhost/trunk/PathToDirectoryT),  
> the follwoing happens:
> 
> -the X.exe file gets exported correctly;
> -when the the X directory would get exported, svn
> outputs the following  
> error: "svn: 'X' exists and is not a directory"
> 
> It does not happen if I manually export first the X
> directory, and then  
> the X.exe file, like:
> svn export --force svn://localhost/trunk/PathToT/X
> svn export --force
> svn://localhost/trunk/PathToT/X.exe
> 
> but the error happens if I export the X.exe file
> before the directory,  
> i.e.:
> svn export --force
> svn://localhost/trunk/PathToT/X.exe
> svn export --force svn://localhost/trunk/PathToT/X
> svn: 'Programmer' exists and is not a directory
> 
> which is the sequence of operations when the whole
> repository is exported.  
> Is this a bug? Should I report it to cygwin or to
> tigri's subversion?
> 
> I am using Windows XP Professional, NTFS fs in both
> the server and the  
> client computers.
> Notice that the problem does not happen when the
> same sequence of actions  
> are executed with the native win32 client provided
> by Tigris, so it should  
> be a cygwin related problem only.
> 
> Greetings,
> Luca

Hi, I had posted to the svn list that I couldn't
reproduce this issue in my setup.

Here is what I saw with this type of export:
$ svn export file:///svn/test/exe test_export
Atest_export
Atest_export/file
Atest_export/file/new_sub_file.txt
Atest_export/file.exe

Exported revision 30.

Or am I missing something?





 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

--
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 list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread Tim Prince

[EMAIL PROTECTED] wrote:
My Cygwin installation is at least 4 years old and I will soon move to a new 
PC and a fresh install. How can I list/detect any "non-cygwin" apps that I 
may have added to /bin etc



I may not be catching your intent; why not sort by .dll dependencies?

--
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 to list/detect any "non-cygwin" apps in /bin

2007-02-06 Thread zzapper
My Cygwin installation is at least 4 years old and I will soon move to a new 
PC and a fresh install. How can I list/detect any "non-cygwin" apps that I 
may have added to /bin etc

-- 
zzapper
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


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



Re: Permissions problem, maybe not cygwin-specific but still..

2007-02-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Eric Lilja on 2/6/2007 1:33 AM:
> -rwx--+ 1 hivemind None 3.4K Feb  6 09:10 simple-2.2.html*
> 
> Then I do:
> $ mkdir 2.3
> 
> $ cp 2.2/simple-2.2.html 2.3/simple-2.3.html

> -rwx-- 1 hivemind None 3.4K Feb  6 09:24 simple-2.3.html*

The '+' means there are ACLs associated with the files.  getfacl and
setfacl are useful in this area.  Upstream coreutils has also been slowly
adding ACL support, but I haven't been following that closely enough, and
it doesn't seem that 'cp -p' preserves ACLs at this time.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyH5U84KuGfSFAYARAjGOAJ9cfqtBIYqWgIjfq2thz9VUsL4wzwCaAmwr
NKIYWiiozVUEeAK68jwdcsQ=
=edrP
-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/



svn on cygwin related problem.

2007-02-06 Thread Luca Cappa

Hello all,

I am using the svn package provided by cygwin (svn --help reports "version  
1.4.2 (r22196) compiled Dec  2 2006, 14:28:55"), and I encountered the  
following problem while exporting the content of my Subversion repository.


In the repository, I have a directory T which contains another file called  
X.exe and a directory called X. When I export the content of the whole  
repository (svn export --force svn://localhost/trunk/PathToDirectoryT),  
the follwoing happens:


-the X.exe file gets exported correctly;
-when the the X directory would get exported, svn outputs the following  
error: "svn: 'X' exists and is not a directory"


It does not happen if I manually export first the X directory, and then  
the X.exe file, like:

svn export --force svn://localhost/trunk/PathToT/X
svn export --force svn://localhost/trunk/PathToT/X.exe

but the error happens if I export the X.exe file before the directory,  
i.e.:

svn export --force svn://localhost/trunk/PathToT/X.exe
svn export --force svn://localhost/trunk/PathToT/X
svn: 'Programmer' exists and is not a directory

which is the sequence of operations when the whole repository is exported.  
Is this a bug? Should I report it to cygwin or to tigri's subversion?


I am using Windows XP Professional, NTFS fs in both the server and the  
client computers.
Notice that the problem does not happen when the same sequence of actions  
are executed with the native win32 client provided by Tigris, so it should  
be a cygwin related problem only.


Greetings,
Luca


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



Permissions problem, maybe not cygwin-specific but still..

2007-02-06 Thread Eric Lilja

Hello!

I'm trying to learn html (and some other web technologies). I see that 
cygwin has an apache package but I'm actually using the native windows 
version. I edit files using native windows emacs (fresh checkout from 
cvs head, compiled myself), but I work from the command line, in a 
cygwin bash shell of course. My problem is that when I issue the cp 
command to copy a .html-file I want to make changes to. The original 
html file has the following permissions:

$ ls -l 2.2/*.html
total 5.0K
-rwx--+ 1 hivemind None 3.4K Feb  6 09:10 simple-2.2.html*

Then I do:
$ mkdir 2.3

$ cp 2.2/simple-2.2.html 2.3/simple-2.3.html

But when I try to view simple-2.3.html in my web browse, apache says:
"Forbidden
You don't have permission to access /2.3/simple-2.3.html on this server."

So I check the permissions on the copy:

$ ls -l 2.3
total 4.0K
-rwx-- 1 hivemind None 3.4K Feb  6 09:24 simple-2.3.html*

I don't know what '+' sign (or lack of it) mean at the end of the 
permission string, but it doesn't get copied and apache won't let me 
view my html files without it.


Could someone more knowledgeable than me shed some light on this? I'm 
using a fully updated cygwin on a WinXP Pro SP2 machine.


- Eric


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