XEmacs 21.4.15, shell-mode not working?

2004-03-30 Thread Maarten Boekhold
Hi all,

I just install the latest version of cygwin (downloaded last friday) on a new
computer, and I'm having a small problem with XEmacs (21.4.5).

It appears the shell-mode is not working. If I do 'M-x shell', it instead
executes 'shell-command', if I do 'M-x shell', 'shell' is not listed as a
known command. In the 'Tools->Shell' menu, the 'Shell' option is listed, but it
is grayed out.

I installed the following xemacs related packages:
- xemacs
- xemacs-emacs-common
- xemacs-mule-sumo
- xemacs-tags

Anybody knows what could be wrong?

Maarten

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.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: Postgres Backend doesn't catch the next command, after SIGUSR2

2004-03-30 Thread Patrick Samson

--- Corinna Vinschen wrote:
> When WSAWaitForMultipleEvents returns
> WSA_WAIT_EVENT_0 + 1, you can be
> sure that the event hasn't happen at this point. 
> Otherwise it would
> have returned WSA_WAIT_EVENT_0.  Unfortunately this
> doesn't mean that
> the event couldn't happen a nanosecond later.
> 
> If the signal has arrived and the WSARecvFrom call
> should be interrupted,
> you can't just go ahead, since the call to
> WSARecvFrom got a pointer
> to application allocated memory.  You can't rely on
> the fact that the
> application will keep this memory intact after
> recvfrom returned with
> EINTR.  If you do, Windows might scramble
> application memory.  To avoid
> that, the CancelIo cancels the active call.
> 
> Having said that, does the below change at least
> alleviates the problem?
> 
> The implementation would have to be changed a bit
> more to get this
> entirely non-racy, though.
> 
> Corinna
> 
> Index: net.cc
>
===
> RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
> retrieving revision 1.162
> diff -u -p -r1.162 net.cc
> --- net.cc29 Mar 2004 14:08:44 -  1.162
> +++ net.cc29 Mar 2004 14:09:17 -
> @@ -83,7 +83,9 @@ wsock_event::wait (int socket,
> LPDWORD f
> ret = (int) len;
>   break;
>case WSA_WAIT_EVENT_0 + 1:
> - if (!CancelIo ((HANDLE) socket))
> + if (WSAGetOverlappedResult (socket, &ovr, &len,
> FALSE, flags))
> +   ret = (int) len;
> + else if (!CancelIo ((HANDLE) socket))
> {
>   debug_printf ("CancelIo() %E, fallback to
> blocking io");
>   WSAGetOverlappedResult (socket, &ovr, &len,
> TRUE, flags);
> 

Probably Yes, but even reduced, there is still room
between WSAGetOverlappedResult and CancelIo to loose
data.

What about first cancel the I/O op and then look
for possible data?
>From msdn:
"All I/O operations that are canceled will complete
with the error ERROR_OPERATION_ABORTED. All completion
notifications for the I/O operations will occur
normally."
What's your feeling about:
if (!CancelIo ((HANDLE) socket))
  {...}
else
  {
   if (WSAGetOverlappedResult (socket, &ovr, &len,
 FALSE, flags) && len != 0)
ret = (int) len;
   else WSASetLastError (WSAEINTR);


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.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: zsh and line breaks

2004-03-30 Thread Oliver Kiddle
"Peter A. Castro" wrote:
> > I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos
> > returns. I have to run dos2unix on my zsh scripts.
> >
> > I haven't seen an explanation for this
> 
> Hmm... I'll have to look into this.  I thought I'd corrected this for
> Cygwin...

Are those corrections likely to be limited to the Cygwin package for
zsh?

I don't use Cygwin myself but from a quick search, it looks like there
is an O_TEXT flag to open which we could use (a couple of places in
init.c would cover scripts I think). Wouldn't work where the script
comes from stdin, though. Does that perhaps help?

Oliver

--
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: Postgres Backend doesn't catch the next command, after SIGUSR2

2004-03-30 Thread Corinna Vinschen
On Mar 30 01:03, Patrick Samson wrote:
> >From msdn:
> "All I/O operations that are canceled will complete
> with the error ERROR_OPERATION_ABORTED. All completion
> notifications for the I/O operations will occur
> normally."

Urgh, I mised that.

> What's your feeling about:
> if (!CancelIo ((HANDLE) socket))
>   {...}
> else
>   {
>if (WSAGetOverlappedResult (socket, &ovr, &len,
>  FALSE, flags) && len != 0)
> ret = (int) len;
>else WSASetLastError (WSAEINTR);

Did you try it?  Yesterday I changed Cygwin to use asynchronous I/O
instead of overlapped I/O so it now can do without CancelIo.
However, two people reported hangs which don't occur for me.  If
if takes too long to track down, I guess I'll revert to overlapped
I/O plus your patch.  But I would be more happy with a working
async I/O solution.

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/



need loadkeys --mktable under cygwin

2004-03-30 Thread bertrand marquis
Hello

   i.m trying to build the kernel under cygwin with a cross compiler 
(host=cygwin target=i386-linux) and it seems that the kernel need the 
loadkeys program to be build. I have tried to find it but it seems that 
it don't exist.
Does anyone know a solution for that problem ?

thanks

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


RE: setup err: getUrlToStream failed

2004-03-30 Thread Dave Korn

> -Original Message-
> From: cygwin-owner On Behalf Of alanmjones
> Sent: 29 March 2004 23:49

> Dave Korn wrote:
> => 
> =>   Have you got personal firewall software running on the 
> machine that's
> => experiencing the problems?  Did it pop up a little 
> requester when you last => ran setup asking you if setup 
> should be allowed to connect to the internet?
> => Did you accidentally click No rather than Yes and 
> inadvertently block it?
> => Check the firewall settings, just to be sure.
> 
> I'll bet that's it.  I'm running Zone Alarm and for some 
> reason it doesn't ask me anymore if a program can access the 
> internet, it just denies access.
> I'll try this when I get home, but I'm 97% sure this is it...
> 
> Thanks!!


Heh, I've done exactly the same myself.  These days my routine for
diagnosing network problems goes like:

1 Is the cable plugged in ?
2[new entry]  Have you blocked the app in ZA program settings ?
3 Can you ping the target ?
...etc..



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: popups upon library errors.

2004-03-30 Thread Dave Korn

> -Original Message-
> From: cygwin-owner On Behalf Of Igor Pechtchanski
> Sent: 30 March 2004 04:40

> AFAIR, this popup appears whenever a DLL is in the PATH but 
> is not executable.  I don't think there's an easy way of 
> convincing Windows to keep control in the application after 
> this (short of using dlopen() for all dynamically linked 
> calls, and checking the return value -- which you don't 
> really want to do).  If you discover a way (MSDN would be a 
> good start), PTC.

SetDefaultErrorMode or do I mean SetHardErrorMode?

Ah, here we go:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/
seterrormode.asp


  It looks like a call to SetErrorMode(SEM_FAILCRITICALERRORS) might do the
trick.  This is a per-process setting, but it's inherited by child
processes, so it would suffice to set in the parent shell process.  However
I think that perhaps the best way to implement it might be to provide
another $CYGWIN option that controls the default error mode of all processes
launched under cygwin; the env var could be read and the call to
SetErrorMode made in the dll entry point at the time it gets the process
attach notification.

  Unless anyone has a better idea for how this functionality could be
exposed to the cygwin user?


and in another post,

> -Original Message-
> From: cygwin-owner On Behalf Of Robert Collins
> Sent: 30 March 2004 02:10
> On Tue, 2004-03-30 at 10:56, Edward S. Peschko wrote:
> > On Fri, Mar 26, 2004 at 10:12:05AM +0100, Corinna Vinschen wrote:

> > yes, I realize that it is a problem with my environment - what I'm 
> > suggesting is that no popups be created in response to the problem. 
> > That a text error is generated.  This would vastly increase the 
> > robustness of the cygwin environment
> > - I simply cannot afford to have an interactive error come 
> up during a 
> > batch process, and hang there. It is not a question of 
> specifics, its 
> > a question of how to deal with a generic problem.
> 
> Fix windows then. I'm sure MS will take a bug report happily.
> 
> Rob
> 
> P.S. I'm only being slightly facetious. This really is 
> outside of cygwin's purview. The only thing I can think of 
> that might help is to write a replace handler for these style 
> of errors. And I don't know if theres even a hook to do that.

  I don't think it's entirely out of Cygwin's purview; it's an architecture
dependent behaviour which it's entirely reasonable to say that cygwin should
expose an interface to.  After all, cygwin goes to all the trouble of
dealing with dos-style paths and windoze-specific device names; there's no
reason why it shouldn't consider windoze default error handling to be an
issue it has to deal with too.

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: XEmacs 21.4.15, shell-mode not working?

2004-03-30 Thread Dr. Volker Zell
> "Maarten" == Maarten Boekhold writes:

Maarten> Hi all,
Maarten> I just install the latest version of cygwin (downloaded last friday) on a 
new
Maarten> computer, and I'm having a small problem with XEmacs (21.4.5).

Maarten> It appears the shell-mode is not working. If I do 'M-x shell', it instead
Maarten> executes 'shell-command', if I do 'M-x shell', 'shell' is not listed 
as a
Maarten> known command. In the 'Tools->Shell' menu, the 'Shell' option is listed, 
but it
Maarten> is grayed out.

Maarten> I installed the following xemacs related packages:
Maarten> - xemacs
Maarten> - xemacs-emacs-common
Maarten> - xemacs-mule-sumo
Maarten> - xemacs-tags

Maarten> Anybody knows what could be wrong?

Your're missing the most important, xemacs-sumo.

Maarten> Maarten

Ciao
  Volker


--
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: Postgres Backend doesn't catch the next command, after SIGUSR2

2004-03-30 Thread Patrick Samson

--- Corinna Vinschen wrote:
> On Mar 30 01:03, Patrick Samson wrote:
> > >From msdn:
> > "All I/O operations that are canceled will
> complete
> > with the error ERROR_OPERATION_ABORTED. All
> completion
> > notifications for the I/O operations will occur
> > normally."
> 
> Urgh, I mised that.
> 
> > What's your feeling about:
> > if (!CancelIo ((HANDLE) socket))
> >   {...}
> > else
> >   {
> >if (WSAGetOverlappedResult (socket, &ovr, &len,
> >  FALSE, flags) && len != 0)
> > ret = (int) len;
> >else WSASetLastError (WSAEINTR);
> 
> Did you try it?

No. Never ever build the dll yet.
I guess I should one day ;)

> Yesterday I changed Cygwin to use
> asynchronous I/O
> instead of overlapped I/O so it now can do without
> CancelIo.
> However, two people reported hangs which don't occur
> for me.  If
> if takes too long to track down, I guess I'll revert
> to overlapped
> I/O plus your patch.  But I would be more happy with
> a working
> async I/O solution.

Yesterday, I thought that mixing interrupt signals
and overlapped operations had some design flaw,
because of (from WS2 API):
"There is no way to cancel individual overlapped
operations pending on a given socket, however, the
closesocket() function can be called to close the
socket and eventually discontinue all pending
operations."
So non overlapped I/O would be better for my
personal case (only mime I agree). But I didn't even
think you could change to another behaviour.
Async I/O would probably saves my life, if the hangs
are solved.

Today, I think differently. If it's not possible
to cancel one *individual* op, I understand that
it's possible to cancel *all* ops in a clean way.
closesocket is one way, but not suitable in that
case. If cancelIO also is a clean way, then playing
with signal and overlapped I/O remains workable.



__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.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/



Y Stuck With Ur Current Job? Buy A Degree N Get Higher Salary

2004-03-30 Thread Randa Kira
no degree = no job = no money
get an instant university degree = higher salary

no required tests, classes, books, or interviews!
get a Bachelors, Masters, MBA, and Doctorate (P-h-D) diploma!

ALL CERTS ARE GENUINE/REAL WHICH IT CAN BE FOUND IN UNIVERSITY RECORD


--> call 1-240-352-7337 (24hrs)


no neeed study or test



>> call 1-240-352-7337 (24hrs)




phaethon resolvent vouge tardiness paddlebox applicator incognita  .
bolt clockwork epilachna court cline umpirage order damages torpor hijacking  .
earthnut indium quieten ormosia majolica parlous steersman tasty seasoning glass 
sublimely annulet bruit sorbate  .
pianism jackknife stoat rook colbert suspected paramaribo slowgoing flutter  .


Re: wtf

2004-03-30 Thread Igor Pechtchanski
On Mon, 29 Mar 2004, Clint Bennion wrote:

> I was having fun with wtf after Igor mentioned it a bit ago.  It is a
> nice alternative for looking up those acronyms on the web site.
>
> I ran into a minor issue:
>
> In the os file the key/value for OpenBSD in file os is seperated by a
> space instead of a tab.  It causes this entry to fail.
>
> Not a very big issue but I spent enough time tracking it down I thought
> I would mention it.
>
> Clint

Clint,

Thanks a lot for tracking it down.  This will be fixed in the next
release.

Igor Pechtchanski, Cygwin wtf maintainer

-- 
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: bash bad interpreter - a new twist!

2004-03-30 Thread Tom Rodman
On Fri 3/26/04 1:15 EST :
>>The "#!" construct must always refer to a binary, never to another
>>script (to avoid loops?).  I ran into the same issue.  The UNIX
>>standard is what I just said, but earlier (and current?) cygwin
>>versions (wrongly) sorta supported a script.  In 1.3.20 it works about
>>2 out of 5 times or so - if you try a similar approach on a UNIX box it
>>will fail *every* time.
>
>Actually, no.  It won't.  The #! can refer to a script.  Just tried it
>on Tru64 and on linux.



I just tried it on redhat 9, and on HPUX 10 and your right it worked.
I have a definite memory of it failing repeatedlt under UNIX.., my tests months
back must have been flawed.

I was convinced that the interpreter must be a binary,partly
because of this redhat 9 execve man page snippet:

  execve() executes the program pointed to by filename.  filename must be
  either  a  binary  executable,  or a script starting with a line of the
  form "#! interpreter [arg]".  In the latter case, the interpreter  must
  be  a  valid  pathname  for an executable which is not itself a script

Under 1.3.20, I still can get my script that has '#!' pointing to another
script, to fail intermittently - see example at end of e-mail.  I have a fair
number of aliases and functions in my profile; I've found that
if I run the script with "env -i" as wrapper that it seems to fail less (I have
yet to make it fail).

--
regards,
Tom

--v-v--C-U-T---H-E-R-E-v-v--


> 13:20:07 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:09 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:12 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:14 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:17 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:19 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
> 13:20:42 Mon Mar 29 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /adm/bin/sys/s/find_ls2 >/dev/null || echo oops
-bash: /adm/bin/sys/s/find_ls2: /adm/bin/sys/s/_debash: bad interpreter: No such file 
or directory
oops
> 08:57:18 Tue Mar 30 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > head -1 /adm/bin/sys/s/find_ls2
#!/adm/bin/sys/s/_debash /bin/aperl
> 08:57:30 Tue Mar 30 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > ls -ld /adm/bin/sys/s/_debash /bin/aperl
-rwxr-xr-x1 adm_tsr  SCM_ES_S 1497 May 29  2003 /adm/bin/sys/s/_debash*
lrwxrwxrwx1 buildDomain U  120 Nov 26  2002 /bin/aperl -> 
/aut/perl5/bin/perl*
> 08:57:47 Tue Mar 30 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > head -1 /adm/bin/sys/s/_debash
#!/bin/sh -
> 08:58:15 Tue Mar 30 0j tty0 5752 /tmp
> c7mkes109 adm_tsr > /bin/aperl -v

This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 635 provided by ActiveState Corp. http://www.ActiveState.com
Built 15:34:21 Feb  4 2003


--
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: need loadkeys --mktable under cygwin

2004-03-30 Thread Igor Pechtchanski
On Tue, 30 Mar 2004, bertrand marquis wrote:

> Hello
>
> i.m trying to build the kernel under cygwin with a cross compiler
> (host=cygwin target=i386-linux) and it seems that the kernel need the
> loadkeys program to be build. I have tried to find it but it seems that
> it don't exist.
>  Does anyone know a solution for that problem ?
>
> thanks

Yep.  It's called "porting". :-)
Seriously, though, looking at the man page for "loadkeys", it doesn't seem
too relevant for Cygwin.  In particular, the entry for "--mktable" says:

CREATE KERNEL SOURCE TABLE
   If the -m (or --mktable ) option is given loadkeys  prints
   to  the  standard  output  a  file  that  may  be  used as
   /usr/src/linux/drivers/char/defkeymap.c,  specifying   the
   default key bindings for a kernel (and does not modify the
   current keymap).

Sounds like the kernel is not very cross-compilation friendly (i.e., it's
expected to be compiled *on a Linux machine*).  One solution is to create
a "loadkeys" script that accepts only one option ("--mktable") and prints
out pre-defined text...  Alternatively, contact the authors of the code
and notify them that their code doesn't build on Cygwin (and probably
won't on OpenBSD, either).
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: need loadkeys --mktable under cygwin

2004-03-30 Thread bertrand marquis
I found a solution

i downloaded kbd-0.99
it doesn't compile under cygwin but if you take the files:
loadkeys.y
ksyms.c
findfile.c
getfd.c
than you take kd.h wait.h and keyboard.h from a linux kernel and
you can compile a simple loadkeys for cygwin to use to compile a kernel.
i made this with those commands (i.m using a cross compiler):

bison -y  loadkeys.y
mv -f y.tab.c loadkeys.c
flex -8  -t analyze.l > analyze.c
i686-pc-cygwin-gcc -c -O2 -DDATADIR=\"/usr/share/kbd\" loadkeys.c
i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" ksyms.c
i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" findfile.c
i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" getfd.c
i686-pc-cygwin-gcc -s  loadkeys.o ksyms.o findfile.o getfd.o   -o loadkeys
Igor Pechtchanski a écrit:

On Tue, 30 Mar 2004, bertrand marquis wrote:

 

Hello

   i.m trying to build the kernel under cygwin with a cross compiler
(host=cygwin target=i386-linux) and it seems that the kernel need the
loadkeys program to be build. I have tried to find it but it seems that
it don't exist.
Does anyone know a solution for that problem ?
thanks
   

Yep.  It's called "porting". :-)
Seriously, though, looking at the man page for "loadkeys", it doesn't seem
too relevant for Cygwin.  In particular, the entry for "--mktable" says:
   CREATE KERNEL SOURCE TABLE
  If the -m (or --mktable ) option is given loadkeys  prints
  to  the  standard  output  a  file  that  may  be  used as
  /usr/src/linux/drivers/char/defkeymap.c,  specifying   the
  default key bindings for a kernel (and does not modify the
  current keymap).
Sounds like the kernel is not very cross-compilation friendly (i.e., it's
expected to be compiled *on a Linux machine*).  One solution is to create
a "loadkeys" script that accepts only one option ("--mktable") and prints
out pre-defined text...  Alternatively, contact the authors of the code
and notify them that their code doesn't build on Cygwin (and probably
won't on OpenBSD, either).
	Igor
 



--
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: make ?

2004-03-30 Thread lingua2003
Thank you.

It works now.

BTW, I tried to remove Cygwin and reinstall it
via Add/Remove Programs in Control Panel, but
Cygwin was not there. OS is XP.

Then, what would be the best way to do that;
remove and re-install?

Thank you.

David

- Original Message -
Wrom: DJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXR
To: "David" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 9:46 PM
Subject: Re: make ?


> On Mon, 29 Mar 2004, David wrote:
>
> > I'm trying to compile a source code, and I typed 'make'
> > following the manual for that application-a nlp parser,
> > and got the error message "command not found".
> >
> > What shall I do? How do I use 'make' in Cygwin?
> >
> > Thank you.
> > David
>
> Install the "make" package.  In general, if you are looking for a
> particular program, the package search page at
>  is your friend.  See also
> .
> 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/



Cygwin perl not understanding textmode

2004-03-30 Thread Mike Spertus
I have installed Cygwin with DOS linebreaks (i.e., disks mounted in 
textmode). However, Cygwin perl doesn't seem to understand this as shown 
below. How do I tell Cygwin perl to respect textmode?:

[EMAIL PROTECTED] ~
$ od -t x1 foo.txt
000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
020 66 6f 6f 62 61 74 0d 0a 0d 0a
032
[EMAIL PROTECTED] ~
$ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
[EMAIL PROTECTED] ~
$ od -t x1 bar.txt
000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
036
[EMAIL PROTECTED] ~
$ mount
C:\cygwin\bin on /usr/bin type system (textmode)
C:\cygwin\lib on /usr/lib type system (textmode)
C:\cygwin on / type system (textmode)
c: on /cygdrive/c type user (textmode,noumount)
g: on /cygdrive/g type user (textmode,noumount)
r: on /cygdrive/r type user (textmode,noumount)
Is this a bug? Any suggestions?

Thanks,

Mike

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


Problems building a dll.

2004-03-30 Thread Mike Meyer

Please bear with tme. I belive this is a cygwin problem.

I'm trying to build a python extension module under cygwin. This means
it links against the dll containg the python interpreter. The linking fails,
with this error message:

build/temp.cygwin-1.5.9-i686-2.4/grammarmodule.o(.text+0x10e2): In function 
`get_grammar':
/cygdrive/c/Python/dist/src/Modules/grammarmodule.c:855: undefined reference to 
`__PyParser_Grammar'
collect2: ld returned 1 exit status

grepping the output of nm on libpython2.4.dll for that symbol turns up
the following:

lab$ nm libpython2.4.dll| grep _PyParser_Grammar
6a91cd98 D __PyParser_Grammar
6a9033f8 d __PyParser_Grammar

The command that builds the dll - well, tries to build it - is:

gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.5.9-i686-2.4/grammarmodule.o -L/usr/local/lib -L. -lpython2.4 -o 
build/lib.cygwin-1.5.9-i686-2.4/grammar.dll

This command is executed in the directory that libpython2.4.dll is, so
the -L. -lpython2.4 should pick up the dll.

In grovelling through the archives, it appeared that the output of
cygcheck was desirable in problem reports, so I've added it here.



cygcheck
Description: cygcheck output

Any and all help appreciated.

Thanks,
  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

--
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: nfs-server 2.2.47-2

2004-03-30 Thread Angelo Turetta
- Original Message - 
From: "Nerijus Baliunas" <[EMAIL PROTECTED]>
Sent: Tuesday, November 18, 2003 7:53 PM


> Brian Ford wrote:
>
> >>After selecting sunrpc manually and installing it, nfs-server-config
> >>installed all 3 services succesfully, but I cannot mount from
> >>neither Sun nor HP box, both give me for the first time:
> >>
> >># mount -F nfs 172.31.1.38:/tmp /c
> >>nfs mount: mount: /c: No such file or directory
> >
> > Well, did /c exist before you tried to mount on it.  AFAIK, most OSs
> > require that.
>
> Of course.
>
> Nerijus

Don't know if someone else have seen this problem. I did, and found this
message from a Google search, but no answer.
After some tests, I came to a base rule: file systems mounted without a
'real' directory behind, cannot be nfs-exported.

So, to correctly export/c   containing the root of the C: windows drive,
you need to actually create the directory hidden behind the mountpoint.
Easier to do than to say:

Execute a 'mount' command without any parameter, you should get an output
like this:

   C:\cygwin on / type system (binmode)
   c: on /c type system (binmode,noumount)
   d: on /d type system (binmode,noumount)

This means that your cygwin root is actually c:\cygwin. To be able to
nfs-export any directory from the windows drives, you just need to create
'c' and 'd' directories under C:\cygwin

from DOS Command Prompt:
 md c:\cygwin\c
 md c:\cygwin\d

from cygwin shell
mkdir /c/cygwin/c
mkdir /c/cygwin/d

Hope this helps someone.

Ciao,
Angelo Turetta


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

2004-03-30 Thread Peter A. Castro
On Tue, 30 Mar 2004, David Rayner wrote:

> Peter,

Greetings David,

> There is a posting in Gmane which explains that it's a packaging error
> >Sounds like a packaging bug.

Well, I am the Cygwin maintainer for zsh, and there are two issues:

The original issue was with the executable /usr/bin/zsh being a link to
the real exe (eg: zsh-4.2.0).  However, this is not a packaging error,
IMHO.  /usr/bin/zsh is a *hardlink*, not a *symlink*, and Setup currently
just duplicates the contents of the linked file, rather than creating the
link, which is quite acceptable and doesn't cause any problems.  What
zzapper experienced, I think, is a result of either improper
de/installation or that he'd setup a symlink locally and setup didn't
remove it before plopping down the new image.  Either way, I don't
considder it a packaging error.

The second issue is with the postinstall script, below.  There *are*
errors, but minor ones, at that.  I've already corrected it and will be
uploading a new version RSN.

> And right you are:
>
> $ cat /etc/postinstall/zsh.sh.done
> #!/bin/sh
> V=4.1.1
> ^^^
> Should be 4.2.0
>
> prefix=/usr
> infodir=${prefix}/share/info
>
> [snip]
>
> # Install default zprofile if needed
> if [ ! -f /etc/zprofile ]; then
>   echo "Installing default /etc/zprofile"
>   install -c -m 755 /usr/doc/zsh-$V/StartupFiles/zprofile
> ^^
> Should be /usr/share/doc
>  [snip]

-- 
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-03-30 Thread Peter A. Castro
On Tue, 30 Mar 2004, zzapper wrote:

> On Mon, 29 Mar 2004 14:46:15 -0800 (PST),  wrote:
>
> >On Mon, 29 Mar 2004, zzapper wrote:
> >
> >> On Wed, 24 Mar 2004 18:16:00 +0100,  wrote:
> >>
> >> >I'm having some trouble with zsh (4.0.6) and line breaks. It seems that
> >> >it does not accept "\n" as a line break. This results in some
> >> >uncomfortableness when using it as a login shell, such as this output
> >> >from Emacs:
> >> >
> >> >[EMAIL PROTECTED] ~/kurser/vt04/lp1/lab1]% latex \\nonstopmode\\input rapport.tex
> >> >latex \\nonstopmode\\input rapport.tex\n
> >> >
> >> >Apparently, zsh is not interpreting \n as EOL.
> >> >
> >> >Is there some setting that might fix this?
> >>
> >> I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos
> >> returns. I have to run dos2unix on my zsh scripts.
> >>
> One thing, are you running your scripts off of a text or binary mount
> filesystem?  And, are you running in DOS or Unix mode?  I'll need to
> know which combinations don't work.
>
> > Where fred has a few empty lines and an echo "hello"
> fred.sh
> fred
> fred.sh:2: command not found: ^M
> fred.sh:3: command not found: ^M
> fred.sh:4: command not found: ^M
> fred
> fred.sh:5: command not found: ^M
>
> >mount
> C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type
> system (binmode)
> C:\Cygwin\bin on /usr/bin type system (binmode)
> C:\Cygwin\lib on /usr/lib type system (binmode)
> C:\Cygwin on / type system (binmode)
>  type user (binmode)
> c: on /c type user (binmode)

Ok, so you're using all bin mounts.  I'll check into this and report back.

> 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: sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-30 Thread Mike Hanby
Problem solved, w00t

Here's the odd thing, I had set the appropriate policies on the domain
controller (or at least I thought I had), however when I ran:
secpol.msc on my XP system (the machine that I want to SSH into), only "Log
on as Service" policy was propogated from the domain controller.

So, I tried to run:  dompol.msc
I got a Windows Error claiming that I didn't have permissions (even though I
was logged in as Administrator), turns out this is a known issue on Windows
2003 (maybe 2000 also)

I launched dompol.msc via the shortcut at Administrator Tools and click
"Domain Security Policy"
Just as I saw in the secpol.msc on the XP box, the only policy the sshd_user
had was "Log on as Service"
I added him to:
"Adjust memory quotas for a process"
"Create a token object"
"Deny log on locally"
"Log on as a service"
"Replace a process level token"

I then went back to the XP machine and ran from the command prompt:
C:\> gpupdate

I then checked secpol.msc and now all of the policies for sshd_user have
propigated over.
Now it works.

Before I thought I'd done the same thing, but I must have modified the
policies using the wrong tool...?

Thanks for all the help.

Mike



"Yuen Wing Seung" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I also got the same problem. but I am work for the Adminstrator.
> which is a local user. Others Domain users got the Permission
> Denied after checking the password.
>
> All others Domain Users can open the CYGWIN bash shell properly
> on the Window console, however ssh to the server is not work.
>
>
> MIke Hanby wrote:
> > crum, nope, can't maintane the connection with a local user either.
> > I get the same Permission Denied after logging in.
> >
> > All of this worked before I joined this machine to the Windows 2003
Active
> > Directory domain, so it's got to be related, but beyond setting those
Local
> > Policies on the Domain controller, I don't know what else to try.
> >
> > "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > Hmm, really weird...  I'm officially out of ideas.  Does it work if you
> > try to log in as a local user (i.e., not a domain one)?
> >
> > As for /dev, see .
> > HTH,
> > Igor
> >
> > On Sun, 21 Mar 2004, MIke Hanby wrote:
> >
> >
> >>stupid Symantec products, thanks for pointing that out
> >>my home directory is physically located in:
> >>  C:\Documents and Settings\joeshmo.WIN2003DOMAIN
> >>I've created a link for /home to point to /cygdrive/c/Docume~1
> >>  lrwxrwxrwx1 1110710513 111 Mar 20 15:59 /home ->
> >
> > /cygdrive/c/Docume~1/
> >
> >>I've created another link to make my home directory more user friendly
> >>  lrwxrwxrwx1 1110710513 114 Mar 18 00:58
/home/joeshmo ->
> >
> > ./joeshmo.WIN2003DOMAIN/
> >
> >>User ID 11107 is the id for joeshmo in the /etc/passwd file
> >>  joeshmo:unused_by_nt/2000/xp:11107:10513:Joe
> >
> >
Shmo,U-WIN2003DOMAIN\joeshmo,S-1-5-21-2516459027-1883439143-603107090-1107:/
> > home/joeshmo:/bin/bash
> >
> >>Now, one thing I've noticed in the -v -v output of the ssh client:
> >>  SSH_TTY=/dev/tty1
> >>/bin/bash: Permission denied
> >>
> >>/dev doesn't exist, is this a problem?
> >>
> >>Thanks,
> >>Mike
> >>
> >>"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
> >>news:[EMAIL PROTECTED]
> >>Mike,
> >>
> >>Thanks.  First off (unrelated, but annoying): Norton Ghost screwed up
your
> >>path -- you should remove the quotes around
> >>"C:\Program Files\Symantec\Norton Ghost 2003\" in the PATH variable.
> >>Other than that, everything in your cygcheck output seems in order.  The
> >>only other thing I can think of at the moment is: is the home directory
of
> >>joeshmo readable by that user?  Can you please run "ls -ln" on joeshmo's
> >>home directory?  Oh, and do you realize that what sshd thinks the home
> >>directory is and what $HOME is set to don't match?
> >>Igor
> >>
> >>On Sun, 21 Mar 2004, MIke Hanby wrote:
> >>
> >>
> >>>Ok, here's the version information:
> >>>  Cygwin:  CYGWIN_NT-5.1 xphost 1.5.8(0.112/4/2) 2004-03-16 00:19 i686
> >>
> > unknown unknown Cygwin
> >
> >>>  ssh: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30
> >>
> > Sep 2003
> >
> >>>  sshd:   sshd version OpenSSH_3.8p1, OpenSSL 0.9.7c 30 Sep 2003
> >>>  OS running sshd:  Windows XP Pro
> >>>  Domain Controller OS:  Windows 2003 Server
> >>>
> >>>I started sshd service with the "-d -d" double verbose debug output
> >>>and ssh client with "-v -v" double verbose output.
> >>>
> >>>I've attached the ssh client, sshd service and cygcheck.out log files.
> >>>I tried adding +rx to directory /bin, got the same "Permission Denied"
> >>>error.
> >>>I'm not putting the output in the message as it's quite long.
> >>>
> >>>Thanks for any help,
> >>>
> >>>Mike
> >>>
> >>>
> >>>Igor Pechtchanski wrote:
> >>>On Sun, 21 Mar 2004, MIke Hanby wrote:
> >>>
> >>>
> Hey y'all, (s

Re: zsh and line breaks

2004-03-30 Thread Peter A. Castro
On Tue, 30 Mar 2004, Oliver Kiddle wrote:

> "Peter A. Castro" wrote:
> > > I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos
> > > returns. I have to run dos2unix on my zsh scripts.
> > >
> > > I haven't seen an explanation for this
> > Hmm... I'll have to look into this.  I thought I'd corrected this for
> > Cygwin...
>
> Are those corrections likely to be limited to the Cygwin package for
> zsh?

Yes.  Currently, my changes are Cygwin specific and really don't apply to
the other platforms.

> I don't use Cygwin myself but from a quick search, it looks like there
> is an O_TEXT flag to open which we could use (a couple of places in
> init.c would cover scripts I think). Wouldn't work where the script
> comes from stdin, though. Does that perhaps help?

I'm aware of O_TEXT and I thought I'd changed all of the places where
files are opened already, but I just checked my patches and those changes
are gone!  AARRGGHH!!  Ok, I'll re-edit and get that back in.  Going
through stdin or via piped fds may be an issue still.  Anyway, thanks for
the thought!

> Oliver

-- 
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: Cygwin perl not understanding textmode

2004-03-30 Thread Igor Pechtchanski
On Tue, 30 Mar 2004, Mike Spertus wrote:

> I have installed Cygwin with DOS linebreaks (i.e., disks mounted in
> textmode). However, Cygwin perl doesn't seem to understand this as shown
> below. How do I tell Cygwin perl to respect textmode?:
>
> [EMAIL PROTECTED] ~
> $ od -t x1 foo.txt
> 000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
> 020 66 6f 6f 62 61 74 0d 0a 0d 0a
> 032
>
> [EMAIL PROTECTED] ~
> $ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
>
> [EMAIL PROTECTED] ~
> $ od -t x1 bar.txt
> 000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
> 020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
> 036
>
> [EMAIL PROTECTED] ~
> $ mount
> C:\cygwin\bin on /usr/bin type system (textmode)
> C:\cygwin\lib on /usr/lib type system (textmode)
> C:\cygwin on / type system (textmode)
> c: on /cygdrive/c type user (textmode,noumount)
> g: on /cygdrive/g type user (textmode,noumount)
> r: on /cygdrive/r type user (textmode,noumount)
>
> Is this a bug? Any suggestions?
>
> Thanks,
> Mike

When you use pipes, you lose the mount mode information.  Try running

$ perl -e 'while (<>) {print;}' <~/foo.txt >bar.txt

instead.  For controlling the mode of pipes, read about the "(no)binmode"
option at .
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: Cygwin perl not understanding textmode

2004-03-30 Thread Mike Spertus
Igor Pechtchanski wrote:

On Tue, 30 Mar 2004, Mike Spertus wrote:

I have installed Cygwin with DOS linebreaks (i.e., disks mounted in
textmode). However, Cygwin perl doesn't seem to understand this as shown
below. How do I tell Cygwin perl to respect textmode?:
[EMAIL PROTECTED] ~
$ od -t x1 foo.txt
000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
020 66 6f 6f 62 61 74 0d 0a 0d 0a
032
[EMAIL PROTECTED] ~
$ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
[EMAIL PROTECTED] ~
$ od -t x1 bar.txt
000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
036
[EMAIL PROTECTED] ~
$ mount
C:\cygwin\bin on /usr/bin type system (textmode)
C:\cygwin\lib on /usr/lib type system (textmode)
C:\cygwin on / type system (textmode)
c: on /cygdrive/c type user (textmode,noumount)
g: on /cygdrive/g type user (textmode,noumount)
r: on /cygdrive/r type user (textmode,noumount)
Is this a bug? Any suggestions?

Thanks,
Mike
When you use pipes, you lose the mount mode information.  Try running

$ perl -e 'while (<>) {print;}' <~/foo.txt >bar.txt

instead.  For controlling the mode of pipes, read about the "(no)binmode"
option at .
Igor
I tried running your command, and exactly the same problem occurred :( 
In fact, my original perl script that I simplified in the post actually 
got the filename from the command line.

Mike

--
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 change fonts/color etc. for XWin?

2004-03-30 Thread David
Newbie question again:

Where can I change the background/font color
for XWin? I changed fonts/color, and it seemd that
it affected Cygwin shell, but CygXwin shell kept
its own original preference; yellow letters on black background.

How/where can I change it? I'd like to see white letters on
black background.

Thank you.

David

- Original Message -
From: "Mike Spertus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 1:29 PM
Subject: Re: Cygwin perl not understanding textmode


> Igor Pechtchanski wrote:
>
> > On Tue, 30 Mar 2004, Mike Spertus wrote:
> >
> >> I have installed Cygwin with DOS linebreaks (i.e., disks mounted in
> >> textmode). However, Cygwin perl doesn't seem to understand this as
shown
> >> below. How do I tell Cygwin perl to respect textmode?:
> >>
> >> [EMAIL PROTECTED] ~
> >> $ od -t x1 foo.txt
> >> 000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
> >> 020 66 6f 6f 62 61 74 0d 0a 0d 0a
> >> 032
> >>
> >> [EMAIL PROTECTED] ~
> >> $ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
> >>
> >> [EMAIL PROTECTED] ~
> >> $ od -t x1 bar.txt
> >> 000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
> >> 020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
> >> 036
> >>
> >> [EMAIL PROTECTED] ~
> >> $ mount
> >> C:\cygwin\bin on /usr/bin type system (textmode)
> >> C:\cygwin\lib on /usr/lib type system (textmode)
> >> C:\cygwin on / type system (textmode)
> >> c: on /cygdrive/c type user (textmode,noumount)
> >> g: on /cygdrive/g type user (textmode,noumount)
> >> r: on /cygdrive/r type user (textmode,noumount)
> >>
> >> Is this a bug? Any suggestions?
> >>
> >> Thanks,
> >> Mike
> >
> > When you use pipes, you lose the mount mode information.  Try running
> >
> > $ perl -e 'while (<>) {print;}' <~/foo.txt >bar.txt
> >
> > instead.  For controlling the mode of pipes, read about the
"(no)binmode"
> > option at .
> > Igor
>
> I tried running your command, and exactly the same problem occurred :(
> In fact, my original perl script that I simplified in the post actually
> got the filename from the command line.
>
> Mike
>
> --
> 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: make ?

2004-03-30 Thread Larry Hall

At 12:41 PM 3/30/2004, you wrote:
>Thank you.
>
>It works now.
>
>BTW, I tried to remove Cygwin and reinstall it
>via Add/Remove Programs in Control Panel, but
>Cygwin was not there. OS is XP.
>
>Then, what would be the best way to do that;
>remove and re-install?


See the FAQ entires starting with:




>- Original Message -
>Wrom: DJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXR
>To: "David" <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Monday, March 29, 2004 9:46 PM
>Subject: Re: make ?
>
>
>> On Mon, 29 Mar 2004, David wrote:
>>
>> > I'm trying to compile a source code, and I typed 'make'
>> > following the manual for that application-a nlp parser,
>> > and got the error message "command not found".
>> >
>> > What shall I do? How do I use 'make' in Cygwin?
>> >
>> > Thank you.
>> > David
>>
>> Install the "make" package.  In general, if you are looking for a
>> particular program, the package search page at
>>  is your friend.  See also
>> .
>> 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/ 


--
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 perl not understanding textmode

2004-03-30 Thread Igor Pechtchanski
Mike,

Please make sure your mailer respects the "Reply-To" header -- I set it
for a reason.

All Cygwin-related correspondence should be sent to the appropriate Cygwin
mailing list (see , or use alternate access
mechanisms, such as the gmane.org mail-to-news gateway).  Sending personal
e-mail is frowned upon unless specifically requested.  Not only will using
the mailing lists get you access to more expertise than any one person can
provide, but all posts are actually archived to serve as reference for
future users with similar problems.

More below.

On Tue, 30 Mar 2004, Mike Spertus wrote:

> Igor Pechtchanski wrote:
> > On Tue, 30 Mar 2004, Mike Spertus wrote:
> >
> >> I have installed Cygwin with DOS linebreaks (i.e., disks mounted in
> >> textmode). However, Cygwin perl doesn't seem to understand this as shown
> >> below. How do I tell Cygwin perl to respect textmode?:
> >>
> >> [EMAIL PROTECTED] ~
> >> $ od -t x1 foo.txt
> >> 000 66 6f 6f 62 61 72 0d 0a 66 6f 6f 62 61 7a 0d 0a
> >> 020 66 6f 6f 62 61 74 0d 0a 0d 0a
> >> 032
> >>
> >> [EMAIL PROTECTED] ~
> >> $ cat ~/foo.txt | perl -e 'while (<>) {print;}' >bar.txt
> >>
> >> [EMAIL PROTECTED] ~
> >> $ od -t x1 bar.txt
> >> 000 66 6f 6f 62 61 72 0d 0d 0a 66 6f 6f 62 61 7a 0d
> >> 020 0d 0a 66 6f 6f 62 61 74 0d 0d 0a 0d 0d 0a
> >> 036
> >>
> >> [EMAIL PROTECTED] ~
> >> $ mount
> >> C:\cygwin\bin on /usr/bin type system (textmode)
> >> C:\cygwin\lib on /usr/lib type system (textmode)
> >> C:\cygwin on / type system (textmode)
> >> c: on /cygdrive/c type user (textmode,noumount)
> >> g: on /cygdrive/g type user (textmode,noumount)
> >> r: on /cygdrive/r type user (textmode,noumount)
> >>
> >> Is this a bug? Any suggestions?
> >>
> >> Thanks,
> >> Mike
> >
> > When you use pipes, you lose the mount mode information.  Try running
> >
> > $ perl -e 'while (<>) {print;}' <~/foo.txt >bar.txt
> >
> > instead.  For controlling the mode of pipes, read about the "(no)binmode"
> > option at .
> > Igor
>
> I tried running your command, and exactly the same problem occurred :(
> In fact, my original perl script that I simplified in the post actually
> got the filename from the command line.
>
> Mike

IIRC, this was remedied by setting PERLIO="crlf" in your environment.
IOW, I was able to reproduce your problem, but running

$ PERLIO=crlf perl -pe ''  bar.txt

worked.
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: make ?

2004-03-30 Thread David
Got it

And, I decided to keep the current one. I thought
the installation was not so successful  as it should be,
but Cygwin works well after re-installing each package
whenever/whatever needed.

Thank you.

David

- Original Message -
From: "Larry Hall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 1:50 PM
Subject: Re: make ?


>
> At 12:41 PM 3/30/2004, you wrote:
> >Thank you.
> >
> >It works now.
> >
> >BTW, I tried to remove Cygwin and reinstall it
> >via Add/Remove Programs in Control Panel, but
> >Cygwin was not there. OS is XP.
> >
> >Then, what would be the best way to do that;
> >remove and re-install?
>
>
> See the FAQ entires starting with:
>
> 
>
>
> >- Original Message -
> >Wrom: DJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXR
> >To: "David" <[EMAIL PROTECTED]>
> >Cc: <[EMAIL PROTECTED]>
> >Sent: Monday, March 29, 2004 9:46 PM
> >Subject: Re: make ?
> >
> >
> >> On Mon, 29 Mar 2004, David wrote:
> >>
> >> > I'm trying to compile a source code, and I typed 'make'
> >> > following the manual for that application-a nlp parser,
> >> > and got the error message "command not found".
> >> >
> >> > What shall I do? How do I use 'make' in Cygwin?
> >> >
> >> > Thank you.
> >> > David
> >>
> >> Install the "make" package.  In general, if you are looking for a
> >> particular program, the package search page at
> >>  is your friend.  See also
> >> .
> >> 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/
>
>
> --
> 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/



Perl problem

2004-03-30 Thread Andrew DeFaria
Yeah I know, not strictly a Cygwin problem, but perhaps it's related...

When I'm debugging in Perl sometime I wish to restart the process with 
the "R" command. When I do so I get:

Daughter DB session started...
# Forked, but do not know how to create a new TTY. #
 Since two debuggers fight for the same TTY, input is severely entangled.
 I know how to switch the output to a different window in xterms
 and OS/2 consoles only.  For a manual switch, put the name of the 
created TTY
 in $DB::fork_TTY, or define a function DB::get_fork_TTY() returning this.

 On UNIX-like systems one can get the name of a TTY for the given window
 by typing tty, and disconnect the shell from TTY by sleep 100.
Now this is only on certain versions of Cygwin (or perhaps certain 
versions of Perl - or maybe it's related to something deeper). Right now 
it's happening on Cygwin 1.5.7 and Perl revision 5.0 version 8 
subversion 2. Any ideas?

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


gcc: std::cout problem

2004-03-30 Thread David
The source code was:
---
#include 

int main()
{

std::cout << "Hello,World!";

}



and from the shell:

--
$ gcc HelloWorld.cpp
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x37):HelloWorld.c
pp: undefined reference to `std::cout'
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x3c):HelloWorld.c
pp: undefined reference to `std::basic_ostream
>& std::operator<<  >(std::basic_ostream >&, char const*)'
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x65):HelloWorld.c
pp: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x80):HelloWorld.c
pp: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
collect2: ld returned 1 exit status

Is this normal? With std::cout error?
I mean, is this from the source code itself?
To me, the source looks fine, though.


Thank you in advance.

David

--
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: gcc: std::cout problem

2004-03-30 Thread Igor Pechtchanski
On Tue, 30 Mar 2004, David wrote:

> The source code was:
> ---
> #include 
>
> int main()
> {
>
> std::cout << "Hello,World!";
>
> }
>
> 
>
> and from the shell:
>
> --
> $ gcc HelloWorld.cpp
> /cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x37):HelloWorld.cpp: 
> undefined reference to `std::cout'
> /cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x3c):HelloWorld.cpp: 
> undefined reference to `std::basic_ostream >& 
> std::operator<<  >(std::basic_ostream std::char_traits >&, char const*)'
> /cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x65):HelloWorld.cpp: 
> undefined reference to `std::ios_base::Init::Init[in-charge]()'
> /cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x80):HelloWorld.cpp: 
> undefined reference to `std::ios_base::Init::~Init [in-charge]()'
> collect2: ld returned 1 exit status
>
> Is this normal? With std::cout error?
> I mean, is this from the source code itself?
> To me, the source looks fine, though.
>
> Thank you in advance.
> David

(a) Use 'g++' to link C++ code.
(b) Please start a new thread when switching topics, rather than
continuing old threads.
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: gcc: std::cout problem

2004-03-30 Thread David
I got several "delivery-fail mails" when I created
a new message. That's why I used one old message, and
the body of the message might look incomplete.
 I realized that it's from the encoding
type later, after I sent the message.

Anyway,

Thank you. It works now~~~

David


- Original Message -
From: "Igor Pechtchanski" <[EMAIL PROTECTED]>
To: "David" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 7:11 PM
Subject: Re: gcc: std::cout problem


> On Tue, 30 Mar 2004, David wrote:
>
> > The source code was:
> > ---
> > #include 
> >
> > int main()
> > {
> >
> > std::cout << "Hello,World!";
> >
> > }
> >
> > 
> >
> > and from the shell:
> >
> > --
> > $ gcc HelloWorld.cpp
> >
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x37):HelloWorld.c
pp: undefined reference to `std::cout'
> >
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x3c):HelloWorld.c
pp: undefined reference to `std::basic_ostream
>& std::operator<<  >(std::basic_ostream >&, char const*)'
> >
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x65):HelloWorld.c
pp: undefined reference to `std::ios_base::Init::Init[in-charge]()'
> >
/cygdrive/c/DOCUME~1/dAvId/LOCALS~1/Temp/ccEM3ulm.o(.text+0x80):HelloWorld.c
pp: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
> > collect2: ld returned 1 exit status
> >
> > Is this normal? With std::cout error?
> > I mean, is this from the source code itself?
> > To me, the source looks fine, though.
> >
> > Thank you in advance.
> > David
>
> (a) Use 'g++' to link C++ code.
> (b) Please start a new thread when switching topics, rather than
> continuing old threads.
> 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/



APM is possible?

2004-03-30 Thread David
I am new, and I'd like to know if
APM(apache+MySQL+PHP) can be
run in cygwin.

I think there's a manual for running apache there,
but I couldn't find one for the whole APM.

And, I also want to know if Tomcat kinds can
be run. Of course, it's for Servlet/JSP-Beans.

Thank you in advance.

David

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