Re: Cygwin1.dll problem with Hyperthreaded machines.

2004-04-07 Thread Corinna Vinschen
On Apr  6 18:29, Chuck McDevitt wrote:
> I upgraded, and it didn't help.

What about the latest developers snapshot from
http://http://www.cygwin.com/snapshots/ ?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-07 Thread Hughes, Bill
> Sent: 06 April 2004 16:20  From: Dave Korn
..snip..
> > From: cygwin-owner On Behalf Of Hughes, Bill
> > Sent: 06 April 2004 14:59
> 
> > > Sent: 06 April 2004 14:10  From: [EMAIL PROTECTED]
> > ..snip..
> > > Please can you tell me how to grep for an ASCII 00 (and for 
> > > that matter
> > > anything from ASCII 1B to 1F, and 7F to FF)?
> > I'm no expert but
> > grep [\x00] foo.bar
> > might be what you're after.
> 
> Nope.  That will grep for a lower case x or a zero:
> 
> [EMAIL PROTECTED] /swtools/windows/bin> echo "abcxdef" > test1.txt
> [EMAIL PROTECTED] /swtools/windows/bin> echo "0123456" > test2.txt
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\x61] test?.txt
> test1.txt:abcxdef
> test2.txt:0123456
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\x16] test?.txt
> test1.txt:abcxdef
> test2.txt:0123456
> 
>   grep is not printf, and an escaped shell metacharacter is 
> not the same
> thing as a C-compiler escaped control char sequence in a 
> string literal:
> 
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\r] test?.txt
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\n] test?.txt
> [EMAIL PROTECTED] /swtools/windows/bin> echo >>test1.txt
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\n] test?.txt
> [EMAIL PROTECTED] /swtools/windows/bin> grep [\r] test?.txt
> [EMAIL PROTECTED] /swtools/windows/bin> wc -l test1.txt
>   2 test1.txt
> [EMAIL PROTECTED] /swtools/windows/bin>
Doh, I said I wasn't an expert.
I put it down to two things:
Insufficient testing - my test cases all worked as I expected, so I
obviously didn't have enough of them. I ought to know better by now.
Insufficient knowledge. A little learning being a dangerous thing etc. Mind
you the grep man and info pages (and google come to that) weren't a lot of
help.
Apologies (wipes egg from face).

Bill
--

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
[EMAIL PROTECTED]

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.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/



Re: errors coming from building from scratch

2004-04-07 Thread Gerrit P. Haase
Hello Edward,

>>However, automake installs things with a default permission of 644, which doesn't
>>work fine on other packages and leads to popups. 

This is strange.

Larry wrote:
> Perhaps I'm missing something obvious but it seems to me that the real
> question is why automake is installing things with the incorrect 
> permissions for you.  Is there a reason you're not focused on this issue?

I agree.  Executables should be installed with 755 permissions.


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/



i am newbie anybody help me installation

2004-04-07 Thread kiran kumar
hello guys,
  i want g++ compiler exactly as it works
in linux. what are the packages i have to install? so
it will work well in windows too.

 with regards.

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

--
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: cygheap problems, also on version 1.5.9 (was Re: cygheap problems, 20040326 snapshot)

2004-04-07 Thread Andy Rushton
Brian Ford wrote:

On Mon, 29 Mar 2004, Andy Rushton wrote:
 

The really odd thing is that I have another PC at home with the same
version of XP, same update status and as far as I can tell, the same
install of Cygwin and I have no problems.
   

Are you sure about the "same update status" part?  The following would
imply that a "Windows Update" will fix your problem.  Could you try it and
report back?
 

Good question. Okay, I'm on XP, not 2k as the other correspondent is. 
Nevertheless I have fallen into the trap of not checking what's *really* 
happening rather than what MS say is happening. My computer here - the 
one that was getting the error - is supposed to be on auto-update. 
That's what the settings say it is. However, I found that a manual 
update found 5 'critical' (whatever that means) updates that hadn't been 
installed. Installing them appears to have made the problem go away.

Oh, I do so love Windoze.

--
Andy Rushton, Southampton, UK
"I believe it's very hard to have fun in Iceland without fish being
involved in some way."
   -- Looking for a good place to party
  (Terry Pratchett, Johnny and the Dead)
--
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: i am newbie anybody help me installation

2004-04-07 Thread Thorsten Kampe
* kiran kumar (2004-04-07 11:35 +0100)
> hello guys,
>   i want g++ compiler exactly as it works
> in linux. what are the packages i have to install? so
> it will work well in windows too.

Setup.exe -> Developer


--
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: i am newbie anybody help me installation

2004-04-07 Thread Jani tiainen
kiran kumar wrote:

hello guys,
  i want g++ compiler exactly as it works
in linux. what are the packages i have to install? so
it will work well in windows too.
Err... What you mean by "as it works in linux". Because Linux itself 
doesn't really contain g++ compiler, you have to be more spesific about 
needed libraries. "Standard" librares comes out-of-box, but different 
spesific libraries have to be installed by hand. Or if you want to be 
"sure" just install everything. But even that doesn't guarantee that 
compilation works (eg. cygwin port of kde and gnome libraries are under 
work) and of course programs have to be written in portable way 
(backlinking problem is excellent example things that works in linux but 
not in cygwin).

Otherwise g++ compiler in cygwin, and Linux works "same way" because 
both are compiled from same codebase.

--

Jani Tiainen

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


Squid "Too many files"

2004-04-07 Thread Hardy Jonck
Hi All,

I have searched for a fix for the squid problem on cygwin where it exists
with the following message:

$ FATAL: setrlimit: RLIMIT_NOFILE: (24) Too many open files
Squid Cache (Version 2.4.STABLE7): Terminated abnormally.
CPU Usage: 0.080 seconds = 0.010 user + 0.070 sys
Maximum Resident Size: 15184 KB
Page faults with physical i/o: 1025

I have found refrences to this - but no fix,

Can anyone point me to a fix?

Sincerely
Hardy Jonck

--
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: cygheap problems, also on version 1.5.9 (was Re: cygheap problems, 20040326 snapshot)

2004-04-07 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Andy Rushton
> Sent: 07 April 2004 10:36

>  My computer 
> here - the 
> one that was getting the error - is supposed to be on auto-update. 
> That's what the settings say it is. However, I found that a manual 
> update found 5 'critical' (whatever that means) updates that 
> hadn't been 
> installed. Installing them appears to have made the problem go away.
> 
> Oh, I do so love Windoze.

It's always worth double-checking your firewall settings when something like
this happens.  If you use a PFW it's all too easy to be working away and up
pops a little requester saying something like "Can Generic Hosts and
Services executable connect to the internet?" and without thinking to go
"Nahh, dam M$ spyware trying to phone home again" and block it without
realising that was your auto-update service trying to do its job.

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/



Fw: Will using cygwin help with back-linking?

2004-04-07 Thread Jay West
Forgot to copy to list...
- Original Message - 
From: "Jay West" <[EMAIL PROTECTED]>
To: "Jani tiainen" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 8:40 AM
Subject: Re: Will using cygwin help with back-linking?


> You wrote...
> > You don't have to, I did it already.. =)
> Thanks so much for the advice!!
>
> > Basicaly thing goes so that you compile (but not link) needed files,
> > generate needed .lib:s and then link whole thing.
> Ok, that gives me an idea for how to proceed. From the reading I did on
> libtool, there's an excellent section on how to deal with this. I just
> didn't like the answer they gave there and was hoping cygwin provided "the
> magic". The libtool page I was reading said either only work on platforms
> that support backlinking, or, make the main executable a "stub exe &
> separate library" so that all objects wishing to be shared are stuffed in
a
> library. Then link that library with the modules. I really didn't want to
> have to totally reorganize the code but it sounds like what you are
advising
> is pretty much the same approach.
>
> In my specific case, each module ("plug-in") has subroutines with the same
> names. In the dlopen/dlsym world, this is ok as only one module is
dlopened
> at a time. Hopefully the "linking against libraries" method won't obviate
> this and complain about duplicate symbols.
>
> > 
> >
> > 
> Awesome! Teach a man to fish :)
>
> > Because this is strictly windoze specific, this is also a offtopic of
> > this mailinglist..
> Yes, now that I see cygwin doesn't magically get around the backlinking
> issue, you're right - it becomes strictly a windows centric problem. I do
> wonder if something couldn't be added to cygwin like it's own module
loader
> that did take care of backlinking - if that's at all possible. As I
> understand it, it would sure make it easier to port unix code to windows
and
> that's what cygwin is all about :)
>
> Thanks so much... back to the coding table!
>
> Jay West
>

---
[This E-mail scanned for viruses by Declude Virus]


--
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: errors coming from building from scratch

2004-04-07 Thread Gerrit P. Haase
Hi Edward,

>> Perhaps I'm missing something obvious but it seems to me that the real
>> question is why automake is installing things with the incorrect 
>> permissions for you.  Is there a reason you're not focused on this issue?

> Well, as a quick workaround I am focused on this issue (I install my own hacked
> version of automake) but there are two reasons why I think 777 perms is a bad policy
> to follow:

> 1) I think its going to be a hard issue to sell automake on the necessity
>of making cygwin behave totally different from any other environment,
>and make a kludge to have arguments to install for cygwin be 777
>by default.

Why?  Different platforms always need their own special way to get
things running. BTW, the default setting for executables should be 755
as it is on Linux too, in the Windows world, also shared libs need this
permission.


> 2) down-the-stream packages don't necessarily use automake - they've
>already got generated Makefile.in or configure scripts which have 644
>hardcoded. Asking users to get a new version of automake and regenning
>things using automake is too much to ask IMO.

I'm not sure if automake includes code for managing DLL installation at
all, this is usually done via libtool.


> 3) imo - philosophically its just wrong to require execute permissions
>for the libraries. the program links with the libraries to use the
>libraries functionality, it doesn't 'execute the library'.

It is this way on Windows, shared libraries must be executable.


> Its not a question of whether or not I can hack around stuff, I can and will,
> its a question of how clean people want the building process to be, and how
> useful the tools are. As well as how close they mimic other unixes.

The tools should just work.  If they do things wrong, then the tools
need to be fixed.


Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


--
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: Will using cygwin help with back-linking?

2004-04-07 Thread Christopher Faylor
On Wed, Apr 07, 2004 at 08:33:19AM +0300, Jani tiainen wrote:
>Jay West wrote:
>
>>Larry wrote...
>>
>>>Did you see this?
>>>
>>>
>>
>>No I didn't, but thanks! Actually, no, it doesn't answer my question. It
>>does ask the precursor to my question, which is how to create a dlopenable
>>module. I'm well aware of how to do that on unix, using exactly the 
>>commands
>>he listed (main executable with --export-dynamic, module with -fpic and
>>ld -shareable -dynamic). He is generally asking how to do that with cygwin,
>>but there's no discussion of exactly what with, and if, backlinking is
>>supported on a cygwin-ized windows machine.
>>
>>I will gladly do the legwork of figuring out the specifics of how to do it
>>on cygwin, but I was hoping someone could at least point me down the right
>>path. Let me be more specific, I see two alternatives:
>
>You don't have to, I did it already.. =)
>
>>So I guess in the final analysis there are two specific questions: Does
>>cygwin-based windows take care of backlinking, and if so with what
>>tool/method, and  is it's method compatable with libtool in a transparent
>>way on Unix vs. Cygwin/Windows?
>
>Shortly no. Longer answer is yes it does.
>
>I rember writing a few articles about this...
>
>Basicaly thing goes so that you compile (but not link) needed files, 
>generate needed .lib:s and then link whole thing.
>
>Note that you can export symbols from .exe in same way.
>
>Here is few pointers:
>
>
>
>
>
>
>And bad news is: libtool can't handle this (at least not to my knowledge).
>
>Because this is strictly windoze specific, this is also a offtopic of 
>this mailinglist..

I wouldn't call it off-topic if it is using the binutils and gcc
provided by cygwin.

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/



[ANNOUNCEMENT] Updated: zsh-4.2.0-2

2004-04-07 Thread Peter A. Castro
An updated version of zsh (zsh-4.2.0-2) has been released and should be
at a mirror near you real soon.

This release fixes the following:

- Installation related bugs found in 4.2.0-1 postinstall script.  This
  would cause no /etc/zprofile to be copied on a fresh install on a
  virgin machine.

- Fix for running scripts from text-mode mounted filesystems.  Previously
  if you ran a script from a text-mode mount, and it had DOS CR/LF's line
  termination, zsh would report ^M errors.  The shell now opens such
  files with O_TEXT which causes line termination to be massaged.  I'll
  be watching for problem reports concerning this as it was a broad
  change, the implications of which haven't been fully realized yet.

To update your installation, click on the "Install Cygwin now"
link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

If you have questions or comments, please send them to the Cygwin
mailing list (see http://cygwin.com/lists.html).

  *** 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:

[EMAIL PROTECTED]

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

http://sources.redhat.com/lists.html#unsubscribe-simple

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


-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood


--
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: Cygwin1.dll problem with Hyperthreaded machines.

2004-04-07 Thread Chuck McDevitt
Corinna Vinschen <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
04/07/2004 04:07 AM
Please respond to cygwin
 
To: Cygwin List <[EMAIL PROTECTED]>
cc: 
Subject:Re: Cygwin1.dll problem with Hyperthreaded 
machines.



On Apr  6 18:29, Chuck McDevitt wrote:
> I upgraded, and it didn't help.

What about the latest developers snapshot from
http://http://www.cygwin.com/snapshots/ ?

Corinna

-- 





Corinna Vinschen <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
04/07/2004 04:07 AM
Please respond to cygwin
 
To: Cygwin List <[EMAIL PROTECTED]>
cc: 
Subject:Re: Cygwin1.dll problem with Hyperthreaded 
machines.



On Apr  6 18:29, Chuck McDevitt wrote:
> I upgraded, and it didn't help.

What about the latest developers snapshot from
http://http://www.cygwin.com/snapshots/ ?

Corinna

-

Ok, I upgraded to the latest snapshot.  This did change the symptoms.  I 
no longer see the thread message.
But, under pd ksh:

CMCDEVITT> test.ksh
Test Failed..Path is empty
Test ended.
CMCDEVITT> test.ksh
Memory fault (core dumped)

CMCDEVITT> test.ksh
Test Failed..Path is empty
Test ended.
CMCDEVITT> test.ksh
Test Failed..Path is empty
Test ended.
CMCDEVITT> test.ksh
Memory fault (core dumped)

Under bash, the symptoms are different... I don't get the "test failed" 
problem, and don't get core dumps,
but bash will hang, leaving the shell unresponsive to ctrl-c, and not 
using any CPU... The only way to stop it is to kill the process.









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



[ANNOUNCEMENT] Updated: cygrunsrv-0.99-1

2004-04-07 Thread Corinna Vinschen
I have updated cygrunsrv to version 0.99-1.

This version adds a new behaviour and a new option.

When running services interactively (using -i, --interactive option),
usually a console window pops up which has been opened by the service
control manager.  Beginning with version 0.99, cygrunsrv hides that
console window by default.  If you need that console window open, use
the -j or --nohide option.  In that case, cygrunsrv keeps the console
window untouched.


If you have questions or comments, please send them to the Cygwin 
mailing list at:  [EMAIL PROTECTED] .  I would appreciate
if you would use this mailing list rather than emailing me directly.
This includes ideas and comments about the setup utility or Cygwin
in general.

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe to 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:

[EMAIL PROTECTED]

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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: strange install problems

2004-04-07 Thread Erik Weibust
> >2.  Shouldn't cygwin use something like
> $My_Documents
> >as it's home?  This is mostly on a local drive for
> all
> >windows installs.
> 
> 
> Cygwin uses for your home directory whatever Windows
> says
> is your home directory.   Cygwin gets this from
> '/etc/passwd'.  
> If you do a 'mkpasswd -d -u ',
> you'll see 
> what Cygwin will use as your home directory, as set
> by the 
> administrator of your domain.  If you don't want
> that, use
> the '-p' option.

How exactly do I use the "-p" option?

mkpasswd -p 
> 
> 
> >3.  Does cygwin not build a /home/$USERNAME
> dir/path
> >as part of it's install?  I did a complete install
> and
> >expected it.  Before I uninstalled my previous
> cygwin
> >install (which was installed a year ago) I did have
> a
> >/home/$USER dir and that is what I backed up.
> 
> 
> I think you're looking for this explanation:
> 
>

> 
> or see '/etc/profile'.  '/etc/profile' makes your
> home
> directory if it doesn't exist. 
> 
> >4.  If the answer to number 3 is No.  Can I just
> >create a /home/$USER and copy my old /home/user
> there?
> 
> 
> Sure.  Copy it where you like and need it.  Make
> Cygwin 
> see it where ever you want if the one it gets from
> Windows
> isn't to your liking.

Your comment "Make Cygwin see it where ever you want"
is vague.  How do I do that?

Thanks,

Erik

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

--
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.9: malloc bug (Win98)

2004-04-07 Thread Ross Ridge

-- 
 l/  //   Ross Ridge -- The Great HTMU
[oo][oo]  [EMAIL PROTECTED]
-()-/()/  http://www.csclub.uwaterloo.ca/u/rridge/ 
 db  //   

--
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: Will using cygwin help with back-linking?

2004-04-07 Thread Jani tiainen
Christopher Faylor wrote:
On Wed, Apr 07, 2004 at 08:33:19AM +0300, Jani tiainen wrote:

And bad news is: libtool can't handle this (at least not to my knowledge).

Because this is strictly windoze specific, this is also a offtopic of 
this mailinglist..


I wouldn't call it off-topic if it is using the binutils and gcc
provided by cygwin.
Well it depends. Since cygwin basically offers Linux API functionality, 
using shared libraries is a bit off a scope.

Of course cygwin could provide "full" emulation layer, but it would make 
cygwin much slower than currently is.

IMO current 3-tier system is very adequate. In some ocassions this back 
linking problem arises, and it can be solved. Well libtool directly 
doesn't provide way to do it but it can be done without it.

If "everything" that uses some cygwin tools is cygwin specific problem 
this list would flood over.

--

Jani Tiainen

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


chown, #!command in scripts, auto-execute (.bat), etc

2004-04-07 Thread Andreas
Larry Hall wrote:

At 12:51 PM 3/25/2004, you wrote:
 

Hallo!
I'm using CYGWIN_NT-5.1 (cygcheck.out attached)
*I installed Cygwin in a Subdir /cygdrive/d/temp/Cyg/, because here we don't have permissions for /. So I want to chroot to that installation-directory, for getting the programs working properly.
chroot $InstallROOT $InstallROOT/usr/bin/bash
-->> "chroot: cannot chdir to root directory: No such file or directory"
At home I did the same, ADDITIONALLY having /usr/bin/bash, but I get the same errors.
   

This makes perfect sense to me, given your cygcheck output.  I'll give you
a hint as to why this makes sense to me.  What is "$InstallROOT" set to?
 

Hallo!
Content of $InstallROOT is in the comment (see lines below!), but that 
seems to be unimportant,
perhaps the following lines are more important than cygout.txt?! ;-)
I unpacked all to a directory (Temp), where we have write-permissions.
So "my (imaginary) Root" is that directory, and I want to chroot to that 
directory, which doesn't work. (chroot instead of mounting /)
Is mount D:/Temp /Xyz   the same as  mount /cygwin/d /Xyz ?
Why is /cygwin not named /mnt? - Why is it not possible to mount other 
things into /cygwin?
Or is /cygwin the (source-) "device" ?

chroot $InstallROOT; doesn't work  # InstallROOT=/cygdrive/d/Temp/Cyg
Also cd /; chroot .# doesn't work
chroot /;# works, but worthless
* mount works, whereas I can't alter anything (umount, mounting others doens't work)
 -->> umount: /cygdrive/H: Permission denied
mkdir X; mount /dev/hda1 X   -->> mount: X: Invalid argument
 which devices are to be used? (As /dev/null nothing exists, but works)
   

I think you don't understand what mount does in Cygwin.  Read 'man mount'
and .
 

I read it, but it doesnt work as expected:
mkdir $HOME/L; mount -u D:/ $HOME/L
-->mount: /cygdrive/d/temp/Cyg/home//L: Invalid argument
* Why doesn't work #!bash ? On other systems it's enough to let it find by the $PATH.
   

And what's in your path?  Would you be able to find bash in it's installed
location using only your currently defined path as a guide?
$InstallROOT/usr/bin is in my PATH. Typing bash (or any other command) 
(in the Home-dir) works!
The problem is that under cygwin the path is not searched for any 
#!Commands (try out yourself!)


Extension .bat is executed by command.com, if no extension, I would like to be able to leave the #!command out!

Sorry, I'm not sure what you're driving at with this statement, unless it
was just meant to clarify that you cannot run 'bash' without specifying
the full path to it.
 

I'm speaking about the extension. Is it possible to execute any script 
(without known extension) using bash.exe,
WITHOUT having to write #!bash.exe in the first line?! (Because 
otherwise it is executed by command.com)
What does mount -x/-X/-E do in detail? (any files being interpreted as 
binary, regardless their permissions?)
-o Option (-o managed) doesn't work?

  thanks, Andrew  Please also send your reply by Email to 
k009aaka+AT+unet.univie.ac.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/


Re: Will using cygwin help with back-linking?

2004-04-07 Thread Christopher Faylor
On Wed, Apr 07, 2004 at 08:01:41PM +0300, Jani tiainen wrote:
>Christopher Faylor wrote:
>>On Wed, Apr 07, 2004 at 08:33:19AM +0300, Jani tiainen wrote:
>>
>>>And bad news is: libtool can't handle this (at least not to my knowledge).
>>>
>>>Because this is strictly windoze specific, this is also a offtopic of 
>>>this mailinglist..
>>
>>
>>I wouldn't call it off-topic if it is using the binutils and gcc
>>provided by cygwin.
>
>Well it depends. Since cygwin basically offers Linux API functionality, 
>using shared libraries is a bit off a scope.

Let me rephrase it then:

Discussing this is not off-topic.

Does that make it clearer?
--
Christopher Faylor
Cygwin Co-Project Leader
TimeSys, 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: Squid "Too many files"

2004-04-07 Thread Christian Weinberger
Hardy

If you do a search for "squid RLIMIT patch", you should find my posting 
describing a binary patch to fix squid.

http://article.gmane.org/gmane.os.cygwin/40135

Regards,
Christian

Hardy Jonck <[EMAIL PROTECTED]> wrote in 
news:[EMAIL PROTECTED]:

> I have searched for a fix for the squid problem on cygwin where it exists
> with the following message:
> 
> $ FATAL: setrlimit: RLIMIT_NOFILE: (24) Too many open files
> Squid Cache (Version 2.4.STABLE7): Terminated abnormally.
> 
> I have found refrences to this - but no fix,
> 
> Can anyone point me to a fix?


--
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: errors coming from building from scratch

2004-04-07 Thread Edward S. Peschko

On Wed, Apr 07, 2004 at 03:57:59PM +0200, Gerrit P. Haase wrote:
> Hi Edward,
> 
> >> Perhaps I'm missing something obvious but it seems to me that the real
> >> question is why automake is installing things with the incorrect 
> >> permissions for you.  Is there a reason you're not focused on this issue?
> 
> > Well, as a quick workaround I am focused on this issue (I install my own hacked
> > version of automake) but there are two reasons why I think 777 perms is a bad 
> > policy
> > to follow:
> 
> > 1) I think its going to be a hard issue to sell automake on the necessity
> >of making cygwin behave totally different from any other environment,
> >and make a kludge to have arguments to install for cygwin be 755
> >by default.
> 
> Why?  Different platforms always need their own special way to get
> things running. BTW, the default setting for executables should be 755
> as it is on Linux too, in the Windows world, also shared libs need this
> permission.

ok, I can buy that.. 

> I'm not sure if automake includes code for managing DLL installation at
> all, this is usually done via libtool.

As it is, automake defines an INSTALL_DATA macro which translates into install -m 644
which is then substituted in Makefile.in. This install macro puts files and dlls
inside of lib. Some programs use libtool, some don't. Here are some packages that
don't:

binutils
gawk
gcc
gettext
libiconv 
sed
tar

I'll make a complete list when I'm done, but there's a good start. It might be that 
these 
packages don't use libtool for historical reasons, or for dependency reasons.

> The tools should just work.  If they do things wrong, then the tools
> need to be fixed.

Then - as it stands - either:

1) every single package that has an autogenerated file from automake needs
   to change via patch (because 644 is right now a hardcoded value, and 
   what you are asking for is a contingent value based on OS)

2) libtool has to be added as a dependency for the above packages and the above
   packages have to change their configuration process change to use libtool

3) automake && autoconf have to be changed and have to become part of the 
   standard install (ie: automake; autoconf; configure; make; make install) 

4) cygwin needs to somehow make readable files with extensions auto-executable 
   (ie: complete hack)

#1 - #2 seem to be logistical nightmares; #3 seems more manageable, but will probably
be a ton of effort because not every package uses the same version of autoconf and
automake and so there would be a lot of cleanup required; #4 seems pretty damn ugly.

I guess I could go with #3, but I have a feeling that opens up a whole can of worms.
(eg - I just tried automake on make-3.80-1 and it warned me to get an older version of
automake and to use aclocal. aclocal works but it comes in two flavors, 1.4 and 1.7, so
who knows how deep that pool goes.)

In any case, its going to take a concerted effort on the part of other module 
maintainers to make things build properly.. its not going to be a trivial fix unless
you go with the hack option. 

Ed

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



mv directories

2004-04-07 Thread JGraham
Just a quick note.  
if you are running linux, and have a vmware session open of XP with a
cygwin console.  And XP has a share mounted from the linux host via
samba as say..  H:  so, in cygwin it would be /cygdive/h.  And you have
a shortcut to that dive it's a bad idea to move a folder of backup
files to that destination (ie "mv backup ../linuxshare/").  There will
be no error message, and your data is gone...

JGraham

--
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: strange install problems

2004-04-07 Thread Larry Hall
At 12:58 PM 4/7/2004, you wrote:
>> >2.  Shouldn't cygwin use something like
>> $My_Documents
>> >as it's home?  This is mostly on a local drive for
>> all
>> >windows installs.
>> 
>> 
>> Cygwin uses for your home directory whatever Windows
>> says
>> is your home directory.   Cygwin gets this from
>> '/etc/passwd'.  
>> If you do a 'mkpasswd -d -u ',
>> you'll see 
>> what Cygwin will use as your home directory, as set
>> by the 
>> administrator of your domain.  If you don't want
>> that, use
>> the '-p' option.
>
>How exactly do I use the "-p" option?
>
>mkpasswd -p 


mkpasswd -l -d -u  -p 

i.e. mkpasswd -l -d -u erik -p /home


>> 
>> 
>> >3.  Does cygwin not build a /home/$USERNAME
>> dir/path
>> >as part of it's install?  I did a complete install
>> and
>> >expected it.  Before I uninstalled my previous
>> cygwin
>> >install (which was installed a year ago) I did have
>> a
>> >/home/$USER dir and that is what I backed up.
>> 
>> 
>> I think you're looking for this explanation:
>> 
>>
>
>> 
>> or see '/etc/profile'.  '/etc/profile' makes your
>> home
>> directory if it doesn't exist. 
>> 
>> >4.  If the answer to number 3 is No.  Can I just
>> >create a /home/$USER and copy my old /home/user
>> there?
>> 
>> 
>> Sure.  Copy it where you like and need it.  Make
>> Cygwin 
>> see it where ever you want if the one it gets from
>> Windows
>> isn't to your liking.
>
>Your comment "Make Cygwin see it where ever you want"
>is vague.  How do I do that?


Just make sure that the home directory in /etc/passwd is 
pointing to where you want it.  See above.


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


--
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: mv directories

2004-04-07 Thread Larry Hall
At 03:02 PM 4/7/2004, you wrote:
>Just a quick note.  
>if you are running linux, and have a vmware session open of XP with a
>cygwin console.  And XP has a share mounted from the linux host via
>samba as say..  H:  so, in cygwin it would be /cygdive/h.  And you have
>a shortcut to that dive it's a bad idea to move a folder of backup
>files to that destination (ie "mv backup ../linuxshare/").  There will
>be no error message, and your data is gone...
>
>JGraham


Is VMWare a significant component or is it just the fact that you have a 
"shortcut"?  Is your "shortcut" created via Cygwin's "ls -s" or via 
Windows?


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


--
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: mv directories

2004-04-07 Thread JGraham
> Is VMWare a significant component or is it just the fact that you have a 
> "shortcut"? 
no, vmware probably isn't significant (just giving the system
rundown),  


>  Is your "shortcut" created via Cygwin's "ls -s" or via 
> Windows?
> 
and it wasn't a windows 'shortcut' it was a link 'ln -s' (i misspoke)


--
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: strange install problems

2004-04-07 Thread Erik Weibust
Larry,

Thanks for all the help.  Sorry to keep beating this
subject down, but I hope this can be my last question.

What problems will I have with simply changing the
path for my home dir in /etc/passwd?

Do I have to use the mkpasswd cmd that you showed
below?

Thanks,
Erik

--- Larry Hall <[EMAIL PROTECTED]> wrote:
> At 12:58 PM 4/7/2004, you wrote:
> >> >2.  Shouldn't cygwin use something like
> >> $My_Documents
> >> >as it's home?  This is mostly on a local drive
> for
> >> all
> >> >windows installs.
> >> 
> >> 
> >> Cygwin uses for your home directory whatever
> Windows
> >> says
> >> is your home directory.   Cygwin gets this from
> >> '/etc/passwd'.  
> >> If you do a 'mkpasswd -d -u ',
> >> you'll see 
> >> what Cygwin will use as your home directory, as
> set
> >> by the 
> >> administrator of your domain.  If you don't want
> >> that, use
> >> the '-p' option.
> >
> >How exactly do I use the "-p" option?
> >
> >mkpasswd -p 
> 
> 
> mkpasswd -l -d -u  -p  parent directory of your 
> user directory>
> 
> i.e. mkpasswd -l -d -u erik -p /home
> 
> 
> >> 
> >> 
> >> >3.  Does cygwin not build a /home/$USERNAME
> >> dir/path
> >> >as part of it's install?  I did a complete
> install
> >> and
> >> >expected it.  Before I uninstalled my previous
> >> cygwin
> >> >install (which was installed a year ago) I did
> have
> >> a
> >> >/home/$USER dir and that is what I backed up.
> >> 
> >> 
> >> I think you're looking for this explanation:
> >> 
> >>
>
>
> >> 
> >> or see '/etc/profile'.  '/etc/profile' makes your
> >> home
> >> directory if it doesn't exist. 
> >> 
> >> >4.  If the answer to number 3 is No.  Can I just
> >> >create a /home/$USER and copy my old /home/user
> >> there?
> >> 
> >> 
> >> Sure.  Copy it where you like and need it.  Make
> >> Cygwin 
> >> see it where ever you want if the one it gets
> from
> >> Windows
> >> isn't to your liking.
> >
> >Your comment "Make Cygwin see it where ever you
> want"
> >is vague.  How do I do that?
> 
> 
> Just make sure that the home directory in
> /etc/passwd is 
> pointing to where you want it.  See above.
> 
> 
> --
> Larry Hall 
> http://www.rfk.com
> RFK Partners, Inc.  (508)
> 893-9779 - RFK Office
> 838 Washington Street   (508)
> 893-9889 - FAX
> Holliston, MA 01746 
> 
> 
> --
> 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/
> 


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

--
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: zsh and line breaks

2004-04-07 Thread Corinna Vinschen
On Apr  6 14:59, Peter A. Castro wrote:
> Oh, btw, I'm all for having a textreadmode.o object file available.  I
> also think this, and the other *mode.o object files should be outlined in
> the Cygwin porting guide :)

Gosh, that's documentation.  PGA, definitely!

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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: reentrant functions

2004-04-07 Thread Corinna Vinschen
On Apr  6 23:43, Oleg Ostrozhansky wrote:
> I have a question about writing a multi-threaded program (using POSIX.1
> threads) in Cygwin.  "info libc" has a nice chapter about reentrancy,
> which talks about __r reentrant variants for functions that are
> not thread-safe.  But when as an example I try using _gets_r(), I'm
> getting a link error that this function does not exist:
> 
> ~ $ gcc -g threadtest.c
> /cygdrive/c/.../cc3s8dTu.o(.text+0xb4): In function `main':
> threadtest.c:26: undefined reference to `__gets_r'
> collect2: ld returned 1 exit status
> ~ $
> 
> I can't find it anywhere in the libraries.  The prototype is in stdio.h,
> so the compile step works.  What do I need to do to make it work?

Many reentrant functions from newlib are currently just not exported by
Cygwin.  Any volunteer to collect these non-exported newlib functions
so that we can add all of them?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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/



Environment variables for DOS programs

2004-04-07 Thread levent
Hi,

From my Cygwin terminal, I want to call DOS programs  which require
some environment variables to be set properly (such as the commandline
utility *link.exe* of Visual Studio) for current session.
Unfortunately, this was not possible by simply setting the variables in
the shell (I am using tcsh). Link.exe refuses to see the environment
variables defined in tcsh. Is this the desired behaviour?  Is there
anyway to make the DOS programs see the environment variables in Cygwin
shells? Or am I making a fundamental mistake in expecting such a behaviour?
Thank you,
-Levent






--
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: Environment variables for DOS programs

2004-04-07 Thread Larry Hall
At 03:03 PM 4/7/2004, you wrote:
>Hi,
>
> From my Cygwin terminal, I want to call DOS programs  which require
>some environment variables to be set properly (such as the commandline
>utility *link.exe* of Visual Studio) for current session.
>
>Unfortunately, this was not possible by simply setting the variables in
>the shell (I am using tcsh). Link.exe refuses to see the environment
>variables defined in tcsh. Is this the desired behaviour?  Is there
>anyway to make the DOS programs see the environment variables in Cygwin
>shells? Or am I making a fundamental mistake in expecting such a behaviour?


Sorry, I don't have tcsh installed but I tried this from bash:

# export FOO=bar
# cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

D:\>echo %FOO%
echo %FOO%
bar

D:\>

So there's not a generic issue here.  If something like this doesn't 
work with tcsh, then the problem is there.  Otherwise, it's in 'link.exe'


HTH,


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


--
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: strange install problems

2004-04-07 Thread Larry Hall
You can edit the file directly if you prefer.  I was just trying to 
provide you with a mechanism which would allow you to regenerate your
/etc/passwd file in the future without needing to re-edit it each time.
But if that's not a concern for you, just run your favorite editor and
have at it! ;-)

Larry


At 03:37 PM 4/7/2004, you wrote:
>Larry,
>
>Thanks for all the help.  Sorry to keep beating this
>subject down, but I hope this can be my last question.
>
>What problems will I have with simply changing the
>path for my home dir in /etc/passwd?
>
>Do I have to use the mkpasswd cmd that you showed
>below?
>
>Thanks,
>Erik
>
>--- Larry Hall <[EMAIL PROTECTED]> wrote:
>> At 12:58 PM 4/7/2004, you wrote:
>> >> >2.  Shouldn't cygwin use something like
>> >> $My_Documents
>> >> >as it's home?  This is mostly on a local drive
>> for
>> >> all
>> >> >windows installs.
>> >> 
>> >> 
>> >> Cygwin uses for your home directory whatever
>> Windows
>> >> says
>> >> is your home directory.   Cygwin gets this from
>> >> '/etc/passwd'.  
>> >> If you do a 'mkpasswd -d -u ',
>> >> you'll see 
>> >> what Cygwin will use as your home directory, as
>> set
>> >> by the 
>> >> administrator of your domain.  If you don't want
>> >> that, use
>> >> the '-p' option.
>> >
>> >How exactly do I use the "-p" option?
>> >
>> >mkpasswd -p 
>> 
>> 
>> mkpasswd -l -d -u  -p > parent directory of your 
>> user directory>
>> 
>> i.e. mkpasswd -l -d -u erik -p /home
>> 
>> 
>> >> 
>> >> 
>> >> >3.  Does cygwin not build a /home/$USERNAME
>> >> dir/path
>> >> >as part of it's install?  I did a complete
>> install
>> >> and
>> >> >expected it.  Before I uninstalled my previous
>> >> cygwin
>> >> >install (which was installed a year ago) I did
>> have
>> >> a
>> >> >/home/$USER dir and that is what I backed up.
>> >> 
>> >> 
>> >> I think you're looking for this explanation:
>> >> 
>> >>
>>
>>
>> >> 
>> >> or see '/etc/profile'.  '/etc/profile' makes your
>> >> home
>> >> directory if it doesn't exist. 
>> >> 
>> >> >4.  If the answer to number 3 is No.  Can I just
>> >> >create a /home/$USER and copy my old /home/user
>> >> there?
>> >> 
>> >> 
>> >> Sure.  Copy it where you like and need it.  Make
>> >> Cygwin 
>> >> see it where ever you want if the one it gets
>> from
>> >> Windows
>> >> isn't to your liking.
>> >
>> >Your comment "Make Cygwin see it where ever you
>> want"
>> >is vague.  How do I do that?
>> 
>> 
>> Just make sure that the home directory in
>> /etc/passwd is 
>> pointing to where you want it.  See above.
>> 
>> 
>> --
>> Larry Hall 
>> http://www.rfk.com
>> RFK Partners, Inc.  (508)
>> 893-9779 - RFK Office
>> 838 Washington Street   (508)
>> 893-9889 - FAX
>> Holliston, MA 01746 
>> 
>> 
>> --
>> 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/
>> 
>
>
>__
>Do you Yahoo!?
>Yahoo! Small Business $15K Web Design Giveaway 
>http://promotions.yahoo.com/design_giveaway/
>
>--
>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: Environment variables for DOS programs

2004-04-07 Thread Thorsten Kampe
* levent (2004-04-07 21:03 +0100)
>  From my Cygwin terminal, I want to call DOS programs  which require
> some environment variables to be set properly (such as the commandline
> utility *link.exe* of Visual Studio) for current session.
> 
> Unfortunately, this was not possible by simply setting the variables in
> the shell (I am using tcsh). Link.exe refuses to see the environment
> variables defined in tcsh. Is this the desired behaviour?  Is there
> anyway to make the DOS programs see the environment variables in Cygwin
> shells? Or am I making a fundamental mistake in expecting such a behaviour?

Simply export the variable


--
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: Environment variables for DOS programs

2004-04-07 Thread Corinna Vinschen
On Apr  7 15:03, levent wrote:
> Hi,
> 
> From my Cygwin terminal, I want to call DOS programs  which require
> some environment variables to be set properly (such as the commandline
> utility *link.exe* of Visual Studio) for current session.
> 
> Unfortunately, this was not possible by simply setting the variables in
> the shell (I am using tcsh). Link.exe refuses to see the environment
> variables defined in tcsh. Is this the desired behaviour?  Is there
> anyway to make the DOS programs see the environment variables in Cygwin
> shells? Or am I making a fundamental mistake in expecting such a behaviour?

man tcsh

See the difference between set and setenv.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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/



[ANNOUNCEMENT] Updated: inetutils-1.3.2-27

2004-04-07 Thread Corinna Vinschen
I've updated the version of inetutils to 1.3.2-27.

Changes in 1.3.2-27:

- When starting inetd as NT service with the "Allow service to interact
  with desktop" facility turned on, the console windw which usually
  appeared, is now explicitely hidden by inetd.  No visible console
  window anymore.

=
  IMPORTANT NOTE:

- When updating inetutils, take care that inetd.exe and subsequent
  processes don't run anymore.

=

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com web page.  This downloads setup.exe to your system.

Run setup and answer all of the questions.

Note that if this is the first time that you've run the new GUI version
of setup, it will currently download the whole cygwin net release again.
After this point it will only download what is needed.

If you have questions or comments, please send them to the Cygwin
mailing list at:  [EMAIL PROTECTED] .  I would appreciate
if you would use this mailing list rather than emailing me directly.
This includes ideas and comments about the setup utility or Cygwin
in general.

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe to 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:

[EMAIL PROTECTED]

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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: zsh and line breaks

2004-04-07 Thread Peter A. Castro
On Wed, 7 Apr 2004, Corinna Vinschen wrote:

> On Apr  6 14:59, Peter A. Castro wrote:
> > Oh, btw, I'm all for having a textreadmode.o object file available.  I
> > also think this, and the other *mode.o object files should be outlined in
> > the Cygwin porting guide :)
>
> Gosh, that's documentation.  PGA, definitely!

Ya, I will.  I was thinking of adding it to Chapter 3 of the User's Guide
("Binary or text?").  If you feel this is a good place to put this kind
of info, I'll document all 3(4?) *mode.o objects and what they do/how to
use them.  If'd prefer a different place, let me know.

> Corinna

-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
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: zsh and line breaks

2004-04-07 Thread Corinna Vinschen
On Apr  7 13:35, Peter A. Castro wrote:
> On Wed, 7 Apr 2004, Corinna Vinschen wrote:
> > On Apr  6 14:59, Peter A. Castro wrote:
> > > Oh, btw, I'm all for having a textreadmode.o object file available.  I
> > > also think this, and the other *mode.o object files should be outlined in
> > > the Cygwin porting guide :)
> >
> > Gosh, that's documentation.  PGA, definitely!
> 
> Ya, I will.  I was thinking of adding it to Chapter 3 of the User's Guide
> ("Binary or text?").  If you feel this is a good place to put this kind
> of info, I'll document all 3(4?) *mode.o objects and what they do/how to
> use them.

*sign*

[search through drawers, finding rubber stamp]

*stamp*

Ok, you're now official Lord Of The Filemode Documentation (one page
to rule them all...)

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
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: Environment variables for DOS programs

2004-04-07 Thread levent
Corinna Vinschen wrote:
man tcsh

See the difference between set and setenv.

Corinna

Well, I always assumed that the problem is extermely subtle.
Silly me! The answer was so trivial: 'set' does not 'setenv'
Thank you all.
-Levent.
--
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: [ANNOUNCEMENT] Updated: zsh-4.2.0-2

2004-04-07 Thread zzapper
On Wed,  7 Apr 2004 11:20:41 -0400 (EDT),  wrote:


>- Fix for running scripts from text-mode mounted filesystems.  Previously
>  if you ran a script from a text-mode mount, and it had DOS CR/LF's line
>  termination, zsh would report ^M errors.  The shell now opens such
>  files with O_TEXT which causes line termination to be massaged.  I'll
>  be watching for problem reports concerning this as it was a broad
>  change, the implications of which haven't been fully realized yet.
>

Peter your new version of zsh solved my ^M errors thanx.

But why did I have to manually copy /bin/zsh-4.2.0 to /bin/zsh.exe to
get the update (tried doing a ln with no luck)? What do I have to
change in my config?

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim 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/



/usr/bin/reboot and win2k3

2004-04-07 Thread Matt Berney
Hello,

I am using cygwin v1.5.9 on Win2k3 standard edition servers.  sshd service is 
installed and working.  I can ssh as a local user or user in the active directory 
domain.  All privileges appear to be as expected.  I want to be able to use ssh to 
remotely reboot a server.

ssh -l root  /usr/bin/reboot -f -r now

Where:
   is the name of the server I want to reboot
  root is the username in the active directory domain that has local administrator 
privileges on the server

When I execute the ssh command to reboot the server, it doesn't seem to do anything.  
However, if I open a remote desktop session (as root) on the desired server and 
execute the same command, the server reboots as expected.  Am I missing something?

Thanks,
Matt Berney
PolyServe, 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: /usr/bin/reboot and win2k3

2004-04-07 Thread Igor Pechtchanski
On Wed, 7 Apr 2004, Matt Berney wrote:

> Hello,
>
> I am using cygwin v1.5.9 on Win2k3 standard edition servers.  sshd
> service is installed and working.  I can ssh as a local user or user in
> the active directory domain.  All privileges appear to be as expected.
> I want to be able to use ssh to remotely reboot a server.
>
> ssh -l root  /usr/bin/reboot -f -r now
>
> Where:
>is the name of the server I want to reboot
>   root is the username in the active directory domain that has local
> administrator privileges on the server
>
> When I execute the ssh command to reboot the server, it doesn't seem to
> do anything.  However, if I open a remote desktop session (as root) on
> the desired server and execute the same command, the server reboots as
> expected.  Am I missing something?
>
> Thanks,
> Matt Berney

A WAG: is your sshd service interactive (allowed to "Interact with
Desktop")?
Igor
P.S. Please configure your mailer to wrap long lines.  Thanks.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



can't type 's'

2004-04-07 Thread Dai Itasaka
Hello all,

I can't type 's'. If I escape it with Ctrl-V, then I can see it.
If I type the word "mississippi", I get "miiippi". Some folks
remember the thread on the Cygwin/X ML? That was last October.
I thought it was related to the X because I got this on xterm,
but it turned out to be a non-X issue because it happens on
the console windows too.

This happens on the bash prompt. Since I prefer tcsh to bash
and I don't have this problem on the tcsh prompt, this wasn't
such a big issue to me.

Now, the same thing happens on the prompt of the gdb command
invoked from tcsh. It matters to me now.

What is the fix? Is it true that it is related to ~/.inputrc?
I appreciate your help.
Thanks,
Dai

--
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: /usr/bin/reboot and win2k3

2004-04-07 Thread Matt Berney
The sshd service is set to run as the local sshd_server username.  The sshd service is 
not run as 
the local system.  As a result, the "interact with desktop" checkbox under the 
services dialog is
 disabled (not checked).

I had permission problems on Win2k3 when trying to run the cygwin/sshd service as 
the local system.  I use the privilege separation and CYGWIN=ntsec.


--Matt


-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 5:34 PM
To: Matt Berney
Cc: [EMAIL PROTECTED]
Subject: Re: /usr/bin/reboot and win2k3


On Wed, 7 Apr 2004, Matt Berney wrote:

> Hello,
>
> I am using cygwin v1.5.9 on Win2k3 standard edition servers.  sshd
> service is installed and working.  I can ssh as a local user or user in
> the active directory domain.  All privileges appear to be as expected.
> I want to be able to use ssh to remotely reboot a server.
>
> ssh -l root  /usr/bin/reboot -f -r now
>
> Where:
>is the name of the server I want to reboot
>   root is the username in the active directory domain that has local
> administrator privileges on the server
>
> When I execute the ssh command to reboot the server, it doesn't seem to
> do anything.  However, if I open a remote desktop session (as root) on
> the desired server and execute the same command, the server reboots as
> expected.  Am I missing something?
>
> Thanks,
> Matt Berney

A WAG: is your sshd service interactive (allowed to "Interact with
Desktop")?
Igor
P.S. Please configure your mailer to wrap long lines.  Thanks.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: can't type 's'

2004-04-07 Thread Igor Pechtchanski
On Wed, 7 Apr 2004, Dai Itasaka wrote:

> Hello all,
>
> I can't type 's'. If I escape it with Ctrl-V, then I can see it.
> If I type the word "mississippi", I get "miiippi". Some folks
> remember the thread on the Cygwin/X ML? That was last October.
> I thought it was related to the X because I got this on xterm,
> but it turned out to be a non-X issue because it happens on
> the console windows too.
>
> This happens on the bash prompt. Since I prefer tcsh to bash
> and I don't have this problem on the tcsh prompt, this wasn't
> such a big issue to me.
>
> Now, the same thing happens on the prompt of the gdb command
> invoked from tcsh. It matters to me now.
>
> What is the fix? Is it true that it is related to ~/.inputrc?
> I appreciate your help.
> Thanks,
> Dai

That's very easy to check -- just rename ~/.inputrc temporarily and see if
it fixes the problem.

It does sound like a readline configuration problem.  What's the output of
bind -p | grep '^"s"'
on your system?  What do you have in your ~/.inputrc?  An alternative way
to provide readline configuration is by putting "bind" commands in
~/.bashrc or ~/.bash_profile, so check those as well.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: zsh and line breaks

2004-04-07 Thread Peter A. Castro
On Wed, 7 Apr 2004, Clint Adams wrote:

> > Maybe so, but that's the only form which works for the Cygwin version of
> > texi2html :/
>
> Cygwin might want to upgrade.  texi2html is switching to GNU-style long
> options (e.g. --expand) too.

"That's not my department" said Wernher Von Braun :-}

Seriously, I'm not the maintainer for that (tetex), but I'll suggest it.

-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
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: [ANNOUNCEMENT] Updated: zsh-4.2.0-2

2004-04-07 Thread Peter A. Castro
On Thu, 8 Apr 2004, zzapper wrote:

> On Wed,  7 Apr 2004 11:20:41 -0400 (EDT),  wrote:
>
> >- Fix for running scripts from text-mode mounted filesystems.  Previously
> >  if you ran a script from a text-mode mount, and it had DOS CR/LF's line
> >  termination, zsh would report ^M errors.  The shell now opens such
> >  files with O_TEXT which causes line termination to be massaged.  I'll
> >  be watching for problem reports concerning this as it was a broad
> >  change, the implications of which haven't been fully realized yet.
>
> Peter your new version of zsh solved my ^M errors thanx.

Well, since you were the one who spoke up and said there was a problem,
I'm happy it makes things better for you.  It's something that's been on
my back-burner for a while, and decided it was time to dig into it.  Do
let me know if you have any other problems related to this.  That goes
for everyone else, too.

> But why did I have to manually copy /bin/zsh-4.2.0 to /bin/zsh.exe to
> get the update (tried doing a ln with no luck)? What do I have to
> change in my config?

*grumble*  Hmm... I suspect this is really a Setup issue.  The binary is
stored in the tar as a hardlink to the versioned name.  If you manually
unpack it, with tar, it does the right thing.  On an NTFS volume, it
makes it a hardlink to the real file (ie: link count = 2).  On a FAT
volume, it duplicates the file's contents (ie: link count = 1).  It
appears setup isn't quite handling it correctly for your configuration.
We'd have to get detailed info about your config.  Are you using the
latest setup.exe, btw?  If not, try a snap-shot first.  It's as simple a
un-installing and re-install zsh to test.

Just as a test, could you do the following?  In a empty dir, unpack the
binar archive.  eg:
$ mkdir /tmp/testzsh
$ cd /tmp/testzsh
$ tar -xjvf /path/to/zsh-4.2.0-2.tar.bz2 > untar.out 2>&1
$ ls -al usr/bin >> untar.out

This will capture the output of tar unpacking (in case there's a problem)
as well as shows what files were unpacked in usr/bin.  If you could send
me untar.out, it might shed some light on the matter.  A copy of the
/var/log/setup.log{.full} might be good too after a re-install of just
zsh.  And, while we're at it, the standard "cygcheck -s -v -r" output
might prove insightful.

> zzapper (vim, cygwin, wiki & zsh)

-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
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: [ANNOUNCEMENT] Updated: zsh-4.2.0-2

2004-04-07 Thread Christopher Faylor
On Wed, Apr 07, 2004 at 06:40:57PM -0700, Peter A. Castro wrote:
>*grumble* Hmm...  I suspect this is really a Setup issue.  The binary
>is stored in the tar as a hardlink to the versioned name.  If you
>manually unpack it, with tar, it does the right thing.  On an NTFS
>volume, it makes it a hardlink to the real file (ie: link count = 2).
>On a FAT volume, it duplicates the file's contents (ie: link count =
>1).  It appears setup isn't quite handling it correctly for your
>configuration.  We'd have to get detailed info about your config.  Are
>you using the latest setup.exe, btw?  If not, try a snap-shot first.
>It's as simple a un-installing and re-install zsh to test.

Again, setup.exe does not understand hard links.  So if you use a hard
link in your tar file, you will not get a hard link when setup.exe
installs it.

cgf

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



Re: [ANNOUNCEMENT] Updated: zsh-4.2.0-2

2004-04-07 Thread Peter A. Castro
On Wed, 7 Apr 2004, Christopher Faylor wrote:

> On Wed, Apr 07, 2004 at 06:40:57PM -0700, Peter A. Castro wrote:
> >*grumble* Hmm...  I suspect this is really a Setup issue.  The binary
> >is stored in the tar as a hardlink to the versioned name.  If you
> >manually unpack it, with tar, it does the right thing.  On an NTFS
> >volume, it makes it a hardlink to the real file (ie: link count = 2).
> >On a FAT volume, it duplicates the file's contents (ie: link count =
> >1).  It appears setup isn't quite handling it correctly for your
> >configuration.  We'd have to get detailed info about your config.  Are
> >you using the latest setup.exe, btw?  If not, try a snap-shot first.
> >It's as simple a un-installing and re-install zsh to test.
>
> Again, setup.exe does not understand hard links.  So if you use a hard
> link in your tar file, you will not get a hard link when setup.exe
> installs it.

I know you've said that, but, that doesn't account for what I see when I
install zsh, via setup.  It does duplicate the file:

E:\cygwin\bin>ls -al zs*
-rwxrwxrwx1 Administ Administ 6656 Apr  3 23:12 zsh-4.2.0.exe
-rwxrwxrwx1 Administ Administ 6656 Apr  7 19:41 zsh.exe

This is from a freshly installed zsh after I de-installed and manually
removed all traces for zsh from the system.  No, I haven't looked into
how setup is doing this, and no, I can't explain why it works for me, but
not zapper.  I'm hoping getting some info from zzapper's test will shed
light on the subject.

> cgf

-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

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