zp_octave_finish.dash fails when updating

2024-01-29 Thread Uwe F. Mayer via Cygwin
The script /etc/postinstall/zp_octave_finish.dash from octave-8.4.0-1.tar.bz2 
fails during Cygwin update because that script expects the directory 
/usr/share/octave/packages to exist. Creating that directory fixes this error.

CYGWIN_NT-10.0-19045 Windows-10-Laptop 3.5.0-0.617.g030a762535c1.x86_64 
2024-01-29 13:16 UTC x86_64 Cygwin

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


Re: Cygwin fails to create sockets correctly

2023-12-06 Thread Uwe F. Mayer via Cygwin
I found that if I start X or an ssh agent, and then manually set the
system attribute on the socket file with something like

(cd /tmp/.X11-unix/ && attrib +s X0)

or

(cd /tmp/ssh-gjJq8mINCmz0 && attrib +s agent.3145)

then things work fine as far as X windows and ssh-agent are
concerned. That means the issue at hand is that the system attribute is
not set, the sockets themselves work fine once the file can be
identified as a named socket.

Starting X or ssh-agent as an administrator does not help.

Anybody have any hints on what update / security setting changes could
have triggered the system attribute not to be set, and more
importantly, how to get this corrected?

--Uwe


On Wednesday, November 22, 2023 at 11:20:59 AM PST, Uwe F. Mayer 
 wrote: 

> Cygwin fails to create sockets correctly on some
> computers. Specifically, this fails on my machines with Windows 10
> Enterprise, but works fine on a system with Windows 10 Pro. This was
> first observed on or about Nov 19, 2023. On one of the Windows 10
> Enterprise machines X has been running for several days and has a
> functioning socket created on Nov 15, but new sockets cannot be
> successfully created.
> 
> Steps to reproduce:
> 1) Run any program that will produce a named socket.
> 2) Do an ls -l on the socket, it will come up as an ordinary file with
> permissions -rw-rw-rw- instead of srw-rw-rw- (note the missing "s").
> 
> All my Windows 10 Enterprise machines are centrally managed by my employer.
> 
> The following Microsoft packages seem to have been installed / updated 
> recently:
> 
> Microsoft Edge                           Microsoft.Edge                       
>     119.0.2151.72
> Microsoft Edge Update                    Microsoft Edge Update                
>     1.3.181.5
> Microsoft Edge WebView2 Runtime          Microsoft.EdgeWebView2Runtime        
>     119.0.2151.72
> App Installer                            
> Microsoft.DesktopAppInstaller_8wekyb3d8??? 1.21.3133.0
> Microsoft Edge                           
> Microsoft.MicrosoftEdge.Stable_8wekyb3d??? 119.0.2151.72
> Feedback Hub                             
> Microsoft.WindowsFeedbackHub_8wekyb3d8b??? 1.2309.12711.0
> Phone Link                               Microsoft.YourPhone_8wekyb3d8bbwe    
>     1.23092.158.0
> Microsoft 365 Apps for enterprise - en-??? Microsoft.Office                   
>       16.0.16924.20150
> Mail and Calendar                        
> microsoft.windowscommunicationsapps_8we??? 16005.14326.2174???
> Microsoft Update Health Tools            
> {1FC1A6C2-576E-489A-9B4A-92D21F542136}   3.74.0.0
> 
> I specifically noticed the socket issue for ssh-add and for X11. The
> issue can also be shown with nc. Below are logs.
> 
> Affected system:
> 
> Edition         Windows 10 Enterprise
> Version         22H2
> Installed on    5/12/2022
> OS build        19045.3693
> Experience      Windows Feature Experience Pack 1000.19053.1000.0
> 
> LAPTOP:~$ uname -a
> CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin
> 
> LAPTOP:~$ nc -lkU aSocket.sock &
> [1] 1451
> LAPTOP:~$ ls -l aSocket.sock
> -rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:37 aSocket.sock
> 
> 
> LAPTOP:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsa
> Agent pid 1365
> Error connecting to agent: Bad file descriptor
> LAPTOP:~$ ls -l /tmp/ssh-FRwzveik5MWt/
> total 1
> -rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:09 agent.1364
> 
> LAPTOP:~$ xinit
> 
> Welcome to the XWin X Server
> Vendor: The Cygwin/X Project
> Release: 1.21.1.8
> OS: CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64
> OS: Windows 10  [Windows NT 10.0 build 19045] x64
> Package: version 21.1.8-1 built 2023-06-19
> 
> XWin was started with the following command line:
> 
> X :0
> 
> (II) xorg.conf is not supported
> (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
> winUpdateDpi - primary monitor native DPI x 96 y 96
> LoadPreferences: /home/uwe/.XWinrc not found
> LoadPreferences: Loading /etc/X11/system.XWinrc
> LoadPreferences: Done parsing the configuration file...
> winDetectSupportedEngines - RemoteSession: no
> winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
> winDetectSupportedEngines - Returning, supported engines 0005
> winSetEngine - Using Shadow DirectDraw NonLocking
> winScreenInit - Using Windows display depth of 32 bits per pixel
> winWindowProc - WM_SIZE - new client area w: 1904 h: 1011
> winFinishScreenInitFB - Masks: 00ff ff00 00ff
> MIT-SHM extension disabled due to lack of kernel support
> XFree86-Bigfont extension local-client optimization disabled due to lack of 
> shared memory s

Cygwin fails to create sockets correctly

2023-11-22 Thread Uwe F. Mayer via Cygwin
Cygwin fails to create sockets correctly on some computers. Specifically, this 
fails on my machines with Windows 10 Enterprise, but works fine on a system 
with Windows 10 Pro. This was first observed on or about Nov 19, 2023. On one 
of the Windows 10 Enterprise machines X has been running for several days and 
has a functioning socket created on Nov 15, but new sockets cannot be 
successfully created.
Steps to reproduce:1) Run any program that will produce a named socket.2) Do an 
ls -l on the socket, it will come up as an ordinary file with permissions 
-rw-rw-rw- instead of srw-rw-rw- (note the missing "s").
All my Windows 10 Enterprise machines are centrally managed by my employer.
The following Microsoft packages seem to have been installed / updated recently:
Microsoft Edge                           Microsoft.Edge                         
  119.0.2151.72Microsoft Edge Update                    Microsoft Edge Update   
                 1.3.181.5Microsoft Edge WebView2 Runtime          
Microsoft.EdgeWebView2Runtime            119.0.2151.72App Installer             
               Microsoft.DesktopAppInstaller_8wekyb3d8??? 1.21.3133.0Microsoft 
Edge                           Microsoft.MicrosoftEdge.Stable_8wekyb3d??? 
119.0.2151.72Feedback Hub                             
Microsoft.WindowsFeedbackHub_8wekyb3d8b??? 1.2309.12711.0Phone Link             
                  Microsoft.YourPhone_8wekyb3d8bbwe        
1.23092.158.0Microsoft 365 Apps for enterprise - en-??? Microsoft.Office        
                 16.0.16924.20150Mail and Calendar                        
microsoft.windowscommunicationsapps_8we??? 16005.14326.2174???Microsoft Update 
Health Tools            {1FC1A6C2-576E-489A-9B4A-92D21F542136}   3.74.0.0
I specifically noticed the socket issue for ssh-add and for X11. The issue can 
also be shown with nc. Below are logs.
Affected system:Edition         Windows 10 EnterpriseVersion    
     22H2Installed on    5/12/2022OS build        19045.3693Experience      
Windows Feature Experience Pack 1000.19053.1000.0
LAPTOP:~$ uname -aCYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 
UTC x86_64 Cygwin
LAPTOP:~$ nc -lkU aSocket.sock &[1] 1451LAPTOP:~$ ls -l aSocket.sock-rw-rw-rw-+ 
1 uwe Users 54 Nov 22 10:37 aSocket.sock

LAPTOP:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsaAgent pid 1365Error 
connecting to agent: Bad file descriptorLAPTOP:~$ ls -l 
/tmp/ssh-FRwzveik5MWt/total 1-rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:09 agent.1364
LAPTOP:~$ xinit
Welcome to the XWin X ServerVendor: The Cygwin/X ProjectRelease: 1.21.1.8OS: 
CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64OS: 
Windows 10  [Windows NT 10.0 build 19045] x64Package: version 21.1.8-1 built 
2023-06-19
XWin was started with the following command line:
X :0
(II) xorg.conf is not supported(II) See 
http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more informationwinUpdateDpi 
- primary monitor native DPI x 96 y 96LoadPreferences: /home/uwe/.XWinrc not 
foundLoadPreferences: Loading /etc/X11/system.XWinrcLoadPreferences: Done 
parsing the configuration file...winDetectSupportedEngines - RemoteSession: 
nowinDetectSupportedEngines - DirectDraw4 installed, allowing 
ShadowDDNLwinDetectSupportedEngines - Returning, supported engines 
0005winSetEngine - Using Shadow DirectDraw NonLockingwinScreenInit - Using 
Windows display depth of 32 bits per pixelwinWindowProc - WM_SIZE - new client 
area w: 1904 h: 1011winFinishScreenInitFB - Masks: 00ff ff00 
00ffMIT-SHM extension disabled due to lack of kernel supportXFree86-Bigfont 
extension local-client optimization disabled due to lack of shared memory 
support in the kernel(EE) AIGLX: No native OpenGL in modes with a root 
window(II) IGLX: Loaded and initialized swrast(II) GLX: Initialized DRISWRAST 
GL provider for screen 0winPointerWarpCursor - Discarding first warp: 952 
505(--) 16 mouse buttons found(--) Setting autorepeat to delay=500, rate=31(--) 
Windows keyboard layout: "0409" (0409) "US", type 4(--) Found matching 
XKB configuration "English (USA)"(--) Model = "pc105" Layout = "us" Variant = 
"none" Options = "none"Rules = "base" Model = "pc105" Layout = "us" Variant = 
"none" Options = "none"
waiting for X server to begin accepting connections ...[etc]..
[closing down X externally]
winDeinitMultiWindowWM - Noting shutdown in progress(II) Server terminated 
successfully (0). Closing log file.xinit: giving upxinit: unable to connect to 
X server: Connection refusedxinit: server error
# in a separate terminal while X was runningLAPTOP:~$ v /tmp/.X11-unix/total 
1-rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:12 X0

Unaffected system-Edition         Windows 10 ProVersion         
22H2Installed on    11/2/2020OS build        19045.3693Experience      Windows 
Feature Experience Pack 1000.19053.1000.0
BLACK:~$ uname -aCYGWIN_NT-10.0-19045 BLACK 3.4.9-1.x86_64 2023-09-06 11:19 UTC 
x86_64 Cygwin
BLACK:~$ nc -lkU aSocket.

Cygwin x error

2019-07-08 Thread WILLIAMS, DENNIS F II GS-09 USAF AFMC 559 SMXS/MXDPBB via cygwin
Hello. In trying to activate this product I received the following error:

"Fatal server error:
XDMCP fatal error: Session declined Maximum number of
Server terminated with error (1)."

I was unable to find help for this in your FAQs. Please advise

Dennis Flynn Williams II
Electronics Engineer
76 SWEG/559 SWES
405-739-2467


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



No threads/process support in Clisp

2014-05-23 Thread F. Nikita Thomas
Thanks,
I didn't see a reply in my inbox, so how do I reply? o.0... anyways
since I'm legally not
sane, I'm downloading the source tree right now. Any idea where Cygwin
will install the source files? I'll just have to hope that the
'configury' is standard make && make install. I'll let you know how it
turns out.No threads/process support in Clisp

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



No threads/process support in Clisp

2014-05-22 Thread F. Nikita Thomas
Hello,
I finally feel confident enough to try processes/threads in Lisp,
however when I evaluate *features* in the repl, I don't see MT:, so no
thread support. Is there a way to rebuild clisp for this
functionality? Clisp version is 2.48, Cygwin version 1.7.27. Any help
or advice will be appreciated. Thanks.

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



mkpasswd and domain fail with windows network

2012-03-14 Thread Furash, Gary F - (furashg)
I've had this problem in the past with in other organizations and have never 
been able to get around it.

Problem: running mkpasswd w/ '-D' doesn't work/finish

Details: I am running Cygwin on Windows 7 64 bit in a typical work environment. 
I don't think that matters because I've had this exact problem before with 
other employers. The MKGROUP command with the domain parameter works fine, and 
populates all the real domains into /etc/groups. However, 
- if I run mkpasswd with only -L, I just get the local accounts, none of which 
are me (I'm part of a domain);
- if I run mkpasswd with -D, it just hangs indefinitely
- it doesn't matter if I run it as Administrator or not
- it doesn't matter if port 135 is open or not. I checked that because if I run 
the mkpasswd -D command with the laptop disconnected from the network, it 
actually fails with an RPC unable to contact domain error.
- using -D versus -d doesn't make a difference, as does adding -l (it just 
spits out the local accounts then fails or hangs.


Re: No Network Access Nearly Resolved

2012-02-10 Thread Furash, Gary F - (furashg)
Hi Corrina:

>   For a start, maybe you should set up /etc/passwd and /etc/group as they 
> are supposed to be, not as you think they should be:
>   $ mkpasswd -l -d > /etc/passwd
>   $ mkgroup -l -d > /etc/group

Even when I run mkpasswd from a dos prompt (that can see mkpasswd) and can 
resolve network names, adding the "-d" parameter causes it to pause forever, 
whereas the mkgroup works immediately (several thousand entries).


libtirpc

2012-01-26 Thread Harsh, James F
I'm trying to install libtirpc1.a, the replacement for librpc.a, A few weeks 
ago I installed it and it was in /lib. I removed and reinstalled cygwin and now 
can't find  anything *rpc*. Where is the libtirpc suppose to be installed and 
any ideas why I can't find what the system thinks it has installed?


This is on a Windows 7 machine.


Thanks,
Jim



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



Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F
Larry Hall (Cygwin  cygwin.com> writes:

> So you're saying the snapshot exhibits the above behavior?
> 


No, this was happening pre and post snapshot.


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



Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F
Larry Hall (Cygwin  cygwin.com> writes:
>

Your advice did solve the problem, thanks!  I wonder which specific entry in the
changelog did it...

The unwillignness to show any text until it finds a newline seems it could be a
cygwin issue.  Taking the following code:

#ifndef __CYGWIN__
#define SLEEP _sleep(2000)
#else
#define SLEEP sleep(2)
#endif
#include 
#include 
int main() {
 int i;
 while(1) {
  for(i = 0; i < 5; i++) {
   printf("%c", 'a'+i);
   SLEEP;
  }
  SLEEP;
  printf("\n");
 }
}

When built in visual C++, it will show 'a', 'b', 'c' etc every 2 seconds.  When
built in cygwin with gcc, it will show 'abcde' every 10 seconds.  The latter
happens whether I run it from a bash console or windows console.

I'll start a new thread for this if noone off-handedly has the answer...


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



Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F
Robert F  hotmail.co.uk> writes:

> 
> 
> > I might give the snapshot a shot.  Do you know how far from the release 
> > build
> > the latest snapshot is and when the next one is planned?
> > 
> 
> Update: I did a flat replacement of cygwin1.dll with the latest snapshot of it
> and all my cygwin apps go apesh*t.  Is it because I didn't update the whole
> environment?
> 
> 


Sorry for spamming, it was simply that I tried running an app in an
already-started bash console, instead of restarting it with the new dll. :) 
Will let you know if the bug manifests again.


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



Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F

> I might give the snapshot a shot.  Do you know how far from the release build
> the latest snapshot is and when the next one is planned?
> 

Update: I did a flat replacement of cygwin1.dll with the latest snapshot of it
and all my cygwin apps go apesh*t.  Is it because I didn't update the whole
environment?


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



Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F

> > This has me stumped.
> 
> I'd suggest trying a snapshot - 
> 
> If that doesn't help, a full problem report might help someone on the list
> spot an issue.
> 
> > Problem reports:   http://cygwin.com/problems.html
> 


I might give the snapshot a shot.  Do you know how far from the release build
the latest snapshot is and when the next one is planned?

Is "full problem report" a technical term?  It's not on the page you link.  I
thought my report was detailed enough, and I can provide more info if anyone
needs it.  I've tried posting to the mailing list but my emails are rejected
from there without explanation (yes I've received the 'welcome to the list'
email :( ).


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



Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)

2012-01-17 Thread Robert F
This could be a cygwin bug, but I'm not 100% sure.  It may even be a weird
interaction with the windows console.

I have a single threaded app that loops, polls network activity with a 'select'
function and interrupts the flow of the loop when a SIGALRM signal is ran, the
handler of which sets a variable that the loop responds to.

While this app more-or-less ran fine in its native linux environment, when
trying to run it at home in cygwin a problem occurs. Basically, between about
2-100 seconds of starting the process (on average), the alarm signal never runs
as scheduled and never runs again, except for one more time when I hit CTRL+C
(which I know by inserting debugging output into the signal handler).

The funny thing is the app happily continues looping and calling the 'select'
function, it just never gets interrupted by an alarm signal. The select function
handles cases of EINTR where it was interrupted by an alarm, btw (sockets are
nonblocking and timeout is 1 second).

Now here's the REALLY weird bit. IF I insert a printf (with newline terminated
string) after the select function, _the problem never occurs_.  If there's no
newline, the printed strings are buffered without being shown, until either a
newline arrives or I hit CTRL-C.

Doesn't work if I put it before the select function, only after.

I haven't included any io streams into the fd_sets passed to the select
function, in case you were wondering. They are zeroed and then only receive
network connections.

This has me stumped.


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



Continued Networking Issues

2011-03-31 Thread Furash, Gary F - (furashg)
I still haven't solved the networking issues on my PC. After including the 
standard .profile and .bashrc in my startup process, I now get this behavior:

$ nslookup www.google.com
/usr/src/ports/net/bind/bind-9.7.1-1/src/bind-9.7.1/lib/isc/unix/net.c:142: 
socket() failed: Operation not permitted
/usr/src/ports/net/bind/bind-9.7.1-1/src/bind-9.7.1/lib/isc/unix/net.c:142: 
socket() failed: Operation not permitted
(null): can't find either v4 or v6 networking

$ ping 127.1.1.1
icmp: unknown protocol

Does anyone have any idea what would be done to correct this. When I run 
cmd.exe dos works fine.


Add MAILUTILS to CYGWIN Downloadable Packages

2010-10-12 Thread Furash, Gary F - (furashg)
There are a number of packages that are fairly common in LINUX distributions 
that are not available yet in CYGWIN, such as:

- PHP
- MAILUTILS

When I try to install them myself, I encounter problems and find that others 
have often encountered the same thing.

It would be wonderful if someone more knowledgeable about these matters could 
add them as optional packages to CYGWIN.



Re: Vertical split in GNU screen

2010-08-11 Thread f...@neotek.fr
Thanks a lot for your quick answer! I will be pleased if you could
post the version of Screen with vsplit patch  as a test release
because i didn't try to compile for cygwin yet!
I will try it and give my feedback! I'm on winxp sp3!
Rgds,
Florent..

2010/8/6 Andrew Schulman :
>> Hi, i'm new with mailing-lists use!
>> i'd like to re-talk about a feature with cygwin screen! How can we add
>> the marvellous "Vertical split in GNU screen" with cygwin?
>> I know there were a talk about that between Jeenu V > dot com> and Andrew Schulman > dot gov> the 19 Apr 2010!
>> Thanks in advance for somebody answer!
>> If i'm not at the right place to talk about this or if i don't use
>> this list in the good way, please don't shout at me, just show me!
>> Florent LOTTIN
>
> Hi Florent.  There is a patch that's been available for a while, that adds
> vertical split support to screen.  I believe that Debian, Ubuntu, and
> probably others already incorporate it into their official screen packages.
>
> I remember the exchange with Jeenu, and after that I did go get the patch,
> build screen with it for Cygwin, and try it out.  What I found, if I
> remember right, is that I saw a lot of what I considered strange behavior,
> and very little documentation or help about how the vertical split feature
> is supposed to work.  It didn't seem to me to be working very well, so I
> put it aside.
>
> If people would like to try out the patched version, I can post it as a
> test release.  Maybe you can tell me if the vertical split feature is
> working the way it's supposed to.
>
> Andrew.
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

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



Re: Vertical split in GNU screen

2010-08-06 Thread f...@neotek.fr
Hi, i'm new with mailing-lists use!
i'd like to re-talk about a feature with cygwin screen! How can we add
the marvellous "Vertical split in GNU screen" with cygwin?
I know there were a talk about that between Jeenu V  and Andrew Schulman  the 19 Apr 2010!
Thanks in advance for somebody answer!
If i'm not at the right place to talk about this or if i don't use
this list in the good way, please don't shout at me, just show me!
Florent LOTTIN

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



gcc-4 -static cannot find -lgcc_s

2010-06-25 Thread Uwe F. Mayer
It seems that gcc-4 has problems finding libgcc_s when compiling with -static. 
This works fine with gcc-3. Example:

$ cat pointer.c
#include 
int main(){
 printf("%d",(int)sizeof(long));
 return(0);
}

$ gcc-3 -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure 
--verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr 
--sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls 
--without-included-gettext --enable-version-specific-runtime-libs --without-x 
--enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter 
--disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm 
--disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization 
--enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

$ gcc-3 -static pointer.c

$ ./a.exe
4

$ gcc-4 -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: 
/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure 
--srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var 
--sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man 
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v 
--with-gmp=/usr --with-mpfr=/usr --enable-bootstrap 
--enable-version-specific-runtime-libs --with-slibdir=/usr/bin 
--libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc 
--disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 
--disable-sjlj-exceptions 
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers 
--enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp 
--enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic 
--enable-libgcj-sublibs
 CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 
GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind 
AS=/opt/gcc-tools/bin/as.exe AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe 
LD=/opt/gcc-tools/bin/ld.exe LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe 
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC) 

$ gcc-4 -static pointer.c
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot 
find -lgcc_s
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot 
find -lgcc_s
collect2: ld returned 1 exit status


  

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



Setup.exe crash while uninstalling libintl8 0.17-1

2009-05-07 Thread Coates, Matthew F.
setup.exe version 2.573.2.3
Unhandled exception at 0x004f42cb in setup.exe: 0xC005: Access violation 
reading location 0x0154fdf0.

This started happening after I noticed some security software blocking cygwin's 
operations.  the security software has been disabled, but the problem persists. 
 I can mark libintl8 as 'keep' and install other software without a problem.

Perhaps reinstalling the same version (bypassing the uninstall step) will bring 
the package back to an upgradable state?  

Thanks,
Matt


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

mounted drives

2008-06-20 Thread Michael F. Smith

I am sure you have probably heard this before as my research reveals that many 
have failed to get it to work. I am trying to use rsync from a linux server 
to get data from a windows XP that has a snap drive mounted as drive M:\

I am able to get the other files on the XP to copy fine, but I get the error 
indicating that folder does not exist when attempting to get data from the 
mounted drive.

I suspect that this may have something to do with the fact that the user is 
not logged in and as a result the drive that mapps when they login, is not 
actually mapped.

Can you suggest a correct method to perhaps add an option to the rsync daemon 
service to map the drive when the daemon starts ??

Mike Smith
Network Consultant
417-753-4360
[EMAIL PROTECTED]

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



x-server font setting

2007-08-07 Thread Ling F. Zhang
I just installed cygwin in order to run fontforge on a Windows machine (while 
my linux machine is down). But since I am interested in working on font that 
covers the CJK plane, it is important that I can read text encoded in utf-8 or 
other non-latin codepage. I know that cygwin doesn't like unicode natively, but 
is it the same for the x-server? Is it safe to use ttf files from Windows (say, 
via a symbolic link or actual copy) fonts folder? I'll probably encounter more 
questions as I slowly get fontforge to display Asian glyphs.




  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/

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



Error isntalling from directory, 2.510.2.2 setup version

2007-05-02 Thread Gallagher, Tim F \(NE\)
I am tasked with installing Cygwin (The latest version) from an install
directory (the computer does not have an internet connection).  I run
the setup.exe I select for all users, install from local directory and I
get an error.  The screen is at 9% install and the error is at
/archive/mkinstalldirs,v.  I am not sure what to do, we need this
installed on the computer for development reasons.  I am not able to
find anything on this error when I do a Google search.  Any idea's?

Thanks,
-T

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



Need some help running GNOME desktop

2007-03-13 Thread Gallagher, Tim F \(NE\)
I was wondering if I could Run Gnome desktop within the Cygwin
environment.  I was reading that I could and I got the gnome-desktop,
gnome-common files installed.  The problem is that I have no idea how to
start gnome.  Any info would be wonderful.
 

Thank you,


-T

 


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



Enthought and Cygwin

2007-02-04 Thread John F Burkhart
Is anyone succesfully using the Enthought distribution of Python with 
Cygwin? I have numerous trouble if going this route, and would be 
interested in other's experience.


-john

--
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 "notty" (enthought solution?)]

2007-01-31 Thread John F Burkhart

Hello all. I've found this post:

http://www.thescripts.com/forum/thread32391.html
and I am having an identical problem.

I'm a newbie. I've installed cygwin (without python), and then installed 
enthought - because I'm hoping to use the scypy tools, etc.
Anyway, I'm running the latest cygwin on an xp pro machine. I use the 
.bat file (pasted below) to launch cygwin and an xterm. Notice i put the 
SET CYGWIN=notty line in there, but it hasn't done anything to improve 
the situation. Could someone perhaps explicitly sate how to set 
Cygwin=notty?

Any thoughts would be greatly appreciated.

Thank you,
john

=  BEGINFILE =

@echo off
SET DISPLAY=127.0.0.1:0.0

REM
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need
REM to change \cygwin to \foo\bar\baz\cygwin.
REM
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/X, therefore you will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM

SET CYGWIN_ROOT=\cygwin
SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/X11R6/bin
SET CYGWIN=notty

SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale

REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix

REM
REM The error "Fatal server error: could not open default font 'fixed'" is
REM caused by using a DOS mode mount for the mount that the Cygwin/X
REM fonts are accessed through.  See the Cygwin/X FAQ for more
REM information:
REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof
REM

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me

goto STARTUP

:OS_NT

REM Windows NT/2000/XP/2003
echo startxwin.bat - Starting on Windows NT/2000/XP/2003

:STARTUP

REM Brief descriptions of XWin-specific options:
REM
REM -screen scr_num [width height]
REM  Enable screen scr_num and optionally specify a width and
REM  height for that screen.
REM  Most importantly, any parameters specified before the first -screen
REM  parameter apply to all screens.  Any options after the first 
-screen

REM  parameter apply only to the screen that precedes the parameter.
REM  Example:
REM  XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2
REM  All screens will be fullscreen, but screen 2 will be depth 8, while
REM  screens 0 and 1 will be the default depth (whatever depth Windows
REM  is currently running at).

REM -multiwindow
REM  Start an integrated Windows-based window manager.  Not to be 

used

REM  with -rootless nor -fullscreen.
REM -rootless
REM  Use a transparent root window with an external window manager
REM  (such as twm).  Not to be used with -multiwindow nor
REM  with -fullscreen.
REM -fullscreen
REM  Use a window as large as possible on the primary monitor.
REM -multiplemonitors
REM  Create a root window that covers all monitors on a
REM  system with multiple monitors.
REM -clipboard
REM  Enable the integrated version of xwinclip.  Do not use in
REM  conjunction with the xwinclip program.
REM -depth bits_per_pixel
REM  Specify the screen depth to run at (in bits per pixel) using a
REM  DirectDraw-based engine in conjunction with the -fullscreen
REM  option, ignored if the -fullscreen option is not specified.
REM  By default, you will be using a DirectDraw based engine on any
REM  system that supports it.
REM -unixkill
REM  Trap Ctrl+Alt+Backspace as a server shutdown key combination.
REM -nounixkill
REM  Disable Ctrl+Alt+Backspace as a server shutdown key 

combination (default).

REM  Example:
REM  XWin -unixkill -screen 0 -screen 1 -screen 2 -nounixkill
REM  Screens 0 and 1 will allow Ctrl+Alt+Backspace, but screen 2 

will not.

REM -winkill
REM  Trap Alt+F4 as a server shutdown key combination (default).
REM -nowinkill
REM  Disable Alt+F4 as a server shutdown key combination.
REM -scrollbars
REM  Enable resizing of the server display window.  Do not use in 

conjunction

REM  with -multiwindow nor with -rootless.
REM -nodecoration
REM  Draw the server root window without a title bar or border.
REM  Do not use

Problem with ls (ls: reading directory .: No such file or directory)

2006-08-26 Thread Juan F. Arjona

Hello:

Sorry to bother, but I have searched everywhere for days about this 
problem, and I have only found that there could be a permissions issue, 
though I have set and re-set the permissions from both, windows and 
cygwin side; but it doesn't fix the issue.


For some reason cygwin cannot access the files on my hard drive.
I have checked /etc/passwd and /etc/group (see at the end of the sample) 
and they are fine, my user (jarjona) seems to be part of all the 
required groups.


I have uninstalled and re-installed Cygwin several times.  When I try to 
do command completion, it doesn't fill the command line when I press 
tab, even though, when I do ls / I get the same answer "No such file or 
directory".


This is driving me crazy, any help will be highly appreciated.  Below 
all the commands that show the problem.


I have tried using tcsh (thinking that it was a bash issue) and I have 
the same problem.  So it seems that something is preventing cywin.dll to 
access the contents of the file system folders.



[EMAIL PROTECTED] ~
$ ls -la
ls: reading directory .: No such file or directory
total 0
drwxrwxrwx+ 2 jarjona None 0 Aug 26 01:25 .
drwxrwxrwx+ 3 jarjona None 0 Aug 26 01:21 ..

[EMAIL PROTECTED] ~
$ cd /cygdrive

[EMAIL PROTECTED] /cygdrive
$ ls -lah
total 0
dr-xr-xr-x   1  0  0 0 Dec 31  1969 .
drwx--+ 12 jarjonaNone   0 Aug 25 23:02 ..
drwxrwxr-x+ 28 Administrators SYSTEM 0 Aug 26 01:48 c
dr-xr-xr-x   7 jarjonaNone   0 Jan  6  2005 d
drwxr-xr-x   0 jarjonaNone   0 Dec 31  1969 g

[EMAIL PROTECTED] /cygdrive
$ cd c

[EMAIL PROTECTED] /cygdrive/c
$ ls -lah
ls: reading directory .: No such file or directory
total 0
drwxrwxr-x+ 28 Administrators SYSTEM 0 Aug 26 01:48 .
dr-xr-xr-x   1  0  0 0 Dec 31  1969 ..

[EMAIL PROTECTED] /cygdrive/c
$ dir
dir: reading directory .: No such file or directory

[EMAIL PROTECTED] /cygdrive/c
$ id
uid=1012(jarjona) gid=513(None) 
groups=544(Administrators),545(Users),1004(Debug

ger Users)

[EMAIL PROTECTED] /cygdrive/c
$ groups Administrators
Administrators : Administrators

[EMAIL PROTECTED] /cygdrive/c
$ getfacl .
# file: .
# owner: Administrators
# group: SYSTEM
user::rwx
group::rwx
group:Users:r-x
mask:rwx
other:r-x
default:user::rwx
default:user:Administrators:rwx
default:group:SYSTEM:rwx
default:group:Users:rwx
default:mask:rwx

[EMAIL PROTECTED] /cygdrive/c
$ cd /

[EMAIL PROTECTED] /
$ getfacl .
# file: .
# owner: jarjona
# group: None
user::rwx
group::---
group:SYSTEM:rwx
group:Administrators:rwx
group:Users:rwx
mask:rwx
other:---
default:user::rwx
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:group:Users:rwx
default:mask:rwx

Thanks in advance for any pointers.

-- Juan

Cygwin Configuration Diagnostics
Current System Time: Sat Aug 26 03:37:37 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Altiris\Software Virtualization Agent\

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1012(jarjona)   GID: 513(None)
544(Administrators)  545(Users)   1004(Debugger Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1012(jarjona)   GID: 513(None)
544(Administrators)  545(Users)   1004(Debugger Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'jarjona'
PWD = '/cygdrive/c'
HOME = '/home/jarjona'
MAKE_MODE = 'unix'

PERSONAL = 'C:\Documents and Settings\jarjona\My Documents'
HOMEPATH = '\Documents and Settings\jarjona'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man:'
APPDATA = 'C:\Documents and Settings\jarjona\Application Data'
HOSTNAME = 'jfarjona-lp'
MYPICTURES = 'C:\Documents and Settings\jarjona\My Documents\My Pictures'
FNAME = 'Juan F Arjona'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 14 Stepping 8, GenuineIntel'
CDBURNING = 'C:\Documents and Settings\jarjona\Local Settings\Application 
Data\Microsoft\CD Burning'
WINDIR = 'C:\WINDOWS'
HISTORY = 'C:\Documents and Settings\jarjona\Local Settings\History'
RECENT = 'C:\Documents and Settings\jarjona\Recent'
OLDPWD = '/cygdrive'
COMMONFILES = 'C:\Program Files\Common Files'
USERDOMAIN = 'US'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users.WINDOWS'
COMMONMUSIC = 'C:\Documents and Settings\All Users.WINDOWS\Documents\My Music'
COMMONADMINTOOLS = 'C:\Documents and Settings\All Users.WINDOWS\Start 
Menu\Programs\Administrative Tools'
TEMP = '/cygdrive/c/temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
NETHOOD = 'C:\Documents and Settings\

uninstall cygwin

2006-06-30 Thread f g
Hello,


I would like to uninstall a Cygwin installation under
Windows XP: to do this I follow the instruction in 



http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all



but I have several problems.

Point 1) I type cygrunsrv -L at Cygwin prompt, but I
get the message
 "bash: cygrunsrv: command not found". What does this
mean? Is it safe to assume that I have non Cygiwn 
services running, and that I can pass to point 2?
Point 2) What is the X11 server? How do I know if
there are any Cygwin programs that might be running 
in the background, and in case there are some, how do
I terminate them?

If I complete these points, there should be no problem
with the following ones: basically, I just
delete Cygwin directory from the hard disk. I didn't
add Cygwin to system path, neither did I set
CYGWIN environment variable, so unless the installer
did it, I shouldn't need to do anything else.
Thanks for your attention,

Greetings,

deltaquattro (Sergio Rossi)




Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

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



setup.exe: feature request with patch

2006-03-06 Thread Dr. F. Lee

Hi All,

I deploy cygwin using unattended (http://unattended.sf.net/) and wpkg 
(http://www.wpkg.org/). It's useful for me to be able to specify 
additional packages to be installed on the command line. The attached 
file is a patch to provide this: call "setup -p 
package1,package2,package3,...,packageN" to have packages1-N 
artificially included in the 'Base' part of the distribution and hence 
automatically included.


No doubt there are many better ways of doing this (I'm not a C++ 
programmer and had to go with 'what I could do' rather than 'the best 
way') but perhaps this will be useful.


Yours,

Frank




--
Frank Lee
Semiconductor Physics, Cavendish Laboratory http://www.sp.phy.cam.ac.uk/
diff -u --strip-trailing-cr setup/package_db.cc setup-new/package_db.cc

--- setup/package_db.cc 2005-10-14 05:10:26.0 +0100

+++ setup-new/package_db.cc 2006-03-06 13:35:31.279477400 +

@@ -399,9 +399,16 @@

 #endif

 }

 

+void 

+packagedb::addFromCmdLine ()

+{

+  for_each(packages.begin(), packages.end(), 
mem_fun(&packagemeta::addToCategoryBase));

+}

+

 void

 packagedb::fillMissingCategory ()

 {

+  for_each(packages.begin(), packages.end(), 
visit_if(mem_fun(&packagemeta::addToCategoryBase), 
mem_fun(&packagemeta::isManuallyWanted)));

   for_each(packages.begin(), packages.end(), 
visit_if(mem_fun(&packagemeta::setDefaultCategories), 
mem_fun(&packagemeta::hasNoCategories)));

   for_each(packages.begin(), packages.end(), 
mem_fun(&packagemeta::addToCategoryAll));

 }

diff -u --strip-trailing-cr setup/package_db.h setup-new/package_db.h

--- setup/package_db.h  2003-07-29 11:07:22.0 +0100

+++ setup-new/package_db.h  2006-03-06 13:38:21.148123000 +

@@ -47,6 +47,7 @@

   PackageDBConnectedIterator connectedEnd();

   void fillMissingCategory();

   void markUnVisited();

+  void addFromCmdLine();

   void setExistence();

   /* all seen binary packages */

   static std::vector < packagemeta *> packages;

diff -u --strip-trailing-cr setup/package_meta.cc setup-new/package_meta.cc

--- setup/package_meta.cc   2005-09-11 15:45:54.0 +0100

+++ setup-new/package_meta.cc   2006-03-06 15:02:16.480086200 +

@@ -43,6 +43,7 @@

 #include "script.h"

 

 #include "package_version.h"

+#include "getopt++/StringOption.h"

 #include "cygpackage.h"

 #include "package_db.h"

 

@@ -53,6 +54,8 @@

 

 /*/

 

+static StringOption PackageOption ("", 'p', "package", "Packages to include");

+

 const

   packagemeta::_actions

 packagemeta::Default_action (0);

@@ -654,6 +657,25 @@

   return categories.size() == 0;

 }

 

+bool

+packagemeta::isManuallyWanted() const

+{  

+  string packages_option = PackageOption;

+  string tname;

+  /* Split the packages listed in the option up */

+  string::size_type loc = packages_option.find( ",", 0 );

+  bool breturn=false;

+  while ( loc != string::npos ) {

+tname=packages_option.substr(0,loc);

+packages_option=packages_option.substr(loc+1);

+breturn = breturn || (name.compare(tname)==0);

+loc = packages_option.find( ",", 0 );

+  }

+  /* At this point, no "," exists */

+  breturn=breturn || (name.compare(packages_option)==0);

+  return breturn;

+}

+

 void

 packagemeta::setDefaultCategories()

 {

@@ -665,3 +687,9 @@

 {

   add_category ("All");

 }

+

+void

+packagemeta::addToCategoryBase()

+{

+  add_category ("Base");

+}

diff -u --strip-trailing-cr setup/package_meta.h setup-new/package_meta.h

--- setup/package_meta.h2005-05-03 22:55:08.0 +0100

+++ setup-new/package_meta.h2006-03-06 13:37:39.642747800 +

@@ -54,8 +54,10 @@

   void visited(bool const &);

   bool visited() const;

   bool hasNoCategories() const;

+  bool isManuallyWanted() const;

   void setDefaultCategories();

   void addToCategoryAll();

+  void addToCategoryBase();

 

   class _actions

   {

diff -u --strip-trailing-cr setup/setup_version.c setup-new/setup_version.c

--- setup/setup_version.c   2006-03-06 12:24:59.154337800 +

+++ setup-new/setup_version.c   2006-03-06 13:05:52.788225000 +

@@ -1,3 +1,3 @@

 #define VERSION_PREFIX "%%% setup-version"

-static const char version_store[] = VERSION_PREFIX " 2.524";

+static const char version_store[] = VERSION_PREFIX " 2.524RFL";

 const char *setup_version = version_store + sizeof (VERSION_PREFIX);

diff -u --strip-trailing-cr setup/state.cc setup-new/state.cc

--- setup/state.cc  2005-05-04 15:52:34.0 +0100

+++ setup-new/state.cc  2006-03-06 14:27:05.103281400 +

@@ -23,6 +23,7 @@

 #include "state.h"

 

 bool unattended_mode;

+String packages_option;

 

 int source;

 

diff -u --strip-trailing-cr setup/state.h setup-new/state.h

--- setup/state.h   2005-05-04 15:52:34.0 +0100

+++ setup-new/state.h   2006-03-06 14:26:55.125727000 +

@@ -33,6 +33,8 @@

 

 extern bool unattended_mode;

 

+extern String packages_option;

+

 extern int source;

 

 extern String local_

RE: G++ Missing libraries in cygwin

2006-02-14 Thread Sam F Williams III
Thanks for the response, Chris.  I checked the mount table and D:\cygwin\lib
is indeed properly mounted as /usr/lib.  I'm attaching the cygcheck output
in the hope that you guys can help.  Please let me know if you see anything
amiss.

Thanks,
Franklin  

-Original Message-
From: Chris Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 1:53 PM
To: Franklin Williams
Cc: Cygwin@cygwin.com
Subject: Re: G++ Missing libraries in cygwin

Franklin Williams wrote:
> Hey Guys,
> 
> 
> 
> I'm hoping that you can help me with a problem that I'm having.  I am
> trying to install g++ 3.4.4.1 from cygwin's setup.  I choose both
> binary and source.  However, when I check the /usr/lib folder it is
> completely empty.  Because of this, I cannot compile any of the
> programs that I have on my machine.  Is this a known issue?  Do you
> have any idea what I might be able to do to fix it?  If you could let
> me know I would appreciate it.
> 

A good starting point is:
> Problem reports:   http://cygwin.com/problems.html

This will allow us to work out WHAT is wrong, without having to resort 
to WAGs.
WANFWAGs (We Are Not Fond of Wild-Assed Guesses)


However, in spite of that, there's a reasonable chance that your mount 
table is incorrect, primarily in that C:\cygwin\lib (or wherever you 
installed cygwin to) is not mounted as /usr/lib
You can check this by simply typing mount
If this is the case, try: mount C:\cygwin\lib /usr/lib

It should be noted that if one mount is broken, there's a reasonable 
chance others are too, so send your cygcheck output anyway, as an 
*attachment*, to the list.

Chris
-- 

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?


cygcheck.out
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: cygwin and mkpasswd unable to recognize a domain user

2005-01-13 Thread Steinman, Jethro F (PA62)
I acted on the following recommendations.

> There are three things here.
> - One is a quoting problem in /etc/profile that causes the cp error.
> - The second is the "mkpassd_l_d" group name. That is the name invented by
mkgroup, as it can't access the domain 
> controller to get the real group name. Simply edit /etc/group and change
the group to anything you fancy.
> - The third is the home directory, which is setup by mkpasswd -c from
HOMEDRIVE/HOMEPATH. Simply edit /etc/passwd and set > it as you like, 
> or redo "mkpasswd -l -c -p /home > /etc/passwd ".

This helped a great deal and perhaps all the cygwin issues have now been
resolved. I can now start a bash window under my domain user id. without
getting any errors messages. The home directory is where it should be.

Thanks much for taking me this far, Pierre.

But I'm still having problems with my ultimate objective which is to be able
to build gcc under my domain log in. I have been able to do this with cygwin
under a local administrator log in. But when I try using the domain log-in
it fails pretty early, during the stage of configuring binutils-i686-elf.
This symptom may be outside the realm of just getting cygwin to work. But
what surprises me is that the gcc build works fine under the local user id.
It just crashes under the domain user id.

The gcc build problem shows up as a windows process crash message as
follows.

"cc1.exe - Application Error
The applicaton failed to initialize properly (0xc022). Clikc on OK to
terminate the application."

Any thoughts on that?

Jed

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Pierre A. Humblet
Sent: Wednesday, January 12, 2005 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: cygwin and mkpasswd unable to recognize a domain user


On Wed, Jan 12, 2005 at 11:55:26AM -0700, Steinman, Jethro F (PA62) wrote:
> Thanks for the info. Pierre. Comments below.
> 
> > That's because either HOME is set in Windows to that path, or (yes, 
> > related problem), Cygwin defaults to using your HOMEDRIVE/HOMEPATH
> 
> Right, but this is just a symptom (as you know). The more fundamental 
> problem seems to be that the user id. is not recognized by cygwin so 
> no
>   /cygwin/home/
> directory gets set up.

No, the home directory gets built in /etc/profile, using HOME. Take a look.
HOME is setup be Cygwin, from the Windows HOME or from /etc/passwd, see the
FAQ. 

> > Normally the last line produced by "mkpasswd -l -c"
> > should give you a working password entry.
> > Does it? If not, send us your environment, i.e. the output of "set" 
> > in
> cmd.exe
> 
> I tried this at the bash window.
> 
>   cd /cygdrive/c/cygwin/etc
>   mkpasswd -l -c > passwd
>   mkgroup -l -c > group
> 
> After that I did see info. about my own domain log-in in file passwd.
> Then I closed the bash window and opened another to see if I still got
> complaints. Unfortunately, yes, though the error message
> is slightly different as follows.
> 
>   Your group name is currently "mkgroup_l_d". This indicates that not
>   all domain users and groups are listed in the /etc/passwd and
>   /etc/group files.
>   See the man pages for mkpasswd and mkgroup then, for example, run
>   mkpasswd -l -d > /etc/passwd
>   mkgroup  -l -d > /etc/group
> 
>   This message is only displayed once (unless you recreate /etc/group)
>   and can be safely ignored.
>   cp: `Settings/E712418/group.mkgroup_l_d': specified destination 
> directory does not exist
>   Try `cp --help' for more information.

There are three things here.
- One is a quoting problem in /etc/profile that causes the cp error.
- The second is the "mkpassd_l_d" group name. That is the name invented by
mkgroup, as it can't access the domain controller to get the real group
name. Simply edit /etc/group and change the group to anything you fancy.
- The third is the home directory, which is setup by mkpasswd -c from
HOMEDRIVE/HOMEPATH. Simply edit /etc/passwd and set it as you like, 
or redo "mkpasswd -l -c -p /home > /etc/passwd ".

So basically you are all set.

Pierre

--
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 and mkpasswd unable to recognize a domain user

2005-01-12 Thread Steinman, Jethro F (PA62)
Thanks for the info. Pierre. Comments below.

> That's because either HOME is set in Windows to that path,
> or (yes, related problem), Cygwin defaults to using your 
> HOMEDRIVE/HOMEPATH

Right, but this is just a symptom (as you know). The more fundamental
problem
seems to be that the user id. is not recognized by cygwin so no
  /cygwin/home/ 
directory gets set up.

> Normally the last line produced by "mkpasswd -l -c"
> should give you a working password entry.
> Does it? If not, send us your environment, i.e. the output of "set" in
cmd.exe

I tried this at the bash window.

  cd /cygdrive/c/cygwin/etc
  mkpasswd -l -c > passwd
  mkgroup -l -c > group

After that I did see info. about my own domain log-in in file passwd. 
Then I closed the bash window and opened another to see if I still got
complaints. Unfortunately, yes, though the error message
is slightly different as follows.

  Your group name is currently "mkgroup_l_d". This indicates that not
  all domain users and groups are listed in the /etc/passwd and
  /etc/group files.
  See the man pages for mkpasswd and mkgroup then, for example, run
  mkpasswd -l -d > /etc/passwd
  mkgroup  -l -d > /etc/group

  This message is only displayed once (unless you recreate /etc/group)
  and can be safely ignored.
  cp: `Settings/E712418/group.mkgroup_l_d': specified destination directory
does not exist
  Try `cp --help' for more information.

Also, I tried logging off and logging on to see if, after the passwd file
change, the user home 
directory would appear as 
  /cygwin/home/ 
but it didn't.

As to the output of "set" executed at a windows command prompt see below.

Regards,

Jed

 set output =

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\E712418\Application Data
CIS_DIR=C:\explore
CLEARCASE_PRIMARY_GROUP=PA62D\PlantScape
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=PA62D-XPWKS107
ComSpec=C:\WINDOWS\system32\cmd.exe
EDNEXE=C:\EDOTNET\bin\win32\edotnetjit.exe
EDOTNETHOME=C:\EDOTNET
[EMAIL PROTECTED],trmsvr
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\E712418
INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\
LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
[EMAIL PROTECTED]
LOGONSERVER=\\PA62DC601
NUMBER_OF_PROCESSORS=1
NuSMV_LIBRARY_PATH=C:\ProgramFiles\nusmv-2.1.2\share\nusmv
OS=Windows_NT
p2=c:\program files\microsoft office\office
p3=C:\ProgramFiles\nusmv-2.1.2\bin
p4=C:\Program Files\smv2.5
p5=C:\cygwin\bin
p6=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\Bin
p7=C:\cygwin\usr\local\ppc\bin
p8=C:\cygwin\usr\local\ppc\powerpc-elf\bin
Path=C:\ORACLE\ORA81\BIN;C:\PROGRAM
FILES\ORACLE\JRE\1.1.7\BIN;C:\PERL\BIN\;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WI
NDOWS\SYSTEM32\WBEM;C:\PROGRAM FILES\ATI TECHNOLOGIES\ATI CONTROL
PANEL;C:\FULCRUM\BIN;C:\PROGRAM FILES\COMMON FILES\ADAPTEC
SHARED\SYSTEM;C:\ATRIA\BIN;C:\PROGRAM FILES\EXECUTIVE
SOFTWARE\DISKEEPER\;C:\PROGRAM FILES\MICROSOFT SQL
SERVER\80\TOOLS\BINN;C:\PROGRAM FILES\HONEYWELL\EXPERION PKS\ENGINEERING
TOOLS\SYSTEM\BIN;b:;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin;C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin;c:\program files\microsoft visual
studio\common\tools;h:\utl;C:\CC3_LL\IlDeCompiler;C:\Program Files\Microsoft
Visual Studio .NET 2003\Common7\IDE
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
pB=C:\GHS\ppc401
pC=C:\FR\TestInterop1\TestInterop1DLL\Debug
pd=y:\cee\components\cee\CDAPeerClientDLL\Debug
pe=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
pf=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
pg=C:\FR
ph=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
pi=C:\Temporary Internet Files
pp1=b:
pp2=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
pp3=c:\program files\microsoft visual studio\common\tools
pp4=h:\utl
pp5=C:\CC3_LL\IlDeCompiler
pp6=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin
pp7=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0905
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=c:\temp
TMP=c:\temp
USERDNSDOMAIN=honeywell.ds.honeywell.com
USERDOMAIN=HONEYWELL
USERNAME=E712418
USERPROFILE=C:\Documents and Settings\E712418
VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\
whichperl=ccperl
windir=C:\WINDOWS

--
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 and mkpasswd unable to recognize a domain user

2005-01-12 Thread Steinman, Jethro F (PA62)
Greetings,

I just installed cygwin and I'm having some problems using it. I have it
installed on a WINXP 2002 SP1 laptop. I'm using a domain log-in. I ran
"cycgcheck -s" to record information on the nature of my set up. The output
is attached at the bottom of this message. 

The problem I'm having is that when I start bash I get the following
message.

"Your group is currently "mkpasswd". This indicates that 
the /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group
Note that the -d switch is necessary for domain users."

A related symptom is that doing "pwd" shows my home directory to be as
follows

/cygdrive/c/Documents and Settings/

When I do what the error message instructs (run mkpasswd and mkgroup) the
problem is not corrected. But if I log out and log back in, not as a domain
user but with my local administrator account, then the problem goes away.
Also, the starting directory is then where I expect it to be under
C:/cygwin/home.

Looking at the output from "mkpasswd -l -d" I see that my domain user name
does not appear, despite the fact that the computer and the domain recognize
my user id. just fine and are happy to let me do whatever I want. It almost
seems as though my log-in domain is set up in such a fashion that mkpasswd
can not recognize a class of users of which I am a member.  Everything else
probably stems from that.

It seems quite possible that there are things about our domain set up which
cygwin and mkpasswd can't understand.  I know that my user id. is registered
in a global corporate domain. More than that I can't explain as I lack the
requisite education.

I searched the archive and found the following 2 threads which discuss
similar problems but do not point directly to a solution. 

http://sources.redhat.com/ml/cygwin/2004-09/msg00338.html
http://sources.redhat.com/ml/cygwin/2004-08/msg00089.html

Am I doing something wrong?
Does this seem like a cygwin bug?
Can anyone recommend a work-around?

Regards,

Jed


== cygcheck output:
===

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\ORACLE\ORA81\BIN
c:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN
c:\PERL\BIN\
c:\WINDOWS\SYSTEM32
c:\WINDOWS
c:\WINDOWS\SYSTEM32\WBEM
c:\PROGRAM FILES\ATI TECHNOLOGIES\ATI CONTROL PANEL
c:\FULCRUM\BIN
c:\PROGRAM FILES\COMMON FILES\ADAPTEC SHARED\SYSTEM
c:\ATRIA\BIN
c:\PROGRAM FILES\EXECUTIVE SOFTWARE\DISKEEPER\
c:\PROGRAM FILES\MICROSOFT SQL SERVER\80\TOOLS\BINN
c:\PROGRAM FILES\HONEYWELL\EXPERION PKS\ENGINEERING TOOLS\SYSTEM\BIN
b:\
c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin
c:\program files\microsoft visual studio\common\tools
h:\utl
c:\CC3_LL\IlDeCompiler
c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(E712418) GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(E712418) GID: 401(mkpasswd)
544(Administrators) 545(Users) 401(mkpasswd)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\Documents and Settings\E712418'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/Documents and Settings/E712418'
USER = `E712418'

Use `-r' to scan registry

b: net NTFS 349382Mb 87% CP CS UN PA FC Data Volume 1
c: hd NTFS 38075Mb 56% CP CS UN PA FC SYSTEM
d: cd N/A N/A 
g: net NTFS 489135Mb 23% CP CS UN PA FC DATA
h: net NTFS 349382Mb 87% CP CS UN PA FC Data Volume 1
i: net NTFS 349382Mb 87% CP CS UN PA FC Data Volume 1
m: net MVFS 1000Mb 50% CP CS CCase
n: net NTFS 349382Mb 87% CP CS UN PA FC Data Volume 1
s: net NTFS 349381Mb 85% CP CS UN PA FC Data1
t: net MVFS 1000Mb 50% CP CS CCase
y: net MVFS 1000Mb 50% CP CS CCase

C:\cygwin / system binmode
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Not Found: find
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Not Found: grep
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Not Found: sed
Found: C:\cygwin\bin\sh.exe
Not Found: tar

55k 2004/09/14 C:\cygwin\bin\cygbz2-1.dll
18k 2004/07/06 C:\cygwin\bin\cygcharset-1.dll
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll
1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll
174k 2004/10/14 C:\cygwin\bin\cygexpat-0.dll
40k 2004/10/10 C:\cygwin\bin\cygform-8.dll
48k 2003/08/09 C:\cygwin\bin\cygform7.dll
28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
991k 2004/07/06 C:\cygwin\bin

Re: install cygwin freezes at x11-fsrv README

2004-11-06 Thread Ling F. Zhang
Cygwin setup seems to freezes at
xorg-x11-fenc-6.8.1.0.README

anyone worked around this yet?
--- Bobby McNulty <[EMAIL PROTECTED]> wrote:

> Ling F. Zhang wrote:
> 
> >I realize that I am the third person to raise this
> >question in the mailing list, but the first two are
> >unresolved.
> >
> >Installing cygwin fails because it freezes trying
> to
> >install the x11-fsrv font server at README. Please
> >help.
> >
> >Thank you.
> >> >
> > 
> >__ 
> >Do you Yahoo!? 
> >Check out the new Yahoo! Front Page. 
> >www.yahoo.com 
> > 
> >
> >
> >--
> >Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> >Problem reports:  
> http://cygwin.com/problems.html
> >Documentation: http://cygwin.com/docs.html
> >FAQ:   http://cygwin.com/faq/
> >
> >
> >  
> >
> That is what I'm talking about.
> It won't go any further than that.
> I have Windows XP Pro with service pack #2.
> 
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



install cygwin freezes at x11-fsrv README

2004-11-04 Thread Ling F. Zhang
I realize that I am the third person to raise this
question in the mailing list, but the first two are
unresolved.

Installing cygwin fails because it freezes trying to
install the x11-fsrv font server at README. Please
help.

Thank you.



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



ssh err. in win2k3: setgid invalid argument...

2004-08-31 Thread Ling F. Zhang
just ran ssh-host-config...everything went fine...

added "-r" option for priviledge separation

ssh localhost: enters password: Fan Fare! msg appear
then error:

ssh localhost
[EMAIL PROTECTED]'s password: 
Last login: Tue Aug 31 02:23:55 2004 from 127.0.0.1
Fanfare!!!
You are successfully logged in to this server!!!
setgid: Invalid argument
Connection to localhost closed.

So I checked event viewer...4 new event appeared since
I ran ssh localhost...Two might hint to the error:

* Address 127.0.0.1 maps to mycomputer.mydomain.net,
but this does not map back to the address.
* syslogin_perform_logout: logout() returned an error.

So I ran ssh 192.168.0.2 (ip for my computer) and this
time, the second msg appears only...

I ran out of clues as of now...




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_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: Re: sshd automatically close connection after successful login

2004-08-22 Thread Ling F. Zhang
> >Well, I do want privilege separation support.
> >
> >So, I did the following:
> >cygrunsrv --remove sshd
> >cygrunsrv --install sshd --path /usr/sbin/sshd
> --args
> >-r --user sshd_server
> >

> >and cygrunsrv asks me for password for sshd_server,
> I
> >just hit enter twice...
> >
> >cygrunsrv --start sshd gives me a "logon error"
> >
> >I think sshd_server has empty password, so what's
> up
> >with this logon error?
> 
> 
> 
> Perhaps you should check that.
> 
> I'm curious as to why you created the 'sshd_server'.
>  Are you running 
> W2K3 server?  If not, you're may be a little
> confused about the difference
> between privilege separation and the user that runs
> the service.  Consult
> '/usr/share/doc/Cygwin/openssh.README' for the
> details.

yes, i am using W2k3...

>Oh and a read-
> through of  would
> be beneficial if you 
> have a follow-up question.  It has guidance for what
> makes a good problem
> report.

Thank you




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: Re: sshd automatically close connection after successful login

2004-08-19 Thread Ling F. Zhang
Well, I do want privilege separation support.

So, I did the following:
cygrunsrv --remove sshd
cygrunsrv --install sshd --path /usr/sbin/sshd --args
-r --user sshd_server

and cygrunsrv asks me for password for sshd_server, I
just hit enter twice...

cygrunsrv --start sshd gives me a "logon error"

I think sshd_server has empty password, so what's up
with this logon error?

Thanx



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_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/



sshd automatically close connection after successful login

2004-08-19 Thread Ling F. Zhang
I just installed cygwin. Ran ssh-host-config -y
and cygrunsrv --start sshd

and when i attemp to log in with "ssh localhost"
I was asked for password, then a "Connection to
localhost closed"

ssh -v localhost gives:

$ ssh -v localhost
OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/mzhang/.ssh/identity type
-1
debug1: identity file /home/mzhang/.ssh/id_rsa type -1
debug1: identity file /home/mzhang/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software
version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192)
sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA
host key.
debug1: Found key in /home/mzhang/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/mzhang/.ssh/identity
debug1: Trying private key: /home/mzhang/.ssh/id_rsa
debug1: Trying private key: /home/mzhang/.ssh/id_dsa
debug1: Next authentication method:
keyboard-interactive
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: password
[EMAIL PROTECTED]'s password: 
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: client_input_channel_req: channel 0 rtype
exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to localhost closed.
debug1: Transferred: stdin 0, stdout 0, stderr 33
bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0,
stderr 532.3
debug1: Exit status 255

/var/log/sshd.log is empty

I have no idea what's causing this. Searching cygwin's
mailing list, i can't find related problem either.

Any ideas?



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

--
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: Interrupts, bash and .cmd scripts

2004-08-04 Thread Gregory F. March

On Aug 4, 2004, Larry Hall <[EMAIL PROTECTED]>  wrote:

 |Did you follow the whole thread?  I only pointed you to the beginning (so
 |you got the context) but it is the later posts that are most relevant to 
 |your predicament IMO.

Yes, I did read it. Unless I missed something, the problem is different, and 
suggests changing my script - not an option in my case.

If you read it differently, please point to the specific portion of the 
thread so I can see what you are thinking...

Thanks!

/greg



--
Gregory F. March|http://www.gfm.net:443/~march|AIM:GfmNet



--
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: Interrupts, bash and .cmd scripts

2004-08-04 Thread Gregory F. March

On Aug 3, 2004, Larry Hall <[EMAIL PROTECTED]>  wrote:

 |Does it happen from rxvt without the X-server running?

Yes, it does.

 |Starting here is usually the best thing to do:
 |
 |>Problem reports:   http://cygwin.com/problems.html

Been there... :-)

 |Following up on some of that advice, did you try googling?  I found
 |this by looking for "Control-C" and "rxvt" in 2004.
 |
 |<http://www.cygwin.com/ml/cygwin/2004-02/msg01422.html>
 |
 |Looks relevant to me, no?

No, unfortunately not. The issue is not that ^C doesn't do anything, it is 
that it does interrupt the script, but it appears to leave what ever the 
script ran in the background.  Doing some experimenting, I found the 
following to demonstrate the problem:

foo.sh:

#!/bin/bash

/cygwin/c/Program\ Files/mozilla.org/Mozilla/mozilla/exe

foo.cmd:

"c:\Program Files\mozilla.org\Mozilla\mozilla.exe"

When running foo.sh, a ^C will terminate mozilla and return the command 
prompt.  When running foo.cmd, ^C will return the command prompt, but leave 
mozilla running.

This is easy to deal with in terms of mozilla - I can just go exit mozilla. 
But with things like WLS, killing the java processes is a PITA.

Any ideas?  Thanks

/greg




--
Gregory F. March|http://www.gfm.net:443/~march|AIM:GfmNet



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



Interrupts, bash and .cmd scripts

2004-08-03 Thread Gregory F. March

Hi all...

I'm having a problem with ^C while running weblogic server in either an xterm
or rxvt. This problem does not exist when running bash in the regular cmd
window. I was advised to send this to the cygwin-xfree mailing list, but I
don't believe it is an xfree related issue. If the net.wisdom here believes
otherwise, I'll move the discussion over there...

The problem is that if I launch an xterm or rxvt and I then run the
startWeblogic.cmd script, typing a ^C will return me to the bash prompt, but
it will not kill the weblogic server I ran. The task manager will show the 
java.exe process running, and the machine responds on the WLS port.

I'm pretty sure this is not isolated to the weblogic start script, but to all 
.cmd scripts, but it is hard to tell.

When I run an xterm, I'm launching XWin using the cygwin run.exe with the
-clipboard -multiwindow options, and then launching xterm using run.exe /bin/
xterm. When I run rxvt, I just run it from a cmd window using "rxvt &".

This is on Window 2000 SP3.

Any help would be appreciated.

Thanks!

/greg




--
Gregory F. March|http://www.gfm.net:443/~march|AIM:GfmNet



--
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: Shutdown doesn't seem to work when invoked from ssh session

2004-05-10 Thread Michael F. March
Let me amend my last email..

Shutdown works if I am logged into the console.. it has
nothing todo with VNC..
thanks!

Here is something kind of freaky.. If I am at the same time
logged into server that is running sshd using VNC, shutdown
through an SSH session, *DOES* work.


On May 10 07:33, Egerton, James wrote:

I've tried using the Cygwin shutdown-1.4 from an ssh session and it
doesn't seem to do anything.   The call to ExitWindowsEx doesn't appear
to fail, but nothing happens after the "WARNING!!!..." message is
displayed.   I have verified that the system can be rebooted from ssh if
InitiateSystemShutdown is called instead of ExitWindowsEx and this
appears to be consistent with the ExitWindowsEx description:


Thanks for the report.
I'll upload a new shutdown tool within the next few days, probably.
Corinna



--
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: Shutdown doesn't seem to work when invoked from ssh session

2004-05-10 Thread Michael F. March
Here is something kind of freaky.. If I am at the same time
logged into server that is running sshd using VNC, shutdown
through an SSH session, *DOES* work.


On May 10 07:33, Egerton, James wrote:

I've tried using the Cygwin shutdown-1.4 from an ssh session and it
doesn't seem to do anything.   The call to ExitWindowsEx doesn't appear
to fail, but nothing happens after the "WARNING!!!..." message is
displayed.   I have verified that the system can be rebooted from ssh if
InitiateSystemShutdown is called instead of ExitWindowsEx and this
appears to be consistent with the ExitWindowsEx description:


Thanks for the report.
I'll upload a new shutdown tool within the next few days, probably.
Corinna



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


Re: Setup 2.427 crashes on doing an MD5 sum on some packages..

2004-05-09 Thread Michael F. March
I tried it both ways (install for local directory
and install from internet)..
I tried it using packages from different mirrors.

I also tried it under W2K.




On Sun, 2004-05-09 at 02:38, Michael F. March wrote:

Oops.. I just notices someone *just* reported this bug
a few days ago..
However, I could add that setup.exe does crash on other packages
other than xorg too.

Here is the error:

   http://cowmix.com/Cygwin/error.gif

The package is xorg-x22-bin.6.7.0.0-4.



Thats unusual. Could you try just 'download from internet', not
'install' ? this will identify if it's an installation issue or a
download process issue.
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: Setup 2.427 crashes on doing an MD5 sum on some packages..

2004-05-08 Thread Michael F. March
Oops.. I just notices someone *just* reported this bug
a few days ago..
However, I could add that setup.exe does crash on other packages
other than xorg too.
Here is the error:

http://cowmix.com/Cygwin/error.gif

The package is xorg-x22-bin.6.7.0.0-4.

I tried it on a few machines running XP SP1.

OT: Me or any of my friends on COX internet cable
can not access Cygwin.com.. Anyone else on Cox
having the same problem?
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



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


Setup 2.427 crashes on doing an MD5 sum on some packages..

2004-05-08 Thread Michael F. March
Here is the error:

	http://cowmix.com/Cygwin/error.gif

The package is xorg-x22-bin.6.7.0.0-4.

I tried it on a few machines running XP SP1.

OT: Me or any of my friends on COX internet cable
can not access Cygwin.com.. Anyone else on Cox
having the same problem?
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Broken package selection for a full install

2004-03-23 Thread Daniel F. Dickinson
Morris Walton wrote:
My renaming the installation root and registry keys as per Igors
suggestion, you have removed all trace of your package selections.
Thanks.  I think I figured out what was wrong.  I selected Install on
the root of the package tree, then used the view radio buttons (to see
what they are for).  I think I reselected Install on the root after
that, but I can't swear to it and can't test it at the moment (I'm in
middle of a move and project), but in three or four weeks I'll
probably

get a chance to verify if that was the problem.

[Morris] I don't see how this would be a problem?  Shouldn't "install"
work?
It *should* but it doesn't always.  The first time I installed Cygwin I 
used 'install' but got missing 'CYGxxx.dll' - type messages on the 
post-install script and attempting to run the default icon (because of 
grep which was missing libpcre, and k?which which was missing 
libkpathsea3).  Doing a reinstall on the root had the same result (I did 
the reinstall after looking at the FAQ since that was the advice for 
missing .dll messages).  I then searched the archives and discovered 
that someone had a similar problem with 'less' with a 'default' install. 
 It seems that sometimes not all dependencies are picked up, which is 
borne out by the fact that there were unselect packages, and manually 
selecting everything made the reinstall work.
--
Daniel F. Dickinson:
"Time does not die; the circle is not round."
http://www.geocities.com/danielfdickinson/index.html
http://www.indigo.ca : bookstore
http://www.talkorigins.org : for origins of life archives

--
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: Broken package selection for a full install

2004-03-23 Thread Daniel F. Dickinson
Robert Collins wrote:
On Sun, 2004-03-07 at 16:35, Daniel F. Dickinson wrote:

Igor Pechtchanski wrote:

Daniel,

If you're willing to temporarily rename the existing installation root
(and the registry keys) and reinstall from scratch, please post the
/var/log/setup.log and /var/log/setup.log.full from an install session
that exhibits the above problem.  Note that /var/log/setup.log.full is
overwritten every time you run setup.  After the install, you can rename
the old directory back (and the registry keys, if you did something fancy
with mounts or options -- otherwise they should be identical).
I did that, but didn't get any errors.  Does setup store *any* 
information about package selections, and if so where?


In the installation root under /etc/setup


 I'd like to help 
with the debug, but it seems that since my manual package selection that 
made things work, that I can't replicate the error without removing all 
traces of my package selections.


My renaming the installation root and registry keys as per Igors
suggestion, you have removed all trace of your package selections.
Thanks.  I think I figured out what was wrong.  I selected Install on 
the root of the package tree, then used the view radio buttons (to see 
what they are for).  I think I reselected Install on the root after 
that, but I can't swear to it and can't test it at the moment (I'm in 
middle of a move and project), but in three or four weeks I'll probably 
get a chance to verify if that was the problem.

--
Daniel F. Dickinson:
"Time does not die; the circle is not round."
http://www.geocities.com/danielfdickinson/index.html
http://www.indigo.ca : bookstore
http://www.talkorigins.org : for origins of life archives
--
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: Broken package selection for a full install

2004-03-06 Thread Daniel F. Dickinson
Igor Pechtchanski wrote:


Daniel,

If you're willing to temporarily rename the existing installation root
(and the registry keys) and reinstall from scratch, please post the
/var/log/setup.log and /var/log/setup.log.full from an install session
that exhibits the above problem.  Note that /var/log/setup.log.full is
overwritten every time you run setup.  After the install, you can rename
the old directory back (and the registry keys, if you did something fancy
with mounts or options -- otherwise they should be identical).
I did that, but didn't get any errors.  Does setup store *any* 
information about package selections, and if so where?  I'd like to help 
with the debug, but it seems that since my manual package selection that 
made things work, that I can't replicate the error without removing all 
traces of my package selections.

Thanks,

Daniel

--
Daniel F. Dickinson:
"Time does not die; the circle is not round."
http://www.geocities.com/danielfdickinson/index.html
http://www.indigo.ca : bookstore
http://www.talkorigins.org : for origins of life archives
--
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: Broken package selection for a full install

2004-03-05 Thread Daniel F. Dickinson
Daniel F. Dickinson wrote:
I installed cygwin (version 1.5.7) using setup.exe.  I downloaded all 
the files locally, then cycled to "Install" rather than "Default" for 
selection "All".  A large number of post-install scripts produced the 
error dialog "A required .DLL file CYGPCRE.DLL is missing" and "A 
required .DLL file CYGKPATHSEA-3.DLL is missing".  A perusal of the 
mailing list in some recent messages gave me a clue:  It seems that 
setup (or dependencies in a lot packages) are broken, and the libraries 
required are not always selected (in this case libpcre and libkapthsea3).

I have fired up setup and opened up every branch, and discovered that 
there are actually quite a few packages that were not installed.  Either 
 cycling to "Install" in "All" is not what I thought (install 
everything), or setup is broken.  Well setup is broken anyway because, 
it should, at a minimum, install all dependencies.

Cheers,

Daniel
Erm, oh yeah, I'm running Windows 98 SE on a PII with 128 MB RAM.

Manually selection the packages not previously selected fixed thing. 
Now I have to go back and reinstall so that the postinstalls run - 
considering how much there is to the install I think I'll sleep while it 
install

Cheers,

Daniel

--
Daniel F. Dickinson:
"Time does not die; the circle is not round."
http://www.geocities.com/danielfdickinson/index.html
http://www.indigo.ca : bookstore
http://www.talkorigins.org : for origins of life archives
--
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/


Broken package selection for a full install

2004-03-05 Thread Daniel F. Dickinson
I installed cygwin (version 1.5.7) using setup.exe.  I downloaded all 
the files locally, then cycled to "Install" rather than "Default" for 
selection "All".  A large number of post-install scripts produced the 
error dialog "A required .DLL file CYGPCRE.DLL is missing" and "A 
required .DLL file CYGKPATHSEA-3.DLL is missing".  A perusal of the 
mailing list in some recent messages gave me a clue:  It seems that 
setup (or dependencies in a lot packages) are broken, and the libraries 
required are not always selected (in this case libpcre and libkapthsea3).

I have fired up setup and opened up every branch, and discovered that 
there are actually quite a few packages that were not installed.  Either 
 cycling to "Install" in "All" is not what I thought (install 
everything), or setup is broken.  Well setup is broken anyway because, 
it should, at a minimum, install all dependencies.

Cheers,

Daniel
--
Daniel F. Dickinson:
"Time does not die; the circle is not round."
http://www.geocities.com/danielfdickinson/index.html
http://www.indigo.ca : bookstore
http://www.talkorigins.org : for origins of life archives
--
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/


Bugs: perl-libwin32-0.191-1 (Win32::Pipe->Connect) and using perl-5.8.2 open() to open an existing Win32 named pipe

2004-02-24 Thread Rick F Nicholson
I am currently writing an application that uses win32 named pipes to
communicate. The random length records being sent dictated opening
a file handle to the named pipe on the client and then using read()
to access the record. After noticing that libwin32-0.191 had been ported
to cygwin, I tried  a perl named pipe server and client that I had written
for debugging the app on ActiveState Perl-5.8.2. I noticed the following:

Win32::Pipe-Connect() is either non-blocking, doesn't get passed the timeout
value when the pipe is created or has a very low timeout value. This could
also be an interpretation problem. The behavior I had expected was that when
no client is connected, the Win32::Pipe-Connect() would wait for a client
to connect until a timeout occurs. The behavior I got was that Win32::Pipe->
Connect() returns immediately with "True" if a client is connected and "False"
if one has not.

Perl open() on the client side doesn't seem to understand using UNC to open
an existing named pipe. For example if I do the following:
open(PIPE, "<", ".\\pipe\\my named pipe"); I get an error
message:  "Mount device busy."  After trying to use open() to connect to the
named pipe, No other connections are possible. It would appear that open
is interpreting ".\\pipe\\my named pipe" as a mount request.

A perl script illustrating the problem is attached. Vital statistics are:
Cygwin DLL version info:
DLL version: 1.5.7
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 109
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix: 
Build date: Fri Jan 30 19:32:04 EST 2004
CVS tag: cr-0x9e
Shared id: cygwin1S3

and

perl5.8.2-1
perl-libwin32   0.191-1

Thanks in advance


pipe_as_read_fh.pl
Description: Perl program
--
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/

Add "Why doesn't ^Z (Suspend) work?" to FAQ?

2004-01-26 Thread Richard F. Burleigh
Control-Z (^Z) had never worked to suspend simple commands
(less, du -a, etc.) in my default cygwin environment.
So I spent several hours searching the Cygwin FAQ, Google, and
Cygwin mailing lists before finding the solution.  All I needed was
to set the "CYGWIN" environment variable to "tty".  (I finally
found this in the "The CYGWIN environment variable" section
of the Cygwin User's Guide).
I'd like to spare others this waste of time.  Could this
question/solution be added to the Cygwin FAQ?
_
Learn how to choose, serve, and enjoy wine at Wine @ MSN. 
http://wine.msn.com/

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


Re: domain and user localname conflict

2004-01-25 Thread Ling F. Zhang
Hi:

Yes, I kind of did that already actually, I added a
"_AD" to all my account username. However this is what
I am getting when I open cygwin:

/usr/share/texmf/web2c/texmf.cnf: Permission denied
/usr/share/texmf/web2c/texmf.cnf: Permission denied
/usr/share/texmf/web2c/texmf.cnf: Permission denied
/usr/share/texmf/ls-R: Permission denied

[EMAIL PROTECTED] ~
$ 

This is the permission issue that's bugging me...

Thank you.
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Sat, 24 Jan 2004, Ling F. Zhang wrote:
> 
> > I did the following after I install cygwin in my
> laptop (WINXP PRO),
> > which has both local account and domain account
> with the same username
> > (for example, both have user "admin"). Looks like
> if I log into Windows
> > locally and then use cygwin, everything is fine.
> When I log into domain
> > however, I can't do anything because I don't have
> permission to do
> > anything.
> >
> > yes, I already ran:
> > mkpasswd -d -l > /etc/passwd
> > mkgroup -d -l > /etc/group
> >
> > Any idea?
> 
> Ling,
> 
> If you have two accounts with the same name in
> /etc/passwd, only the first
> one is found when looking up by name.  The way it is
> invoked from the
> standard scripts (and the way you ran it),
> "mkpasswd" will put the local
> accounts first, so, if you try to log in through,
> say, ssh into the local
> machine with the "admin" account (as in your
> example), Cygwin will find
> the local "admin" first, and check the password
> accordingly.
> 
> Fortunately, there is a solution.  Cygwin account
> names (those in
> /etc/passwd) don't have to correspond to Windows
> account names, as long as
> the SID (the long string of numbers and digits
> starting with "S-")
> matches.  So, you have two solutions: either move
> the local "admin" line
> down past the domain "admin" one (which will
> effectively "hide" it from
> look-ups by name) or rename it to something else
> (say, "local_admin") if
> you want to access it too.
>   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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



domain and user localname conflict

2004-01-24 Thread Ling F. Zhang
I did the following after I install cygwin in my
laptop (WINXP PRO), which has both local account and
domain account with the same username (for example,
both have user "admin"). Looks like if I log into
Windows locally and then use cygwin, everything is
fine. When I log into domain however, I can't do
anything because I don't have permission to do
anything.

yes, I already ran:
mkpasswd -d -l > /etc/passwd
mkgroup -d -l > /etc/group

Any idea?

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

--
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: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
I would like to report that I was finally able to
install cygwin with the following adjustments:

use different mirror:
I tried http://mirrors.kernel.org and
http://mirrors.rcn.net with the previous error, this
time I used
planetmirror.org

2) install everything but no source (After successful
installation, I ran setup again to install the source)

I have notice the following differences:
1) no more freezing (thankgod!)
2) in the 2 previous mirror, I get an msg warning me
about moving some folder/file out out to make way when
installing teTex, with the planetmirror, I didn't get
anything.
3) I have been using the two "problematic" mirrors for
long time and not so long ago installing cygwin to my
laptop (always have warning msg as stated in (2)
above). Maybe I should look more careful at MD5Sum for
each mirror...


--- Larry Hall <[EMAIL PROTECTED]> wrote:
> OK, try this:
> 
> set PATH=C:\cygwin\bin;%PATH%
> cygcheck -s -r -v 
> 
> If that gives you the same complaint, it's probably
> a 
> permissions problem.  Take a look at who has
> permission
> for the executables tweak them as necessary.
> 
> Larry
> 
> 
> At 04:31 PM 1/23/2004, Ling F. Zhang you wrote:
> >I cannot do cygchecks -s -r -v because of the
> >following error:
> >C:\cygwin\bin>cygcheck -s -r -v
> >
> >Cygwin Win95/NT Configuration Diagnostics
> >Current System Time: Fri Jan 23 13:30:04 2004
> >
> >Windows .NET Server Ver 5.2 Build 3790
> >
> >Path:   C:\WINDOWS\system32
> >C:\WINDOWS
> >C:\WINDOWS\System32\Wbem
> >`id' program not found
> >'C:\cygwin\bin\id.exe' is not recognized as an
> >internal or external comma
> >nd,
> >operable program or batch file.
> >
> >Output from C:\cygwin\bin\id.exe (nontsec)
> >
> >I guess it's due to my unability to complete the
> >installation...
> >
> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> At 12:51 PM 1/23/2004, Ling F. Zhang you wrote:
> >> >Hi:
> >> >
> >> >I will do that as soon as I get to my computer
> >> (later
> >> >this afternoon). I would like to also point out
> >> that I
> >> >tried the following:
> >> >
> >> >unselect Python during the package section phase
> >> >
> >> >result:
> >> >set freezes when trying to installed rcs (which
> is
> >> the
> >> >next package)
> >> 
> >> 
> >> OK.
> >> 
> >> 
> >> >I suspect that some windows service/process is
> >> >conflicting with cygwin, as I had similar
> freezing
> >> >problem long ago with Norton Anti-Virus
> Enterprise.
> >> >However this is a new installation on this
> computer
> >> >with win2k3 standard. The only software I got on
> it
> >> so
> >> >far are MS Office System 2k3.
> >> 
> >> 
> >> Right.  Virus software can be a problem in these 
> >> situations.  But if you haven't installed any,
> then
> >> this can't be a problem here. ;-)
> >> 
> >> 
> >> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> >> Hm.  Something's not right here.  Let's see if
> we
> >> >> can start with the 
> >> >> basics.  Can you invoke 
> >> >> 
> >> >>   : >> >> directory>\bin\cygcheck -s -r -v
> >> >> 
> >> >> If so, send the output *as an attachment* to
> the
> >> >> list.  That will give us
> >> >> some idea of the state you're in.
> >> >> 
> >> >> Larry
> >> >> 
> >> >> 
> >> >> At 03:57 AM 1/23/2004, Ling F. Zhang you
> wrote:
> >> >> >I can click "Cancel" but then it give me an
> err
> >> >> msg:
> >> >> >cannot open /usr/.../setup.log for writing
> >> >> >I checked writing permission to the folder
> and
> >> it
> >> >> >checks out. I used two different mirror
> >> >> >http://mirror.kernel.org
> >> >> >http://mirror.rcn.net
> >> >> >
> >> >> >and same thing
> >> >> >
> >> >> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> >> >> At 11:04 PM 1/22/2004, Ling F. Zhang you
> >> wrote:
> >> >> >> >I am doing a full installtion with all src
> >> >> >> selected,
>

Re: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
I cannot do cygchecks -s -r -v because of the
following error:
C:\cygwin\bin>cygcheck -s -r -v

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Jan 23 13:30:04 2004

Windows .NET Server Ver 5.2 Build 3790

Path:   C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
`id' program not found
'C:\cygwin\bin\id.exe' is not recognized as an
internal or external comma
nd,
operable program or batch file.

Output from C:\cygwin\bin\id.exe (nontsec)

I guess it's due to my unability to complete the
installation...

--- Larry Hall <[EMAIL PROTECTED]> wrote:
> At 12:51 PM 1/23/2004, Ling F. Zhang you wrote:
> >Hi:
> >
> >I will do that as soon as I get to my computer
> (later
> >this afternoon). I would like to also point out
> that I
> >tried the following:
> >
> >unselect Python during the package section phase
> >
> >result:
> >set freezes when trying to installed rcs (which is
> the
> >next package)
> 
> 
> OK.
> 
> 
> >I suspect that some windows service/process is
> >conflicting with cygwin, as I had similar freezing
> >problem long ago with Norton Anti-Virus Enterprise.
> >However this is a new installation on this computer
> >with win2k3 standard. The only software I got on it
> so
> >far are MS Office System 2k3.
> 
> 
> Right.  Virus software can be a problem in these 
> situations.  But if you haven't installed any, then
> this can't be a problem here. ;-)
> 
> 
> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> Hm.  Something's not right here.  Let's see if we
> >> can start with the 
> >> basics.  Can you invoke 
> >> 
> >>   : >> directory>\bin\cygcheck -s -r -v
> >> 
> >> If so, send the output *as an attachment* to the
> >> list.  That will give us
> >> some idea of the state you're in.
> >> 
> >> Larry
> >> 
> >> 
> >> At 03:57 AM 1/23/2004, Ling F. Zhang you wrote:
> >> >I can click "Cancel" but then it give me an err
> >> msg:
> >> >cannot open /usr/.../setup.log for writing
> >> >I checked writing permission to the folder and
> it
> >> >checks out. I used two different mirror
> >> >http://mirror.kernel.org
> >> >http://mirror.rcn.net
> >> >
> >> >and same thing
> >> >
> >> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> >> At 11:04 PM 1/22/2004, Ling F. Zhang you
> wrote:
> >> >> >I am doing a full installtion with all src
> >> >> selected,
> >> >> >and when it's installing
> >> >> >
> >> >> >Python-2.3.3-1
> >> >> >/usr/bin/idle
> >> >> >
> >> >> >The program uses 100% CPU, and doesn't do
> >> anything
> >> >> for
> >> >> >long time. I am using a p4 1.7G, 512 RDRAM,
> >> 120GB
> >> >> HDD
> >> >> >(lots of space remaining), WIN2K3
> >> Standard...anyone
> >> >> >has the same problem?
> >> >> 
> >> >> 
> >> >> Google may be able to help answer that
> question:
> >> >> 
> >> >>
> >>
>
>><http://www.google.com/search?q=setup++%22100%25+CPU%22+site:cygwin.com&hl=en&lr=&ie=UTF-8&oe=UTF-8&as_qdr=all&start=10&sa=N>
> >> >> 
> >> >> But I didn't have that problem and I have
> >> >> Python-2.3.3-1 installed.
> >> >> Maybe you just got a bad package/mirror.  Try
> >> >> checking the md5sum 
> >> >> of the python package to see if it's corrupt
> or
> >> >> something.
> >> >> 
> >> >> 
> >> >> --
> >> >> Larry Hall 
> >> >> http://www.rfk.com
> >> >> RFK Partners, Inc.  (508)
> >> >> 893-9779 - RFK Office
> >> >> 838 Washington Street   (508)
> >> >> 893-9889 - FAX
> >> >> Holliston, MA 01746 
> >> >> 
> >> >
> >> >
> >> >__
> >> >Do you Yahoo!?
> >> >Yahoo! SiteBuilder - Free web site building
> tool.
> >> Try it!
> >> >http://webhosting.yahoo.com/ps/sb/
> >> >
> >> >--
> >> >Unsubscribe info: 
> >> http://cygwin.com/ml/#unsubscribe-simple
> >> >Problem reports:  
> >> http://cygwin.com/problems.html
> >> >Documentation:
> http://cygwin.com/docs.html
> >> >FAQ:   http://cygwin.com/faq/
> >> 
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free web site building tool.
> Try it!
> >http://webhosting.yahoo.com/ps/sb/
> >
> >--
> >Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> >Problem reports:  
> http://cygwin.com/problems.html
> >Documentation: http://cygwin.com/docs.html
> >FAQ:   http://cygwin.com/faq/
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

--
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: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
Hi:

I will do that as soon as I get to my computer (later
this afternoon). I would like to also point out that I
tried the following:

unselect Python during the package section phase

result:
set freezes when trying to installed rcs (which is the
next package)

I suspect that some windows service/process is
conflicting with cygwin, as I had similar freezing
problem long ago with Norton Anti-Virus Enterprise.
However this is a new installation on this computer
with win2k3 standard. The only software I got on it so
far are MS Office System 2k3.

--- Larry Hall <[EMAIL PROTECTED]> wrote:
> Hm.  Something's not right here.  Let's see if we
> can start with the 
> basics.  Can you invoke 
> 
>   : directory>\bin\cygcheck -s -r -v
> 
> If so, send the output *as an attachment* to the
> list.  That will give us
> some idea of the state you're in.
> 
> Larry
> 
> 
> At 03:57 AM 1/23/2004, Ling F. Zhang you wrote:
> >I can click "Cancel" but then it give me an err
> msg:
> >cannot open /usr/.../setup.log for writing
> >I checked writing permission to the folder and it
> >checks out. I used two different mirror
> >http://mirror.kernel.org
> >http://mirror.rcn.net
> >
> >and same thing
> >
> >--- Larry Hall <[EMAIL PROTECTED]> wrote:
> >> At 11:04 PM 1/22/2004, Ling F. Zhang you wrote:
> >> >I am doing a full installtion with all src
> >> selected,
> >> >and when it's installing
> >> >
> >> >Python-2.3.3-1
> >> >/usr/bin/idle
> >> >
> >> >The program uses 100% CPU, and doesn't do
> anything
> >> for
> >> >long time. I am using a p4 1.7G, 512 RDRAM,
> 120GB
> >> HDD
> >> >(lots of space remaining), WIN2K3
> Standard...anyone
> >> >has the same problem?
> >> 
> >> 
> >> Google may be able to help answer that question:
> >> 
> >>
>
><http://www.google.com/search?q=setup++%22100%25+CPU%22+site:cygwin.com&hl=en&lr=&ie=UTF-8&oe=UTF-8&as_qdr=all&start=10&sa=N>
> >> 
> >> But I didn't have that problem and I have
> >> Python-2.3.3-1 installed.
> >> Maybe you just got a bad package/mirror.  Try
> >> checking the md5sum 
> >> of the python package to see if it's corrupt or
> >> something.
> >> 
> >> 
> >> --
> >> Larry Hall 
> >> http://www.rfk.com
> >> RFK Partners, Inc.  (508)
> >> 893-9779 - RFK Office
> >> 838 Washington Street   (508)
> >> 893-9889 - FAX
> >> Holliston, MA 01746 
> >> 
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free web site building tool.
> Try it!
> >http://webhosting.yahoo.com/ps/sb/
> >
> >--
> >Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> >Problem reports:  
> http://cygwin.com/problems.html
> >Documentation: http://cygwin.com/docs.html
> >FAQ:   http://cygwin.com/faq/
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

--
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: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
I can click "Cancel" but then it give me an err msg:
cannot open /usr/.../setup.log for writing
I checked writing permission to the folder and it
checks out. I used two different mirror
http://mirror.kernel.org
http://mirror.rcn.net

and same thing

--- Larry Hall <[EMAIL PROTECTED]> wrote:
> At 11:04 PM 1/22/2004, Ling F. Zhang you wrote:
> >I am doing a full installtion with all src
> selected,
> >and when it's installing
> >
> >Python-2.3.3-1
> >/usr/bin/idle
> >
> >The program uses 100% CPU, and doesn't do anything
> for
> >long time. I am using a p4 1.7G, 512 RDRAM, 120GB
> HDD
> >(lots of space remaining), WIN2K3 Standard...anyone
> >has the same problem?
> 
> 
> Google may be able to help answer that question:
> 
>
<http://www.google.com/search?q=setup++%22100%25+CPU%22+site:cygwin.com&hl=en&lr=&ie=UTF-8&oe=UTF-8&as_qdr=all&start=10&sa=N>
> 
> But I didn't have that problem and I have
> Python-2.3.3-1 installed.
> Maybe you just got a bad package/mirror.  Try
> checking the md5sum 
> of the python package to see if it's corrupt or
> something.
> 
> 
> --
> Larry Hall 
> http://www.rfk.com
> RFK Partners, Inc.  (508)
> 893-9779 - RFK Office
> 838 Washington Street   (508)
> 893-9889 - FAX
> Holliston, MA 01746 
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



installation freezes at /usr/bin/idle

2004-01-22 Thread Ling F. Zhang
I am doing a full installtion with all src selected,
and when it's installing

Python-2.3.3-1
/usr/bin/idle

The program uses 100% CPU, and doesn't do anything for
long time. I am using a p4 1.7G, 512 RDRAM, 120GB HDD
(lots of space remaining), WIN2K3 Standard...anyone
has the same problem?

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



strtosigno () from /usr/bin/cygwin1.dll

2003-12-19 Thread F K
I am developing a program on Cygwin.
(BI got "Segmentation fault (core dumped)."
(B
(B>./pa -f sonsi05.pit -r -l256
(BSegmentation fault (core dumped)
(B
(BI tried gdb like below.
(B
(B(gdb) run
(BStarting program: /cygdrive/c/root/rd/pa/pa.exe -f
(Bsonsi05.pit -r -l256
(B757   printf("raw_rcds[%d]/%d: %p\n", i, *num,
(Braw_rcds[i]); fflush(NULL);
(B(gdb) n
(Braw_rcds[2]/10: 0x0
(B758   raw_rcds[i] = (struct raw_rcd*)malloc(sizeof(struct
(Braw_rcd));
(B(gdb) n
(B
(BProgram received signal SIGSEGV, Segmentation fault.
(B0x6109372b in strtosigno () from /usr/bin/cygwin1.dll
(B
(B(gdb) backtrace
(B#0  0x6109372b in strtosigno () from /usr/bin/cygwin1.dll
(B#1  0x6103ec86 in malloc () from /usr/bin/cygwin1.dll
(B
(BDoes this mean cygwin problem?
(BOr my code has a problem?
(B
(BOther Information:
(B - It works fine on Solaris.
(B - I don't define malloc by myself. 
(B   I don't program any threads.
(B>uname -a
(BCYGWIN_NT-5.1 c0139ips 1.5.5(0.94/3/2) 2003-09-20 16:31
(Bi686 unknown unknown Cygwin
(B
(BThank you for any help.
(B
(B
(Bpsauxw
(B
(B
(B__
(BDo You Yahoo!?
(BYahoo! BB is Broadband by Yahoo!
(Bhttp://bb.yahoo.co.jp/
(B
(B
(B--
(BUnsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
(BProblem reports:   http://cygwin.com/problems.html
(BDocumentation: http://cygwin.com/docs.html
(BFAQ:   http://cygwin.com/faq/

getopt() musings

2003-11-21 Thread David F
First off, let me state the facts as I understand them:

Cygwin's libc provides an implementation of getopt() and getopt_long().

The implementation provided in Cygwin is derived from the NetBSD 
implementation of getopt_long() witch was in turn designed to be reasonably 
compatible with GNU getopt_long().

Cygwin does not use the (traditional) getopt() implementation provided with 
newlib.

getopt() is a POSIX standard.

getopt_long() is a GNU extension.

Both the GNU and NetBSD implementations of getopt_long() also provide a 
version of getopt() with additional features that are not a part of (and 
incompatible with) POSIX getopt(). One additional feature of particular 
interest is argument permutation. The POSIX definition of getopt() specifies 
that all options must appear before any non-option arguments and so any 
option-like argument (one that starts with '-')  appearing after a 
non-option argument will not be treated as an option. With argument 
permutation, on the other hand, getopt() dynamically reorders the elements 
of the argv array so as to place all options before any non-options. This 
behavior is incompatible with the POSIX definition of getopt() and no doubt 
breaks some programs that rely on the traditional/standard behavior. For 
this reason the extend versions of getopt() provide ways to disable argument 
permutation. One way is by setting the environment variable POSIXLY_CORRECT, 
another is by passing a special character at the beginning of the (short) 
option string.

Cygwin's implementation of getopt() and getopt_long() were modified to leave 
argument permutation disabled by default and only enabled when the 
environment variable POSIXLY_INCORRECT_GETOPT is defined.

Ok, those are the facts as I understand them, if I am wrong about anything I 
trust that I will be corrected with expeditious and forthright meanness. :)

Additionally, I make the following suppositions:

Argument permutation is desierable. Except, of course, when it breaks 
something.

It would be overly burdensome to explicitly enable/disable getopt() features 
on a case-by-case basis for getopt() using packages that are part of the 
Cygwin distribution.

And now for some discussion:

I am not familiar with all the details of the evolution of getopt_long(), 
but I assume that argument permutation was present and enabled by default 
fairly early. I therefore assume that programs using getopt_long() are 
either compatible with argument permutatuin or have explicitly disabled it.

So here's the idea: Leave argument permutation disabled by default for 
getopt() and enabled by default for getopt_long().

This is a win if only because many if not most GNU programs use 
getopt_long(), especially those in the coreutils package.

This would allow us the convenience of argument permutation for many 
programs while also maintaining standards compliance and compatibility. 
Right?

So it could work like this:

getopt() would have argument permutation disabled by default and only 
enabled when POSIXLY_INCORRECT_GETOPT is defined and it is not explicitly 
disabled by the calling code.

getopt_long() would have argument permutation enabled by default and 
disabled when POSIXLY_CORRECT is defined or it is explicitly disabled by the 
calling code.

Does any of this make sense?

(Note that I'm not asking anyone to implement this and I am familiar with 
the concept of "PTC". For now, I would just like to know what others think.)

Cheers

_
From the hottest toys to tips on keeping fit this winter, you’ll find a 
range of helpful holiday info here.  
http://special.msn.com/network/happyholidays.armx

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


Antwort: Re: compile gtk2 applications on cygwin?

2003-08-14 Thread f . parzefall
Hi,

>The patches there include gtk+ and glib and related base packages.
yeah but it's gtk2.2.1 and I need 2.2.2

Think I'll have to go for a copletely new cygwin installation.
Can anyone point me to a server that carries the complete range
of packages?
The two I tried out even lacked things like tar.  :-(
Or am I just to stupid to use this strange setup?

Thanks,
Franz
---
Franz Parzefall
Vision Systems

Multitest elektronische Systeme GmbH
Aeussere Oberaustr. 4
83026 Rosenheim
Germany
Tel:   +49 (0)8031 406 473
Fax:   +49 (0)8031 406 420
Email: [EMAIL PROTECTED]
Web:   www.multitest.de
---


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



compile gtk2 applications on cygwin?

2003-08-14 Thread f . parzefall
Hi,
is there anyone out there who has successfully compiled a glade-2 or gtk2 
application on windows under the cygwin package?
I had some hard days until it went through autogen and make (mainly 
because
I did have all the things I needed) but it now copiles ok.

But when I try to start my program I get the message:

   (process:263): Gdk-WARNING **: locale not supported by C library

   (process:263): Gdk-WARNING **: locale not supported by Xlib

   (process:263): Gdk-WARNING **: can not set locale modifiers

   Gtk-ERROR **: Incompatible build!
   The code using GTK+ thinks GtkBox is of different
   size than it actually is in this build of GTK+.
   On Windows, this probably means that you have compiled
   your code with gcc without the -fnative-struct
   (or -mms-bitfields) switch, or that you are using
   an unsupported compiler.
   aborting...
   Aborted (core dumped)

I tried gcc2 with -fnative-struct and gcc3 with -mms-bitfields but it's 
all the same.

Anyone a clue? Seems that I got definitely stuck here.

Thanks for any input
Franz
---
Franz Parzefall
Vision Systems

Multitest elektronische Systeme GmbH
Aeussere Oberaustr. 4
83026 Rosenheim
Germany
Tel:   +49 (0)8031 406 473
Fax:   +49 (0)8031 406 420
Email: [EMAIL PROTECTED]
Web:   www.multitest.de
---


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



Re: compile gtk2 applications on cygwin?

2003-08-14 Thread f . parzefall
Hi, Gerrit,
thanks for answering that fast.

>There are some gnome2 patches available, there is xlocale used where
>it is needed, see here for a starting point:
>http://cygnome2.sourceforge.net/test-patches/

I don't think that I need gnome at all because I built the program 
in glade as a gtk-project not a gnome-project. But I admit that I 
never testet on a completely gnomefree linux box.

So far I tried with your gtk build (at least I found some message of 
you stating that this is from you) from http://anfaenger.de/cygwin/gtk+/. 
Mainly because I need the newest gtk version because the olders have 
a bug in the treeview-widget. I suppose you have succesfully compiled 
and run applications on it. Do you have any 'hello world'-like 
test-projects
around? Maybe it's just my installation that is broken.

If possible I'd like to stay out of compiling the whole gtk stuff.

Thanks,
Franz
---
Franz Parzefall
Vision Systems

Multitest elektronische Systeme GmbH
Aeussere Oberaustr. 4
83026 Rosenheim
Germany
Tel:   +49 (0)8031 406 473
Fax:   +49 (0)8031 406 420
Email: [EMAIL PROTECTED]
Web:   www.multitest.de
---


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



login shell and .bashrc

2003-08-02 Thread Ling F. Zhang
I still don't quite understand the different b/t bash
and bash --loginbut I know the latter is why my
.bashrc does not run when I run cygwin using this
batch file:
==
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET
PATH=%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%;.

REM I use exceed as my xserver:
start /D"C:\Program
Files\Hummingbird\Connectivity\8.00\Exceed\" exceed

run xterm -sb -bg rgb:20/20/20 -fg rgb:ff/ff/00
-geometry 90x65 -T 'X-Terminal' -e /usr/bin/bash
--login -i
=

is the --login option even necessary? I simply put it
there for the sake of keeping it consistent with
cygwin.bat anyway...

thank you

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Problem including MinGW's float.h

2003-07-09 Thread Stuart F. Downing
Igor Pechtchanski <[EMAIL PROTECTED]> writes:

> Stuart,
> 
> > ignoring nonexistent directory "/usr/local/include/mingw/mingw"
> > ignoring nonexistent directory "/usr/i686-pc-mingw32/include/usr/include/mingw"
> > [snip]
> >  /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
> 
> It most likely is -- gcc seems to be using the wrong directories.  Did you
> install the gcc-mingw and the mingw-runtime packages?  

Yes.

> Try [re]installing both.

I reinstalled gcc, gcc-mingw, and mingw-runtime after which there is
no change in the symptom.

> If you'd attached the output of "cygcheck -svr", as requested in
> , it would have shown the list of
> all installed packages and confirmed or denied the above guess.

My sincerest newbie apologies. The output is in my previous reply.

Sorry for multiple posts, but for some reason previous post only
contained the attachment.
-- 
Stuart Downing


--
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: Problem including MinGW's float.h

2003-07-09 Thread Stuart F. Downing


cygcheck.out
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/

Problem including MinGW's float.h

2003-07-09 Thread Stuart F. Downing
I'm trying to compile code that calls _controlfp which is declared in
/usr/include/mingw/float.h, but when I include float.h, gcc doesn't
find the mingw float.h first, it finds the gcc header first.

Here is the code


#include 

int main()
{
unsigned int uiFPControl;
unsigned int uiFPNewControl;

uiFPControl = _controlfp( 0 , 0 );
uiFPControl |= _EM_ZERODIVIDE;
uiFPNewControl =  _controlfp( uiFPControl , _MCW_EM );
}


gcc -v -mno-cygwin -c foo.c

produces this...


Reading specs from /usr/lib/gcc-lib/i686-pc-mingw32/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java 
--enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls 
--without-included-gettext --enable-interpreter --disable-sjlj-exceptions 
--disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux 
--host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr 
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib 
--includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
 /usr/lib/gcc-lib/i686-pc-mingw32/3.2/cc1.exe -lang-c -v -D__GNUC__=3 
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -D_X86_=1 
-Asystem=winnt -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 
-D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__ 
-D__tune_pentium3__ -D__stdcall=__attribute__((__stdcall__)) 
-D__fastcall=__attribute__((__fastcall__)) -D__cdecl=__attribute__((__cdecl__)) 
-D_stdcall=__attribute__((__stdcall__)) -D_fastcall=__attribute__((__fastcall__)) 
-D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ 
-D__i386 -D__MSVCRT__ -D__MINGW32__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -DWINNT 
-isystem /usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../include/w32api -isystem 
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/../../include/w32api
 foo.c -quiet -dumpbase foo.c -mno-cygwin -version -o 
/cygdrive/c/DOCUME~1/sdowning/LOCALS~1/Temp/cc3uqCbc.s
GNU CPP version 3.2 20020927 (prerelease) (cpplib) (80386, BSD syntax)
GNU C version 3.2 20020927 (prerelease) (i686-pc-cygwin)
compiled by GNU C version 3.2 20020927 (prerelease).
ignoring nonexistent directory "/usr/local/include/mingw/mingw"
ignoring nonexistent directory "/usr/i686-pc-mingw32/include/usr/include/mingw"
ignoring duplicate directory "/usr/i686-pc-mingw32/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/w32api
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
 /usr/include/mingw
End of search list.
foo.c: In function `main':
foo.c:9: `_EM_ZERODIVIDE' undeclared (first use in this function)
foo.c:9: (Each undeclared identifier is reported only once
foo.c:9: for each function it appears in.)
foo.c:10: `_MCW_EM' undeclared (first use in this function)


gcc -E -mno-cygwin foo.c

produces 


# 1 "foo.c"
# 1 ""
# 1 ""
# 1 "foo.c"
# 1 "/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/float.h" 1 3
# 2 "foo.c" 2

int main()
{
unsigned int uiFPControl;
unsigned int uiFPNewControl;

uiFPControl = _controlfp( 0 , 0 );
uiFPControl |= _EM_ZERODIVIDE;
uiFPNewControl = _controlfp( uiFPControl , _MCW_EM );
}


Clearly from the include order in the -v output and -E output, the
compiler is not finding the mingw float.h first.  Looking at float.h,
it #include_next's float.h, so clearly it is designed to supercede the
system header.

I'm able to work around this by explicitly adding -I/usr/include/mingw
to the command line, but this produces an ugly warning message...

cc1: warning: changing search order for system directory "/usr/include/mingw"
cc1: warning:   as it has already been specified as a non-system directory

I'm using the 1.3.22-1 cygwin setup/install and installed both gcc
3.2-3 and gcc-mingw.

Is this an installation problem?
-- 
Stuart Downing
sdowning at sign fame dot goes here com



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



posix and win32 enviornment

2003-07-02 Thread Ling F. Zhang
I am writting a C program...
is there a way for me to know if the program is being
executed in win32 or posix cygwin so that I can use
the appropriate filesystem when referring files?

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-24 Thread Ling F. Zhang
well, i still got the same error from the win32
apache...
forget it, i am switch to apache on cygwin...write
some script using perl and shell...maybe later, i will
just rewrite them in c and put them in nice
executables for the windows server...

--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> Matthew,
> 
> FYI, I've been able to associate the following with
> the .pl extension (in
> Explorer) and have it work:
> 
> c:\cygwin\bin\bash.exe -c '"`/bin/cygpath -u "%1"`"'
> 
> There was no need for extra batch files or anything
> else.  The above also
> worked when the path contained spaces, but I haven't
> tested it
> extensively.
> 
> As for the apache problem, try adding "." to the
> PATH (e.g., use
> 
> c:\cygwin\bin\bash.exe -c 'PATH="$PATH:."
> "`/bin/cygpath -u "%1"`"'
> 
> or something like that - again, beware of spaces). 
> You might also want to
> pass the -x flag to bash...
>   Igor
> 
> On Mon, 23 Jun 2003, Ling F. Zhang wrote:
> 
> > Just based on what I have learned so far...I
> figure
> > out a more geniune way of how this works:
> > in cygwin, I made a shell script quo that goes
> like:
> > #!/usr/bin/bash
> > # this program takes user input (STDIN) and put a
> > quote around it...
> > # why do I have to do this? well, I can't figure
> out a
> > way in dos batch that would do the same...since
> using
> > echo autometically adds a "\n" at the end...
> > printf "\"";
> > while read LINE
> > do
> >   printf "$LINE";
> > done
> > printf "\"";
> >
> > and I wrote something called "bashwin.bat" that
> goes
> > like:
> >
> > @echo off
> > REM this program is used so that executable in
> cygwin
> > written in shell or perl or whatever, can be
> executed
> > in Windows command
> > REM just associate this file in explorer with
> whatever
> > you want to run (e.g. .pl, .sh)
> > cygpath -u %1 | bash -c "quo" > tmp
> > bash --loging < tmp
> > del tmp
> >
> > so now, at command prompt, I can type printenv.pl
> or
> > test.sh and they will executeas if they were
> in
> > cygwin, with POSIX path of course...
> >
> > the problem is, they still won't work as cgi
> script...
> > I got a 500 error (or 500 somthing..) and apache
> > error.log (apache 2.x for win32) reads like:
> > [Mon Jun 23 03:41:45 2003] [error] [client
> 127.0.0.1]
> > (720003)The system cannot find the path specified.
>  :
> > couldn't create child process: 720003: printenv.pl
> > [Mon Jun 23 03:41:45 2003] [error] [client
> 127.0.0.1]
> > (720003)The system cannot find the path specified.
>  :
> > couldn't spawn child process: C:/Program
> Files/Apache
> > Group/Apache2/cgi-bin/printenv.pl
> > [Mon Jun 23 03:43:31 2003] [error] [client
> 127.0.0.1]
> > (720003)The system cannot find the path specified.
>  :
> > couldn't create child process: 720003: test.sh
> > [Mon Jun 23 03:43:31 2003] [error] [client
> 127.0.0.1]
> > (720003)The system cannot find the path specified.
>  :
> > couldn't spawn child process: C:/Program
> Files/Apache
> > Group/Apache2/cgi-bin/test.sh
> >
> > now...that I think has to do with the mixed up of
> > windows path and cygwin path...anyone can figure
> out
> > how to do this?
> 
> -- 
>   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-23 Thread Ling F. Zhang
Just based on what I have learned so far...I figure
out a more geniune way of how this works:
in cygwin, I made a shell script quo that goes like:
#!/usr/bin/bash
# this program takes user input (STDIN) and put a
quote around it...
# why do I have to do this? well, I can't figure out a
way in dos batch that would do the same...since using
echo autometically adds a "\n" at the end...
printf "\"";
while read LINE
do
  printf "$LINE";
done
printf "\"";

and I wrote something called "bashwin.bat" that goes
like:

@echo off
REM this program is used so that executable in cygwin
written in shell or perl or whatever, can be executed
in Windows command
REM just associate this file in explorer with whatever
you want to run (e.g. .pl, .sh)
cygpath -u %1 | bash -c "quo" > tmp
bash --loging < tmp
del tmp

so now, at command prompt, I can type printenv.pl or
test.sh and they will executeas if they were in
cygwin, with POSIX path of course...

the problem is, they still won't work as cgi script...
I got a 500 error (or 500 somthing..) and apache
error.log (apache 2.x for win32) reads like:
[Mon Jun 23 03:41:45 2003] [error] [client 127.0.0.1]
(720003)The system cannot find the path specified.  :
couldn't create child process: 720003: printenv.pl
[Mon Jun 23 03:41:45 2003] [error] [client 127.0.0.1]
(720003)The system cannot find the path specified.  :
couldn't spawn child process: C:/Program Files/Apache
Group/Apache2/cgi-bin/printenv.pl
[Mon Jun 23 03:43:31 2003] [error] [client 127.0.0.1]
(720003)The system cannot find the path specified.  :
couldn't create child process: 720003: test.sh
[Mon Jun 23 03:43:31 2003] [error] [client 127.0.0.1]
(720003)The system cannot find the path specified.  :
couldn't spawn child process: C:/Program Files/Apache
Group/Apache2/cgi-bin/test.sh

now...that I think has to do with the mixed up of
windows path and cygwin path...anyone can figure out
how to do this?

--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> Matthew (Ling?),
> 
> In your case 1, it looks like you ran that command
> from bash.  It's pretty
> obvious why it didn't work - bash needs POSIX paths.
>  You had unquoted
> spaces, which bash interpreted as argument
> separators, and it also
> interpreted backslashes as escapes.  You should have
> run that command from
> a cmd prompt.
> 
> I also warned you that the name of the script will
> be passed in Win32
> form, and you'd need to use cygpath to convert it to
> POSIX.  The file that
> worked for me (I actually created one that works
> this time) was:
> 
> @echo off
> c:\cygwin\bin\bash.exe --login -c "/usr/bin/perl
> `/bin/cygpath -u '%1'`"
> 
> You can add similar conversions for %2..%9, but I
> don't think they're
> necessary in your particular case (i.e., a file
> handler for the .pl
> extension).  You may not need the "--login" - try
> running without it, that
> will keep you in the same directory.  Oh, and the
> '#!' line would be
> ignored in this case, and the dispatch will be done
> by Windows Explorer
> based solely on the .pl extension.
> 
> As for case 2, you might have to play similar games,
> but in the
> association mechanism.  Something like
> 
> c:\cygwin\bin\bash.exe -c "`cygpath -u '%s'`"
> 
> (I don't have the exact incantation, you may need to
> read up on the
> Windows Explorer mechanism for this).
> 
> Case 3 is actually a subcase of 1 - simply associate
> the .pl file with
> perl.bat, and you should be able to run it (as long
> as perl.bat is
> correct).  You might wish to keep the "@echo off"
> out of the .bat file
> while you're debugging it, to know exactly what
> parameters bash gets.
>   Igor
> 
> On Sun, 22 Jun 2003, Ling F. Zhang wrote:
> 
> > okay, a summary of what I am doing:
> > case 1:
> > c:\cygwin\bin\perl.bat reads:
> >
> > @echo off
> > c:\cygwin\bin\bash --login -c "/usr/bin/perl %1 %2
> %3 %4 %5 %6 %7 %8 %9"
> >
> > associating the .pl file with
> > c:\cygwin\bin\perl.bat %1
> >
> > and the perl file begins with:
> > #!/usr/bin/perl
> >
> > one command line, I ran:
> > c:\program files\apache
> group\apache2\cgi-bin\printenv.pl
> > and get the error:
> > Files\Apache: line 1: C:Program: command not found
> > OKAY, this looks like caused by the different b/t
> > winFS and POSIXsince Igor said he was
> successful
> > in this mode, can you point out what's the
> problem?
> >
> > case 2:
> > associating .pl file with
> > c:\cygwin\bin\bash -c %1
> > and the file begin

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
Hi:
> In your case 1, it looks like you ran that command
> from bash.
No, I ran it from WINXP command prompt

>It's pretty
> obvious why it didn't work - bash needs POSIX paths.
>  You had unquoted
> spaces, which bash interpreted as argument
> separators, and it also
> interpreted backslashes as escapes.  You should have
> run that command from
> a cmd prompt.
> 
> I also warned you that the name of the script will
> be passed in Win32
> form, and you'd need to use cygpath to convert it to
> POSIX.  The file that
> worked for me (I actually created one that works
> this time) was:
> 
> @echo off
> c:\cygwin\bin\bash.exe --login -c "/usr/bin/perl
> `/bin/cygpath -u '%1'`"
what does this ` character do? just curious, maybe I
should read the POSIX manual

> You can add similar conversions for %2..%9, but I
> don't think they're
> necessary in your particular case (i.e., a file
> handler for the .pl
> extension).  You may not need the "--login" - try
> running without it, that
> will keep you in the same directory.  Oh, and the
> '#!' line would be
> ignored in this case, and the dispatch will be done
> by Windows Explorer
> based solely on the .pl extension.
> 
> As for case 2, you might have to play similar games,
> but in the
> association mechanism.  Something like
> 
> c:\cygwin\bin\bash.exe -c "`cygpath -u '%s'`"
> 
> (I don't have the exact incantation, you may need to
> read up on the
> Windows Explorer mechanism for this).
another curious question...what's %s?

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
I finally figured out the problem...
I ran the service a user1...so it created a file
/var/log/httpd.log under user1...
I chaged the user (from root to SYSTEM) and the new
guy can't open the file...

thanx

--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> 
> > I try to use the apache binary on cygwin, to
> install
> > it as a service I run:
> > cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u
> root
> >
> > it worked last night...I woke up today,
> > remove/reinstall the service few times, and now it
> > wouldn't start...given me the message:
> >
> > cygrunsrv: Error starting a service:
> > QueryServiceStatus:  Win32 error 1062:
> > The service has not been started.
> >
> > any hints?
> 
> Ling,
> 
> Is there anything in the Windows event log or in
> /var/log/httpd.log?
>   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
Hi:

/var/logs/cygwin_apache.log is empty
and the event log has nothing either...
what is interesting is that search the web for this
problem yield that some peole has the problem with
sshd due a access privilege to the \cygwin,
\cygwin\var, \cygwin\var\log...but my sshd is runnin'
just fine...so that kind of run out the privilege
problem because I use the same user
"SYSTEM:Administrators" for both!

any more hints?

thanx
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> 
> > I try to use the apache binary on cygwin, to
> install
> > it as a service I run:
> > cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u
> root
> >
> > it worked last night...I woke up today,
> > remove/reinstall the service few times, and now it
> > wouldn't start...given me the message:
> >
> > cygrunsrv: Error starting a service:
> > QueryServiceStatus:  Win32 error 1062:
> > The service has not been started.
> >
> > any hints?
> 
> Ling,
> 
> Is there anything in the Windows event log or in
> /var/log/httpd.log?
>   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
okay, a summary of what I am doing:
case 1:
c:\cygwin\bin\perl.bat reads:

@echo off
c:\cygwin\bin\bash --login -c "/usr/bin/perl %1 %2 %3
%4 %5 %6 %7 %8 %9"

associating the .pl file with
c:\cygwin\bin\perl.bat %1

and the perl file begins with:
#!/usr/bin/perl

one command line, I ran:
c:\program files\apache
group\apache2\cgi-bin\printenv.pl
and get the error:
Files\Apache: line 1: C:Program: command not found
OKAY, this looks like caused by the different b/t
winFS and POSIXsince Igor said he was successful
in this mode, can you point out what's the problem?

case 2:
associating .pl file with
c:\cygwin\bin\bash -c %1
and the file begins with
#!/usr/bin/perl
I get the same error as case 1...

case 3:
the only way I can now run the .pl file from command
line is:
c:\path with space\\cygwin\bin\bash -c printenv.pl

but what I really want is:
to run .pl file like normal in windows command prompt:
i.e. c:\path with space\printenv.pl
WITHOUT using a native windows perl interpretor (like
ActivePerl)
if this is not possible, at least I should be able to
run it as a cgi-script...

thanx for all your help so far igor...I am just a
little slow on this right now...

--Matthew Ling F. Zhang


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
Hi again:

> you might be missing the login environment, so you
> might wish to create a
> perl.bat file that does a "c:\cygwin\bin\bash
> --login /usr/bin/perl %1 %2
> %3 %4 %5 %6 %7 %8 %9" and use that instead (beware
> of directory changes).
when I run this in cygwin:
bash --login perl, I get the error:
/usr/bin/perl: No such file or directory
simiarly if I run the perl.bat as your suggested, I
get similar error claiming that /usr/bin/perl is not
found...okay, I am confused here...

> Alternatively, if you want to use the #! line, you
> could associate .pl
> files with "c:\cygwin\bin\bash -c"
so I did...and (in DOS) I try this:
\cygwin\bin\bash -c printenv.pl
/usr/bin/perl: line 1: printenv.pl: command not found
(my first line is the usual "#!/usr/bin/perl")

you told me to be aware of path changes in the two
system...now I am confused...which one should I use?

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang

> Alternatively, if you want to use the #! line, you
> could associate .pl
> files with "c:\cygwin\bin\bash -c"...
what is -c? if I use this option, should it be:
#!/usr/bin/perl?
or
#!c:\cygwin\usr\bin\perl?
my guess is the former, since we are already
interpreting the file with bash...

>  In the end,
> it might be less
> trouble to just run Cygwin apache.
yeah, but I got other issue with it...

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
Let me re-cap what you just said:
create a perl.bat with line:
"c:\cygwin\bin\bash --login /usr/bin/perl %1 %2 %3 %4
%5 %6 %7 %8 %9"

which will work as my perl interpreter...
and associate my .pl files with this perl.bat

if I want to use shell script as well, then I suppose
I would need to associate my .sh files with
c:\cygwin\bin\bash --login...is this correct???

so when I do my programming, I should keep in mind
that I only have the cygwin filesystem to access
right?
so if I want to point to a file /home/admin/foo, I
would use /home/admin/foo, and not
c:\cygwin\home\admin\foo.  Is this correct???

> Ling,
> 
> Well, technically, you'll have to do a bit more than
> that.  First off, the
> #![1] line will not be recognized by Windows.  Thus,
> you'll need to
> associate the .pl extension *in Windows Explorer*
> with whatever perl
> interpreter you have (I'd guess
> "C:\cygwin\bin\perl.exe"[2]).  Secondly,
> you might be missing the login environment, so you
> might wish to create a
> perl.bat file that does a "c:\cygwin\bin\bash
> --login /usr/bin/perl %1 %2
> %3 %4 %5 %6 %7 %8 %9" and use that instead (beware
> of directory changes).
> Alternatively, if you want to use the #! line, you
> could associate .pl
> files with "c:\cygwin\bin\bash -c"...  In the end,
> it might be less
> trouble to just run Cygwin apache.
>   Igor
> [1] You missed the "!" in your examples... ;-)
> [2] /usr/bin is a mount, and thus is not visible to
> non-Cygwin programs.
> C:\cygwin\usr\bin should be empty.
> 
> On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> 
> > okay! the question is this then: say I write a
> perl script...
> > should the first line be
> > #/usr/bin/perl
> > or
> > #C:\cygwin\usr\bin\perl ?
> >
> > thank you
> >
> > --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> > > On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> > >
> > > > I successfully ran both the cygwin apache
> (1.3x) and
> > > > windows native one (2.x).  So I need to chose
> one to
> > > > run (as they wouldn't share port 80)...sine I
> usually
> > > > do my cgi in perl and shell-script, cygwin is
> the
> > > > clear choice...but I do miss such feature as
> WebDAV in
> > > > the version 2 (I didn't feel like recompiling
> apache
> > > > on cygwin just to mess things up).  So, here's
> the
> > > > question, is it possible for windows to use
> cygwin
> > > > developement tools? as in, can I use the
> cygwin perl
> > > > interpretor to interpret my perl script if the
> apache
> > > > is the windows native one?
> > >
> > > Ling,
> > >
> > > Yes, it's theoretically possible, as long as the
> Cygwin /bin directory
> > > is in the path.  There may be some peculiarities
> specific to your
> > > system that you'd have to solve (in particular,
> all the scripts will
> > > get Win32 paths as parameters, rather than
> Cygwin POSIX paths), but
> > > there's nothing major that prevents you from
> doing this.
> > >   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
no, /var/log/CYGWIN_apache is empty
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> 
> > I try to use the apache binary on cygwin, to
> install
> > it as a service I run:
> > cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u
> root
> >
> > it worked last night...I woke up today,
> > remove/reinstall the service few times, and now it
> > wouldn't start...given me the message:
> >
> > cygrunsrv: Error starting a service:
> > QueryServiceStatus:  Win32 error 1062:
> > The service has not been started.
> >
> > any hints?
> 
> Ling,
> 
> Is there anything in the Windows event log or in
> /var/log/httpd.log?
>   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



cygrunsrv won't start apache

2003-06-21 Thread Ling F. Zhang
I try to use the apache binary on cygwin, to install
it as a service I run:
cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u root

it worked last night...I woke up today,
remove/reinstall the service few times, and now it
wouldn't start...given me the message:

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

any hints?


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: cygwin and the rest of the Windows

2003-06-21 Thread Ling F. Zhang
okay! the question is this then: say I write a perl
script...
should the first line be
#/usr/bin/perl
or
#C:\cygwin\usr\bin\perl ?

thank you
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Sat, 21 Jun 2003, Ling F. Zhang wrote:
> 
> > I successfully ran both the cygwin apache (1.3x)
> and
> > windows native one (2.x).  So I need to chose one
> to
> > run (as they wouldn't share port 80)...sine I
> usually
> > do my cgi in perl and shell-script, cygwin is the
> > clear choice...but I do miss such feature as
> WebDAV in
> > the version 2 (I didn't feel like recompiling
> apache
> > on cygwin just to mess things up).  So, here's the
> > question, is it possible for windows to use cygwin
> > developement tools? as in, can I use the cygwin
> perl
> > interpretor to interpret my perl script if the
> apache
> > is the windows native one?
> 
> Ling,
> 
> Yes, it's theoretically possible, as long as the
> Cygwin /bin directory is
> in the path.  There may be some peculiarities
> specific to your system that
> you'd have to solve (in particular, all the scripts
> will get Win32 paths
> as parameters, rather than Cygwin POSIX paths), but
> there's nothing major
> that prevents you from doing this.
>   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
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



cygwin and the rest of the Windows

2003-06-21 Thread Ling F. Zhang
I successfully ran both the cygwin apache (1.3x) and
windows native one (2.x).  So I need to chose one to
run (as they wouldn't share port 80)...sine I usually
do my cgi in perl and shell-script, cygwin is the
clear choice...but I do miss such feature as WebDAV in
the version 2 (I didn't feel like recompiling apache
on cygwin just to mess things up).  So, here's the
question, is it possible for windows to use cygwin
developement tools? as in, can I use the cygwin perl
interpretor to interpret my perl script if the apache
is the windows native one?

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Mozilla vis-à-vis Cygwin

2003-06-17 Thread Michael F. March
I posted the same thing last month and no one seems to care.

http://www.cygwin.com/ml/cygwin/2003-05/msg00599.html

Hi,

A while back there was some talk about the feasibility of a Cygwin-based 
Mozilla. In perusing the release notes for Mozilla 1.4 
(<http://www.mozilla.org/releases/mozilla1.4rc1/>) I noticed this:

- As of Mozilla 1.4b, it is possible to build Mozilla for Win32 using 
GCC. See the win32 build instructions 
(<http://www.mozilla.org/build/win32.html>) for details.

Perhaps this represents a meaningful portion of a the porting work 
necessary to create a GCC- / Cygwin- / X-based Mozilla variant.



--



Michael F. March - [EMAIL PROTECTED]
Ph: (415)462-1910  Fax: (602)296-0400
P.O. Box 2254  Phoenix, AZ 85002-2254
  "Seriously" - HSR
--
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: Mozilla vis-à-vis Cygwin

2003-06-17 Thread Michael F. March
Larry Hall wrote:
> Michael F. March wrote:
>
>> I posted the same thing last month and no one seems to care.
>>
>> http://www.cygwin.com/ml/cygwin/2003-05/msg00599.html
>>
>
> Define 'care'.  I personally find this interesting.  However, I
> felt no burning need to share my sentiments on the subject with
> the list (previously).  If you were expecting a deluge of email
> in response to your posting, that just goes to show you that others
> won't always respond the way you expect.  I took your posting as
> FYI, which in and of itself a good thing.  If you're trying to
> encourage further (vocal) interest in this, perhaps you should
> try announcing your intent to build and package such a beast.
I apologize for the negative tone in my last post..

Anyway.. I guess what I expected from my May 10th "FYI" was at least
a private email or two from people who would be interested on working
such a project. From now on I will try to be more clear.
--


Michael F. March - [EMAIL PROTECTED]
Ph: (415)462-1910  Fax: (602)296-0400
P.O. Box 2254  Phoenix, AZ 85002-2254
  "Seriously" - HSR
--
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: Mozilla 1.3 built on cygwin?

2003-03-26 Thread Michael F. March
>
> OK. Whatever those are.
>
> I'm guessing the MS in MSFT is Microsoft. I don't know what the FT 
part is.

Stock symbol.. sorry.

> Building from Cygwin while targeting native Windows APIs would
> presumably be feasible using MinGW and / or "-mno-cygwin", but the
> result would presumably function just as Mozilla compiled with Visual
> Studio.
>
>
>> 2. Having a complex GUI app like Mozilla ported to Cygwin could
>> prove to be a stick in which to measure and compare the over
>> all efficiency and performance of Cygwin. If the "native"
>> Mozilla and the Cygwin version performed reasonably the same,
>> then we would know that Cygwin is on track. If the Cygwin
>> version lagged, it would set concrete goals for the
>> Cygwin/XFree team.
>
>
> That's not going to happen any time soon. XFree86/Cygwin has no graphics
> acceleration. Apart from that, little if anything runs as fast through
> Cygwin as it does on the Win32 API even if GUI operation is ignored or
> irrelevant.
>
> I don't mean this as a criticism, but just a fact. I imagine the biggest
> win would be by getting some graphics acceleration in XFree86.
Performance was just an example.

The big issue, I guess, is just seeing what is broke. If Mozilla builds
and runs super slow, that is still a big win..
Off the top of anyone's head, is there any major reason why it should not
build?
Functionality, it seems, has been the priority over speed in Cygwin
land. So just making Mozilla function under Cygwin would be a good
thing..
Having Mozilla itself running under Cygwin might not be useful
to a lot of people but the fixes that Cygwin might have to go
through to make this happen could pave the way for other X apps
that come later.
<>

>> Finally.. Every major porting effort that Cygwin goes to does not
>> kill or hurt Cygwin, it makes it stronger and more functional.
>
>
> Unquantifiable.
>
> It's clear that bringing otherwise unavailable software to Windows via
> Cygwin is an unqualified win.
>
> However, doing so for software already available on Windows, especially
> when it's not software that integrates with other Cygwin components,
> adds rather less. Take Perl, for example. There's a native Windows port
> and a Cygwin port. But Cygwin Perl is still a win because any Perl
> program can be run in a context of close interaction (pipelines,
> scripts, uniform pathname treatment, etc.) with other Cygwin programs.
>
>  From this perspective, I'd say Cygwin Mozilla would be a rather small
> win. GUI-intensive, non-scriptable applications for X (which does not
> itself run unless the Windows GUI system is running beneath it) add
> rather little when those applications are already available as native
> Windows programs.
This might be a poor example but the reason I would, at least, like
to try Mozilla under Cygwin is the same reason I use Emacs and
Apache under Cygwin. The native versions might perform better but
I like the integration of the Cygwin ports.
Anyway, I am going to try it this weekend. Lets hope for the best.

--



Michael F. March - [EMAIL PROTECTED]
Ph: (602)410-1780  Fax: (602)296-0400
P.O. Box 2254  Phoenix, AZ 85002-2254
  "Seriously" - HSR
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Mozilla 1.3 built on cygwin?

2003-03-26 Thread Michael F. March
Jeff,

Just outta' curiosity, beyond the satisfaction of accomplishing it, 
what would be gained?


well you could ssh into your windows machine and run mozilla remotely 
from your xterminal ...

umm - okay so thats not much of a gain... but...

First off, I have said it before and I'll say it again, Evolution from
Ximian needs to be ported to Cygwin..
Anyway..

There would be A LOT to be gained from having a Cygwin port of Mozilla.

1. You could easily hack on features the Windows and Unix source
trees if Mozilla ran via Cygwin. Also, you could build Mozilla
on Windows without having to use any MSFT products.
2. Having a complex GUI app like Mozilla ported to Cygwin could
prove to be a stick in which to measure and compare the over
all efficiency and performance of Cygwin. If the "native"
Mozilla and the Cygwin version performed reasonably the same,
then we would know that Cygwin is on track. If the Cygwin
version lagged, it would set concrete goals for the
Cygwin/XFree team.
3. I hate where and how Mozilla puts user files under native
Windows. The Cygwin port would be better... more like the Linux
port.
4. Don't underestimate how great it would be to be able to
X in an check your email. Better yet, be able to run more
than one user at a time be able to X in and check their
email.
As a long time Windows Mozilla user, I would welcome a Cygwin version
with open arms.
Finally.. Every major porting effort that Cygwin goes to does not
kill or hurt Cygwin, it makes it stronger and more functional.
--



Michael F. March - [EMAIL PROTECTED]
Ph: (602)410-1780  Fax: (602)296-0400
P.O. Box 2254  Phoenix, AZ 85002-2254
  "Seriously" - HSR
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


heading of announcement says 1.3.21-1 still

2003-03-18 Thread John F. Tate
Thanks for all that you do, but I thought that you might want to know
that the heading on the News Page still says "New Cygwin DLL 1.3.21-1
release

Take care,
jft


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



user homepath

2003-03-15 Thread Ling F. Zhang
by default win2k installation, all user have their
path at:
C:\Documents and Settings\USERNAME\

if I want user to share the same path in cygwin, sould
creating a symbolic link in /:
ln -s /cygdrive/c/Documents\ and\ Setting/ /home

suffies???

another question is really windows 2000 related...I
renamed my "Administrator" account to "Admin" but all
my stuff are still in
C:\Documents and Settings\Administrator
how do I migrate it completely (file and registry and
any other necessity) to
C:\Documents and Settings\Admin???
or better yet:
C:\Cygwin\home\Admin???
(if the latter, I have to do the same for all users)

I am using Win2k Pro. btw.

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



cygwin and ntsec

2003-03-14 Thread Ling F. Zhang
right after installation of cygwin, the cygwin
filesystem is mostly under user Administrators (the
user I use is Admin, which is just renaming the
default Administrator of Win2k) and group None...
While I am not sure if None is a group, I am pretty
damn sure that Administrators is a group in my win2k
machine and not a userwhat's up with that???

I checked /etc/passwd and found that "Administrators"
and "Admin" are both well-defined user and am
wondering how come cygwin uses Administrators (again,
a group in win2k) by default?
would
"find / -user Administrators -group none -exec chown
Admin:PowerUser {} \;"
do any harm? (because I did it)


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



exceed and xfree

2003-03-14 Thread Ling F. Zhang
well, this is more or less like a windows/dos problem:

I do not like the cygwin dos window, so everytime I
run cygwin, I go straight to open an xterm with my own
color and size...
but I do not like the cygwin xserver either because it
either have to be in a big window or full
screen...well, I still have to work with my win2k darn
it!
so, I use exceed..

So, I changed startxwin.bat so that it opens up an
xterm only, of course, I need to have exceed running
before hand...

so here's the question: what code do I add to
startxwin.bat so that it detect if exceed is running
already and run it before running xterm if not

here's another question: is it possible for cygwin's
xserver to use the native windows manager (like cygwin
does) and do have to be so annoying big everytime??

Thanx

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



.profile and xterm

2003-03-13 Thread Ling F. Zhang
Just starting to play with cygwin.  I edited my
.profile to do some nice aliases, setting PATH and
bashprompt...
but I realize that as soon as I start a terminal using
xterm (I am using exceed as my Xserver, but shouldn't
matter) all the alias are gone (such as ls=ls
--color=auto, which is handy...), and I need to
deliberately source .profile again...any fix???

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Why does declare getopt_long()?

2003-03-07 Thread David F
I recently re-ran setup.exe and upgraded the packages I have installed and 
was surprised to find that many of my projects no longer build with Cygwin. 
They now fail with an error regarding the redefinition of struct option. 
These projects use getopt_long() which is of course not portable; so I 
provide an implementation (copied from NetBSD) along with my other project 
source files and #include “getopt.h” where necessary. (Yes, ideally I should 
have a ./configure and use the system’s copy if it provides one, but I still 
don’t understand why it’s declared in .) The problem occurs when 
 is also #included as it now also provides a definition of struct 
option. (Cygwin’s getopt.h and the getopt.h in my projects use different 
guard macros.)

For reference, I’ll quote the entire contents of :

 cut here 
/* unistd.h for Cygwin. */
#ifndef _UNISTD_H_
#define _UNISTD_H_
# include 
# define __UNISTD_GETOPT__
# include 
# undef __UNISTD_GETOPT__
#endif /* _UNISTD_H_ */
 cut here 
It seems that previously  provided declarations for getopt() 
and its associated ints (but *not* for getopt_long() and its associated 
paraphernalia) and now it just #includes  when __CYGWIN__ is 
defined. Which is weird because  also #includes . But 
when  includes  it uses some preprocessor magic to avoid 
declaring getopt_long(); or rather it tries to, as that magic is now 
rendered useless by the previous inclusion of .

I checked glibc 2.3.1’s  and it uses a similar preprocessor 
mechanism to declare getopt() (but not getopt_long()) by including 
.

So my question is why does  declare getopt_long()? What precedent 
is there for declaring getopt_long() in ? Normally, if you want 
getopt_long() you have to #include .

Checking the CVS log I see that the change (to ) was made on 
Sat Dec 28 23:20:47 2002 UTC by cgf with the following log entry:

* libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather than
defining getopt directly.
newlib’s  contains declarations for getopt() and I understand 
the desire to not duplicate the declarations in Cygwin’s , but 
 is now included twice every time you #include . Given 
this and the, AFAICT, unprecedented namespace pollution, I propose the 
following patch:

--- sys/unistd.h.orig   2003-02-08 12:11:52.0 -0500
+++ sys/unistd.h2003-03-07 07:22:00.0 -0500
@@ -125,9 +125,7 @@
int _EXFUN(vhangup, (void ));
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t 
__nbyte ));

-#ifdef __CYGWIN__
-# include 
-#else
+#ifndef __CYGWIN__
extern char *optarg;   /* getopt(3) external variables */
extern int optind, opterr, optopt;
int getopt(int, char * const [], const char *);
Cheers

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


less 378 still not anchoring to \

2003-02-02 Thread f
Hello,

I just reinstalled "less" from the cygwin site.
It still doesn't seem to anchor to word boundaries
using regex(3) rules i.e. \ doesn't
match anything, as does .   I read
a posting suggesing a solution by using perl
syntax (apparently):

   /\bSomeWord\b

That works, but is there a known reason why
the regex notation doesn't work?  I'd like to
avoid surprises.

Thanks.

Fred


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Example perl code & newgroup charters (SOLVED)

2003-02-01 Thread f
Hi,

Please ignore my previous posting.  Perls is behaving
exactly as intended.  My brain is just dead, that's all.

Fred

fred wrote:


Hello,

I'm using Perl v5.6.1 built for cygwin-multi.
It runs on cygwin  1.3.19-1.  I'm going thru
some example code in "man perlintro":

> my $variables = {
> scalar  =>  {
>  description => "single item",
>  sigil => '$',
> },
> array   =>  {
>  description => "ordered list of items",
>  sigil => '@',
> },
> hash=>  {
>  description => "key/value pairs",
>  sigil => '%',
> },
> };
>
> print "Scalars begin with a $variables->{'scalar'}->{'sigil'}\n";

All it prints is


Scalars begin with a $



I don't want to jump to conclusions
and say it's wrong, but it sure seems
strange for the point being illustrated.
Is it correct?  If not, what might be
wrong?  Do other users of this perl
version (and/or cygwin version) have
the same problem?

I tried to find the charter for these
newsgroups via google (searching for
charter in the subject line, as well
as in general for some of the groups).
Can anyone refer me to this?  Thanks.

Fred





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




ps2epsi problem

2002-12-30 Thread f
Hello,

I'm having trouble using ps2epsi on a PS file
that is one page in a multipage PDF file.  Works
fine if I use ps2epsi on a PS of the whole document, but
that creates a single EPS with material from all
the pages piled on top of each other.  If I use
the -sOutputFile=SomeName%d.epsi, it generates
the individual pages as EPS but no tiff preview.

To get ps2epsi working with the 1-page PS,
I did the fix in
http://sources.redhat.com/ml/cygwin/2001-08/msg01003.html
but it still complains with the same error:


%%[ Error: invalidaccess; OffendingCommand: put ]%%
GNU Ghostscript 7.05: Unrecoverable error, exit code 1


The script differs from the one our solaris 8, since
cygwin's gs is 7.05 while our solaris version is 5.10.

I tried printing the 1-page PS file on solaris,
which works well with ps2epsi on solaris.  I
downloaded the 1-page PS to cygwin, but it
causes


Error: /invalidaccess in --put--


and regurgitates the stack.

I even downloaded the ps2epsi script from
solaris (it had minor differences), but got the
same error.

I would like to avoid using the our solaris
ps2epsi because it doesn't seem to respect
the -sOutputFile=SomeName%d.epsi.  So
it would be great if I could get this to work
on cygwin.

Thanks for any suggestions.

Fred
[EMAIL PROTECTED]



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: cygwin, emacs, mozilla

2002-10-25 Thread Michael F. March



I am amazed that, considering the warm fuzzy loving relationship
between Microsoft and Netscape/Mozilla, they continue to use VC. I 
would expect them to lean over backwards to move over to gcc.

They are indeed, but converting the big build process from VC to gcc 
is not so easy an operation ^_^

http://bugzilla.mozilla.org/show_bug.cgi?id=134113

BTW: of course they would like some help ;-)

Maybe the first step would be to get Mozilla to compile under Cygwin 
using X instead of
using all the Windows APIs directly (like what they are trying to do in 
that Bugzilla ticket
above.)  In fact, getting Evolution and Mozilla working under 
XFree86/Cygwin would be
two worth while efforts.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



pasting clipboard always adds carriage return

2002-10-14 Thread f m

Hi,

I'm using cygwin-1.3.12-4 on WinME.
I find that when I cut something
from the cygwin window, it always
has a carriage return at the end
regardless of what application I
paste it into.  This only happens
for text copied to the clipboard
from a cygwin window.  I have
checked "Quick Edit" and unchecked
"Fast Pasting".  I can't find anything
about this in the FAQ, cygwin mailing
list archive, or google.  Is there
a way to prevent this?

Thanks.

Fred

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




  1   2   >