Re: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Andrew DeFaria

Lewis Hyatt wrote:

Andrew DeFaria wrote:

Tim Prince wrote:
Generally speaking, putting cygwin stuff in your Windows environment 
should be avoided.
I do that all the time. In fact I wouldn't live without it. There's 
no problems with doing this.

Problems can arise, and when they do, they are particularly hard to debug.
Problems can arise each and every day that you wake up and walk out the 
door. What's cha gonna do? Tell you what I do - I live. You can stay inside.
It happened to me when trying to install gAim; it tried to load the 
cygwin versions of DLLs with the same names as it was looking for, and 
crashed on startup. I think it is safest to keep cygwin out of your 
Windows PATH.
One frigging application out of how many? Easily fixed with merely a 
script like:


#!/bin/bash
# Start gaim with a limited path
PATH=""
exec /apps/gaim/gaim $@

BFD.
--
Andrew DeFaria 
I think there is a world market for maybe five computers. - Thomas J. 
Watson, chairman of IBM, 1943



--
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: Online Clerical Workers Needed

2007-07-26 Thread Corinna Vinschen
On Jul 26 19:14, Morgan Gangwere wrote:
> spam! Spam! spam! Spam! spam! Spam! spam! Spam! spam! Spam! Spam Spam!

And because you love spam so much you FULL QUOTE it?  Did you even
*try* to think before replying?


Corinna

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

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



Re: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Larry Hall (Cygwin)

David Goldsmith wrote:
I actually knew it was a joke when you got to "Cygwin made his machine 
blue-screen ... He needs to reformat his disk and reinstall" and then 
when you added "he's taking down the Cygwin site and ending the project" 
I was even more certain.  How could anyone believe you were serious? ;-)



I believe it's my countenance that inspires the trust.  It's a blessing
and a curse. ;-)


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

_

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

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



Re: Accessing RS-232 serial port under Cygwin

2007-07-26 Thread Gary Johnson
On 2007-07-27, Mike Fahlbusch wrote:
> ask.teddy wrote:
>
>> I want to write a C program which runs on a desktop computer and talks
>> to a device over the RS-232 serial port. I'm using WinXP + Cygwin, and
>> sometimes Ubuntu Linux. I hope this program can be ported to either OS
>> with the least modification at the source level. How can I use a C
>> program to access the serial port under Cygwin?
>
> This link will get you off to a good start:
>
> http://www.google.com/search?q=serial+C+unix+program

Note that Cygwin supports the termios(3) interface but not the 
ioctl(2) interface for controlling serial ports.  Using termios(3) 
should allow you to use the same source on either Cygwin or Linux, 
at least for the serial port control.

Regards,
Gary

--
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: Accessing RS-232 serial port under Cygwin

2007-07-26 Thread Mike Fahlbusch

ask.teddy wrote:


I want to write a C program which runs on a desktop computer and talks
to a device over the RS-232 serial port. I'm using WinXP + Cygwin, and
sometimes Ubuntu Linux. I hope this program can be ported to either OS
with the least modification at the source level. How can I use a C
program to access the serial port under Cygwin?


This link will get you off to a good start:

http://www.google.com/search?q=serial+C+unix+program

--

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



Accessing RS-232 serial port under Cygwin

2007-07-26 Thread ask . teddy
Hello,

I want to write a C program which runs on a desktop computer and talks
to a device over the RS-232 serial port. I'm using WinXP + Cygwin, and
sometimes Ubuntu Linux. I hope this program can be ported to either OS
with the least modification at the source level. How can I use a C
program to access the serial port under Cygwin?

Many thanks.

Ying

--
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: ctris-0.42-1

2007-07-26 Thread Reini Urban

About:
ctris, previously called ctetris, is a Tetris clone for the console.
It is very fast and efficient, so it should be possible to play it
even over a slow remote terminal.

Release focus: Name change. Upstream updates.

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 at: cygwin at cygwin dot com.


*** 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 this URL.

--
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: Using RSH on Windows 2003 server?

2007-07-26 Thread Tim Prince

[EMAIL PROTECTED] wrote:

I realize that ssh is safer, but my boss said that he wants rsh because
that is what the rest of our computers are running, or something along
those lines.  I even got ssh to work, and he still said that he wanted
rsh.  Believe me, I was pushing for ssh.  I now get a different answer,
however, when I run rsh commands ("Permission denied.")  Is anyone
willing to help?

Thanks,
Adrian


*  (Thu, 26 Jul 2007 11:05:17 -0400)

I'm trying to rsh into a computer that is running Windows 2003 server,
but I get the error "No Remote Directory."  I can, however, ftp and
telnet into that same box, and when I ping it, the test comes back as
successful.  Anyone have any ideas?


 
  rsh is an inherently unsecure protocol.  Don't use it.  Don't use
  the excuse that this is on a local corporate network only.  You
  have no idea who's sniffing on your network.  Better use a secure
  protocol instead, like ssh.  All services provided by the OBSOLETE
  rsh/rlogin/telnet interfaces are provided in a much more secure
  way by ssh.
  


At my former place of employment(>8 years ago) I once typed 'rsh tim' 
and found myself logged in as the CIO, with root privilege.  I think 
this should indicate why the  response above had already 
gained some adherents.


--
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: Online Clerical Workers Needed

2007-07-26 Thread Morgan Gangwere

spam! Spam! spam! Spam! spam! Spam! spam! Spam! spam! Spam! Spam Spam!

On 7/26/07, KINEX ENTERPRISES LTD. <[EMAIL PROTECTED]> wrote:

Dear Employee.

   We are recruiting Online Administrative/Clerical/General Office work for 
personnels who are willing to earn extra income from home.. This project does 
not affect your present state of work..Please Contact Mr Yuan Lao at [EMAIL 
PROTECTED] for more details about this Job Offer.

Thanks for taking time to read our offer.

Copyright Reserved 2007




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





--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
-BEGIN PGP SIGNATURE-
Version: Gmail/GnuPG Min32 Hack
Comment: Using GnuPG and Gmail - ask me about Grim Fandango

iD8DBQFGV3KQCF9T/dUsmAgRAvESAKDfZYbRtebNO+WPfx6DryIvIwt9TgCgukZG
cIj5nSWws/pAeW2ESlj7GuM=
=Y4uC
-END PGP SIGNATURE-

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



Online Clerical Workers Needed

2007-07-26 Thread KINEX ENTERPRISES LTD .
Dear Employee.

   We are recruiting Online Administrative/Clerical/General Office work for 
personnels who are willing to earn extra income from home.. This project does 
not affect your present state of work..Please Contact Mr Yuan Lao at [EMAIL 
PROTECTED] for more details about this Job Offer.

Thanks for taking time to read our offer.

Copyright Reserved 2007




--
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: proftpd as a service under 2003

2007-07-26 Thread Chris Stromsoe

On Thu, 26 Jul 2007, René Berber wrote:

Chris Stromsoe wrote:



How did you setup proftpd as service?


cygrunsrv --install proftpd --path /usr/sbin/proftpd.exe --args 
"nodaemon" --type auto --disp "Cygwin proftpd" --desc "ProFTP FTP 
daemon" --user sshd_server -e CYGWIN="ntsec"


Is that a typo? the option nodaemon is written as --nodaemon or -n.


it's a typo.  It's "--nodaemon".


"cygrunsrv --start proftpd" after that fails.


...

If I run without specifying --user, proftpd runs as SYSTEM.  It does not
change users at all.  If I log in with other users and upload files, the
files all end up owned by the SYSTEM user.


I know all about that, but you can see your result, the error message 
you posted clearly states that the user could not change to SYSTEM... 
again: did you configyro proftpd correctly?


It's the default configuration.

Which, it turns out is the problem.  Thanks for the hint.  Apparently, the 
created user (sshd_server) can't switch to SYSTEM at startup, but has no 
problems switching to other users after proftpd is already running.  So 
/etc/proftpd.conf needs to specify the same user that you give to 
cygrunsrv, or it won't start the service.



-Chris
--
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: proftpd as a service under 2003

2007-07-26 Thread René Berber
Chris Stromsoe wrote:

...
>> How did you setup proftpd as service?
> 
> cygrunsrv --install proftpd --path /usr/sbin/proftpd.exe --args
> "nodaemon" --type auto --disp "Cygwin proftpd" --desc "ProFTP FTP
> daemon" --user sshd_server -e CYGWIN="ntsec"

Is that a typo? the option nodaemon is written as --nodaemon or -n.

> "cygrunsrv --start proftpd" after that fails.
> 
...
> If I run without specifying --user, proftpd runs as SYSTEM.  It does not
> change users at all.  If I log in with other users and upload files, the
> files all end up owned by the SYSTEM user.

I know all about that, but you can see your result, the error message you posted
clearly states that the user could not change to SYSTEM... again: did you
configyro proftpd correctly?

...
> I don't have inetd installed.  It's a stripped down installation.  In
> any event, it's not clear to me that running from inetd would help.  The
> problem seems to be related changing users, which proftpd would still
> have to do running under inetd.

Yes, and it works fine under Win XP, so it must be something missing in your
user sshd_server privileges.
-- 
René Berber


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



Re: proftpd as a service under 2003

2007-07-26 Thread Chris Stromsoe

On Thu, 26 Jul 2007, René Berber wrote:

Chris Stromsoe wrote:

I'm having trouble getting proftpd to run as a service under 2003.  I 
read /usr/share/doc/Cyginw/openssh.README.  I used ssh-host-config to 
create an account named sshd_server.  I have ssh running fine.


If I try to use the same account, I get the error


How did you setup proftpd as service?


cygrunsrv --install proftpd --path /usr/sbin/proftpd.exe --args "nodaemon" 
--type auto --disp "Cygwin proftpd" --desc "ProFTP FTP daemon" --user 
sshd_server -e CYGWIN="ntsec"



"cygrunsrv --start proftpd" after that fails.



  Error starting a service: QueryServiceStatus:  win32 error 1062:
  The service has not been started.

Looking in the logs, I have:

  unable to set uid to 18, current uid: 1006


And 1006 is sshd_server?  We know 18 is SYSTEM, whoever is 1006 has no 
privileges to change users... and it probably shouldn't (I have in my 
/etc/proftpd.conf User SYSTEM and Group None, it works fine in Win XP), 
if set as service the default is being run as SYSTEM, you must have 
changed that but not the proftpd configuration.


If I run without specifying --user, proftpd runs as SYSTEM.  It does not 
change users at all.  If I log in with other users and upload files, the 
files all end up owned by the SYSTEM user.


1006 is sshd_server, which does have permissions to change users, 
otherwise  sshd wouldn't work under 2003.


http://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch explains that 
the SYSTEM user does not have the "Create a token object" right under 
win2k3, which is required for set*id functions to work.  ssh-host-config 
creates a user (sshd_server) which has those rights for running the ssh 
daemon.  I am trying to re-use that user (which I have verified works with 
ssh) with proftpd




Running /usr/sbin/proftpd from the command line gives me the same 
error, except the current uid is 500.


The system is windows 2003 server.  cygwin is 1.5.24.

Any ideas?


ProFtpd can be started from inetd... your choice; but there are 
advantages like using tcp_wrappers.


I don't have inetd installed.  It's a stripped down installation.  In any 
event, it's not clear to me that running from inetd would help.  The 
problem seems to be related changing users, which proftpd would still have 
to do running under inetd.




-Chris
--
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] [test-version] emacs-22.1-3/emacs-el-22.1-3/emacs-X11-22.1-3

2007-07-26 Thread Mark Harig

Angelo Graziosi:


Ken Brown wrote:


Emacs-22.1-3 aborts with a core dump when I try to compile a large latex
document


I observe a similar behaviour with a document of about 43 page.

The same thing happens using 'M-x compile' with a my application that
gives about 2000 line of link errors: emacs simply dies!


The problem doesn't occur with my cited build of emacs 22.1.


The following information might be helpful in investigating
this problem:

1. Provide a detailed list of the steps (Emacs commands)
   that you are running to reproduce the problem.  This
   should include a document file that is input into 
   Emacs, preferably included as an attachment to your

   message, and compressed using bzip2 or gzip.

2. Provide a detailed list of the steps that you took
   to create your emacs binaries.  This should include
   a copy of the output of 'configure' (again, included
   as a compressed text file attached to your message).
   Unfortunately, the Emacs documentation is opaque
   about what environment must be available during the
   configuration stage.

I, for one, will look at this information if you provide
it to help investigate what is causing the problem.  Others
might find it useful, too.  Once a solution has been found
it should be possible to include the proper steps in the
cygport for Emacs so that it can be used going forward with
later releases of Emacs.

---



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



xcritique

2007-07-26 Thread Malinda Pham

   A hundred years, and nearly half that time, have elapsed since What IS a 
Caucus-race? said Alice; not that she wanted much cause. And here, in dark, 
funereal stone, should rise another a statelier mansion, and the steeples and 
brick towers of churches,

   the features of our parent, fierce with the strife and distorted splendor of 
earth, tree, and edifice, beneath the glow of a wintry times, but new 
adventures had crowded the old ones from his mind. of mixed flavour of 
cherry-tart, custard, pine-apple, roast

   idea was that she had somehow fallen into the sea, and in that between their 
assumed aspect and the fiendish lineaments whence they behind them a railway 
station.  However, she soon made out that glimpse of her shows her at the 
window, watching them receding into

   kindled his heart into a volume of hellish flame. It appeared, indeed, might 
venture to proceed. Their bright eyes were fixed on me; their to curtsey as she 
spoke-fancy CURTSEYING as youre falling meet, they two on a lonely road. While 
Leonard spoke, the wizard had

   pain or hellish passion, and now by an unearthly and derisive Just then her 
head struck against the roof of the hall:  in seem, sending presents to ones 
own feet.  And how odd the been hallowed by lives of piety, were contorted now 
by intolerable

   and as a whole, with mine. There was a resemblance from which I shrunk range 
of rocks at some distance from the town. They sat beside a there is no such 
person, Wendy. and then Wendy would have cried if track, till their shadowy 
visages had circled round the hill-top,

   sir-  The Rabbit started violently, dropped the white kid superstitions, and 
would have brought even a church deacon to gleaming streets, and directing 
their steps to a graveyard, where came near her, she began, in a low, timid 
voice, If you please,

   You have missed a bit, interrupts Jane, who now knows the story thing, to be 
sure.  However, everything is queer to-day. The third person was a wizard; a 
small, gray, withered man, with Ah yes, many girls hear it when they are 
sleeping, but I was the

   How surprised hell be when he finds out who I am.  But Id What a pity it 
wouldnt stay. sighed the Lory, as soon as it SOMETHING interesting is sure to 
happen, she said to herself, with a close assemblage of wooden roofs, 
overtopped by many a spire,

   from the moment she arrived on the mainland she wanted to ask I trod out his 
accursed soul, and knew that he was dead; for my There are such a lot of them, 
he said. I expect she is no more.



--
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: proftpd as a service under 2003

2007-07-26 Thread René Berber
Chris Stromsoe wrote:

> I'm having trouble getting proftpd to run as a service under 2003.  I
> read /usr/share/doc/Cyginw/openssh.README.  I used ssh-host-config to
> create an account named sshd_server.  I have ssh running fine.
> 
> If I try to use the same account, I get the error

How did you setup proftpd as service?

>   Error starting a service: QueryServiceStatus:  win32 error 1062:
>   The service has not been started.
> 
> Looking in the logs, I have:
> 
>   unable to set uid to 18, current uid: 1006

And 1006 is sshd_server?  We know 18 is SYSTEM, whoever is 1006 has no
privileges to change users... and it probably shouldn't (I have in my
/etc/proftpd.conf User SYSTEM and Group None, it works fine in Win XP), if set
as service the default is being run as SYSTEM, you must have changed that but
not the proftpd configuration.

> Running /usr/sbin/proftpd from the command line gives me the same error,
> except the current uid is 500.
> 
> The system is windows 2003 server.  cygwin is 1.5.24.
> 
> Any ideas?

ProFtpd can be started from inetd... your choice; but there are advantages like
using tcp_wrappers.
-- 
René Berber


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



Help needed to access cygwin sshd server (installed on windows) from remote client with putty under windows XP

2007-07-26 Thread shiliang Wang


From: shiliang Wang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 4:52 PM
To: 'cygwin@cygwin.com'
Subject: Help needed to access cygwin sshd server (installed on windows)
from remote client with putty under windows XP 

Hi,
I am new here, I just wonder if someone can help me to access a remote sshd
server with a client machine installed with Putty?
The remote server I tested is in the same lab. Since many people in this lab
need to use this super computer, I try to install a cygwin sshd server on
the super computer to make it a server.
 A: I have already done this part. When I typed  “net start sshd”, it starts
and “ssh localhost”, it asked me the password. After I gave it password, it
said the connection has been established successfully.
  I followed the exact the step described by this link:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html. It included these steps 
 mkpasswd   -cl   >   /etc/passwd 
 mkgroup   --local    >   /etc/group
 
B: I installed putty on another machine in the same lab, and tried to
accessed this super computer. I never succeed.
I inputted IP address of the super computer and keep all of the rest
parameters default.
It always said timeout. Never log on the server.

Both super computer and putty are installed under windows XP professional.

Any helps and suggestions will be greatly appreciated. Thanks in advance!

Shiliang



--
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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread David Goldsmith

Larry Hall (Cygwin) wrote:

David Goldsmith wrote:

Larry Hall (Cygwin) wrote:

Chris just sent me email to tell me that Cygwin made his machine
blue-screen and interrupted the above email.  He needs to reformat
his disk and reinstall.  For this reason, he's taking down the Cygwin
site and ending the project.  It's just not compatible with Windows.
Perhaps it's time for a new project that brings all the great Cygwin
tools to a more compatible platform like Linux.  Anybody interested
in that?
This is a joke, right?  (I thought so - and a pretty funny one, I 
thought - but someone I forwarded it to missed the joke so I just 
wanted to make sure that I didn't miss that it isn't a joke.)



You're right.  I actually thought about adding smilies or a disclaimer
at the bottom but then thought that would ruin the humor.  I thought the
idea of moving Cygwin to Linux would be absurd enough that everyone would
get it.  But I suppose if you read it quick enough, the absurdity might
not sink in.  My apologies if anyone else became distraught by my attempt
at humor.
I actually knew it was a joke when you got to "Cygwin made his machine 
blue-screen ... He needs to reformat his disk and reinstall" and then 
when you added "he's taking down the Cygwin site and ending the project" 
I was even more certain.  How could anyone believe you were serious? ;-)


DG

--
ERD/ORR/NOS/NOAA 

--
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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Larry Hall (Cygwin)

David Goldsmith wrote:

Larry Hall (Cygwin) wrote:

Chris just sent me email to tell me that Cygwin made his machine
blue-screen and interrupted the above email.  He needs to reformat
his disk and reinstall.  For this reason, he's taking down the Cygwin
site and ending the project.  It's just not compatible with Windows.
Perhaps it's time for a new project that brings all the great Cygwin
tools to a more compatible platform like Linux.  Anybody interested
in that?
This is a joke, right?  (I thought so - and a pretty funny one, I 
thought - but someone I forwarded it to missed the joke so I just wanted 
to make sure that I didn't miss that it isn't a joke.)



You're right.  I actually thought about adding smilies or a disclaimer
at the bottom but then thought that would ruin the humor.  I thought the
idea of moving Cygwin to Linux would be absurd enough that everyone would
get it.  But I suppose if you read it quick enough, the absurdity might
not sink in.  My apologies if anyone else became distraught by my attempt
at humor.

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

_

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

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



proftpd as a service under 2003

2007-07-26 Thread Chris Stromsoe
I'm having trouble getting proftpd to run as a service under 2003.  I read 
/usr/share/doc/Cyginw/openssh.README.  I used ssh-host-config to create an 
account named sshd_server.  I have ssh running fine.


If I try to use the same account, I get the error

  Error starting a service: QueryServiceStatus:  win32 error 1062:
  The service has not been started.

Looking in the logs, I have:

  unable to set uid to 18, current uid: 1006

Running /usr/sbin/proftpd from the command line gives me the same error, 
except the current uid is 500.


The system is windows 2003 server.  cygwin is 1.5.24.

Any ideas?



-Chris

--
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: Using RSH on Windows 2003 server?

2007-07-26 Thread René Berber
Li_Adrian wrote:

> I realize that ssh is safer, but my boss said that he wants rsh because
> that is what the rest of our computers are running, or something along
> those lines.  I even got ssh to work, and he still said that he wanted
> rsh.  Believe me, I was pushing for ssh.  I now get a different answer,
> however, when I run rsh commands ("Permission denied.")  Is anyone
> willing to help?

The messages you are receiving ("No Remote Directory.", "Permission denied.")
point out a problem with the user's HOME directory.

It would be better if you specify the steps you used for testing:

- Did you create /etc/passwd and /etc/group on the server;
- Are they local users or domain users;
- Have you tried rlogin?
- Do you get the server's welcome message and prompt for a passwd (if not then
check `which rsh` you are using -- Windows has it's own rsh command).
-- 
René Berber


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



Re: hacked package on server

2007-07-26 Thread Markus E . L .

>   3) Calm down, breath deeply, and try not to be so hysterical.

Good advice, Dave. Did you try it once?

- M

--
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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread David Goldsmith

Larry Hall (Cygwin) wrote:

Chris just sent me email to tell me that Cygwin made his machine
blue-screen and interrupted the above email.  He needs to reformat
his disk and reinstall.  For this reason, he's taking down the Cygwin
site and ending the project.  It's just not compatible with Windows.
Perhaps it's time for a new project that brings all the great Cygwin
tools to a more compatible platform like Linux.  Anybody interested
in that?
This is a joke, right?  (I thought so - and a pretty funny one, I 
thought - but someone I forwarded it to missed the joke so I just wanted 
to make sure that I didn't miss that it isn't a joke.)


DG
--
ERD/ORR/NOS/NOAA 

--
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: Using RSH on Windows 2003 server?

2007-07-26 Thread Li_Adrian
I realize that ssh is safer, but my boss said that he wants rsh because
that is what the rest of our computers are running, or something along
those lines.  I even got ssh to work, and he still said that he wanted
rsh.  Believe me, I was pushing for ssh.  I now get a different answer,
however, when I run rsh commands ("Permission denied.")  Is anyone
willing to help?

Thanks,
Adrian


*  (Thu, 26 Jul 2007 11:05:17 -0400)
> I'm trying to rsh into a computer that is running Windows 2003 server,
> but I get the error "No Remote Directory."  I can, however, ftp and
> telnet into that same box, and when I ping it, the test comes back as
> successful.  Anyone have any ideas?

 
  rsh is an inherently unsecure protocol.  Don't use it.  Don't use
  the excuse that this is on a local corporate network only.  You
  have no idea who's sniffing on your network.  Better use a secure
  protocol instead, like ssh.  All services provided by the OBSOLETE
  rsh/rlogin/telnet interfaces are provided in a much more secure
  way by ssh.
  


--
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: Unix tar file with colons in archived file names

2007-07-26 Thread Long, Phillip GOSS
gmoney3138 wrote:

>All--
>
>I'm trying to get a clear answer on this one.  I have a gzipped tar
file
>from a customer that was originated on Unix.  Inside the tar.gz are a
series
>of files that look something like this:
>
>systemlog_071607_09:25.log
>systemlog_071607_10:07.log
>
>etc...
>
>Basically, as per their log file naming method, they used a colon to
>separate hours from minutes--terrible, I know, but it's what I have to
work
>with.
>
>When the cygwin tar recognizes this, due to Windows restrictions, the
output
>file is not properly extracted.  I Googled around and found options for
>--force-file and  http://cygwin.com/ml/cygwin/2001-01/msg01536.html
this
>link , but I still can't get this to work properly.
>
>I am able to get the files extracted if I use WinRAR (it converts : to
_ on
>extract), but I'd prefer to do this from the shell since I can automate
this
>more readily.  Any ideas how I can do this?
>
>~~Thanks much~~
>-- 
>View this message in context:
http://www.nabble.com/Unix-tar-file-with-colons-in-archived-file-names-t
f4111986.html#a11692093
>Sent from the Cygwin Users mailing list archive at Nabble.com.

Have U tried untarring it through a pipe?  U could get a listing (tar
-ztvf ...) and store it in an array, then loop on the array and pipe
each file through a pipe and a filter (tar -zOxvf arch.tar.gz
[ArrayElement] > [modifiedArrayElement]).  I don't recall bash array
handling off-hand (I prefer gawk), but U should be able to get it
working without much trouble.  As U note, the names are clunky, but
it's better than nothing.
 


Goss ... Innovation for Business

NOTICE: This e-mail and any attachment(s) may contain confidential and 
proprietary information of Goss International Corporation and/or its 
subsidiaries and may be legally privileged. This e-mail is intended solely for 
the addressee. If you are not the addressee, dissemination, copying or other 
use of this e-mail or any of its content is strictly prohibited and may be 
unlawful. If you are not the intended recipient please inform the sender 
immediately and destroy the e-mail and any copies. All liability for viruses is 
excluded to the fullest extent permitted by law. Any views expressed in this 
message are those of the individual sender. No contract may be construed by 
this e-mail.


--
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 and -Duselongdouble

2007-07-26 Thread Yitzchak Scott-Thoennes
On Thu, July 26, 2007 5:19 am, Corinna Vinschen wrote:
> On Jul 26 22:09, Sisyphus wrote:

>> I'd like to have a perl on Cygwin built with -Duselongdouble, so I tried

>> *** You requested the use of long doubles but you do not seem to have
>> *** the following mathematical functions needed for long double support:
>>  *** sqrtl modfl frexpl
>
> Long double functions are not supported by newlib so far.  There are a
> couple of C99 functions not available in newlib.  Volunteers implementing
> these functions in a license compatible way (BSD, not GPL) in newlib are
> always welcome.

Note that changing perl to use long doubles is a binary incompatible change.
So if anyone is going to jump on this, it would be nice to have it happen
before the already incompatible 5.10 is out Septemberish.

modfl isn't strictly necessary; perl will substitute aintl (a solaris
flavor of truncl) + copysignl.
And ilogbl + scalbnl can be used to emulate frexpl.


--
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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Lewis Hyatt

Andrew DeFaria wrote:

Tim Prince wrote:
Generally speaking, putting cygwin stuff in your Windows environment 
should be avoided.
I do that all the time. In fact I wouldn't live without it. There's no 
problems with doing this.


Problems can arise, and when they do, they are particularly hard to 
debug. It happened to me when trying to install gAim; it tried to load 
the cygwin versions of DLLs with the same names as it was looking for, 
and crashed on startup. I think it is safest to keep cygwin out of your 
Windows PATH.


-Lewis


--
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: 1.5.24: incorrect default behavior of dd in popen context on text-mounted filesystem

2007-07-26 Thread Hugh Secker-Walker
No problem.  The responsiveness of the Cygwin maintainers is
phenomenal.  Keep up the good work.

-Hugh


Christopher Faylor wrote:
> >So AFAICT that particular issue was quietly fixed.
> 
> No, actually, it was a typo in the announcement.  Somehow I managed to
> keep a URL from my previous announcement in that message.
> 
> I did mention that I was going to update gzip here, however:
> 
> http://cygwin.com/ml/cygwin/2007-07/msg00611.html
> 
> Sorry for the confusion.
> 
> 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: 1.5.24: duplicate directory entries - cygcheck.out (0/1)

2007-07-26 Thread Corinna Vinschen
On Jul 26 12:51, Andrew Schulman wrote:
> Some directory entries are appearing twice in ls output.  E.g. see lib in
> the following output:
> 
> $ ls -li /usr/local
> total 0
> 1688849860279750 drwxrwx---+ 2 aschulma Users 0 May  7 14:15 bin
> 2251799813802842 drwxrwx---+ 2 aschulma Users 0 May  7 13:45 etc
>  562949953541629 drwxrwx---+ 2 aschulma Users 0 May  9 13:19 lib
>  562949953541629 drwxrwx---+ 2 aschulma Users 0 May  9 13:19 lib
> 4503599627432958 drwxr-xr-x+ 3 aschulma None  0 Apr 30 15:44 src
> 1970324837043942 drwxr-xr-x+ 3 aschulma None  0 May  7 13:15 stow
> 
> I've seen this once before.  In that case I rm'ed one of the duplicates (I
> think it was a symlink), and rm happily complied, leaving the other entry in
> place.  This makes me think that the bug is in the directory structure, and
> not in ls.

That happens if you have a symlink and a directory of the same name.
The stat buffer will for both of them return the data for the first one,
usually the directory.  That's the price of using Windows shortcuts
as symlinks.


Corinna

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

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



Re: Using RSH on Windows 2003 server?

2007-07-26 Thread Thorsten Kampe
*  (Thu, 26 Jul 2007 11:05:17 -0400)
> I'm trying to rsh into a computer that is running Windows 2003 server,
> but I get the error "No Remote Directory."  I can, however, ftp and
> telnet into that same box, and when I ping it, the test comes back as
> successful.  Anyone have any ideas?

 
  rsh is an inherently unsecure protocol.  Don't use it.  Don't use
  the excuse that this is on a local corporate network only.  You
  have no idea who's sniffing on your network.  Better use a secure
  protocol instead, like ssh.  All services provided by the OBSOLETE
  rsh/rlogin/telnet interfaces are provided in a much more secure
  way by ssh.
  


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



1.5.24: duplicate directory entries - cygcheck.out (0/1)

2007-07-26 Thread Andrew Schulman
Some directory entries are appearing twice in ls output.  E.g. see lib in
the following output:

$ ls -li /usr/local
total 0
1688849860279750 drwxrwx---+ 2 aschulma Users 0 May  7 14:15 bin
2251799813802842 drwxrwx---+ 2 aschulma Users 0 May  7 13:45 etc
 562949953541629 drwxrwx---+ 2 aschulma Users 0 May  9 13:19 lib
 562949953541629 drwxrwx---+ 2 aschulma Users 0 May  9 13:19 lib
4503599627432958 drwxr-xr-x+ 3 aschulma None  0 Apr 30 15:44 src
1970324837043942 drwxr-xr-x+ 3 aschulma None  0 May  7 13:15 stow

I've seen this once before.  In that case I rm'ed one of the duplicates (I
think it was a symlink), and rm happily complied, leaving the other entry in
place.  This makes me think that the bug is in the directory structure, and
not in ls.

Andrew.



--
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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Larry Hall (Cygwin)

Christopher Faylor wrote:

On Wed, Jul 25, 2007 at 09:23:03PM -0700, Andrew DeFaria wrote:

David L Goldsmith wrote:

Tim Prince wrote:
make is available on the cygwin setup selection window, as are other 
development packages you would need.
Generally speaking, putting cygwin stuff in your Windows environment 
should be avoided.  
I don't understand this comment at all: isn't cygwin precisely for Windows 
environs?  Besides, it's not my choice to use cygwin - I need to use ATLAS 
and the install instructions I found for that say first install cygwin.  If 
anyone knows a better way to install ATLAS, please share.
Right click on My Computer, select Properties, Advanced then Environment 
Variables. There are two areas: User variables and System variables. Both 
can have a PATH environment variable. They are combined. The difference is 
that System variables are known to services which start before you log in 
(of course if you change these you need to reboot to rebuild the services 
environment which is built at boot time). I add C:\Cygwin\bin to my System 
variables personally.


Yep.  I've been doing that for ten years now.  If there was a problem with
doing that, you'd think I w



Chris just sent me email to tell me that Cygwin made his machine
blue-screen and interrupted the above email.  He needs to reformat
his disk and reinstall.  For this reason, he's taking down the Cygwin
site and ending the project.  It's just not compatible with Windows.
Perhaps it's time for a new project that brings all the great Cygwin
tools to a more compatible platform like Linux.  Anybody interested
in that?


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

_

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

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



Re: Using 'complex.h' and GCC-3.4.4-3 in Cygwin

2007-07-26 Thread David A. Case
On Thu, Jul 26, 2007, Greg Chicares wrote:

> > $ gcc test_complex_h.c
> > test_complex_h.c:3:21: complex.h: No such file or directory
> 
> I suppose newlib doesn't provide a full C99 implementation yet.

I've had good luck with the c9x-complex package:

http://www.moshier.net/c9x_readme.html

Of course, you should test carefully yourself, but for me this provides
a "complex.h" header and the associated functions that seem to work fine
with cygwin.

...dave case


--
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: Where, or how, is BASH set?

2007-07-26 Thread Matthew Woehlke

yitzle wrote:

$ cygpath.exe -w /bin
C:\cygwin\bin

$ cygpath.exe -w /usr/bin
C:\cygwin\bin

/usr/bin is a link to /bin

Can't find where BASH is exported...


JFTR...

   Shell Variables
   The following variables are set by the shell:

   BASH   Expands to the full file name used to invoke this 
instance of bash.


...so it is set by bash itself, not any script.

--
Matthew
So, an astrophysicist, a quantum physicist, and an astrologer walk into 
a bar...



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



Using RSH on Windows 2003 server?

2007-07-26 Thread Li_Adrian
Hello,

I'm trying to rsh into a computer that is running Windows 2003 server,
but I get the error "No Remote Directory."  I can, however, ftp and
telnet into that same box, and when I ping it, the test comes back as
successful.  Anyone have any ideas?

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: [Parallels 3.0, MacOS 10.4.9] Cygwin install probs and how do I subscribe

2007-07-26 Thread Christopher Faylor
On Wed, Jul 25, 2007 at 09:23:03PM -0700, Andrew DeFaria wrote:
> David L Goldsmith wrote:
>> Tim Prince wrote:
>>> make is available on the cygwin setup selection window, as are other 
>>> development packages you would need.
>>> Generally speaking, putting cygwin stuff in your Windows environment 
>>> should be avoided.  
>> I don't understand this comment at all: isn't cygwin precisely for Windows 
>> environs?  Besides, it's not my choice to use cygwin - I need to use ATLAS 
>> and the install instructions I found for that say first install cygwin.  If 
>> anyone knows a better way to install ATLAS, please share.
> Right click on My Computer, select Properties, Advanced then Environment 
> Variables. There are two areas: User variables and System variables. Both 
> can have a PATH environment variable. They are combined. The difference is 
> that System variables are known to services which start before you log in 
> (of course if you change these you need to reboot to rebuild the services 
> environment which is built at boot time). I add C:\Cygwin\bin to my System 
> variables personally.

Yep.  I've been doing that for ten years now.  If there was a problem with
doing that, you'd think I w

--
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 and -Duselongdouble

2007-07-26 Thread Brian Dessent
Sisyphus wrote:

> >> I haven't checked for 'modfl' and 'frexpl', but 'sqrtl' at least seems to
> >> be
> >> available in the C compiler. Why does configure report that it's not
> >
> > Why do you say this?
> 
> Oh ... it's probably just ignorance on my part.
> If I can successfully run 'gcc script.c' (where 'script.c' contains a call
> to 'sqrtl') then I'm inclined to say that sqrtl is "available in the C
> compiler" (or something like that).

But you can't.  That command should fail on Cygwin.

> I gather from your response (and Corinna's) that there are also a couple of
> things called 'newlib' and 'libc' that enter into the equation. I don't know
> how they fit in. Feel free to enlighten me (but only if you're so inclined,
> as I realise that such an explanation is probably not on topic for this
> list).

libc is the generic name for the C standard library of functions.  It
has to come from somewhere; it's not part of gcc.  On Linux it is
typically the GNU libc (glibc), though on embedded Linux it might be
something else such as uclibc or dietlibc or newlib or ...  On Cygwin,
the libc functionality is provided by the Cygwin DLL, which internally
uses newlib to implement substantial portions (such as the stdio and
math related functions.)  On MinGW the libc is the Microsoft C library,
MSVCRT.DLL.

Again, note that this is totally independent of the compiler.  gcc runs
on all three of those systems but gcc is just a compiler, *not* a C
library.  It uses whatever the system provides.  Now gcc may provide
built-in replacements of some standard C library functions which it uses
when inlining -- for example it might know that it can replace a call to
the library function memcpy() with a simple direct assembly copy loop. 
But there always must be a library copy of the function backing these
builtins, they are only suppliments.

> I find it all quite confusing. My MinGW version of math.h specifically
> prototypes the "long double" version of a number of functions (ceill,
> floorl, sqrtl, modfl, ...), yet I can't find any mention of those functions
> in any of the gcc headers on Linux or Cygwin.

Thing these are three separate platforms, so don't expect them to behave
the same.  
glibc most definitely provides all those functions.  If you blindly grep
for them in header files you may not find them as glibc uses a twisty
maze of macros to implement headers.  Instead of blindly grepping around
in the dark though, use the manual.  There is a nice index that shows
precisely what the library supports:
.

On MinGW, most of those C99 math functions don't exist in MSVCRT.DLL so
there is the mingwex helper library that implements them.

> If I call sqrtl on linux I have to link to -lm, on Cygwin I don't.

This is just a bit of historical trivia.  Back before shared libraries
were common and everything was statically linked, you had to be mindful
of the size of the executable and it was an "optimization" to leave all
the math stuff in a separate library so that it wouldn't accidently get
pulled in unless you wanted it.  This separation continues to this day
on some POSIX platforms even though nobody uses static linking any more,
so there's no real point to it.  Cygwin just puts everything in one
library, cygwin1.dll, so there is no point in this superfluous "-lm"
business, but it provides a "libm" for Makefiles that hard-code -lm.

> On linux I can build perl with -Duselongdouble, on Cygwin I can't.

Because linux has a C99-conforming libc where Cygwin doesn't.

Brian

--
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 and -Duselongdouble

2007-07-26 Thread Tim Prince

[EMAIL PROTECTED] wrote:


- Original Message - From: "Brian Dessent" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 26, 2007 10:29 PM
Subject: Re: Cygwin Perl and -Duselongdouble



Oh ... it's probably just ignorance on my part.
If I can successfully run 'gcc script.c' (where 'script.c' contains a 
call to 'sqrtl') then I'm inclined to say that sqrtl is "available in 
the C compiler" (or something like that).
If your position is that availability as a built-in should suffice, you 
may have a long row to hoe.


I gather from your response (and Corinna's) that there are also a couple 
of things called 'newlib' and 'libc' that enter into the equation.
gcc itself supports only built-in functions.  There are plenty of posts 
in the archives concerning why cygwin doesn't use glibc rather than newlib.


I find it all quite confusing. My MinGW version of math.h specifically 
prototypes the "long double" version of a number of functions (ceill, 
floorl, sqrtl, modfl, ...), yet I can't find any mention of those 
functions in any of the gcc headers on Linux or Cygwin.
mingw relies on Microsoft library support, where again there is no 
separate long double.  You are free to add prototypes to your cygwin 
, but you must take the further step of actually supplying a 
function.  It should not be difficult to make one for cygwin which 
satisfies your purposes, whatever they are.  For example, you could 
build a function which uses the built-in, with its limitations.



/definitely Off Topic

If I call sqrtl on linux I have to link to -lm, on Cygwin I don't.


Most compilers on linux also have a built-in sqrtl.  If you set the 
right options in gcc, for example, you should be able to make a simple 
test which gets by with that.  You may have to check for bugs in 
mathinline.h.  Many distros do ugly things which can't be blamed on gcc 
or glibc maintainers.


--
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: Where, or how, is BASH set?

2007-07-26 Thread yitzle

$ cygpath.exe -w /bin
C:\cygwin\bin

$ cygpath.exe -w /usr/bin
C:\cygwin\bin

/usr/bin is a link to /bin

Can't find where BASH is exported...

--
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 and -Duselongdouble

2007-07-26 Thread Sisyphus


- Original Message - 
From: "Brian Dessent" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, July 26, 2007 10:29 PM
Subject: Re: Cygwin Perl and -Duselongdouble



Sisyphus wrote:

I haven't checked for 'modfl' and 'frexpl', but 'sqrtl' at least seems to 
be

available in the C compiler. Why does configure report that it's not


Why do you say this?


Oh ... it's probably just ignorance on my part.
If I can successfully run 'gcc script.c' (where 'script.c' contains a call 
to 'sqrtl') then I'm inclined to say that sqrtl is "available in the C 
compiler" (or something like that).


I gather from your response (and Corinna's) that there are also a couple of 
things called 'newlib' and 'libc' that enter into the equation. I don't know 
how they fit in. Feel free to enlighten me (but only if you're so inclined, 
as I realise that such an explanation is probably not on topic for this 
list).


I find it all quite confusing. My MinGW version of math.h specifically 
prototypes the "long double" version of a number of functions (ceill, 
floorl, sqrtl, modfl, ...), yet I can't find any mention of those functions 
in any of the gcc headers on Linux or Cygwin.


If I call sqrtl on linux I have to link to -lm, on Cygwin I don't.

On linux I can build perl with -Duselongdouble, on Cygwin I can't.

Anyway  I gather that -Duselongdouble is out of the question while 
newlib remains in its current state. (That's pretty much the confirmation I 
was seeking.)


Thanks guys.

Cheers,
Rob 



--
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 and -Duselongdouble

2007-07-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Corinna Vinschen on 7/26/2007 6:19 AM:
> Long double functions are not supported by newlib so far.  There are a
> couple of C99 functions not available in newlib.  Volunteers implementing
> these functions in a license compatible way (BSD, not GPL) in newlib
> are always welcome.

Also note that until frexpl is implemented, you can make printf in a CVS
snapshot of cygwin go into an infloop or coredump with certain long double
values.

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

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

iD8DBQFGqJKz84KuGfSFAYARAnc7AJ9e6GmUcok1z+q1QxExf4pTrT3t5QCeORd0
IxzNJ0A7EAmsoYEyLWJDRPk=
=nSMh
-END PGP SIGNATURE-

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



Re: Cygwin Perl and -Duselongdouble

2007-07-26 Thread Brian Dessent
Sisyphus wrote:

> I haven't checked for 'modfl' and 'frexpl', but 'sqrtl' at least seems to be
> available in the C compiler. Why does configure report that it's not

Why do you say this?  It's not available.  And it's not something the
compiler provides, it's something the libc provides, and in the case of
newlib, none of these three functions exist, so the results are
expected.  At the moment newlib only supports long double I/O, i.e.
printf and scanf.

Brian

--
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 and -Duselongdouble

2007-07-26 Thread Corinna Vinschen
On Jul 26 22:09, Sisyphus wrote:
> Hi,
> I'd like to have a perl on Cygwin built with -Duselongdouble, so I tried 
> building blead (5.9.5) from source with:
> 
> ./configure -de -Dusemorebits -Dprefix=~/Rob -Dusethreads -Uusemymalloc 
> -Doptimize=-O3 -Dusedevel
> 
> but that failed, culminating as follows:
> 
> 
> .
> .
> sqrtl() NOT found.
> 
> scalbnl() NOT found.
> 
> modfl() NOT found.
> 
> modfl() prototype NOT found.
> 
> *** You requested the use of long doubles but you do not seem to have
> *** the following mathematical functions needed for long double support:
> *** sqrtl modfl frexpl
> *** Please rerun Configure without -Duselongdouble and/or -Dusemorebits.
> *** Cannot continue, aborting.
> 

Long double functions are not supported by newlib so far.  There are a
couple of C99 functions not available in newlib.  Volunteers implementing
these functions in a license compatible way (BSD, not GPL) in newlib
are always welcome.


Corinna

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

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



Cygwin Perl and -Duselongdouble

2007-07-26 Thread Sisyphus

Hi,
I'd like to have a perl on Cygwin built with -Duselongdouble, so I tried 
building blead (5.9.5) from source with:


./configure -de -Dusemorebits -Dprefix=~/Rob -Dusethreads -Uusemymalloc -Doptimize=-O3 
-Dusedevel


but that failed, culminating as follows:


.
.
sqrtl() NOT found.

scalbnl() NOT found.

modfl() NOT found.

modfl() prototype NOT found.

*** You requested the use of long doubles but you do not seem to have
*** the following mathematical functions needed for long double support:
*** sqrtl modfl frexpl
*** Please rerun Configure without -Duselongdouble and/or -Dusemorebits.
*** Cannot continue, aborting.


I haven't checked for 'modfl' and 'frexpl', but 'sqrtl' at least seems to be 
available in the C compiler. Why does configure report that it's not 
available ? (I don't need a detailed account ... rather I'm just seeking 
confirmation that the error is valid and well founded :-)


By way of explanation, I find that perls built with -Duse64bitint but 
not -Duselongdouble don't DWIM very well. For example (with my current 
Cygwin build of perl 5.8.7 built with -Duse64bit int):


-
[EMAIL PROTECTED] ~/comp/perl-5.9.5
$ perl -e 'print "Crap" if 2 ** 55 + 6 == 2 ** 55 + 7'
Crap
[EMAIL PROTECTED] ~/comp/perl-5.9.5
-

As I understand it, that's typical of *all* perls built with -Duse64bitint 
but not -Duselongdouble, not just Cygwin. (Build with -Duselongdouble as 
well and it doesn't print "Crap" ... on linux, at least.)


Cheers,
Rob 



--
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: Procmail bug or me bug?

2007-07-26 Thread Jason Tishler
On Wed, Jul 25, 2007 at 05:42:52PM +0100, R.Renkema wrote:
> [snip]
> :0fhw
> *
> |spamtest.php
> 
> [snip]
> 
> Clue cookie? Any one?

Remove the "h" in the above recipe.  AFAICT, specifying "h" causes
procmail to only use the header and not the body.  The man page has the
following relevant albeit confusing information:

If you specify only a `h' or a `b' flag on a delivering recipe, and
the recipe matches, then, unless the `c' flag is present as well,
the body respectively the header of the mail will be silently lost.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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: Using 'complex.h' and GCC-3.4.4-3 in Cygwin

2007-07-26 Thread Greg Chicares
On 2007-07-26 10:16Z, Angelo Graziosi wrote:
> On Cygwin, gcc-3.4.4-3 (curr) fails to compile this simple test case
[...]
> $ gcc test_complex_h.c
> test_complex_h.c:3:21: complex.h: No such file or directory

I suppose newlib doesn't provide a full C99 implementation yet.
This message would seem to confirm that:
  http://www.cygwin.com/ml/cygwin/2006-07/msg00758.html

> test_complex_h.c: In function `main':
> test_complex_h.c:8: error: parse error before "complex"

If you change that line this way:

- printf("sizeof(%s) = %ld\n",   "complex float", sizeof(float complex));
+ printf("sizeof(%s) = %ld\n",   "complex float", sizeof(float _Complex));

then it compiles, and running it gives
  sizeof(complex float) = 8
so gcc has some support built in, though the C library doesn't
implement the macro defined in C99 7.3.1/2 . It seems to be
lacking the complex functions, too: I get
  undefined reference to `_cexpf'
if I try to use cexpf() by providing my own prototype.

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



Using 'complex.h' and GCC-3.4.4-3 in Cygwin

2007-07-26 Thread Angelo Graziosi

On Cygwin, gcc-3.4.4-3 (curr) fails to compile this simple test case
(extracted by a little elaborate test) :

==
#include 
#include 
#include 
#include 

int main()
{
   printf("sizeof(%s) = %ld\n",   "complex float", sizeof(float complex));

   return 0;
}


$ gcc test_complex_h.c
test_complex_h.c:3:21: complex.h: No such file or directory
     ???

test_complex_h.c: In function `main':
test_complex_h.c:8: error: parse error before "complex"
==

On GNU/Linux Kubunto 6.06 with gcc-4.0.3 it is build without problems.


Cheers,

   Angelo.

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



More: Where, or how, is BASH set?

2007-07-26 Thread fergus
In all other respects they are not obviously different 


Sorry, my error. When using the drive, SHELL and HOME are set in the 
Windows environment before starting bash; on the stick, this is not the 
case. Testing confirms this difference in preamble to be the reason for 
the difference in behaviour reported. Sorry to waste your time.

Fergus


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



Where, or how, is BASH set?

2007-07-26 Thread fergus

Sorry, a very individual query:
I have two portable Cygwins, one on a stick, one on a mobile drive. They 
are both up-to-date though only the one on the drive is a Full 
installation. In all other respects they are not obviously different 
(mounting -buf at the start, un-mounting at the end, etc) and each is 
started in a bash shell. They have identical /etc/group and /etc/passwd. 
After starting the one on the drive, a selection from the output of set 
gives

BASH=/usr/bin/bash
HOME=/home/user
SHELL=/bin/bash
while the one on the stick has
BASH=/bin/bash
HOME=/home/user
SHELL=/bin/bash
I do not understand how this difference (in the definition of BASH) 
arises though I can see it shouldn't matter. It's the only difference in 
the entire output from set on the two devices.
On the drive I can type rxvt  and immediately get into a rxvt 
shell with $HOME/.bashrc read. This is odd (I would have expected to 
have to type rxvt -e bash ) but convenient because of the reduced 
typing. On the stick I actually do have to type rxvt -e bash ; 
the reduced form rxvt  does not read $HOME/.bashrc and I end up 
in a rxvt terminal with

BASH=/usr/bin/sh
This, conversely, is expected (but, in comparison, inconvenient).
Regardless of expectedness/ unexpectedness/ convenience, I would really 
like to understand the reason for the difference in behaviours. But I 
really do not want to bother you with loads of individualised corollary 
information (and last time I did I somehow sent it en clair to people's 
mailboxes and got admonished by somebody or other in the good ol' 
imperial manner) ... it would be good if an expert could explain the 
strange difference in the initial setting of BASH; or tell me where or 
how BASH is set so that I could try to explore the difference myself; 
and offer some kind of expert conjecture on whether the difference in 
the setting of BASH could be relevant to the different consequences of 
typing rxvt   at the bash prompt on the two devices.

Thank you.
Fergus


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