Re: How To Export NFS?

2004-05-14 Thread bertrand marquis
Hello

  i think that's not the good way to run portmap nfsd and mountd directly
you should install them as windows services. there is a script with 
cygwin called nfs-server-config which will configure that for you: 
install the services and generate default config files, you will then be 
able to add what you want to /etc/exports and then restart the services 
with thoses commands:

to stop the services:
  cygrunsrv -E portmap
  cygrunsrv -E mountd
  cygrunsrv -E nfsd
to start the services:
  cygrunsrv -S portmap
  cygrunsrv -S mountd
  cygrunsrv -S nfsd
then i think it would have more chance to work

Jack Polimer a écrit:

Begin Disclaimer:  The following searches produced
nothing useful...
Searched http://cygwin.com/faq.html for "nfs"
Searched http://cygwin.com/ for "nfs"
Googled web and groups for "cygwin" "nfs"
End Disclaimer

I'm trying to export an NFS filesystem under cygwin to
a Linux machine on the same network, but I get"
# mount -t nfs 10.0.0.1:/etc /mnt
mount: RPC: Timed out
"
There are no firewalls on either box.

My /etc/exports contains:
$ cat /etc/exports
/etc 10.0.0.0/255.255.255.0(ro)
I ran the following on the cygwin machine:
$ /usr/sbin/portmap.exe &
$ /usr/sbin/rpc.mountd.exe &
$ /usr/sbin/rpc.nfsd.exe
I can't find any reference to make this work.  If
anyone can forward something helpful, I would greatly
appreciate it.  If this is a FAQ, please point me in
the right directions because I can't find it...
As always, please send negative comments to /dev/null
:) .  Thanks!
	
		
__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

--
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 & NFTS

2004-05-14 Thread Bertrand . POULAIN

"cp -p" doesn't work better ! But "mv" put the good rights (NTFS)on the file
...

How do you explain it ?


-Message d'origine-
De: Corinna Vinschen [mailto:[EMAIL PROTECTED]
Date: jeudi 13 mai 2004 11:55
À: [EMAIL PROTECTED]
Objet: Re: Cygwin & NFTS


On May 13 10:37, [EMAIL PROTECTED] wrote:
> I work with Cygwin 1.5.9-1 on W2K Server SP3 (NTFS file system) inside an
> Active Directoy domain.
>  
> I want to copy this file with Cygwin :
>  
> --+ 1 toto gtoto 65925 May 13 05:49 myfile.log
>  
> to another directory.
>  
> The W2K group DOMAIN ADMINISTRATOR have full access on this file (and
> directory). The user TOTO is in this group (W2K and CYGWIN).
>  
> The copied file is :
>  
> -- 1 toto gtoto 65925 May 13 09:57 myfile.log
>  
> and none access with W2K rights.
>  
> Where is the problem ?

cp(1) doesn't copy ACLs, just the standard POSIX permissions.  I'm not
quite sure if it does when using the -p option but it might be worth
a try.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[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/

--
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 & NFTS

2004-05-14 Thread Corinna Vinschen
On May 14 10:05, [EMAIL PROTECTED] wrote:
> 
> "cp -p" doesn't work better ! But "mv" put the good rights (NTFS)on the file
> ...
> 
> How do you explain it ?

Nothing has changed, except for the path.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: user-specific mounts

2004-05-14 Thread Baurjan Ismagulov
Hello, Igor!

On Thu, May 13, 2004 at 01:50:33PM -0400, Igor Pechtchanski wrote:
> Create a system-owned shell (via "at  /interactive bash -i")
> and use "mount" to set up user mounts for the user "system".  You may need
> to remove the system mounts altogether, and just create user mounts for
> every potential Cygwin user, although the user mounts *should* take
> precedence over the system ones.

So, you mean HKCU is honored and should be read before HKLM, and this
may be a bug? I'll try your workaround and share the results.


> BTW, your report would have benefited *a lot* from you following the
> Cygwin problem reporting guidelines at 
> and attaching your cygcheck output...

The first question was whether such kind of setup was supposed to work
at all. Considering this a usage in a weird way, rather than a user
problem, I left the details for the second iteration. Sorry if I
prevented you from providing premium support :) , will do my best to
avoid this in the future.

Such a question arose after I had not been able to find a statement in
the user manual regarding this issue; I'm pretty sure you will show it
to me :) , but all I could find was the following:

   The mapping is stored in the current user's Cygwin mount table in the
   Windows registry so that the information will be retrieved next time the
   user logs in. Because it is sometimes desirable to have system-wide as
   well as user-specific mounts, there is also a system-wide mount table that
   all Cygwin users inherit.

So I was not sure whether HKCU was supposed to override HKLM, or whether
the HKLM entries were mounted first, and directories in HKCU that were
still not mounted were mounted afterwards.

As to cygcheck: seems that I screwed the installation. Cygcheck aborts
saying "'id' program not found", although it is present under
/cygdrive/c/cygwin/bin. The output is attached, but I doubt it would
help. Should I send you the output of a specific command, or set the
root to c:\cygwin and re-run cygcheck?


With kind regards,
Baurjan.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri May 14 10:39:14 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   c:\tmp\lokal_admin\bin
C:\opt\med\usr\local\bin
C:\opt\med\usr\local\sbin
g:\cygwin\bin
g:\cygwin\usr\bin
g:\cygwin\sbin
g:\cygwin\usr\sbin
g:\WINDOWS\system32
g:\WINDOWS
g:\WINDOWS\System32\Wbem
g:\Program Files\Hummingbird\Connectivity\8.00\Accessories\
g:\Program Files\Hummingbird\Connectivity\8.00\NFSServer\

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

libiconv on WinXP Cygwin

2004-05-14 Thread Jamil Alkadir
I am in the process of compile GTK+ in my computer and as you know there are 
other libraries that have to be installed in advance.

I am now trying to compile libiconv-1.9.1 but I get an error that has thrown 
me off, that is because the OS I am installing is a WinXP(ensive) [NTFS] 
using CYGWIN. I know, I know, but I am only doing this because a client 
wants one of my applications to work on the bloody OS. I am really a Penguin 
kind of guy, really!



Any way, here is the problem.

Compiler

Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs

Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld 
--with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc 
--libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc 
--enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls 
--without-included-gettext --enable-interpreter --enable-sjlj-exceptions 
--disable-version-specific-runtime-libs --enable-shared 
--disable-win32-registry --enable-java-gc=boehm 
--disable-hash-synchronization --verbose --target=i686-pc-cygwin 
--host=i686-pc-cygwin --build=i686-pc-cygwin

Thread model: posix

gcc version 3.3.1 (cygming special)



Error
~
/usr/bin/install: cannot remove `/usr/lib/../bin/cygiconv-2.dll': Permission 
denied

make[1]: *** [install] Error 1

make: *** [install] Error 2



Can any one help??



Thanks folks!!

_
MSN Premium: Up to 11 personalized e-mail addresses and 2 months FREE*   
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines

--
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 & NFTS

2004-05-14 Thread Danilo Turina
I don't know if this information is related to your case, but notice 
that in Windows (I'm absolutely sure for W2K and WinXP) when you copy a 
file it takes the security attributes (the rights) of the folder where 
it has been copied, while when you move it it maintains its 
rights/security attributes doesn't change.

Try to copy that file with Windows Explorer in order to verify whether 
the same behaviour occurs.

Ciao,

	Danilo

[EMAIL PROTECTED] wrote:

I work with Cygwin 1.5.9-1 on W2K Server SP3 (NTFS file system) inside an
Active Directoy domain.
 
I want to copy this file with Cygwin :
 
--+ 1 toto gtoto 65925 May 13 05:49 myfile.log
 
to another directory.
 
The W2K group DOMAIN ADMINISTRATOR have full access on this file (and
directory). The user TOTO is in this group (W2K and CYGWIN).
 
The copied file is :
 
-- 1 toto gtoto 65925 May 13 09:57 myfile.log
 
and none access with W2K rights.
 
Where is the problem ?
 
HELP 



--
--
Danilo Turina
Alcatel Optics OND Network Management
Rieti (Italy) - Phone: +39 0746 600332
--
3 anni 1 mese 5 giorni 16 minuti 49 secondi

--
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: libiconv on WinXP Cygwin

2004-05-14 Thread Max Bowsher
Jamil Alkadir wrote:
> I am now trying to compile libiconv-1.9.1

Why not use the pre-existing libiconv-1.9.1 cygwin package, as installable from 
setup.exe?


> /usr/bin/install: cannot remove `/usr/lib/../bin/cygiconv-2.dll': Permission
> denied

/usr/bin/install uses the libiconv DLL, hence when install is running, the DLL is in 
use and cannot be overwritten.


Max.


--
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 & NFTS

2004-05-14 Thread Bertrand . POULAIN
The destination folder has FULL ACCESS for DOMAIN ADMIN on W2K. I use a user
who is in DOMAIN ADMIN group (Active Directory and Cygwin).

Whe I copy the file with Windows Explorer, the security attributes are OK. 
When I copy the file with Cygwin, they are no security attributes (they are
all unchecked).
When I move the file with Cygwin, the security attributes are OK. 

I don't understand why !


-Message d'origine-
De: Danilo Turina [mailto:[EMAIL PROTECTED]
Date: vendredi 14 mai 2004 11:26
À: [EMAIL PROTECTED]
Objet: Re: Cygwin & NFTS


I don't know if this information is related to your case, but notice 
that in Windows (I'm absolutely sure for W2K and WinXP) when you copy a 
file it takes the security attributes (the rights) of the folder where 
it has been copied, while when you move it it maintains its 
rights/security attributes doesn't change.

Try to copy that file with Windows Explorer in order to verify whether 
the same behaviour occurs.

Ciao,

Danilo

[EMAIL PROTECTED] wrote:

> I work with Cygwin 1.5.9-1 on W2K Server SP3 (NTFS file system) inside an
> Active Directoy domain.
>  
> I want to copy this file with Cygwin :
>  
> --+ 1 toto gtoto 65925 May 13 05:49 myfile.log
>  
> to another directory.
>  
> The W2K group DOMAIN ADMINISTRATOR have full access on this file (and
> directory). The user TOTO is in this group (W2K and CYGWIN).
>  
> The copied file is :
>  
> -- 1 toto gtoto 65925 May 13 09:57 myfile.log
>  
> and none access with W2K rights.
>  
> Where is the problem ?
>  
> HELP 
> 


-- 
--
Danilo Turina
Alcatel Optics OND Network Management
Rieti (Italy) - Phone: +39 0746 600332
--

3 anni 1 mese 5 giorni 16 minuti 49 secondi

--
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 & NFTS

2004-05-14 Thread Corinna Vinschen
On May 14 11:26, Danilo Turina wrote:
> I don't know if this information is related to your case, but notice 
> that in Windows (I'm absolutely sure for W2K and WinXP) when you copy a 
> file it takes the security attributes (the rights) of the folder where 
> it has been copied, while when you move it it maintains its 
> rights/security attributes doesn't change.

On Cygwin it depends on whether "ntsec" is set or not.  If ntsec is
switched off, the default Windows rules apply, while with ntsec on,
Cygwin sets the permissions in a POSIXy way.  However, copying a file
means to create a new file.  Copying over the permissions is then a
responsibility of the application (cp(1) in this very case).  If the
application doesn't have ACL support, then only the POSIX standard
permissions (user, group, other) are transferred.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



RE: Cygwin & NFTS

2004-05-14 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Danilo Turina
> Sent: 14 May 2004 10:26

> I don't know if this information is related to your case, but notice 
> that in Windows (I'm absolutely sure for W2K and WinXP) when 
> you copy a 
> file it takes the security attributes (the rights) of the 
> folder where 
> it has been copied, while when you move it it maintains its 
> rights/security attributes doesn't change.


  Modulo whether the file's permissions are configured to inherit from the
parent or not, surely?


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: installing under win98

2004-05-14 Thread Buchbinder, Barry (NIH/NIAID)
Works OK on my Win98SE box at home.

Since you supplied so little information, it is hard to guess what the
problem is, but have you actually selected any packages to install?  It
would make sense for the next button to be disabled if no packages have been
selected and nothing has been previously install via setup.

Looking in setup.log and setup.log.full might give enlightenment.

-Original Message-
From: Tyler Spivey
Sent: Thursday, May 13, 2004 3:26 PM
To: [EMAIL PROTECTED]
Subject: installing under win98

Hello. when I attempt to instal under win98, the next button is disabled on
the package selection screen.
what is going on with this, and is it fixable?

--
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: Gold stars for a cygwin contributor

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Christopher Faylor wrote:

> I was just reviewing the gold star page and noticed that it's been
> almost a year since I pubicly acknowledged a contribution that Pierre
> Humblet has made to cygwin.
>
> We can't have that.
>
> Pierre has made changes to every part of cygwin.  He's even made
> contributions to the signal code -- both the old and the new.  Few people
> would understand how amazing that is.
>
> We haven't had a release in a long time that didn't have some sort of
> insightful fix from him.
>
> This next release will have some path handling speedups courtesy of
> Pierre and Corinna.
>
> And, he even supports what he changes...
>
> If Corinna and I are both hit by a bus, you know that cygwin development
> will continue, thanks to Pierre.
>
> Anyway, I'd just like to acknowledge his contributions and ask that he
> get five gold stars for his consistenty high quality contributions over
> the last three years.
>
> cgf

Done.
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: How To Export NFS?

2004-05-14 Thread Igor Pechtchanski
On Thu, 13 May 2004, Jack Polimer wrote:

> Begin Disclaimer:  The following searches produced
> nothing useful...
>
> Searched http://cygwin.com/faq.html for "nfs"
> Searched http://cygwin.com/ for "nfs"
> Googled web and groups for "cygwin" "nfs"
>
> End Disclaimer

One more place to look: /usr/share/doc/Cygwin/nfs-server-2.2.47-2.README
Igor

> I'm trying to export an NFS filesystem under cygwin to
> a Linux machine on the same network, but I get"
> # mount -t nfs 10.0.0.1:/etc /mnt
> mount: RPC: Timed out
> "
>
> There are no firewalls on either box.
>
> My /etc/exports contains:
> $ cat /etc/exports
> /etc 10.0.0.0/255.255.255.0(ro)
>
> I ran the following on the cygwin machine:
> $ /usr/sbin/portmap.exe &
> $ /usr/sbin/rpc.mountd.exe &
> $ /usr/sbin/rpc.nfsd.exe
>
> I can't find any reference to make this work.  If
> anyone can forward something helpful, I would greatly
> appreciate it.  If this is a FAQ, please point me in
> the right directions because I can't find it...
>
> As always, please send negative comments to /dev/null
> :) .  Thanks!

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

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

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



Re: Cygwin & NFTS

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Corinna Vinschen wrote:

> On May 14 11:26, Danilo Turina wrote:
> > I don't know if this information is related to your case, but notice
> > that in Windows (I'm absolutely sure for W2K and WinXP) when you copy a
> > file it takes the security attributes (the rights) of the folder where
> > it has been copied, while when you move it it maintains its
> > rights/security attributes doesn't change.
>
> On Cygwin it depends on whether "ntsec" is set or not.  If ntsec is
> switched off, the default Windows rules apply, while with ntsec on,
> Cygwin sets the permissions in a POSIXy way.  However, copying a file
> means to create a new file.  Copying over the permissions is then a
> responsibility of the application (cp(1) in this very case).  If the
> application doesn't have ACL support, then only the POSIX standard
> permissions (user, group, other) are transferred.
>
> Corinna

FWIW, one can always do "getfacl oldfile | setfacl -f - newfile".  I think
this be ripe for the FAQ or the UG -- it crops up from time to time.
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: How To Export NFS?

2004-05-14 Thread Baurjan Ismagulov
Hello, Jack!

On Thu, 13 May 2004, Jack Polimer wrote:
> I'm trying to export an NFS filesystem under cygwin to
> a Linux machine on the same network, but I get"
> # mount -t nfs 10.0.0.1:/etc /mnt
> mount: RPC: Timed out

The client is not getting anything from the remote portmapper. Try
"rpcinfo -p 10.0.0.1" and "showmount -e 10.0.0.1". If this does not
help, investigate with tcpdump/ethereal on both ends.

With kind regards,
Baurjan.

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



Fwd:CYGWIN & CDRECORD

2004-05-14 Thread [EMAIL PROTECTED]
HI,

I'm really in trouble because I'm trying to use Cdrecord under Cygwin enviroment.

I have succefully installed Cdrecord but I'm unable to find the CDRW device.
How I can do to install the CD recorder in Cygwin?

Thank you for your patience
Best Regards

Gabriele



--
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: Fwd:CYGWIN & CDRECORD

2004-05-14 Thread Baurjan Ismagulov
Hello, Gabriele,

On Fri, May 14, 2004 at 04:37:18PM +0200, [EMAIL PROTECTED] wrote:
> I have succefully installed Cdrecord but I'm unable to find the CDRW device.
> How I can do to install the CD recorder in Cygwin?

What kind of messages do you receive? Have you got wnaspi32.dll?

With kind regards,
Baurjan.

--
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: Fwd:CYGWIN & CDRECORD

2004-05-14 Thread Baurjan Ismagulov
On Fri, May 14, 2004 at 04:55:09PM +0200, [EMAIL PROTECTED] wrote:
> Cdrecord 1.11a12 (i586-pc-cygwin) Copyright (C) 1995-2001 Jörg Schilling
> Using libscg version 'schily-0.5'
> cdrecord: No target found.

I've experienced such problems with some ASPI DLLs. Have you tried the
one from nero.com? It worked for me when I last tried it.

With kind regards,
Baurjan.

--
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: Trouble running awk & deployment of Cygwin

2004-05-14 Thread Robert Pollard
The fix on this particular machine was to use gawk instead of awk.

According to some of the suggestions I received, awk is a symlink to 
gawk anyway.  So, this should work fine.  I wonder why I was getting 
the error since nothing should have changed?

Also, contrary to what some believed I wasn't running awk from a DOS 
prompt.  I was running a bash shell script that was using the command.  
It worked on my machine but didn't work on another.

Thanks for all your help,

Robert

On May 10, 2004, at 11:41 AM, Robert Pollard wrote:

Hello everyone,

I ran into a problem with Cygwin whilst trying to run awk.  I get the 
error:
The NTVDM CPU has encountered an illegal instruction.
CS:080c IP:554c OP:63 69 66 69 65 Choose 'Close' to terminate the 
application

This happens when running it in any form including trying to get the 
version: awk --version

I don't know if this has any bearing on it but this particular version 
of Cygwin was downloaded on one machine and I copied the Cygwin folder 
on to the machine I am having this error on.
I intend on putting Cygwin on Windows machines using an install 
process and modifying registry entries as needed.

I need suggestions and gotchas on doing this.  It is for deployment  
for software we developed.  After having several different problems I 
finally imported another user's registry and it started working for 
the most part.

I would appreciate tips or a place where there is a guide of some type 
on deploying Cygwin in a non-interactive install process.  We want the 
install to occur without user intervention.

Thanks for all your help in advance,

Robert Pollard

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


Command line email clients

2004-05-14 Thread Robert Pollard
Hi,

I need to automate email notifications from a shell script.  I also 
need to be able to set up the email servers for sending mail through a 
shell script.  Which ever email client I use, I need to automate the 
process of setting up and sending mail.

I have looked at Pine and tried to find information on ssmtp but can't 
locate any information on it.  Pine seems a bit much for what I need.  
I would like to be able to just send email and not have the overhead of 
Pine.  Is there documentation on ssmtp that will show me how to setup a 
smtp server and send an email to it?

Thanks,

Robert Pollard

--
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: Command line email clients

2004-05-14 Thread Eduardo Chappa
*** Robert Pollard ([EMAIL PROTECTED]) wrote in the cygwin list today:

:) I need to automate email notifications from a shell script.  I also 
:) need to be able to set up the email servers for sending mail through a 
:) shell script. Which ever email client I use, I need to automate the 
:) process of setting up and sending mail.
:) 
:) I have looked at Pine and tried to find information on ssmtp but can't 
:) locate any information on it.  Pine seems a bit much for what I need.

Hello Robert,

  I think your best option is to use Mutt, unless you really, really want 
to use Pine. It is possible to use Pine, but only if you apply a patch to 
make it work that way, Pine (without patching) does not send e-mail non 
interactively. Pine does not require ssmtp, since Pine connects directly 
to an SMTP server if you define "smtp-server" in your .pinerc file.

  If you really want to use Pine, you will have to build your own version. 
and patch it with patches that you can find in my web page (address 
below). You will need the patch "Pine sends e-mail from the command line" 
and the patch for "Cygwin Version of Pine".

  I only have a patch for 4.58, although 4.60 is already out, the patch 
for 4.60 is coming soon (and it will be much nicer than the patch for 
4.58, very much like the patch for version 4.55).

  In case somebody is wondering, I am not planning to release Pine4.60 for 
Cygwin yet, and probably won't unless it's marked as the stable release of 
the pine4.6X series, which I doubt, because a couple of bugs have already 
been found. When Pine4.6X becomes stable I will release a new version of 
Pine.

Eduardo
http://www.math.washington.edu/~chappa/pine/

--
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: Trouble running awk & deployment of Cygwin

2004-05-14 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Robert Pollard
> Sent: 14 May 2004 17:04

> The fix on this particular machine was to use gawk instead of awk.
> 
> According to some of the suggestions I received, awk is a symlink to 
> gawk anyway.

  Which, as has been explained, was the underlying cause of the problem.

>  So, this should work fine.  I wonder why I was getting 
> the error since nothing should have changed?

  Apart from the fact that you are now executing an actual executable file,
rather than inadvertently executing an ascii text file.

> Also, contrary to what some believed I wasn't running awk from a DOS 
> prompt.  I was running a bash shell script that was using the 
> command.  

  I think you simply have to be wrong.  There is no question whatsoever that
what has happened is that a file full of ASCII has been invoked as if it
were a 16-bit DOS executable.  Only DOS would do that.  For a start, only
DOS would try to execute a file just because it has '.exe' at the end.

> It worked on my machine but didn't work on another.

  Have you tried comparing the cygcheck output from both of them to look for
differences?  Is it possible the other machine has a duplicate copy of the
executable rather than a symlink?  Let's see the output from "ls -la
/bin/*awk*" on both machines.  Let's see the content of your shell script.
This can't have been happening for just no reason.

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: Command line email clients

2004-05-14 Thread Buchbinder, Barry (NIH/NIAID)
I send email from a scripts using ssmtp, but one needs to construct the
entire message, headers and all.  Earlier I had tried mutt; I don't remember
why I switched, but it may have had something to do with sending MIME.

For your reference (and perhaps your amusement), I've attached the script
that I use to format the message to ssmtp.  It is not totally generic, so
you'll have to make changes and test.

-Original Message-
From: Robert Pollard [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 12:08 PM
To: [EMAIL PROTECTED]
Subject: Command line email clients

Hi,

I need to automate email notifications from a shell script.  I also 
need to be able to set up the email servers for sending mail through a 
shell script.  Which ever email client I use, I need to automate the 
process of setting up and sending mail.

I have looked at Pine and tried to find information on ssmtp but can't 
locate any information on it.  Pine seems a bit much for what I need.  
I would like to be able to just send email and not have the overhead of 
Pine.  Is there documentation on ssmtp that will show me how to setup a 
smtp server and send an email to it?

Thanks,

Robert Pollard



sendmail.sh
Description: Binary data
--
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: Command line email clients

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Robert Pollard wrote:

> Hi,
>
> I need to automate email notifications from a shell script.  I also
> need to be able to set up the email servers for sending mail through a
> shell script.  Which ever email client I use, I need to automate the
> process of setting up and sending mail.
>
> I have looked at Pine and tried to find information on ssmtp but can't
> locate any information on it.  Pine seems a bit much for what I need.
> I would like to be able to just send email and not have the overhead of
> Pine.  Is there documentation on ssmtp that will show me how to setup a
> smtp server and send an email to it?
>
> Thanks,
> Robert Pollard

Have you checked the first obvious place,
/usr/share/doc/Cygwin/ssmtp-2.60.4.README (and the second,
/usr/share/doc/ssmtp-2.60.4/README)?

There are SMTP modules for perl, and another mailer, "mutt", which may
have the scripting capability you need (as it has a "mail" emulation
mode).  Also, someone posted a "mail" script recently (within the past
week) that uses ssmtp and may do exactly what you want.
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: user-specific mounts

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Baurjan Ismagulov wrote:

> Hello, Igor!
>
> On Thu, May 13, 2004 at 01:50:33PM -0400, Igor Pechtchanski wrote:
> > Create a system-owned shell (via "at  /interactive bash -i")
> > and use "mount" to set up user mounts for the user "system".  You may need
> > to remove the system mounts altogether, and just create user mounts for
> > every potential Cygwin user, although the user mounts *should* take
> > precedence over the system ones.
>
> So, you mean HKCU is honored and should be read before HKLM, and this
> may be a bug? I'll try your workaround and share the results.

According to mount_info::from_registry() (in path.cc), the user mounts are
read before the system ones, and therefore appear earlier in the mount
table.  I'm pretty sure the mount table is accessed linearly, so the
earlier items take precedence, but it would be nice if someone confirmed
this.

> > BTW, your report would have benefited *a lot* from you following the
> > Cygwin problem reporting guidelines at 
> > and attaching your cygcheck output...
>
> The first question was whether such kind of setup was supposed to work
> at all. Considering this a usage in a weird way, rather than a user
> problem, I left the details for the second iteration.

Even though the usage is certainly unconventional, I don't see any reason
why this shouldn't work.  However, including the standard problem
reporting information would have shown us whether what your system thinks
its state is is the same as what you think it is.

> Sorry if I prevented you from providing premium support :) , will do my
> best to avoid this in the future.
>
> Such a question arose after I had not been able to find a statement in
> the user manual regarding this issue; I'm pretty sure you will show it
> to me :) , but all I could find was the following:
>
>The mapping is stored in the current user's Cygwin mount table in the
>Windows registry so that the information will be retrieved next time the
>user logs in. Because it is sometimes desirable to have system-wide as
>well as user-specific mounts, there is also a system-wide mount table that
>all Cygwin users inherit.
>
> So I was not sure whether HKCU was supposed to override HKLM, or whether
> the HKLM entries were mounted first, and directories in HKCU that were
> still not mounted were mounted afterwards.

I would probably read the above as "HKCU overrides HKLM", but I agree, it
could be clearer.  In the spirit of "WJM", I have to add that "there's
always the code"(tm). :-)

> As to cygcheck: seems that I screwed the installation. Cygcheck aborts
> saying "'id' program not found", although it is present under
> /cygdrive/c/cygwin/bin. The output is attached, but I doubt it would
> help.

Even the partial output you attached already shows an indication of a
problem -- you said that "id" exists under /cygdrive/*c*/cygwin/bin (why
not /bin, BTW?), whereas cygcheck has *g*:/cygwin/bin in the path.

> Should I send you the output of a specific command, or set the
> root to c:\cygwin and re-run cygcheck?
>
> With kind regards,
> Baurjan.

I would try starting from scratch with the mounts -- first get a working
system (for one user) with user mounts, then add *one* system mount and
see if the user mount overrides it.  If it does, add more system mounts.
It would help to save the output of "mount -m" at certain points along the
way, so that you can restore the mount state to that which you *know*
works.

As an aside, "it would be nice"(tm) to get an option for "mount" that
would show (and allow setting) the mounts of another user (as long as the
current user has appropriate privileges).  It would also be great if
cygcheck showed the mounts for the SYSTEM user as well as those for the
current user and the system ones.  I'm planning to work on this when I get
a chance, but wanted to get this into the archives for now.
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: user-specific mounts

2004-05-14 Thread Christopher Faylor
On Fri, May 14, 2004 at 02:10:40PM -0400, Igor Pechtchanski wrote:
>According to mount_info::from_registry() (in path.cc), the user mounts
>are read before the system ones, and therefore appear earlier in the
>mount table.  I'm pretty sure the mount table is accessed linearly, so
>the earlier items take precedence, but it would be nice if someone
>confirmed this.

Why not just "try it"?  Create two mounts, one user and one system.  See
which takes precedence.

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/



xemacs shell problem

2004-05-14 Thread Levent Yilmaz
Hi!

After posting this message to emacs.xemacs.windows and following the 
advices I have been told, I found out that this happens only with Xemacs 
Cygwin build. Thus, I hope it would be a relevant discussion for this 
group.

*the problem setting*
The shell-mode(using bash) at Xemacs(21.4.15) called from Bash 
(2.05b.0(1)-release) running Cygwin(1.42) on WindowsXP-SP1

*the ISSUE*
Error messages from certain Windows console programs (such as the 
Fortran compilers LaheyF95 and Compaq Visual Fortran 6.6) (hereafter I 
will refer these as Compiler) are not displayed at the shell-buffer. 
Instead the errors are flushed to a DOS console that dissappears 
immidiately after the compilation is finished and the regular messages 
(logo and stuff) are displayed at the shell-buffer as usual.

*complications*
- When the Compiler is invoked directly from Bash, everything works 
fine, all messages are there and in fact, output redirection works as 
expected. The error mesages can be redirected with the usual 2>myfile.
- This issue does not occur with all console applications (for instance 
I tried with MSVC++6/7 and they are working fine).  Among the ones I 
tested, only these fortran Compilers has this behaviour. This is also 
why I fail to find a reproducible example for submitting as a test case 
here (though, you may download a trial version from 
http://www.lahey.com/ and test with a erroneous Fortan code, if you 
really agree that this is a significant issue and worth the trouble).
Here is a sample failing FORTRAN code
!==
program fail
end program nail
!==
- As I mentioned before this problem happens only with Xemacs Cygwin 
build. Native-Windows build is working fine.

My question is, it seems that the output from the Compiler is flushed to 
that blinking console, what may be the cause of this? Are there other 
outputs other than STDERR and STDOUT, that Cygwin is handling properly, 
but the shell-mode in Xemacs is failing?

Thank you so very much!!
- Levent






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


Re: user-specific mounts

2004-05-14 Thread Baurjan Ismagulov
Hello, Christopher!

On Fri, May 14, 2004 at 02:23:26PM -0400, Christopher Faylor wrote:
> Why not just "try it"?  Create two mounts, one user and one system.  See
> which takes precedence.

The result is at the beginning of the thread:
http://marc.theaimsgroup.com/?l=cygwin&m=108445099608131&w=2 .

To be exact, I've got the following entries in the registry:

[HKLM\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/]
"native"="C:\\opt\\med"
"flags"=dword:000a
...

[HKCU\Software\Cygnus Solutions\Cygwin\mounts v2\/]
"native"="G:\\cygwin"
"flags"=dword:000a
...

If I start rxvt as this user, I see c:\opt\med as root.

Any ideas?

With kind regards,
Baurjan.

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



NFS server issue with directory permissions (fwd)

2004-05-14 Thread Pavel Tsekov
Hello,

I had to refresh my memory from the list archives - from what I
see the problem was never addressed. I'm forwarding your message
to the cygwin mailing list where it belongs to. Perhaps someone
might have a solution for this problem.

-- Forwarded message --
Date: Tue, 11 May 2004 12:13:14 +0200 (MEST)
From: Slavo <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: NFS server issue with directory permissions

Hello,
I read your mail sent to cygwin news at Sat, 15 Feb 2003 20:02:23 with
subject: NFS server issue with directory permissions

I do have the same problem with my cygwin-nfsd. Could you solve the problem
you had ? (Stale NFS file handle, Can not stat: .../lib)

Thanx,

Best regards,
Slavo


-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl

--
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: user-specific mounts

2004-05-14 Thread Baurjan Ismagulov
Hello, Igor!

On Fri, May 14, 2004 at 02:10:40PM -0400, Igor Pechtchanski wrote:
> However, including the standard problem
> reporting information would have shown us whether what your system thinks
> its state is is the same as what you think it is.

:)


> I would probably read the above as "HKCU overrides HKLM", but I agree, it
> could be clearer.  In the spirit of "WJM", I have to add that "there's
> always the code"(tm). :-)

Eh, there were times when I could spend a couple of days fixing some
annoying behaviour or just reading the source. In this specific case, I
asked to see whether anyone could quickly suggest me anything, otherwise
I would postpone this issue for a couple of months :/ .


> Even the partial output you attached already shows an indication of a
> problem -- you said that "id" exists under /cygdrive/*c*/cygwin/bin (why
> not /bin, BTW?), whereas cygcheck has *g*:/cygwin/bin in the path.

Well, I have changed the setup a couple of times since yesterday, and
wrote the mail with the yesterday's state in mind. For some reason,
cygcheck reflected the current state :) , sorry for this. So, today my
system mounts are under c:\opt\med, and user mounts -- under g:\cygwin.
And yes, id exists in /cygdrive/g/cygwin/bin. It is there because I want
to have the main installation there, and run services from some other
directory, that I can frequently create, test, and delete.


> I would try starting from scratch with the mounts -- first get a working
> system (for one user) with user mounts, then add *one* system mount and
> see if the user mount overrides it.  If it does, add more system mounts.
> It would help to save the output of "mount -m" at certain points along the
> way, so that you can restore the mount state to that which you *know*
> works.

Ok, I'll try this, too.


With kind regards,
Baurjan.

--
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 issue with directory permissions (fwd)

2004-05-14 Thread Baurjan Ismagulov
Hello, Slavo,

On Fri, May 14, 2004 at 08:08:07PM +0200, Pavel Tsekov wrote:
> I read your mail sent to cygwin news at Sat, 15 Feb 2003 20:02:23 with
> subject: NFS server issue with directory permissions
> 
> I do have the same problem with my cygwin-nfsd. Could you solve the problem
> you had ? (Stale NFS file handle, Can not stat: .../lib)

I've seen related problems, but never had the time to look deeper.
Running nfsd under strace showed that, IIRC, after some moment stat was
not able to find cygwin root and tried to stat the directories relative
to Windows drive root. Perhaps someone could help if you send the strace
output of nfsd.

With kind regards,
Baurjan.

--
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: user-specific mounts

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Christopher Faylor wrote:

> On Fri, May 14, 2004 at 02:10:40PM -0400, Igor Pechtchanski wrote:
> >According to mount_info::from_registry() (in path.cc), the user mounts
> >are read before the system ones, and therefore appear earlier in the
> >mount table.  I'm pretty sure the mount table is accessed linearly, so
> >the earlier items take precedence, but it would be nice if someone
> >confirmed this.
>
> Why not just "try it"?  Create two mounts, one user and one system.  See
> which takes precedence.

I did try it.  I should have amended the above with "on my system, mounts
work as expected, with user mounts shadowing the system ones".  In fact,
mount actually gives a warning that "system mount point of '/...' will
always be masked by user mount."  But there's got to be some explanation
for the behavior the OP is seeing...
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: xemacs shell problem

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Levent Yilmaz wrote:

> Hi!
>
> After posting this message to emacs.xemacs.windows and following the
> advices I have been told, I found out that this happens only with Xemacs
> Cygwin build. Thus, I hope it would be a relevant discussion for this
> group.
>
> *the problem setting*
> The shell-mode(using bash) at Xemacs(21.4.15) called from Bash
> (2.05b.0(1)-release) running Cygwin(1.42) on WindowsXP-SP1
>
> *the ISSUE*
> Error messages from certain Windows console programs (such as the
> Fortran compilers LaheyF95 and Compaq Visual Fortran 6.6) (hereafter I
> will refer these as Compiler) are not displayed at the shell-buffer.
> Instead the errors are flushed to a DOS console that dissappears
> immidiately after the compilation is finished and the regular messages
> (logo and stuff) are displayed at the shell-buffer as usual.
>
> *complications*
> - When the Compiler is invoked directly from Bash, everything works
> fine, all messages are there and in fact, output redirection works as
> expected. The error mesages can be redirected with the usual 2>myfile.
> - This issue does not occur with all console applications (for instance
> I tried with MSVC++6/7 and they are working fine).  Among the ones I
> tested, only these fortran Compilers has this behaviour. This is also
> why I fail to find a reproducible example for submitting as a test case
> here (though, you may download a trial version from
> http://www.lahey.com/ and test with a erroneous Fortan code, if you
> really agree that this is a significant issue and worth the trouble).
> Here is a sample failing FORTRAN code
> !==
> program fail
> end program nail
> !==
> - As I mentioned before this problem happens only with Xemacs Cygwin
> build. Native-Windows build is working fine.
>
> My question is, it seems that the output from the Compiler is flushed to
> that blinking console, what may be the cause of this? Are there other
> outputs other than STDERR and STDOUT, that Cygwin is handling properly,
> but the shell-mode in Xemacs is failing?
>
> Thank you so very much!!
> - Levent

Cygwin uses special pipes, called "pty"s, for applications that aren't
running in a console.  I'm guessing that XEmacs uses these ptys for its
shell buffer.  Some applications detect that they are not invoked from a
console, and allocate one.  If the applications don't attempt to be
smarter, Cygwin has no problems redirecting their output.  The reason the
problem doesn't show up in a "bash window" is that bash is already runs in
a console.

If you have the same problem running from within a terminal, like rxvt or
xterm, I'd suspect that the problem application does exactly that --
allocates a console when run from a pty, which is what causes the flashing
console with error messages.

There have also been some fixes related to pty-handling and Windows
console applications, but I don't recall whether they've made it to the
current release (1.5.9), so search the mailing list archives or just try
the latest snapshot to see if it helps.
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: Command line email clients

2004-05-14 Thread Robert R Schneck
Eduardo Chappa <[EMAIL PROTECTED]> wrote:
>   I think your best option is to use Mutt, unless you really, really want 
> to use Pine. It is possible to use Pine, but only if you apply a patch to 
> make it work that way, Pine (without patching) does not send e-mail non 
> interactively. Pine does not require ssmtp, since Pine connects directly 
> to an SMTP server if you define "smtp-server" in your .pinerc file.

You can also set "sendmail-path" in your .pinerc file to use "ssmtp -t".
That's not particularly useful, but if you write a little script to 
queue outgoing mail and set "sendmail-path=/path/to/queuemail", and 
then have a separate script run regularly to try to send the queued 
mail using ssmtp -t, you have a nice way to use Pine offline.

Robert


--
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 shell problem

2004-05-14 Thread Levent Yilmaz
Thank you!

Igor Pechtchanski wrote:
Cygwin uses special pipes, called "pty"s, for applications that aren't
running in a console.  I'm guessing that XEmacs uses these ptys for its
shell buffer.  Some applications detect that they are not invoked from a
console, and allocate one.  If the applications don't attempt to be
smarter, Cygwin has no problems redirecting their output.  The reason the
problem doesn't show up in a "bash window" is that bash already runs in
a console.
If you have the same problem running from within a terminal, like rxvt or
xterm, I'd suspect that the problem application does exactly that --
allocates a console when run from a pty, which is what causes the flashing
console with error messages.
Well actuall Xemacs' shell is the only place I have this problem. Both 
rxvt and xterm are working fine (maybe they are not using pty's?). 
Updating didn't change anything unfortunately.

However, I believe the issue is exactly related to what you say: 
Application trying to be smart! I will do as you say and research the 
archives, though I have very little understanding of the matter.

I wonder if anybody else experienced such a thing?

thank you again!
-Levent.

There have also been some fixes related to pty-handling and Windows
console applications, but I don't recall whether they've made it to the
current release (1.5.9), so search the mailing list archives or just try
the latest snapshot to see if it helps.
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/


Calling g77 FORTRAN code from MSVC 7?

2004-05-14 Thread Richard Heintze
I've searched the web, I've looked at the FAQ. I spent
all day yesterday trying to figure this out myself and
I am close.
I just downloaded the complete cygwin about a month
ago so everything should be pretty recent.

I can call my g77 code (sum.f) from g++ by creating a
dll and calling the dll from g++ code. Hurray! Now I
want to do the same thing from MSVC7.

>From the cygwin/bash command prompt I do:
g77 -c  -mrtd -O2  -o sum.o sum.f
dllwrap -s --export-all --output-def sum.def --def
sum2.def --output-lib sum.lib  --driver-name g77 -o
sum.dll sum.o 

Both sum.def and sum2.def contain the same contents:
; dlltool --base-file
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc001596.base
--output-exp sum.exp --dllname sum.dll --output-def
sum.def [EMAIL PROTECTED] --def
sum2.def --output-lib sum.lib
EXPORTS
avg_ @ 1
summer_ @ 2

>From the dos (cmd.exe) command prompt, I use the
following commands:


cl main.cpp   /c /MLd /W3 /Gm /GX /ZI /Od /D WIN32 /D
_DEBUG /D _CONSOLE /D _MBCS /FD /GZ /GR /D NOPROMPT
cl main.obj sum.lib /link /out:sum.exe 
/subsystem:console /incremental:yes 

No errors until I run it and get an access violation
when I can my fortran functions.

So then I enhanced main.cpp with the following code:

  HMODULE hLib=LoadLibraryA("c:\\Documents and
Settings\\Administrator\\Desktop\\Examples\\sum\\sum.dll");
  if(hLib){
cout << "load libary worked!" << endl;
  } else {
cout << "load library failed!"<< endl;
  }

This dies without an error message. This code works
when I call a C DLL generated with MSVC7, however.

Here is how I declare my functions: 
extern "C"  float summer_(float*, int*);
extern "C"  float avg_(float*, int*);

I tried experiment with __stdcall with no luck.

This should work, right? The whole point of inventing
libtool and dllwrap is to create DLLs instead of unix
style shared object files, correct?

I found an example at the MinGW that demonstrated
calling g77 code from Excel, but this example does not
work with Excel 2002. This tells me that what someone
has done what I am trying to to.

  Thanks,
  Siegfried




__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

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



cp breaking weirdly when trying to copy an executable without specifying the .exe extension

2004-05-14 Thread Max Bowsher
$ touch foo.exe
$ cp foo bar
cp: `foo' and `bar' are the same file

The above error message is rather confusing.

Is Cygwin's cp supposed to transparently permit the omission of the .exe extension, or 
am I misremembering?


Max.


--
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: Command line email clients

2004-05-14 Thread jerzy szczudłowski
  Robert Pollard wrote:
> I need to automate email notifications from a shell script.  I also 
> need to be able to set up the email servers for sending mail through a 

Then all you need is ssmtp (assuming you have somwhere real mail hub).
Look into /etc/ssmtp/ssmtp.conf - it has three options to set.

And probably you want something to construct headers, like this
mailx-simulating puppy ;)
http://article.gmane.org/gmane.os.cygwin/48461



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



Progblems

2004-05-14 Thread Jamil
k;akjdf

Adadf
Asdfa
D
Fdsd
A
sdfased

--
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: Calling g77 FORTRAN code from MSVC 7?

2004-05-14 Thread Larry Hall
At 05:04 PM 5/14/2004, you wrote:
>I've searched the web, I've looked at the FAQ. I spent
>all day yesterday trying to figure this out myself and
>I am close.
>I just downloaded the complete cygwin about a month
>ago so everything should be pretty recent.
>
>I can call my g77 code (sum.f) from g++ by creating a
>dll and calling the dll from g++ code. Hurray! Now I
>want to do the same thing from MSVC7.
>
>>From the cygwin/bash command prompt I do:
>g77 -c  -mrtd -O2  -o sum.o sum.f
>dllwrap -s --export-all --output-def sum.def --def
>sum2.def --output-lib sum.lib  --driver-name g77 -o
>sum.dll sum.o 
>
>Both sum.def and sum2.def contain the same contents:
>; dlltool --base-file
>/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc001596.base
>--output-exp sum.exp --dllname sum.dll --output-def
>sum.def [EMAIL PROTECTED] --def
>sum2.def --output-lib sum.lib
>EXPORTS
>avg_ @ 1
>summer_ @ 2
>
>>From the dos (cmd.exe) command prompt, I use the
>following commands:
>
>
>cl main.cpp   /c /MLd /W3 /Gm /GX /ZI /Od /D WIN32 /D
>_DEBUG /D _CONSOLE /D _MBCS /FD /GZ /GR /D NOPROMPT
>cl main.obj sum.lib /link /out:sum.exe 
>/subsystem:console /incremental:yes 
>
>No errors until I run it and get an access violation
>when I can my fortran functions.
>
>So then I enhanced main.cpp with the following code:
>
>  HMODULE hLib=LoadLibraryA("c:\\Documents and
>Settings\\Administrator\\Desktop\\Examples\\sum\\sum.dll");
>  if(hLib){
>cout << "load libary worked!" << endl;
>  } else {
>cout << "load library failed!"<< endl;
>  }


Yeah, that won't work for Cygwin DLLs because cygwin1.dll cannot be 
explicitly/dynamically loaded by a non-cygwin program.


>This dies without an error message. This code works
>when I call a C DLL generated with MSVC7, however.
>
>Here is how I declare my functions: 
>extern "C"  float summer_(float*, int*);
>extern "C"  float avg_(float*, int*);
>
>I tried experiment with __stdcall with no luck.
>
>This should work, right? The whole point of inventing
>libtool and dllwrap is to create DLLs instead of unix
>style shared object files, correct?
>
>I found an example at the MinGW that demonstrated
>calling g77 code from Excel, but this example does not
>work with Excel 2002. This tells me that what someone
>has done what I am trying to to.


You may simply be getting tripped up by mismatches between
the Cygwin (C runtime) DLL and the MS one.  Assuming you 
don't need access to the POSIX functionality of Cygwin, you're
better off working with the MinGW versions.  But using MinGW
would put it off-topic for this list so I'd recommend following
up at their site instead if you still have problems.  If you 
need Cygwin's POSIX layer then you need to link against the
library you made (i.e. don't use LoadLibrary) and make sure 
that you're not mixing and matching your C runtime heap calls.
That's deadly.


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


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



Re: cygwin Digest 13 May 2004 06:31:19 -0000 Issue 3579

2004-05-14 Thread Allen H. Nugent
No disrespect intended, please, but this looks like an installation issue,
to me.
During my recent cygwin upgrade, Setup removed all traces of Xwin from my
system -- without prompting me. I now see that the Xwin files are all
identified as "Removed package" on the cygwin website. Where does that
leave me?
Perhaps this really is a question for the xfree list, but it is odd that I
can't find a mention of this business in their archives!
>From: Christopher Faylor
>
>cygwin-xfree cygwin com is the place to discuss Xwindows.  I'm
>redirecting this thread there.
>
>cgf
Allen H. Nugent
Graduate School of Biomedical Engineering
University of New South Wales
Sydney NSW 2052 Australia
Tel: +61 2 9385 3916 Fax: +61 2 9663 2108 

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

2004-05-14 Thread Christopher Faylor
On Fri, May 14, 2004 at 05:56:13PM -0700, Jamil wrote:
>   k;akjdf
>
>Adadf
>Asdfa
>D
>Fdsd
>A
>sdfased

Bye, bye.

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/