Re: Please upload: audiofile, glib, gtk+, libiDL

2004-09-03 Thread Corinna Vinschen
On Sep  2 14:41, Yaakov Selkowitz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 I've fixed the aclocal files in my packages affected by automake-1.8.
 Could someone please upload?
 
 http://cygwin-ports.sourceforge.net/install/temp/audiofile/audiofile-0.2.6-2-src.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/audiofile/audiofile-0.2.6-2.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/audiofile/libaudiofile-devel/libaudiofile-devel-0.2.6-2.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/audiofile/libaudiofile0/libaudiofile0-0.2.6-2.tar.bz2
 
 http://cygwin-ports.sourceforge.net/install/temp/glib/glib-1.2.10-2-src.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/glib/glib-1.2.10-2.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/glib/glib-devel/glib-devel-1.2.10-2.tar.bz2
 
 http://cygwin-ports.sourceforge.net/install/temp/gtk+/gtk+-1.2.10-2-src.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/gtk+/gtk+-1.2.10-2.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/gtk+/gtk+-devel/gtk+-devel-1.2.10-2.tar.bz2
 
 http://cygwin-ports.sourceforge.net/install/temp/libIDL/libIDL-0.8.3-2-src.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/libIDL/libIDL-0.8.3-2.tar.bz2
 http://cygwin-ports.sourceforge.net/install/temp/libIDL/setup.hint

Uploaded.

But I'm wondering if the packaging of libaudiofile-devel-0.2.6-2.tar.bz2
is correct.  usr/lib/libaudiofile.a is missing.  It was available in the
-1 package.


Corinna

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


Re: Please upload. Re: [ITP] ctetris

2004-09-03 Thread Reini Urban
Corinna Vinschen schrieb:
On Aug 22 19:52, Reini Urban wrote:
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/setup.hint
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1-src.tar.bz2
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1.tar.bz2 

Uploaded.
Corinna
oops, it misses the version and install and source lines.
this is my first package, sorry.
is is possible that this line in setup.hint
  curr: 0.29
is wrong?
could you pleased fix it to
  curr: 0.29-1
thanks. (also fixed in the location above)
@ ctetris
sdesc: Console mode tetris clone
ldesc: ctetris is a beautiful tetris clone, written in C using the 
ncurses library.
It works very fast and efficient, so it should be possible to play it 
even over a
slow remote terminal. With highscores. The author is Dominik Hackl. 
License: GPL
category: Games
requires: libncurses7 cygwin

@ curl
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Re: Please upload. Re: [ITP] ctetris

2004-09-03 Thread Corinna Vinschen
On Sep  3 11:33, Reini Urban wrote:
 Corinna Vinschen schrieb:
 On Aug 22 19:52, Reini Urban wrote:
 http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/setup.hint
 http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1-src.tar.bz2
 http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1.tar.bz2
  
 
 
 Uploaded.
 
 Corinna
 
 oops, it misses the version and install and source lines.
 this is my first package, sorry.
 
 is is possible that this line in setup.hint
   curr: 0.29
 is wrong?
 could you pleased fix it to
   curr: 0.29-1

No, I *removed* the line entirely.  You only need prev/curr/test if you
have an unusual version numbering scheme.

Corinna

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


ctetris fix

2004-09-03 Thread Reini Urban
please upload ctetris-0.29-2 with a small fix.
ver-1 had to identical docdirs
ver-2 only /usr/share/doc/ctetris-0.29
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/setup.hint
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-2-src.tar.bz2
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-2.tar.bz2 

this replaces 0.29-1.
do I need a prev: line now?
thanks.
Corinna Vinschen schrieb:
On Sep  3 11:33, Reini Urban wrote:
Corinna Vinschen schrieb:
On Aug 22 19:52, Reini Urban wrote:
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/setup.hint
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1-src.tar.bz2
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-1.tar.bz2 

Uploaded.
Corinna
oops, it misses the version and install and source lines.
this is my first package, sorry.
is is possible that this line in setup.hint
 curr: 0.29
is wrong?
could you pleased fix it to
 curr: 0.29-1
No, I *removed* the line entirely.  You only need prev/curr/test if you
have an unusual version numbering scheme.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Re: ctetris fix

2004-09-03 Thread Reini Urban
Christopher Faylor schrieb:
On Fri, Sep 03, 2004 at 05:38:02PM +0200, Reini Urban wrote:
please upload ctetris-0.29-2 with a small fix.
ver-1 had to identical docdirs
^^^ two (aah)
ver-2 only /usr/share/doc/ctetris-0.29
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/setup.hint
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-2-src.tar.bz2
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/ctetris/ctetris-0.29-2.tar.bz2 

this replaces 0.29-1.
do I need a prev: line now?

NO!  It's automatic.
Btw, AFAICT, you never sent out an announcement for the last release.
Because it's still not visible on my mirror (which should be a good 
one). When it is I will do.

Please make sure that you do once the file has been uploaded and don't
forget to include unsubscribe instructions.
I already have it sitting in my Draft folder.
With the *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Please upload: e2fsprogs-1.35-2

2004-09-03 Thread Robb, Sam
A new build of e2fsprogs that installs libuuid.a into
/usr/lib/e2fsprogs (instead of into /usr/lib), which
should fix the problem reported in:

  http://cygwin.com/ml/cygwin/2004-08/msg01276.html

... where libuuid.a from e2fsprogs was masking the libuuid.a
provided by w32api.

Source : 
http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-2-src.tar.bz2
Binary : http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-2.tar.bz2
Hint   : http://www.oneparticularharbor.net/cygwin/e2fsprogs/setup.hint

-Samrobb


Re: ctetris fix

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 06:10:27PM +0200, Reini Urban wrote:
Christopher Faylor schrieb:
Btw, AFAICT, you never sent out an announcement for the last release.

Because it's still not visible on my mirror (which should be a good 
one). When it is I will do.

There really is no reason to wait.  You can't use one mirror as an
indication of when it is available.

cgf


Re: Please upload: e2fsprogs-1.35-2

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 01:15:44PM -0400, Robb, Sam wrote:
A new build of e2fsprogs that installs libuuid.a into
/usr/lib/e2fsprogs (instead of into /usr/lib), which
should fix the problem reported in:

  http://cygwin.com/ml/cygwin/2004-08/msg01276.html

... where libuuid.a from e2fsprogs was masking the libuuid.a
provided by w32api.

Source : 
http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-2-src.tar.bz2
Binary : http://www.oneparticularharbor.net/cygwin/e2fsprogs/e2fsprogs-1.35-2.tar.bz2
Hint   : http://www.oneparticularharbor.net/cygwin/e2fsprogs/setup.hint

Now, what is this for, again?  What's uuid?  Why do we care about this?

Oops.  Sorry wrong mailing list.

cgf


Re: ghostscript weirdness

2004-09-03 Thread Franz Wolfhagen




I believe to remember that this may be a question in which sequence the
non-x11 bins and the x11 bins are set in your path and how your DISPLAY
variable is set.

If you are running the X based gs you should have the X11 related entries
in the path before the non-X11 once (and vice versa if you are running the
non-X11 gs).

I have not tested this on my local install today - but I believe I have
verified this earlier due to an earlier disussion of the same problem...

Med venlig hilsen / Regards
Franz Wolfhagen



Re: new install - application windows are dead

2004-09-03 Thread Gareth Edwards
A small update: Daniel Gruber also helped me with this off-list and 
identified that the multiwindow WM was causing the issue; running 
-rootless with twm or wmaker instead resolved the problem.

So I guess it looks like -multiwindow with dual head displays is an issue?
Gareth
Marc Bernstein wrote:
I had this problem and traced it to a dual head issue.
 

My laptop was screen 2 and I had to disconnect it before the 
startxwin.bat or sh would work properly.

 

I could not find a local configuration issue; Tried other users, etc.
 

 

Anyone know why or how to configure a dual monitor to work properly with 
CygX?

 

 

Marc



Re: new install - application windows are dead

2004-09-03 Thread Alexander Gottwald
On Fri, 3 Sep 2004, Gareth Edwards wrote:

 A small update: Daniel Gruber also helped me with this off-list and 
 identified that the multiwindow WM was causing the issue; running 
 -rootless with twm or wmaker instead resolved the problem.
 
 So I guess it looks like -multiwindow with dual head displays is an issue?

have you tried the -multiplemonitors option to XWin?

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: ghostscript weirdness

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, sven geier wrote:

 Heya all.

 I had sent (to the main list) yesterday the following problem

 [snipped question about Unknown device: x11 error from ghostscript]

 To this, Igor replied the following:

 } First off, questions regarding Cygwin and X11 should go to the
 } cygwin-xfree list.  Please move further discussions onto that list.  I'm
 } directing this reply there as well, and setting Reply-To: appropriately.
^^
Sven, my reply (with your message fully quoted) already went to this list
-- there's no need to forward it again.

 } Secondly, this is a common problem.  Simply install the ghostscript-x11
 } package.
 } Igor

 Unfortunately, this doesn't solve the problem. As it turns out, I
 already have ghostscript, ghostscript-base and ghostscript-x11 (and gv).
 I even reinstalled ghostscript-x11 but still no luck: gv comes up just
 fine, I can click on the open button but when I select a postscript
 file I get the same Unknown Device: x11 error message. Starting gs by
 hand and entering Devicenames == still yields the same list that does
 indeed not contain the x11 device.

 I'm puzzled...

You also need to make sure that /usr/X11R6/bin/gs gets picked up before
/usr/bin/gs (i.e., that /usr/X11R6/bin is in your PATH before /usr/bin --
which is usually done by default by /etc/profile.d/00xorg-x11-base.sh).
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw


Problem installing and using Cygwin

2004-09-03 Thread Daniel Kliche
Hi everybody

i have installed all of the cygwin packages but it didn't work.

I want to use cygwin to connect from a WinXP plattform to a unix server.

A little help would be very usefull

cheers Daniel

-- 
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl

XWin.log
Description: Binary data


Re: Problem installing and using Cygwin

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Daniel Kliche wrote:

 Hi everybody

 i have installed all of the cygwin packages but it didn't work.

 I want to use cygwin to connect from a WinXP plattform to a unix server.

 A little help would be very usefull

A little info would be very useful.  See http://cygwin.com/problems.html.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw


Re: Problem installing and using Cygwin

2004-09-03 Thread Stephan Eickschen
Daniel,
your log files reads:
XWin was started with the following command line:
/usr/X11R6/bin/XWin -screen0 1600x1200 -from 137.193.73.12 -query
137.193.14.32
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
Unrecognized option: -screen0
^^^
Further down you will see that there should be a blank between '-screen'
and the screen number:
-screen scr_num [width height]
Enable screen scr_num and optionally specify a width and
height for that screen.
This would be my starting point - even though I am a newbie to cygwin/X,
too...
Hope this helps,
Stephan
--

Stephan Eickschen Fon: +49 (0)228 933 999 70
Augustastrasse 89 Fax: +49 (0)228 933 999 71
53173 Bonn   Cell: +49 (0)170  54 781 60
Germany  Email: [EMAIL PROTECTED]
http://www.eiskultur.de



Is RECORD extension included in cygwins' X server?

2004-09-03 Thread Ariel Burbaickij
Hello dear mailing list participants,
to dat as I know problems with expectk
still persist and as consequence it is
not possible for example to use the 
android tool for automatized GUI
testing. Yesterday, I ran in the tool
called xnee and I would like to compile/port
it for cygwin. The problem is -- I do not know
whether cygwins' X server has the RECORD
extension included or not. That it the question.

With Best Regards
Ariel Burbaickij


cygwin and startx

2004-09-03 Thread Mamedov, Joel
 I get startx:  bash: startx: command not found
message.
I have downloaded and installed a full package.
I can't find startx anywhere in cygwin folders.




Guides for the journey. Piper Jaffray  Co. Since 1895. Member SIPC and NYSE.
Learn more at piperjaffray.com. Piper Jaffray corporate headquarters is located at 800 
Nicollet Mall, Minneapolis, MN 55402

Piper Jaffray outgoing and incoming e-mail is electronically archived and recorded and 
is subject to review, monitoring and/or disclosure to someone other than the 
recipient. This e-mail may be considered an advertisement or solicitation for purposes 
of regulation of commercial electronic mail messages. If you do not wish to receive  
commercial e-mail communications  from Piper Jaffray, click here to request to 
unsubscribe. mailto:[EMAIL PROTECTED]


For additional disclosure information see http://www.piperjaffray.com/info2.aspx?id=298



Mac OS/X, Virtual PC 6, Oracle, and Cygwin/X - a tale

2004-09-03 Thread Dr Robert Young
Well it is possible to get cygwin/X running on Virtual PC 6.1.1 under 
Mac OS/X 10.3. There are some  tricks (simply to make it work, and to 
preserve your sanity..all Windows OSs are NOT created equal), so 
please  bear with me while I provide some color to my tale.

Now, you may ask why anyone would want to get this combo working on a 
Macintosh Powerbook G4 running OS/X 10.3.5? You can get X windows for 
OS/X directly.

However, the world is populated by Windows machines, and as a database 
consultant, I have to access a multitude of client sites remotely 
since travel is not an option for a myriad of reasons. That means you 
enter the world of VPNs, which are in heavy use today, and getting more 
common by the minute. And the world of VPNs is dominated by Windows 
software ( NOT the VPN that you  get w/Windows direct from Microsoft, 
but the proprietary ones like Contivity, Cisco, Avaya, etc). Further 
VPN's do not like to be installed on the same machine as other VPN's 
( these things do not play well together), so if you are working with 
3-4-5 customers and all the associated VPN software is from different 
vendors...well you can see the problem even if you don't toss in the 
point that I wanted to use my Mac that I had already paid for with hard 
earned, cold, unadulterated CASH.

That was my original motivation for getting Virtual PC...so one could 
use the Windows VPN software to access the client sites, by defining 
multiple virtual PCs each with their own software installed for a 
specific customer, and do it all from (1) laptop. AND IT WORKS!

The next issue came from Oracle Corporation ( remember I make a living 
as a database consultant). On Unix (Sun, HP, AIX, Linux) the Oracle 
installer is the Universal Installer...ie it is  a java based  
X-based. Character based telnet installs are not a real option anymore, 
much to the telecommuter's regret.

That means I needed to come up with a means of running remote X-apps, 
through the client's VPN under Windows, but (in my case solely as a 
matter of personal preference) on a Macintosh OS/X system. There is now 
a version of Virtual PC for Windows letting you define multiple Win 
OS's on the same Intel platform ( I do, in fact,  have an older Compaq 
laptop ), but that means I have to by a newer Intel based laptop with 
more disk  memory  the Win Virtual PC software, and I didn't want to 
spend the $$$ there.

Enough of the tedious background...but you do now have a good feel 
for the situation

I looked at several commercial Windows X servers (since I had to use 
Windows based VPNs) , and all would run under Virtual PC but in true 
Murphy's form, each had its own problem with the Oracle Universal 
Installer...fonts, missing buttons, etc. The glitches were well 
documented around the various Oracle www sites, but no real good 
solutions were available unless you could get a customer to change 
their X client setup just for you ( not a point you really want to 
ask a paying customer), upgrade their Oracle site-wide ( only a few 
hundred thousand dollars for that one), or  you could find V6 of the 
'X' server software (which was now on V12..lotsa luck on that one). 
Then I came across cygwin/X...

Now I like free software in my business, it allows me to spend more 
money on my hobbies. So I downloaded cygwin/X onto two different 
Virtual PC setups...one is Windows 2000, the other is Windows 98SE.

In the case of the basic cygwin, one has to increase the environment 
space for storing PATH information, etc. Once that was done, cygwin 
would come up under both Windows OSs, but it was much slower under Win 
2000.

Next I needed the X software running. For each Windows OS, I tried 
startxwin.bat  startxwin.sh. Sorry to say, these were a no go. The X 
showed up in the task bar, but no xterm was generated, and no X app 
would display. I should not say they never worked, startxwin.bat did 
work completely (1) time in 5 days of trial and error...but it never 
repeated.

So then I went back an extra step.. to the cygwin admin window and 
entered

xinit -- -kb
and IT WORKED! It worked on both OSs, but it was much ...much faster in 
Win 98SE.  This was with the VPN running ( my only immediate need is 
for the Avaya VPN, but I plan to test it with some of the others as 
well at a later date).

After the xterm appeared, I started the Oracle Installer on the remote 
Sun system using

ssh -Y [EMAIL PROTECTED]  /usr/openwin/bin/xterm
and then from the Sun xterm, I could run the Installer ( I could have 
run it directly from ssh, but after the install you usually have to 
check some things, so I wanted a xterm window ready, willing, and 
able), and it displayed back on the Mac WITH NO VISIBLE PROBLEMS.

So, cygwin/X now lets me run the Oracle software, displayed back to my 
existing Mac, without having to purchase either a commercial Windows X 
server ( around $300), or buy a another laptop ($1,000-2,000).

And that is the end of my tale

Re: cygwin and startx

2004-09-03 Thread Ken Dibble
Start here:
http://cygwin.com/problems.html

Mamedov, Joel wrote:
I get startx:  bash: startx: command not found
message.
I have downloaded and installed a full package.
I can't find startx anywhere in cygwin folders.

 




src/winsup/cygwin ChangeLog security.cc

2004-09-03 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-09-03 08:18:41

Modified files:
winsup/cygwin  : ChangeLog security.cc 

Log message:
* security.cc: Fix a few more strace_prints.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2548r2=1.2549
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.cc.diff?cvsroot=srcr1=1.174r2=1.175



Re: How to detect a broken cygwin mirror?

2004-09-03 Thread luke . kendall
On  3 Sep, luke replied to Christopher when he wrote:
However, since you raise the issue of md5sums, it's hard to see how 
your mirror could be bad and not have setup.exe complain about an 
incorrect md5. 
   
  Righto.  I'll write a script to check our mirror, independent of 
  setup.exe.  Then check ours, and pick another mirror site if 
  mirrors.kernel.org has broken.  (Though I'm not 100% certain that it's 
  the explanation for my Subject: Setup problem: incomplete nonexistent 
  package thread.) 

Well, I'm running setup now, installing everything, though my check
script reveals that 3 packages have problems (not the package that was
causing the problem before).

$   ~/script/md5cygchk -q /u/mirror/cygwin/release
Summary of files with broken checksums:

In ./binutils:
md5.sum: FAILED
md5sum: WARNING: 1 of 6 computed checksums did NOT match

In ./check:
check-0.8.4-1-src.tar.bz2: FAILED
md5sum: WARNING: 1 of 3 computed checksums did NOT match

In ./ncurses/libncurses5:
libncurses5-5.2-1-src.tar.bz2: FAILED
md5sum: WARNING: 1 of 3 computed checksums did NOT match

Before, it was failing after a minute (probably after it checked the
md5 sigs).  Now, it's been happily installing for an hour (in fact it's
running the Cygwin postinstall scripts now).

Since I told setup to install all, would you expect setup to fail,
reporting that at least one of the above packages is broken?  Because
it isn't complaining...

We first rsync-ed from mirrors.kernel.org; that has broken TeXmacs (and
more?).  Following that we rsync from mirrors.xmission.com, which
replaced TeXmacs.  But that still leaves us with the three problems
reported above.

What do you think of this idea, to try to get a good local mirror?  (It
relies on the fact that rsync will only download missing files, so it's
not as horrendous as it may seem at first):

for each host in
ftp.gwdg.de
ftp.inf.tu-dresden.de
ftp.kaist.ac.kr
mirror.averse.net
mirrors.kernel.org
mirrors.xmission.com
sigunix.cwru.edu
do
rsync our mirror from the host
check our mirror's checksums
if check is good, break (otherwise, next in list)

Especially if we use the --update option.  Unless sluggish mirrors that
were way out of date would cause deletion of newer files?  Hmm, by my
reading, that wouldn't happen unless we specified --delete to rsync.

So this may be a good scheme.

luke




--
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 problem: incomplete nonexistent package

2004-09-03 Thread luke . kendall
Here's an executive summary: it's a mystery.  It just started
working.

In slightly more detail, rsync from another site did replace the
TeXmacs package.

But re-running setup still failed on TeXmacs.  Our local mirror is
shared via Samba (v 2.2something).  Some hours later, with no extra
rsyncs (in fact, after no actions of any kind except running the check
script), setup.exe worked.

I've appended the md5 check script anyway.

Should there be an md5.sum file for setup.exe, setup.bz2 and
setup.ini?



On  3 Sep, luke wrote:
  I tried again installing from our mirror, and it failed with an 
  incomplete download message on TeXmacs-1.0.3.3-1.  I chose not to try 
  again, and then setup terminated with a runtime exception (as it always 
  does in that situation: Runtime exception ... This application has 
  requested that the Runtime terminate it in an unusual way.  Please 
  contact the application's support team for more information.). 
 
  It also left no log files at all under c:/cygwin/var/log (in fact, the 
  directory had not been created), and the next time I ran setup it had 
  not remembered any of the settings I'd chosen. 
   
  I just tried again and it failed the same way, the same package, and 
  didn't create the log directory so I can't give more details.  It did 
  remember my setup settings the 2nd time, though. 
   
  So, actually, I'm pretty badly off - I have no Cygwin any more (I have 
  an old version of U/Win I've used to collect some of the info above).  
  Oh, speaking of which, here's the U/Win ls and md5sum for our setup 
  directory in our mirror: 
   
  /cygwin$ ls -l //samba/mirror/cygwin 
  total 1858 
  drwxrwxr-t  7 322674   262825   512 Sep  1 13:05 mail-archives 
  drwxrwxr-t245 322674   262825   512 Aug 31 18:40 release 
  -rw-rw-r--  1 322674   262825 79753 Sep  3 02:20 setup.bz2 
  -rwxrwxr-x  1 322674   262825268800 Apr 26 01:03 setup.exe 
  -rwxrwxr-x  1 322674   262825268800 Oct  7  2003 setup.exe.old 
  -rw-rw-r--  1 322674   262825331860 Sep  3 02:20 setup.ini 
  drwxrwxr-t  2 322674   262825   512 Apr  4 02:41 tmp 
  /cygwin$ /usr/bin/md5sum.exe //samba/mirror/cygwin/setup.exe 
  51db88989d4886688ed9241406961b0e //samba/mirror/cygwin/setup.exe 
   
   
luke 
 
Also, read about the upset script if you want to have packages on your 
local server in addition to the mirrored ones.  Google for upset script 
site:cygwin.com. 
HTH, 
  Igor 
   
  Thanks, I'll have a look - if I can figure out how to install Cygwin 
  again! 
   
  The mirror site we are currently using, and which I used last night for 
  the direct attempt, was kernel.org.  (I didn't know that I'd chosen 
  the same site that our SysAdmin rsync to make our mirror, when I chose 
  it!) 
   
  Setup.exe says it's version 2.427.  Our mirror is 2.06GB (2,220,822,916 bytes), 
  2,739 files, 491 folders.  Sept 3rd 2004. 
   
  I'll try another reboot and see if that helps. 

No joy.  We also synced to another mirror and it didn't help.

I've run my script and checked, and some checksums failed, but not the
TeXmacs-1.0.3.3-1 one:

Summary of files with broken checksums:

In ./binutils:
md5.sum: FAILED
md5sum: WARNING: 1 of 6 computed checksums did NOT match

In ./check:
check-0.8.4-1-src.tar.bz2: FAILED
md5sum: WARNING: 1 of 3 computed checksums did NOT match

In ./ncurses/libncurses5:
libncurses5-5.2-1-src.tar.bz2: FAILED
md5sum: WARNING: 1 of 3 computed checksums did NOT match

I'll append the check script in case it's of use to others.  (Sorry for
the delay, other more urgent problems cropped up for me.)

I notice that there is no md5.sum file for setup.exe, setup.bz2 and
setup.ini, which I imagine are pretty critical.  How do I tell if any
of those are suspect?

-rw-rw-r--1 cameron  postdrop79738 Sep  1 03:00 setup.bz2
-rwxrwxr-x1 mirror   postdrop   268800 Apr 26 01:03 setup.exe
-rw-rw-r--1 cameron  postdrop   331839 Sep  1 03:00 setup.ini

$ md5sum setup.bz2 setup.exe setup.ini
a1a3a8cc37f1068f769869a70adb3e9b  setup.bz2
51db88989d4886688ed9241406961b0e  setup.exe
aab5a01b13cdcb372b47f3bb632f2371  setup.ini

To pick an example one with an apparent problem,
check-0.8.4-1-src.tar.bz2:
: [EMAIL PROTECTED] .../check; ls
check-0.8.4-1-src.tar.bz2  check-0.8.4-1.tar.bz2  md5.sum  setup.hint
: [EMAIL PROTECTED] .../check; md5sum --check md5.sum 
check-0.8.4-1-src.tar.bz2: FAILED
check-0.8.4-1.tar.bz2: OK
setup.hint: OK
md5sum: WARNING: 1 of 3 computed checksums did NOT match

: [EMAIL PROTECTED] .../check; cat md5.sum
2869c0fb14b9e277931dbe3df22de1ab  check-0.8.4-1-src.tar.bz2
52155707ea1c471ff4ec950009174e59  check-0.8.4-1.tar.bz2
925e6963dec65e9da0489cb2d74a638d  setup.hint

And from our setup.bz2file:

@ check
sdesc: A unit test framework for Cldesc: 
Check is a unit test framework for C. It features a simple  interface for 
defining unit tests, putting little in the way of 

How to check your local mirror

2004-09-03 Thread fergus
If you want to check the integrity of your local mirror you might find the
attached script useful (as it stands, or as the basis for something you
write yourself).

The syntax is
chk.us mydir
where mydir might be /f/Cyg0 or /cygdrive/c/cygmirror or wherever it is you
keep the file setup.ini and the directory release/. Note that mydir does not
need a closing slash mydir/ but the script will still work if you include
it. The mirror that is used for the comparison is ftp://mirrors.rcn.net but
you can alter this if you want to.

There are 3 parts to what the script does:

1. checks the timestamp on your local setup.ini with the one currently on
the mirror;
2. checks that the files you've got match the ones you should have (this
just checks the names);
3. checks the md5sum's.

The script ends by deleting the temporary listings created in order to make
the comparisons. If you keep them instead, and compare tmpf.setup.chk.us.1
with ..3, you'll see a list of the redundant files on your local mirror: you
could delete these. Or even pipe the list for automatic deletion, I guess.

Fergus


chk.us
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/

How does a script find where Cygwin is installed?

2004-09-03 Thread luke . kendall
$ CYGPATH=`cygpath -w /`
$ echo $CYGPATH
C:\cygwin
$ CYGPATH=`cygpath -u $CYGPATH`
$ echo $CYGPATH
/

What I really want to get is C:/cygwin or /cygdrive/c/cygwin, in my
case.  Look at the weird messages I get from this chmod:

$ chmod -R ug+rwX,o+rX /
chmod: getting attributes of `//bin: No such file or directory
chmod: getting attributes of `//cisrastartx.bat: No such file or directory
chmod: getting attributes of `//cisraxinit.sh: No such file or directory
chmod: getting attributes of `//cygwin.bat: No such file or directory
chmod: getting attributes of `//cygwin.ico: No such file or directory
chmod: getting attributes of `//etc: No such file or directory
chmod: getting attributes of `//home: No such file or directory
chmod: getting attributes of `//lib: No such file or directory
chmod: getting attributes of `//opt: No such file or directory
chmod: getting attributes of `//remap-drives.sh: No such file or directory
chmod: getting attributes of `//sbin: No such file or directory
chmod: getting attributes of `//tmp: No such file or directory
chmod: getting attributes of `//tmp.luke._c_i_s_r_a_s_t_a_r_t_x_._b_a_t_: No such file 
or directory
chmod: getting attributes of `//tmp.luke._c_i_s_r_a_x_w_i_n_._s_h_: No such file or 
directory
chmod: getting attributes of `//tmp.luke._s_t_a_r_t_x_: No such file or directory
chmod: getting attributes of `//tmp.luke._s_t_a_r_t_x_-_-_-_c_l_i_p_b_o_a_r_d_0_: No 
such file or directory
chmod: getting attributes of `//tmp.luke._s_t_a_r_t_x_-_-_-_m_u_l_t_i_w_i_n_d_o_w_0_: 
No such file or directory
chmod: getting attributes of `//tmp.luke._s_t_a_r_t_x_._b_a_t_: No such file or 
directory
chmod: getting attributes of `//tmp.luke._s_t_a_r_t_x_w_i_n_._s_h_: No such file or 
directory
chmod: getting attributes of `//tmp.luke._X_0_-_m_u_l_t_i_w_i_n_d_o_w_: No such file 
or directory
chmod: getting attributes of `//tmp.luke._x_i_n_i_t_-_-_-_k_b_-_c_l_i_p_b_o_a_r_d_: No 
such file or directory
chmod: getting attributes of `//usr: No such file or directory
chmod: getting attributes of `//var: No such file or directory

Here's an ls of /:

$ ls /
bin  tmp.luke._X_0_-_m_u_l_t_i_w_i_n_d_o_w_
cisrastartx.bat  tmp.luke._c_i_s_r_a_s_t_a_r_t_x_._b_a_t_
cisraxinit.shtmp.luke._c_i_s_r_a_x_w_i_n_._s_h_
cygwin.bat   tmp.luke._s_t_a_r_t_x_
cygwin.ico   tmp.luke._s_t_a_r_t_x_-_-_-_c_l_i_p_b_o_a_r_d_0_
etc  tmp.luke._s_t_a_r_t_x_-_-_-_m_u_l_t_i_w_i_n_d_o_w_0_
home tmp.luke._s_t_a_r_t_x_._b_a_t_
lib  tmp.luke._s_t_a_r_t_x_w_i_n_._s_h_
opt  tmp.luke._x_i_n_i_t_-_-_-_k_b_-_c_l_i_p_b_o_a_r_d_
remap-drives.sh  usr
sbin var
tmp

(I'm doing this to try to ensure that if a SysAdmin user installs
Cygwin for the actual owner of the machine, the owner will later have
permission to update or even uninstall Cygwin themselves.)

luke


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



compilig error: storage size of `st' isn't known

2004-09-03 Thread Jari Aalto+mail.linux

I'm trying to compile Linux program that starts like this:

int main(int argc, char **argv)
{
  char **dirname = NULL;
  int i,j,n,p,q,dtotal,ftotal,colored = FALSE;
  struct stat64 st;

But the compiler says:

tree.c: In function `main':
tree.c:204: error: storage size of `st' isn't known
tree.c:204: warning: unused variable `st'

What needs to be done in Cygwin to see struct stat ?

Jari


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



Re: How to check your local mirror

2004-09-03 Thread Fergus Daly
Too hasty: the file chk.us that I attached assumes your local file
setup.ini and your local directory release/ are both located at /f/Cyg0.
Sorry. 
(Luke's approach looks much more sophisticated.)
Fergus

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



Why is there a ZZZRemovedpackages?

2004-09-03 Thread Carlo Florendo
Hello,
I'm actually not encountering any problem with cygwin now.  It has 
actually been performing impressively!  Thanks to all you cygwin people.

In any case, we keep a mirror of  the cygwin releases and   I was just 
curious why there is a ZZZRemovedpackages directory under /release.  
What's  it for?  Is it ok if I remove it completely from oour local 
mirror site?

Thanks!
Best Regards,
Carlo
--
Carlo Florendo
Astra Philippipnes Inc.
www.astra.ph

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


Re: How to check your local mirror

2004-09-03 Thread luke . kendall
On  3 Sep, [EMAIL PROTECTED] wrote:
  There are 3 parts to what the script does: 
   
  1. checks the timestamp on your local setup.ini with the one currently on 
  the mirror; 
  2. checks that the files you've got match the ones you should have (this 
  just checks the names); 
  3. checks the md5sum's. 

My script isn't doing steps 1 or 2 - that seems like good stuff to add,
thanks.

Step 3 seems to assume the path is /f/Cyg0, if I read it correctly.
Perhaps that should change to:

echo Check md5sum-s ...
sed -e s|^|$1|g tmpf.setup.chk.us.1 | xargs md5sum | \
sed -e s|^$1||g -e 's/^\(.*\) \(.*\)$/\2 \1/g' | sort  tmpf.setup.chk.us.4

(assuming I've understood what you're doing).

I'd also want to bail out I suppose if the mirror timestamp was older
than our one.

Also, I like the idea of detecting that our copy of the mirror is broken
(as opposed to just reporting it, and requiring manual observation and
may be intervention).

Once we get our mirror into a known good state, we could have a
secondary mirror that we try to update nightly (maybe rsync-ing from
multiple hosts), and only push out to the known good mirror if the
checksums on the freshly updated mirror pass the test.

Thanks,

luke


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



openldap 2.2.15-2

2004-09-03 Thread Robert Schmidt
I have problems running openldap 2.2.15-2 (cygwin is up-to-date as of 
this moment).

Running slapd or slurpd produces the following error:
The procedure entry point __dn_expand could not be located in the 
dynamic link library cygminires.dll.

I also tried adding openldap-devel, with no change.
Any ideas?
Cheers,
Robert
cygcheck -c -v output:
Cygwin Package Information
Last downloaded files to: c:\temp\cygwin
Last downloaded files from: ftp://ftp.sunet.se/pub/lang/cygwin
Package  VersionStatus
_update-info-dir 00227-1OK
Missing directory: /etc/apache.new/ from package apache
Missing file: /etc/apache.new/access.conf from package apache
Missing file: /etc/apache.new/access.conf.default from package apache
[... hundreds more files missing in *.new ...]
apache   1.3.29-2   Incomplete
ash  20040127-1 OK
base-files   3.0-3  OK
base-passwd  1.1-1  OK
bash 2.05b-16   OK
binutils 20040725-2 OK
bison20030307-1 OK
bzip21.0.2-5OK
crypt1.1-1  OK
curl 7.11.1-1   OK
cvs  1.11.6-3   OK
cygrunsrv1.0-1  OK
cygutils 1.2.5-1OK
cygwin   1.5.10-3   OK
cygwin-doc   1.3-7  OK
db4.14.1.25-1   OK
diff 1.0-1  OK
diffutils2.8.7-1OK
editrights   1.01-1 OK
expat1.95.7-1   OK
Missing directory: /usr/share/man/cat1/ from package fetchmail
fetchmail6.2.5-2Incomplete
fileutils4.1-2  OK
findutils4.1.7-4OK
flex 2.5.4a-3   OK
gawk 3.1.4-3OK
Empty package gcc
gcc  3.3.3-3OK
gcc-core 3.3.3-3OK
gcc-g++  3.3.3-3OK
Empty package gcc-mingw
gcc-mingw20040810-1 OK
gcc-mingw-core   20040810-1 OK
gcc-mingw-g++20040810-1 OK
gdbm 1.8.3-7OK
gettext  0.14.1-1   OK
grep 2.5-1  OK
groff1.18.1-2   OK
gzip 1.3.5-1OK
inetutils1.3.2-28   OK
less 381-1  OK
libbz2_0 1.0.2-1OK
libbz2_1 1.0.2-5OK
libdb4.1 4.1.25-1   OK
libdb4.1-devel   4.1.25-1   OK
libdb4.2 4.2.52-1   OK
libgdbm  1.8.0-5OK
libgdbm-devel1.8.3-7OK
libgdbm3 1.8.3-3OK
libgdbm4 1.8.3-7OK
libgettextpo00.14.1-1   OK
libiconv21.9.2-1OK
libintl  0.10.38-3  OK
libintl1 0.10.40-1  OK
libintl2 0.12.1-3   OK
libintl3 0.14.1-1   OK
libncurses5  5.2-1  OK
libncurses6  5.2-8  OK
libncurses7  5.3-4  OK
libopenldap2_2_7 2.2.15-2   OK
libpcre  4.1-1  OK
libpcre0 4.5-1  OK
libpopt0 1.6.4-4OK
libreadline4 4.1-2  OK
libreadline5 4.3-5  OK
login1.9-7  OK
m4   1.4-1  OK
make 3.80-1 OK
man  1.5k-3 OK
mingw-runtime3.3-1  OK
minires  0.97-1 OK
mktemp   1.5-3  OK
ncurses  5.3-4  OK
newlib-man   20020801   OK
openldap 2.2.15-2   OK
openldap-devel   2.2.15-2   OK
openssh  3.9p1-1OK
openssl  0.9.7d-1   OK
openssl096   0.9.6j-1   OK
pcre 4.5-1  OK
pcre-doc 4.5-1  OK
perl 5.8.5-3OK
procmail 3.22-9 OK
procps   010801-2   OK
readline 4.3-5  OK
sed  4.1.2-1OK
sh-utils 2.0.15-4   OK
tar  1.13.25-5  OK
termcap  20021106-2 OK
terminfo 5.3_20030726-1 OK
texinfo  4.2-4  OK
textutils2.0.21-1   OK
unzip5.50-5 OK
uw-imap  2002e-3OK
uw-imap-imapd2002e-3OK
uw-imap-util 2002e-3OK
w32api   2.5-1  OK
wget 1.9.1-1  

/proc registry access

2004-09-03 Thread linda w
2 questions on the registry access in /proc. 

1) Any idea on why find would choke on registry subtrees containing :?  Is
some part of the path expansion going through Windows?
2) The user-guide implies read-write access to the registry-fs:
As anytime you deal with the Windows registry, use caution since
changes may result in an unstable or broken system.
   But I tried removing a value (that I can remove through regedit)
and get a read-only filesystem error message.  Is there something
I need to do to make it writeable?
Thanks!
-linda

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


Installing php 5

2004-09-03 Thread mirko tebaldi
Please, someone can help me (eventually in private mailing) step by step for
installing php 5 ?

i hve yet the full cygwin installed

mirko --supplying


--
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 ssh session privileges differ from console privileges?

2004-09-03 Thread Shaddy Baddah
Thank you Corinna. Your suggestion worked. You are too cool for school
:-D.
- Original Message - 
From: Corinna Vinschen corinna-cygwin at cygwin dot com
To: cygwin at cygwin dot com
Sent: Thursday, September 02, 2004 6:13 PM
Subject: Re: Cygwin ssh session privileges differ from console privileges?
The bottom line is, if you need all the user's access rights use password
authentication.  If that doesn't help, you're out of luck.
As you suggested, I had to change from publickey authentication to
password,keyboard-interactive. Here is how it was achieved:
 [EMAIL PROTECTED] ~
 $ ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications 
password,keyboard-interactive' [EMAIL PROTECTED]
 [EMAIL PROTECTED]'s password:
 Last login: Thu Sep  2 20:40:16 2004 from mydesktop

 [EMAIL PROTECTED] ~
 $ sqlplus /nolog
 SQL*Plus: Release 9.2.0.1.0 - Production on Fri Sep 3 05:17:37 2004
 Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 SQL connect / as sysdba
 Connected.
Thanks again, and best regards,
Shaddy

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


Re: Installing php 5

2004-09-03 Thread Reini Urban
mirko tebaldi schrieb:
Please, someone can help me (eventually in private mailing) step by step for
installing php 5 ?
i hve yet the full cygwin installed
Go to http://www.php.net
click on downloads
click on PHP 5.0.1 installer at Windows binaries
select your mirror.
To check if a package is included into cygwin,
look at http://cygwin.com/packages/
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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/


man pages taking long to show

2004-09-03 Thread Gorden Jemwa
I'm running cygwing on a WIN XP SP2 platform. When I invoke the MAN 
command for help it is taking unusually long to show. What could be the 
problem?

thanks,
Gorden
--
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/


Locking down cygwin for security

2004-09-03 Thread Colin JN Breame
Hello,
Is it possible to disabled certain features to make cygwin secure over 
ssh such that the logged in user cannot:

- cd into any /cygdrive drives
- mount any local or UNC drives
but still:
- access a system wide mount to a local drive
???
Thanks,
Colin
--
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: Locking down cygwin for security

2004-09-03 Thread Corinna Vinschen
On Sep  3 12:11, Colin JN Breame wrote:
 Hello,
 
 Is it possible to disabled certain features to make cygwin secure over 
 ssh such that the logged in user cannot:
 
 - cd into any /cygdrive drives
 - mount any local or UNC drives
 
 but still:
 
 - access a system wide mount to a local drive

No.  Securing a NT system requires using policies.  Cygwin can't do that
for you.


Corinna

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

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



Re: Locking down cygwin for security

2004-09-03 Thread egor duda
Colin JN Breame wrote:
Is it possible to disabled certain features to make cygwin secure over 
ssh such that the logged in user cannot:

- cd into any /cygdrive drives
- mount any local or UNC drives
but still:
- access a system wide mount to a local drive
You will gain little additional security by doing this. As long as you 
can't prevent user from calling normal win32 applications (such as as 
cmd.exe) and win32 APIs (like CreateFile ()) he will be able to accesss 
any drives on your system you're supposing to prevent him from.
Your only gain will be false sense of security.
The way to achieve real security is to set proper access rights for all 
files on all filesystems on your host and all other hosts this user can 
log into.

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


env -i specialities on cygwin

2004-09-03 Thread Christian Weinberger
If one wants to start a new process without an environment, env -i will be
the choice.
In the cygwin enviroment this leads to problems if /bin or /usr/bin are not
added to the PATH in the new process. In this case the cygwin1.dll is not
in the path and will not be found be the process that just tries to start.
This is true for all other DLLs that may be used by the cygwin executable.

There are two options to avoid this:
1) Modify all shell scripts that use env -i to include /usr/bin in the PATH
when porting appications to cygwin. This means lots of manual work since
shell scripts are often not considered to be dynamic in autoconf/automake
runs.
2) Modify the env binary to always include /usr/bin to the path, even if
the -i switch is specified. But this will not just allow access to the DLLs
but to all executables in the same directory. This may raise security
problems.

A third solution would be to have all cygwin DLLs in a separate directory
where no executables reside. But this would be a more dramatic change to
the distribution.

Any comments are welcome!

Regards,
Christian


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



duplicated doc directories in ctetris-0.29-1

2004-09-03 Thread Dr. Volker Zell
Hi

There are 2 dirs

 /usr/share/doc/ctetris-0.29
 /usr/share/doc/ctetris

in ctetris-0.29-1

Ciao
  Volker


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



Re: XEmacs and Windows Fonts

2004-09-03 Thread Dr. Volker Zell
 Jaap-Henk Hoepman writes:

 I installed xemacs 21.4.15 yesterday (on cygwin 1.5.10-3) using the cygwin
 netinstaller and still see the same problem (including weird truncation
 characters, instead of the usual arrows i saw in previous versions, and 
 failure to redisplay properly).

Sorry I'm only using the X version. I have no idea what's causing this.

 Regards,
 Jaap-Henk

Ciao
  Volker


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



Re: ghostscript?

2004-09-03 Thread Dr. Volker Zell
 sven geier writes:

 This may be a stupid-newbie-mistake or something, but I installed ghostscript 
 and gv and when I type at the prompt

 % gv /path/to/some/ps/document

 gv comes up fine, then gives me an error alert-box that 
 says Unknown device: x11

 Indeed, x11 does not seem to be one of the devices known to gs:


 so how is gv supposed to work? I can't be the first one to note this and I'm 
 sure there's something incredibly simple I have to do here somewhere but...

 [scratches head]

...search the archives. You must install the x11 version of gs.

Ciao
  Volker


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



Re: openldap 2.2.15-2

2004-09-03 Thread Dr. Volker Zell
 Robert Schmidt writes:

 I have problems running openldap 2.2.15-2 (cygwin is up-to-date as of
 this moment).

 Running slapd or slurpd produces the following error:

 The procedure entry point __dn_expand could not be located in the
 dynamic link library cygminires.dll.

 I also tried adding openldap-devel, with no change.

 Any ideas?

Sorry no, it works for me.

 Cheers,
 Robert

Ciao
  Volker


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



Re: How does a script find where Cygwin is installed?

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, luke.kendall wrote:

 $ CYGPATH=`cygpath -w /`
 $ echo $CYGPATH
 C:\cygwin
 $ CYGPATH=`cygpath -u $CYGPATH`
 $ echo $CYGPATH
 /

 What I really want to get is C:/cygwin

$ cygpath -m /

 or /cygdrive/c/cygwin, in my case.

$ cygpath -m / | sed 's,^\([A-Za-z]\):,/cygdrive/\1,'

 Look at the weird messages I get from this chmod:

 $ chmod -R ug+rwX,o+rX /
 chmod: getting attributes of `//bin: No such file or directory
 [snip similar messages]

This is a bug in chmod -R that manifests in Cygwin.  The real solution is
to fix chmod, in lines 236-241 of chmod.c in fileutils-4.1-2.  A
workaround would be

$ cd /  chmod -R ug+rwX,o+rX .

(or, a bit simpler, cd /  chmod -R a+rX,ug+w .)...

 (I'm doing this to try to ensure that if a SysAdmin user installs
 Cygwin for the actual owner of the machine, the owner will later have
 permission to update or even uninstall Cygwin themselves.)

HTH,
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: compilig error: storage size of `st' isn't known

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Jari Aalto+mail.linux wrote:

 I'm trying to compile Linux program that starts like this:

 int main(int argc, char **argv)
 {
   char **dirname = NULL;
   int i,j,n,p,q,dtotal,ftotal,colored = FALSE;
   struct stat64 st;

 But the compiler says:

 tree.c: In function `main':
 tree.c:204: error: storage size of `st' isn't known
 tree.c:204: warning: unused variable `st'

 What needs to be done in Cygwin to see struct stat ?
 Jari

You can see struct stat just fine, but struct stat64 is non-portable.
Just use struct stat -- I believe it's 64-bit in Cygwin anyway.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: Why is there a ZZZRemovedpackages?

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Carlo Florendo wrote:

 Hello,

 I'm actually not encountering any problem with cygwin now.  It has
 actually been performing impressively!  Thanks to all you cygwin people.

That's good to know.

 In any case, we keep a mirror of the cygwin releases and I was just
 curious why there is a ZZZRemovedpackages directory under /release.
 What's it for? Is it ok if I remove it completely from oour local mirror
 site?

I believe the category was created by Harold Hunt for the XFree86 upgrade
helpers when Cygwin/X switched to the X.org source base.  The name of the
category was supposed to imply that the packages should not be installed
on a fresh install.  The packages in that category are all very small,
though (about .5k per directory), and installing them should be harmless.
You can go either way.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



RE: How does a script find where Cygwin is installed?

2004-09-03 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of luke.kendall
 Sent: 03 September 2004 08:17


 (I'm doing this to try to ensure that if a SysAdmin user installs
 Cygwin for the actual owner of the machine, the owner will later have
 permission to update or even uninstall Cygwin themselves.)

  For this to work, they just need to install it For all users, don't
they?

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



RE: How to detect a broken Cygwin mirror?

2004-09-03 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of luke.kendall
 Sent: 03 September 2004 02:41

 Cygwin-specific expertise, and move on.  The worst experiences, in my
 opinion, are like this one, that seem to come down to a broken mirror:
 our mirror rsyncing to it and breaking, and then people updating or
 installing from our broken mirror, and getting into states 
 like my PC is
 in now.

  I don't think it's a sensible policy to be permanently chasing the
bleeding-edge of development in a production environment.  I think you
should set up your mirror with known good and stable versions of the tools
you need in your environment and then freeze it, and only update parts of it
as and when specifically needed and after testing and change control.  IOW,
I think this problem is better solved by development methodology and
management techniques than by a shell script.


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: /proc registry access

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, linda w wrote:

 2 questions on the registry access in /proc.
 1) Any idea on why find would choke on registry subtrees containing :?  Is
 some part of the path expansion going through Windows?

Yes.  Cygwin will not process paths that contain a : -- perhaps
erroneously, as it should probably check that the : is the second
character, preceded by a letter.  http://cygwin.com/acronyms/#PTC.

 2) The user-guide implies read-write access to the registry-fs:

 As anytime you deal with the Windows registry, use caution since
 changes may result in an unstable or broken system.

But I tried removing a value (that I can remove through regedit)
 and get a read-only filesystem error message.  Is there something
 I need to do to make it writeable?

Yes -- submit a patch to Cygwin. ;-)

Seriously, though, the /proc/registry handler does not support write
access to the registry.  The above is a standard disclaimer, though I
believe whoever put this in the description of /proc/registry was a bit
overzealous.

FWIW, if you want to use Cygwin tools to manipulate the registry, you can
use 'regtool'.

HTH,
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: openldap 2.2.15-2

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Robert Schmidt wrote:

 I have problems running openldap 2.2.15-2 (cygwin is up-to-date as of this
 moment).

 Running slapd or slurpd produces the following error:

 The procedure entry point __dn_expand could not be located in the dynamic
 link library cygminires.dll.

 I also tried adding openldap-devel, with no change.

 Any ideas?

Use the Cygwin package search page at http://cygwin.com/packages/ to
locate the package containing the DLL in question.  For cygminires.dll,
the package is minires.  The openldap package was apparently compiled
using a particular version of that package.

 minires  0.97-1 OK

You have minires-0.97-1 installed.  The latest version is 0.98-3.  Try
upgrading to it.  The API has apparently changed between the versions,
though the library is not versioned (this is arguably a packaging bug).

 cygcheck -c -v output:

 Cygwin Package Information
 [snip cygcheck -c output]

For the future, please a) use the output of cygcheck -svr, not just
cygcheck -cv, as requested in http://cygwin.com/problems.html, and
b) *attach* the output of cygcheck -svr instead of including it inline,
to minimize false positives in archive searches (again, as requested in
http://cygwin.com/problems.html).

 Package  VersionStatus
 Missing directory: /etc/apache.new/ from package apache
 Missing file: /etc/apache.new/access.conf from package apache
 Missing file: /etc/apache.new/access.conf.default from package apache
 [... hundreds more files missing in *.new ...]
 apache   1.3.29-2   Incomplete

Apache packaging is very cygcheck -c-unfriendly...

 Missing directory: /usr/share/man/cat1/ from package fetchmail
 fetchmail6.2.5-2Incomplete

Hmm, looks like a minor packaging bug.
Also, http://cygwin.com/packages/fetchmail/fetchmail-6.2.5-2 is empty
(Attn: CGF or Corinna).
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 executing a .bat script in a directory with spaces us ing bash

2004-09-03 Thread Buchbinder, Barry (NIH/NIAID)
Since nothing in the batch file refers to the directory, it looks like
cmd.exe/command.com received the full path when executed.  Compare the
following under cmd.exe (XP pro) and bash.

===
c:\tmp type t.bat
echo x %0 x
echo %1 %2 %3 %4 %5 %6 %7 %8 %9

c:\tmp t.bat a b c d e f g h i j k l m

c:\tmp echo x t.bat x
x t.bat x

c:\tmp echo a b c d e f g h i
a b c d e f g h i
===
/c/tmp cat t.bat
echo x %0 x
echo %1 %2 %3 %4 %5 %6 %7 %8 %9
/c/tmp t.bat a b c d e f g h i j k l m n o p

c:\tmp echo x c:\tmp\t.bat x
x c:\tmp\t.bat x

c:\tmp echo a b c d e f g h i
a b c d e f g h i
===

So the problem with spaces is that they are not being passed quoted.

I tried specifying the full path to the batch file and it worked for me.
YMMV.

===
/c/tmp /c/Program\ Files/t.bat a b c d e f g h i j k l

c:\tmp echo x c:\Program Files\t.bat x
x c:\Program Files\t.bat x

c:\tmp echo a b c d e f g h i
a b c d e f g h i
===

You might try specifying the full path with short names (8.3) to remove
the spaces.  The following is XP Pro with NTFS.

===
/c/tmp /c/progra~1/t.bat a b c

c:\tmp echo x c:\progra~1\t.bat x
x c:\progra~1\t.bat x

c:\tmp echo a b c
a b c
===

If that does not work in your case, you might having bash run a batch file
in a directory without spaces and have that batch file call the batch file
in the directory with spaces.  Although cmd.exe may not receive a properly
quoted %0 when called from bash, one would expect cmd.exe to get everything
OK when called from cmd.exe.

You may have to play with quotes, especially if you try to run a generic
batch file.  Don't forget to try quoting your double quotes so that cmd.exe
gets the double quotes that it expects.

Also, you might try other shells (bash, ash, etc.) in case this is
shell-specific and not cygwin-specific.  You might also try explicitly
specifying cmd.exe and command.com, in case they behave differently.

- Barry

At Thursday, September 02, 2004 10:55 AM, Sean Daley wrote:
 I'm currently using cygwin 1.5.10 and I'm having a problem trying to
 run a .bat file in
 a directory with spaces.  Here's an example of what I'm doing.
 
 1) mkdir C:\Space Dir
 2) Create a file called test.bat in C:\Space Dir
 3) Just add a single line with echo %1 in test.bat
 4) Start cygwin
 $ cd C:/Space\ Dir
 $ ./test.bat hello
 
 c:\Space Direcho hello
 hello
 
 $ ./test.bat hello world
 'c:\Space' is not recognized as an internal or external command,
 operable program or batch file.
 
 $
 
 If I try to run test.bat with an argument with spaces it fails with
 the error above.
 If I move test.bat to a directory without spaces, it works correctly.
 
 I know that cmd has some weird behavior when you execute a quoted cmd.
 Just using cmd in certain ways (outside of cygwin) will reproduce the
 issue mentioned
 above.
 
 Do the following:
 C:\cmd /c C:\Space Dir\test.bat hello
 
 C:\echo hello
 hello
 
 C:\cmd /c C:\Space Dir\test.bat hello world
 'C:\Space' is not recognized as an internal or external command,
 operable program or batch file.
 
 One way to actually get the second command to work is to quote the
 entire command
 like this:
 
 C:\cmd /c C:\Space Dir\test.bat hello world
 C:\echo hello world
 hello world
 
 Unfortunately we have some batch scripts which live in directories
 with spaces that I'd
 really like to run.
 
 Thanks.
 
 Sean

--
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: man pages taking long to show

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Gorden Jemwa wrote:

 I'm running cygwing on a WIN XP SP2 platform. When I invoke the MAN
 command for help it is taking unusually long to show. What could be the
 problem?

There could be many reasons.  Please review and follow

 Problem reports:   http://cygwin.com/problems.html

particularly the bit about *attaching* (as an uncompressed text
*attachment*) the output of cygcheck -svr on your system.

In the absense of the above information, one WAG is that your MANPATH
somehow contains a disconnected network share...  Or the built-in firewall
in SP2 is blocking some hostname lookup or another, and the bash scripts
are waiting to time out...  Other guesses may follow once you provide more
info.  You may ultimately have to debug this yourself, though, just so you
are aware of the possibility and can mentally prepare. ;-)
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: env -i specialities on cygwin

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Christian Weinberger wrote:

 If one want´s to start a new process without an environment, env -i will be
 the choice.
 In the cygwin enviroment this leads to problems if /bin or /usr/bin are not
 added to the PATH in the new process. In this case the cygwin1.dll is not
 in the path and will not be found be the process that just tries to start.
 This is true for all other DLLs that may be used by the cygwin executable.

Yes, that's the way Windows works.  You *have* to have /bin in your PATH
if you want the Windows dynamic loader to find your DLL.

 There are two options to avoid this:
 1) Modify all shell scripts that use env -i to include /usr/bin in the PATH
 when porting appications to cygwin. This means lots of manual work since
 shell scripts are often not considered to be dynamic in autoconf/automake
 runs.
 2) Modify the env binary to always include /usr/bin to the path, even if
 the -i switch is specified. But this will not just allow access to the DLLs
 but to all executables in the same directory. This may raise security
 problems.

Option 2 looks like one that follows the principle of least surprise.
Frankly, I don't see how this raises security problems, as the executables
can always be accessed directly via /bin/blah.exe or /usr/bin/blah.exe
anyway...

 A third solution would be to have all cygwin DLLs in a separate directory
 where no executables reside. But this would be a more dramatic change to
 the distribution.

If you want better security (i.e., protection from malicious scripts), use
chroot.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

RE: How does a script find where Cygwin is installed?

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Dave Korn wrote:

  -Original Message-
  From: luke.kendall
  Sent: 03 September 2004 08:17

  (I'm doing this to try to ensure that if a SysAdmin user installs
  Cygwin for the actual owner of the machine, the owner will later have
  permission to update or even uninstall Cygwin themselves.)

   For this to work, they just need to install it For all users, don't
 they?

Not necessarily.  There may be weird inheritable permissions on C:\, which
will propagate to C:\cygwin, and from there to all of the installed files.
The above is one way of fixing this after the fact.  Arguably, setup.exe
should check for these kinds of problems before creating C:\cygwin on new
installs (http://cygwin.com/acronyms/#PTC).
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Christopher Cobb
I get different results than you do.  It seems to work as expected:

[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1

[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat

C:\Documents and Settingsecho  
ECHO is on.




--
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 executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Christopher Cobb wrote:

 I get different results than you do.  It seems to work as expected:

 [EMAIL PROTECTED] /c/Documents and Settings 09:45:46
 511$ cat test.bat
 echo %1

 [EMAIL PROTECTED] /c/Documents and Settings 09:45:48
 511$ ./test.bat

 C:\Documents and Settingsecho
 ECHO is on.

I believe you're missing the point.  Try

./test.bat hello world

and you'll get the error.

I've come across this when writing a pure Windows loader for another
program.  The above is actually an idiosyncrasy of the way spawn() works
in Cygwin (and, incidentally, in Windows' own MSVCRT) -- it calls
CreateProcess, which expects all arguments combined into one command
string (which, in turn, is later parsed for separate arguments - yes,
retarded, I know).  The fact is that, if any argument contains spaces, it
has to be quoted before CreateProcess() is invoked.  Cygwin apparently
doesn't do this properly to the first argument, so the above breaks.  See
spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line function).
http://cygwin.com/acronyms/#PTC.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Keeping a local mirror up to date

2004-09-03 Thread Keith Christian
Scenario:

A few months ago I used SETUP.EXE to download from internet to a local hard
drive, which I copied to a CD to make it easier to install Cygwin on
workstations.

When I want to update this local disk mirror with the latest packages, which
option do I choose to download ONLY updated or brand new packages, skipping
what is unchanged?

Is a update an existing local mirror procedure in a FAQ somewhere?

Thanks.

===Keith




--
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: Keeping a local mirror up to date

2004-09-03 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Keith Christian
 Sent: 03 September 2004 15:09

 Scenario:
 
 A few months ago I used SETUP.EXE to download from internet 
 to a local hard
 drive, which I copied to a CD to make it easier to install Cygwin on
 workstations.
 
 When I want to update this local disk mirror with the latest 
 packages, which
 option do I choose to download ONLY updated or brand new 
 packages, skipping
 what is unchanged?

  Setup does that always.  It should never re-download anything that's
already in the download-from-internet directory; it tracks what's there.

 Is a update an existing local mirror procedure in a FAQ somewhere?

  Simply choose Download from internet again.  It'll only fetch the newer
stuff.

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Problem executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Mark Bohlman
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Christopher Cobb wrote:

I get different results than you do.  It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat
C:\Documents and Settingsecho
ECHO is on.

I believe you're missing the point.  Try
../test.bat hello world
and you'll get the error.
I've come across this when writing a pure Windows loader for another
program.  The above is actually an idiosyncrasy of the way spawn() works
in Cygwin (and, incidentally, in Windows' own MSVCRT) -- it calls
CreateProcess, which expects all arguments combined into one command
string (which, in turn, is later parsed for separate arguments - yes,
retarded, I know).  The fact is that, if any argument contains spaces, it
has to be quoted before CreateProcess() is invoked.  Cygwin apparently
doesn't do this properly to the first argument, so the above breaks.  See
spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line function).
http://cygwin.com/acronyms/#PTC.
Igor

You get the same odd evaluation behavior when doing
echo Hello World | ./test.bat
(in any directory).
-- Mark
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: How to detect a broken cygwin mirror? (gold star alert)

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 01:49:40PM +0100, Dave Korn wrote:
 -Original Message-
 From: cygwin-owner On Behalf Of luke.kendall
 Sent: 03 September 2004 02:41

Cygwin-specific expertise, and move on.  The worst experiences, in my
opinion, are like this one, that seem to come down to a broken mirror:
our mirror rsyncing to it and breaking, and then people updating or
installing from our broken mirror, and getting into states like my PC
is in now.

I don't think it's a sensible policy to be permanently chasing the
bleeding-edge of development in a production environment.  I think you
should set up your mirror with known good and stable versions of the
tools you need in your environment and then freeze it, and only update
parts of it as and when specifically needed and after testing and
change control.  IOW, I think this problem is better solved by
development methodology and management techniques than by a shell
script.

Can I get YA gold star for Dave here?

This is eminently sensible advice.  I was thinking the same thing but
every message I started to compose on the subject did not put it as well
or as non-meanly.

cgf

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



Re: Problem executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Christopher Cobb
Igor Pechtchanski pechtcha at cs.nyu.edu writes:
 I believe you're missing the point.  Try
 
 ./test.bat hello world
 
 and you'll get the error.

I use the following shell function cmd() to invoke batch files.  It removes
cygwinisms from the PATH and the environment first and does some argument
pre-processing.  It also seems to fix the space problem.

[EMAIL PROTECTED] /c/Documents and Settings 10:36:09
508$ cat test.bat
echo %1

[EMAIL PROTECTED] /c/Documents and Settings 10:38:30
509$ cmd test Hello, world.

C:\Documents and Settingsecho Hello, world. 
Hello, world.


--- cmd() ---
cmd () 
{ 
( local c=`cygpath -w \$1\`;
shift;
local cmd=`cygpath -u $COMSPEC`;
while [ $# != 0 ]; do
if [ -f $1 ]; then
local args=$args '`cygpath -w $1`';
else
if [ -d $1 ]; then
local args=$args '`cygpath -w $1 | sed '[EMAIL PROTECTED]@@'`';
else
local args=$args '$1';
fi;
fi;
shift;
done;
PATH=`echo $PATH |
  tr : '\n' |
  egrep -vw '^(/usr/local/bin|/usr/bin|/bin|/usr/X11R6/bin)$' |
  tr '\n' :`;
unset BASH_ENV COLORTERM CYGWIN DISPLAY HISTCONTROL MAKE_MODE;
unset MANPATH PKG_CONFIG_PATH PS1 PWD SHLVL TERM USER _;
unset CVS CVSROOT CVS_RSH GEN_HOME GROOVY_HOME TOMCAT_DIR;
eval $cmd /c $c $args )
}
--- end cmd() ---



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



windows dlls?

2004-09-03 Thread Mike
I use an application that allows the calling of external, user
created DLLs. I have created these DLLs previously using Microsoft's
VC++. Can I instead create the DLLs using gcc/cygwin? I'm a
unixhead from way back and don't like the Microsoft stuff. I
much prefer to stick with what I'm comfortable with.

If I can create usable DLLs, what things must I be aware of?

Mike

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



Re: e2fsprogs

2004-09-03 Thread Gerrit P. Haase
Hallo Reini,

Am Montag, 30. August 2004 um 08:13 schriebst du:

 Gerrit P. Haase schrieb:
$ export tooldir=/usr/i686-pc-mingw32
$ ls -ld ${tooldir}/../lib/w32api
drwxrwxr-x+   2 Administ SYSTEM  0 Jul 30 17:25
/usr/i686-pc-mingw32/../lib/w32api/
$
 
To the OP: your problem may potentially be that you're missing the
/usr/lib mount.  However, since you didn't follow the Cygwin problem
reporting guidelines at http://cygwin.com/problems.html, and didn't
attach the output of cygcheck -svr to your report, the above is just a
WAG.

 my /usr/lib mount works okay,
 my latest -mno-cygwin linking after upgrading gcc fail also,
(I do that automatically with a cronjob and didn't have a look,
 since only the xvidcore/dshow build failed)
 but I think it's just missing the libuuid. at least for me.

 I have the -luuid together with the other w32api libs,
-lwinmm -lole32 -loleaut32 -lcomctl32
 just for the libuuid symbols get I more undefined references to 
 `_GUID_NULL' _IID_IUnknown, _IID_IPropertyPagem, _IID_IPersist, ...

 And what do I find?
 there's a new /usr/lib/libuuid.a which takes precedence over 
 /usr/lib/w32api/libuuid.a
 therefore my uuid symbols don't get found.

 $ cygcheck -f /usr/lib/libuuid.a
 e2fsprogs-1.35-1

 aha, the culprit!
 please de-install all e2fsprogs, then it will work.

 efsprog maintainer: please move this to your subdir 
 /usr/lib/efsprog/libuuid.a

Thats it, thank you for the analysis, I just thought all the time
after the thread, why are all libraries found, but uuid isn't?
I remember now that I also have e2fsprogs installed and libwin32
failis for me with exactly the same error.


Gerrit

-- 
=^..^=



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



Re: Keeping a local mirror up to date

2004-09-03 Thread Max Bowsher
Keith Christian wrote:
Scenario:
A few months ago I used SETUP.EXE to download from internet to a local 
hard
drive, which I copied to a CD to make it easier to install Cygwin on
workstations.

When I want to update this local disk mirror with the latest packages, 
which
option do I choose to download ONLY updated or brand new packages, 
skipping
what is unchanged?

Is a update an existing local mirror procedure in a FAQ somewhere?
Experiment with clean_setup.pl (google)
You need to use it like this:
wget a new setup.ini
clean_setup.pl
wget the files it says are missing
clean_setup.pl # puts the new downloads in the right directories.
Max.
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: e2fsprogs

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 04:55:48PM +0200, Gerrit P. Haase wrote:
Thats it, thank you for the analysis, I just thought all the time
after the thread, why are all libraries found, but uuid isn't?
I remember now that I also have e2fsprogs installed and libwin32
failis for me with exactly the same error.

Huh?  Wha?  Was there some kind of problem with e2fsprogs?  I must have
missed it.

cgf

(trying to move to the next iteration so that I can be mean)

--
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: Keeping a local mirror up to date

2004-09-03 Thread Dave Korn
 -Original Message-
 From: Keith Christian 
 Sent: 03 September 2004 15:27
 To: Dave Korn

  Oops!  We should always keep questions and replies on the list - that way
they're there in the web archive for anyone else in future who comes along
with the same problem

 Thanks - one more question - What if the mirror the original 
 mirror was
 created from is temporarily unavailable?
 
 Example: This morning, the previous mirror was not available:
 
 cygwin_install/dist/ftp%3a%2f%2fftp.nas.nasa.gov%2fmirrors%2fc
 ygwin.com%2fpub%2fcygwin
 
 So I chose mirrors.kernel.org which created this directory:
 cygwin_install/dist/ftp%3a%2f%2fmirrors.kernel.org%2fsources.r
 edhat.com%2fcygwin
 
 
 Further:
 
 1. Suppose the local download directory of ftp.nas.nasa.gov 
 had version 1.1 of
 package foo.
 
 2. Suppose another local download directory of 
 ftp.nas.nasa.gov had a more
 recent version 1.2 of package foo.
 
 3. Suppose package foo is still at version 1.2 on any up to 
 date Cygwin
 mirror.
 
 Then: Does SETUP.EXE check all existing local directories to see which
 contains the most up to date version of a file before 
 bothering to download it
 again? 

  Yes.

  Does SETUP.EXE check only the local directory that 
 matches the mirror
 it is currently connected to?

  No.

  By design, setup searches through all the download directories, keeps
track of all the versions, should know exactly what you've already got and
never re-download something you already have; if it ever does, it's a bug.

  There is one caveat: if setup dies - actually crashes or is killed -
part-way through downloading a whole series of packages, it may not have
updated its catalog by the time it gets terminated, and so it might download
them again.  But once setup has downloaded and exited successfully, it
should know and remember what it's done and not do it again.

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Perl searching in wrong path for modules?

2004-09-03 Thread Gerrit P. Haase
Hallo Frank,

 perl looks in the wrong folder for the Perl Modules, for example if i
 want to load Archive::Zip, it trys to load it from 
 D:\usr\lib\perl5\site_perl\5.8.5\XML\Simple.pm instead of 
 D:\cygwin(\usr)\lib\perl5\site_perl\5.8.5\XML\Simple.pm. So i wonder if
 this is a bug in cygwin perl or rather a bug in Apache (or a error from
 my side even?). I attached the cygcheck output, if it matters. My OS is
 Windows 2000, Apache was 2.0.50, Cygwin is 1.5.10-cr-0x5e6.

You may try to install Cygwin in the root of a drive instead of a
subdirectory and see if it works then.  Basically Cygwin applications
use the Cygwin mount system where Windows applicatoins know nothing
about, so this problem is by design.


Gerrit
-- 
=^..^=



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



Re: BUG gcc-mingw 20040810-1 library search path

2004-09-03 Thread Gerrit P. Haase
Hallo Igor,

Am Montag, 30. August 2004 um 16:14 schriebst du:

 On Mon, 30 Aug 2004, Gerrit P. Haase wrote:
  This is in binutils/ld/configure.tgt:
  i[3-7]86-*-cygwin*) targ_emul=i386pe ;
  targ_extra_ofiles=deffilep.o pe-dll.o
  test $targ != $host 
  LIB_PATH='${tooldir}/lib/w32api' ;;
 
  where tooldir should be /usr/i686-pc-mingw32 in this case and you need
  to have the symlinks installed in /usr/i686-pc-mingw32:
  21 Nov  1  2003 bin - ../i686-pc-cygwin/bin
  16 Nov  1  2003 include - ../include/mingw
  12 Nov  1  2003 lib - ../lib/mingw

The whole point was that there is stated in binutils ld config
LIB_PATH='${tooldir}/lib/w32api' and the symlink is named
/usr/i686-pc-mingw32/lib and this sysmlink points to ../lib/mingw
which means saying /usr/i686-pc-mingw32/lib means the same as saying
/usr/i686-pc-mingw32/../lib/mingw.  When I say now
${tooldir}/lib/w32api it is the same as saying
/usr/i686-pc-mingw32/../lib/mingw/w32api which doesn't resolve and I
wonder how this works.

I'm sure it is working since the windows import libraries are included
all the time when you link and they are always in path, removing
libuuid from /usr/lib should do it in the case of the initial starter
and if he needs to have it then moving to another directory should
help.  The e2fs maintainer will move it to a subdirectory the next
release.

Gerrit


-- 
=^..^=



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



RE: e2fsprogs

2004-09-03 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Christopher Faylor
 Sent: 03 September 2004 16:04

 On Fri, Sep 03, 2004 at 04:55:48PM +0200, Gerrit P. Haase wrote:
 Thats it, thank you for the analysis, I just thought all the time
 after the thread, why are all libraries found, but uuid isn't?
 I remember now that I also have e2fsprogs installed and libwin32
 failis for me with exactly the same error.
 
 Huh?  Wha?  Was there some kind of problem with e2fsprogs?  I 
 must have missed it.


poke


  Hey Igor!  You were supposed to rememeber to do that!


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: OpenJade and phpdocs

2004-09-03 Thread Gerrit P. Haase
Hallo Mirko,

Am Donnerstag, 2. September 2004 um 11:23 schriebst du:

 i would like to make from phpdoc tree a html, pdf, rtf, and so on...

 i installed cygwin 'full optional', so openjade is actually present and
 installed.

 can some one guide me through the process ? i read instruction at:
 http://it.tldp.org/HOWTO/DocBook-OpenJade-SGML-XML-HOWTO/index.html

 but it say to configure openjade for path I cannot locate. ... can tell me
 more please ?

Can you tell me more please, the site cited above is italian which I
don't understand, which path are you missing and what means configure
openjade?


Gerrit
-- 
=^..^=



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



Re: duplicated doc directories in ctetris-0.29-1

2004-09-03 Thread Reini Urban
Dr. Volker Zell schrieb:
There are 2 dirs
 /usr/share/doc/ctetris-0.29
 /usr/share/doc/ctetris
in ctetris-0.29-1
yes, sorry. gbs is quite complicated with the docs, and I didn't check.
the next release will be better.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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 executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Mark Bohlman wrote:

 Igor Pechtchanski wrote:
  On Fri, 3 Sep 2004, Christopher Cobb wrote:
 
   I get different results than you do.  It seems to work as expected:
  
   [EMAIL PROTECTED] /c/Documents and Settings 09:45:46
   511$ cat test.bat
   echo %1
  
   [EMAIL PROTECTED] /c/Documents and Settings 09:45:48
   511$ ./test.bat
  
   C:\Documents and Settingsecho
   ECHO is on.
 
  I believe you're missing the point.  Try
 
  ../test.bat hello world
 
  and you'll get the error.
 
  I've come across this when writing a pure Windows loader for another
  program.  The above is actually an idiosyncrasy of the way spawn() works
  in Cygwin (and, incidentally, in Windows' own MSVCRT) -- it calls
  CreateProcess, which expects all arguments combined into one command
  string (which, in turn, is later parsed for separate arguments - yes,
  retarded, I know).  The fact is that, if any argument contains spaces, it
  has to be quoted before CreateProcess() is invoked.  Cygwin apparently
  doesn't do this properly to the first argument, so the above breaks.  See
  spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line function).
  http://cygwin.com/acronyms/#PTC.
  Igor

 You get the same odd evaluation behavior when doing
 echo Hello World | ./test.bat
 (in any directory).
 -- Mark

Actually, I don't.  Did you, by chance, mean echo ...|xargs ./test.bat?
Even so, you should probably be a bit more specific about the odd
evaluation behavior that you're observing.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Re: How to detect a broken cygwin mirror? (gold star alert)

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Christopher Faylor wrote:

 On Fri, Sep 03, 2004 at 01:49:40PM +0100, Dave Korn wrote:
  -Original Message-
  From: cygwin-owner On Behalf Of luke.kendall
  Sent: 03 September 2004 02:41
 
 Cygwin-specific expertise, and move on.  The worst experiences, in my
 opinion, are like this one, that seem to come down to a broken mirror:
 our mirror rsyncing to it and breaking, and then people updating or
 installing from our broken mirror, and getting into states like my PC
 is in now.
 
 I don't think it's a sensible policy to be permanently chasing the
 bleeding-edge of development in a production environment.  I think you
 should set up your mirror with known good and stable versions of the
 tools you need in your environment and then freeze it, and only update
 parts of it as and when specifically needed and after testing and
 change control.  IOW, I think this problem is better solved by
 development methodology and management techniques than by a shell
 script.

 Can I get YA gold star for Dave here?

 This is eminently sensible advice.  I was thinking the same thing but
 every message I started to compose on the subject did not put it as well
 or as non-meanly.

 cgf

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

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: OpenSSH on windows Problem

2004-09-03 Thread David A. Case
On Thu, Sep 02, 2004, Christopher Faylor wrote:
 
 This is really really simple and I don't know why it is so confusing.
 
 If your program uses the cygwin DLL, then your program is GPLed.

On possible reason for confusion is that statments like this one (which have
appeared many times on this list) are poorly worded.

It would be better to say something like this: If you distribute a program
linked to the cygwin DLL without making that program available under the GPL
(or an equivalent allowable license) you are in violation of the license
under which you received the cygwin DLL in the first place.

It is possible, but unlikely, that a court could order a remedy that would
force you to distribute your program under the GPL.  It is not that case that
violating the cygwin license means that your program is GPLed in some
instantaneous or automatic fashion, simply as consequence of your bad behavior.

Fears that programs might somehow be automatically forced under the GPL may
help propagate the (false) perception that the GPL is viral.

...dave case

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



Re: Problem executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Mark Bohlman
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:

Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Christopher Cobb wrote:

I get different results than you do.  It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat
C:\Documents and Settingsecho
ECHO is on.
I believe you're missing the point.  Try
../test.bat hello world
and you'll get the error.
I've come across this when writing a pure Windows loader for another
program.  The above is actually an idiosyncrasy of the way spawn() works
in Cygwin (and, incidentally, in Windows' own MSVCRT) -- it calls
CreateProcess, which expects all arguments combined into one command
string (which, in turn, is later parsed for separate arguments - yes,
retarded, I know).  The fact is that, if any argument contains spaces, it
has to be quoted before CreateProcess() is invoked.  Cygwin apparently
doesn't do this properly to the first argument, so the above breaks.  See
spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line function).
http://cygwin.com/acronyms/#PTC.
Igor
You get the same odd evaluation behavior when doing
echo Hello World | ./test.bat
(in any directory).
-- Mark

Actually, I don't.  Did you, by chance, mean echo ...|xargs ./test.bat?
Even so, you should probably be a bit more specific about the odd
evaluation behavior that you're observing.
Igor
Hmmm.  I'm seeing the same results as you show above with a quoted 
Hello World parameter to the ./test.bat.

Then in doing the echo, without the xargs, results in the same 
non-evaluation (what i consider to be 'odd') for parameter %1 within 
the test.bat file.
-- Mark

--
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: Perl searching in wrong path for modules?

2004-09-03 Thread Reini Urban
Gerrit P. Haase schrieb:
perl looks in the wrong folder for the Perl Modules, for example if i
want to load Archive::Zip, it trys to load it from 
D:\usr\lib\perl5\site_perl\5.8.5\XML\Simple.pm instead of 
D:\cygwin(\usr)\lib\perl5\site_perl\5.8.5\XML\Simple.pm. So i wonder if
this is a bug in cygwin perl or rather a bug in Apache (or a error from
my side even?). I attached the cygcheck output, if it matters. My OS is
Windows 2000, Apache was 2.0.50, Cygwin is 1.5.10-cr-0x5e6.
no bug at all.
You may try to install Cygwin in the root of a drive instead of a
subdirectory and see if it works then.  Basically Cygwin applications
use the Cygwin mount system where Windows applicatoins know nothing
about, so this problem is by design.
I used to solve the mod_perl or CGI problems with apache by
subst'ing x:\cygwin to a letter, and install apache there.
n:/Apache
n:/bin
n:/lib ...
then you can safely use #!/bin/perl in your she-bang lines,
using the cygwin perl and any unix perl also.
with activeperl see below.
the win32 module builds fine on cygwin, besides Win32::OLE. you can also 
 copy the win32 libs from 5.8.2 to 5.8.5. don't forget archlib then.

instead of a new cygwin install, you can also try the subst trick
with the activestate perl. this need much less time.
you can also always fool activestate perl @INC with certain registry 
entries.
I for example have this:

[HKEY_LOCAL_MACHINE\SOFTWARE\Perl]
lib-5.00502=D:\\perl\\5.00502\\lib
sitelib-5.00502=D:\\perl\\site\\5.00502\\lib
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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: windows dlls?

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Mike wrote:

 I use an application that allows the calling of external, user
 created DLLs. I have created these DLLs previously using Microsoft's
 VC++. Can I instead create the DLLs using gcc/cygwin?

Yes.  See http://cygwin.com/cygwin-ug-net/dll.html

 I'm a unixhead from way back and don't like the Microsoft stuff. I much
 prefer to stick with what I'm comfortable with.

 If I can create usable DLLs, what things must I be aware of?

The bad news is that the main Cygwin DLL (/bin/cygwin1.dll) cannot be
loaded dynamically from Windows programs (using LoadLibrary).  Therefore,
any DLL depending on it won't be dynamically loadable either.

The good news is that you can use Cygwin gcc to create MinGW DLLs and
programs, and those won't depend on cygwin1.dll, so you'll be able to use
them from Windows programs.  They probably would be better anyway, because
Windows would pass Win32 paths, etc, when calling the exported functions.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Re: How to detect a broken cygwin mirror? (gold star alert)

2004-09-03 Thread Reini Urban
Christopher Faylor schrieb:
On Fri, Sep 03, 2004 at 01:49:40PM +0100, Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of luke.kendall
Sent: 03 September 2004 02:41

Cygwin-specific expertise, and move on.  The worst experiences, in my
opinion, are like this one, that seem to come down to a broken mirror:
our mirror rsyncing to it and breaking, and then people updating or
installing from our broken mirror, and getting into states like my PC
is in now.
I don't think it's a sensible policy to be permanently chasing the
bleeding-edge of development in a production environment.  I think you
should set up your mirror with known good and stable versions of the
tools you need in your environment and then freeze it, and only update
parts of it as and when specifically needed and after testing and
change control.  IOW, I think this problem is better solved by
development methodology and management techniques than by a shell
script.
Can I get YA gold star for Dave here?
This is eminently sensible advice.  I was thinking the same thing but
every message I started to compose on the subject did not put it as well
or as non-meanly.
I have a very different opinion on this.
When a mirror stops mirroring, the poor user will not be able to update 
any fixes to his installation, and will bother the mailing list then.
He will never detect that another mirror has a newer setup.ini, because 
mirroring is only pull, not push.

So he will never get to any updates or fixes.
Nobody on the mailinglist ever said that this or that certain mirror is 
old or stale. Just the word stale mirror is common. For example to get 
buggy gcc versions.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
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: OpenJade and phpdocs

2004-09-03 Thread Reini Urban
Mirko Tebaldi (Indirizzo Pubblico) schrieb:
i would like to make from phpdoc tree a html, pdf, rtf, and so on...
i installed cygwin 'full optional', so openjade is actually present and
installed.
can some one guide me through the process ? i read instruction at:
http://it.tldp.org/HOWTO/DocBook-OpenJade-SGML-XML-HOWTO/index.html
but it say to configure openjade for path I cannot locate. ... can tell me
more please ?
you must open a cygwin shell (bash).
you must have php.exe or php-cli.exe command client in your path and
then simply follow the instructions.
I have my php.exe in /usr/local/bin, which is quite a good idea with 
pear, because pear/PHPdoc/phpdoc starts with line:
#!/usr/local/bin/php -Cq
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
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 executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Mark Bohlman wrote:

 Igor Pechtchanski wrote:
  On Fri, 3 Sep 2004, Mark Bohlman wrote:
 
   Igor Pechtchanski wrote:
  
On Fri, 3 Sep 2004, Christopher Cobb wrote:
   
 I get different results than you do.  It seems to work as expected:

 [EMAIL PROTECTED] /c/Documents and Settings 09:45:46
 511$ cat test.bat
 echo %1

 [EMAIL PROTECTED] /c/Documents and Settings 09:45:48
 511$ ./test.bat

 C:\Documents and Settingsecho
 ECHO is on.
   
I believe you're missing the point.  Try
   
../test.bat hello world
   
and you'll get the error.
   
I've come across this when writing a pure Windows loader for
another program.  The above is actually an idiosyncrasy of the way
spawn() works in Cygwin (and, incidentally, in Windows' own
MSVCRT) -- it calls CreateProcess, which expects all arguments
combined into one command string (which, in turn, is later parsed
for separate arguments - yes, retarded, I know).  The fact is
that, if any argument contains spaces, it has to be quoted before
CreateProcess() is invoked.  Cygwin apparently doesn't do this
properly to the first argument, so the above breaks. See
spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line
function). http://cygwin.com/acronyms/#PTC.
Igor
  
   You get the same odd evaluation behavior when doing
   echo Hello World | ./test.bat
   (in any directory).
   -- Mark
 
  Actually, I don't.  Did you, by chance, mean echo ...|xargs ./test.bat?
  Even so, you should probably be a bit more specific about the odd
  evaluation behavior that you're observing.
  Igor

 Hmmm.  I'm seeing the same results as you show above with a quoted Hello
 World parameter to the ./test.bat.

 Then in doing the echo, without the xargs, results in the same
 non-evaluation (what i consider to be 'odd') for parameter %1 within the
 test.bat file.
 -- Mark

Well, piping the output of echo to test.bat's stdin is *not* the same as
passing the string as a parameter.  In the former case, test.bat is called
with no arguments, so %1 evaluates to nothing.  IOW, the behavior you're
seeing is expected.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Re: How to detect a broken cygwin mirror? (gold star alert)

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 05:58:03PM +0200, Reini Urban wrote:
Christopher Faylor schrieb:
On Fri, Sep 03, 2004 at 01:49:40PM +0100, Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of luke.kendall
Sent: 03 September 2004 02:41

Cygwin-specific expertise, and move on.  The worst experiences, in my
opinion, are like this one, that seem to come down to a broken mirror:
our mirror rsyncing to it and breaking, and then people updating or
installing from our broken mirror, and getting into states like my PC
is in now.

I don't think it's a sensible policy to be permanently chasing the
bleeding-edge of development in a production environment.  I think you
should set up your mirror with known good and stable versions of the
tools you need in your environment and then freeze it, and only update
parts of it as and when specifically needed and after testing and
change control.  IOW, I think this problem is better solved by
development methodology and management techniques than by a shell
script.

Can I get YA gold star for Dave here?

This is eminently sensible advice.  I was thinking the same thing but
every message I started to compose on the subject did not put it as well
or as non-meanly.

I have a very different opinion on this.

That's because you don't seem to be understanding what was being said.

When a mirror stops mirroring, the poor user will not be able to update 
any fixes to his installation, and will bother the mailing list then.
He will never detect that another mirror has a newer setup.ini, because 
mirroring is only pull, not push.

So he will never get to any updates or fixes.

Dave said that you set up YOUR OWN mirror with known, good, working
versions of the packages and only update parts of it when needed.  That
is the only sane way to set things up for a production environment.
Otherwise, you are subject to the whims of every package maintainer.

If I update cygwin tomorrow and it has a bug, and you download the buggy
cygwin to either your mirror or your local drive, you are potentially
dead in the water.  If everyone in your organization does this, then the
whole organization is dead in the water.

Worrying about the best mirror to use doesn't help.  The best mirror
is not going to know that cygwin is broken.  The only way to verify that
nothing is broken for your organization is to do controlled, staged,
tested updates to your own local mirror.

Your local mirror needs to be maintained by someone, of course.  There
should never be a situation where it is not being updated due to lack
of attention.  The added delay will mean that a user may not see a bug
fix as fast as someone who updates cygwin every fifteen minutes but,
for an environment that entails unknowledgeable users and relies on
not being down for long periods of time, this is the only way to do
things.

cgf

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



RE: e2fsprogs

2004-09-03 Thread Igor Pechtchanski
On Fri, 3 Sep 2004, Dave Korn wrote:

  -Original Message-
  From: cygwin-owner On Behalf Of Christopher Faylor
  Sent: 03 September 2004 16:04

  On Fri, Sep 03, 2004 at 04:55:48PM +0200, Gerrit P. Haase wrote:
  Thats it, thank you for the analysis, I just thought all the time
  after the thread, why are all libraries found, but uuid isn't?
  I remember now that I also have e2fsprogs installed and libwin32
  failis for me with exactly the same error.
 
  Huh?  Wha?  Was there some kind of problem with e2fsprogs?  I
  must have missed it.

 poke
   Hey Igor!  You were supposed to rememeber to do that!

Sorry, I was too busy with that gold star thing...
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: OpenSSH on windows Problem

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 08:35:01AM -0700, David A. Case wrote:
On Thu, Sep 02, 2004, Christopher Faylor wrote:
This is really really simple and I don't know why it is so confusing.

If your program uses the cygwin DLL, then your program is GPLed.

On possible reason for confusion is that statments like this one (which
have appeared many times on this list) are poorly worded.

What an arrogant statement.  I was trying to distill this down to
simple, clear sentences.  There is a lot more that can be said about
this but, if you really don't understand if you are affected then you
need to consult both technical and legal help.

It would be better to say something like this: If you distribute a
program linked to the cygwin DLL without making that program available
under the GPL (or an equivalent allowable license) you are in violation
of the license under which you received the cygwin DLL in the first
place.

It is possible, but unlikely, that a court could order a remedy that
would force you to distribute your program under the GPL.  It is not
that case that violating the cygwin license means that your program is
GPLed in some instantaneous or automatic fashion, simply as
consequence of your bad behavior.

That is entirely debatable and you have no basis for making such an
authoritative statement.

Fears that programs might somehow be automatically forced under the GPL
may help propagate the (false) perception that the GPL is viral.

When you use the cygwin DLL in your program and distribute it, you are
implicitly agreeing to the license terms of the cygwin DLL.  That means
that you must adhere to the GPL, ergo your program is GPLed.

It is Red Hat's intent that the only acceptable use of the cygwin DLL
should be in accordance with the GPL as described on the cygwin
licensing page.

If you are distributing your program without checking on the licensing
of the software that it uses, then you get what you deserve.

If you want to debate the fine points of the law, then either contact
Red Hat directly or find another mailing list.  Until then, my poorly
worded statements will have to serve as the definitive answer for this
topic.
--
Christopher Faylor  spammer? - [EMAIL PROTECTED]
Cygwin Co-Project Leader[EMAIL PROTECTED]
TimeSys, Inc.

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



Change path for php

2004-09-03 Thread Mirko Tebaldi \(Indirizzo Pubblico\)
when i execute autoconf
and then
./configure --with-lang=it

i obtain and error of php not present.

i installed then windows 32 binaries of php4. so i obtain to have
c:\php\cli\php.exe

like requested from documentations ()php-doc ho to)

i quote the documentation:
-
You also need a working copy of PHP 4.x to build the manual. On Windows, you
should put a php.bat file to the phpdoc-tools directory, with a PHP calling
line. You may use the recommended php.ini file as the default settings for
PHP scripts differ from the ones required by phpdoc PHP scripts. The
recommended php.ini file can be found in phpdoc/scripts. Something like this
works (modify this according to your PHP setup directory):


@C:\php\cli\php.exe %1 %2 %3 %4 %5 %6 %7 %8 %9




Verify that your directory structure looks like this:


+--phpdoc
|  |
|  +--CVS
|  |
|  +--en
|  |
|  \--...
|
\--phpdoc-tools
   |
   +--jade
   |  |
   |  \--jade.exe (etc)
   |
   \--php.bat




Now go to the phpdoc directory, and execute:


autoconf
./configure --with-lang=your_language_code



Substitute your_language_code with a language code you checked out the files
of, and would like to work on. The --with-lang parameter is optional. If you
don't specify it, the default is en (English).

--

in /etc/profile i indicate PATH as :

PATH=cygdrive/c/php4/cli:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

it is correct ? so why configure doesn't find it !?

thanx to all


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

2004-09-03 Thread Larry Hall
At 11:04 AM 9/3/2004, you wrote:
On Fri, Sep 03, 2004 at 04:55:48PM +0200, Gerrit P. Haase wrote:
Thats it, thank you for the analysis, I just thought all the time
after the thread, why are all libraries found, but uuid isn't?
I remember now that I also have e2fsprogs installed and libwin32
failis for me with exactly the same error.

Huh?  Wha?  Was there some kind of problem with e2fsprogs?  I must have
missed it.

cgf

(trying to move to the next iteration so that I can be mean)


Does shameless, willful baiting qualify?I can handle that.  Can I do 
it?  Huh?  Huh?  Please can I do it?? ;-)




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


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



Re: e2fsprogs

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 01:37:27PM -0400, Larry Hall wrote:
(trying to move to the next iteration so that I can be mean)

Does shameless, willful baiting qualify?I can handle that.  Can I do 
it?  Huh?  Huh?  Please can I do it?? ;-)

Sure, I don't see why not.  Go for it!

cgf

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



Re: OpenSSH on windows Problem

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 12:34:15PM -0400, Christopher Faylor wrote:
It is Red Hat's intent that the only acceptable use of the cygwin DLL
^
  , barring any other arrangements made directly with Red Hat,

should be in accordance with the GPL as described on the cygwin
licensing page.

--
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: BUG gcc-mingw 20040810-1 library search path

2004-09-03 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Gerrit P. Haase
 Sent: 03 September 2004 16:08
 To: Igor Pechtchanski

 Hallo Igor,

  I'm not Igor!  Heh, PMFBI!

  On Mon, 30 Aug 2004, Gerrit P. Haase wrote:
   This is in binutils/ld/configure.tgt:
   i[3-7]86-*-cygwin*) targ_emul=i386pe ;
   targ_extra_ofiles=deffilep.o pe-dll.o
   test $targ != $host 
   LIB_PATH='${tooldir}/lib/w32api' ;;
  
   where tooldir should be /usr/i686-pc-mingw32 in this 
 case and you need
   to have the symlinks installed in /usr/i686-pc-mingw32:
   21 Nov  1  2003 bin - ../i686-pc-cygwin/bin
   16 Nov  1  2003 include - ../include/mingw
   12 Nov  1  2003 lib - ../lib/mingw
 
 The whole point was that there is stated in binutils ld config
 LIB_PATH='${tooldir}/lib/w32api' 

 ${tooldir}/lib/w32api it is the same as saying
 /usr/i686-pc-mingw32/../lib/mingw/w32api which doesn't resolve and I
 wonder how this works.

  Gerrit, the default search path for ld is passed down from the gcc driver,
not compiled into ld.  I think this LIB_PATH setting is maybe just used on
the build machine, at the time when compiling a cross-binutils (hence the
test $targ != $host) targetted at mingw, perhaps?


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: e2fsprogs

2004-09-03 Thread Larry Hall
At 02:07 PM 9/3/2004, CGF wrote:
On Fri, Sep 03, 2004 at 01:37:27PM -0400, Larry Hall wrote:
(trying to move to the next iteration so that I can be mean)

Does shameless, willful baiting qualify?I can handle that.  Can I do 
it?  Huh?  Huh?  Please can I do it?? ;-)

Sure, I don't see why not.  Go for it!


Looks like I lost my window of opportunity, since Rob has a new version 
ready for upload now.  Deprived again by efficient Cygwin maintainers. Now
that's mean! ;-)


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


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



Re: Problem executing a .bat script in a directory with spaces using bash

2004-09-03 Thread Mark Bohlman
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:

Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:

Igor Pechtchanski wrote:

On Fri, 3 Sep 2004, Christopher Cobb wrote:

I get different results than you do.  It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat
C:\Documents and Settingsecho
ECHO is on.
I believe you're missing the point.  Try
../test.bat hello world
and you'll get the error.
I've come across this when writing a pure Windows loader for
another program.  The above is actually an idiosyncrasy of the way
spawn() works in Cygwin (and, incidentally, in Windows' own
MSVCRT) -- it calls CreateProcess, which expects all arguments
combined into one command string (which, in turn, is later parsed
for separate arguments - yes, retarded, I know).  The fact is
that, if any argument contains spaces, it has to be quoted before
CreateProcess() is invoked.  Cygwin apparently doesn't do this
properly to the first argument, so the above breaks. See
spawn_guts() in winsup/cygwin/spawn.cc (warning: a 590!-line
function). http://cygwin.com/acronyms/#PTC.
Igor
You get the same odd evaluation behavior when doing
echo Hello World | ./test.bat
(in any directory).
-- Mark
Actually, I don't.  Did you, by chance, mean echo ...|xargs ./test.bat?
Even so, you should probably be a bit more specific about the odd
evaluation behavior that you're observing.
Igor
Hmmm.  I'm seeing the same results as you show above with a quoted Hello
World parameter to the ./test.bat.
Then in doing the echo, without the xargs, results in the same
non-evaluation (what i consider to be 'odd') for parameter %1 within the
test.bat file.
-- Mark

Well, piping the output of echo to test.bat's stdin is *not* the same as
passing the string as a parameter.  In the former case, test.bat is called
with no arguments, so %1 evaluates to nothing.  IOW, the behavior you're
seeing is expected.
Igor
Of course you are right on the stdin side.  My mistake.
And I think it's time i move back to Unix systems exclusively as the 
behavior is as expected (used loosely) under cmd.exe.
-- Mark

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


can't open file for writing

2004-09-03 Thread C Schreiner
I can not save to a nonexistant file name under
Cygwin, but I can under Windows.  

When I type:

   cat hello  foo.txt

under Cygwin I get this error message:

   bash: foo.txt: No such file or directory

(unless foo.txt already exists in the current
directory).  This only happens with network
filesystems.  I know I have write permission because I
can create the file with touch foo.txt, and I can
create the files with Windows Wordpad.  Other programs
under Cygwin also cannot create files, such as vim, 
and co (from the rcs package).  Things work fine for
all programs on the local C: drive.

Why does this problem occur under Cygwin?  Is there
maybe a workaround?

I have not seen anything about this in the Cygwin FAQ
or in two mailing list archive searches.  If there is
already documentation about this, please point me to
it.

I am using Windows XP professional 5.1.2600 SP 1.0,
and Cygwin DLL version 1.5.10-3 (setup program version
2.427).  

Thank you for your consideration,


Christian Schreiner
caschreirc (at) yahoo (dot) com


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



Re: can't open file for writing

2004-09-03 Thread Peter Rehley
On Sep 3, 2004, at 2:33 PM, C Schreiner wrote:
I can not save to a nonexistant file name under
Cygwin, but I can under Windows.
When I type:
   cat hello  foo.txt
Does the file hello exist?  Try echo hello  foo.txt
under Cygwin I get this error message:
   bash: foo.txt: No such file or directory
(unless foo.txt already exists in the current
directory).  This only happens with network
filesystems.  I know I have write permission because I
can create the file with touch foo.txt, and I can
create the files with Windows Wordpad.  Other programs
under Cygwin also cannot create files, such as vim,
and co (from the rcs package).  Things work fine for
all programs on the local C: drive.
Why does this problem occur under Cygwin?  Is there
maybe a workaround?
I have not seen anything about this in the Cygwin FAQ
or in two mailing list archive searches.  If there is
already documentation about this, please point me to
it.
I am using Windows XP professional 5.1.2600 SP 1.0,
and Cygwin DLL version 1.5.10-3 (setup program version
2.427).
Thank you for your consideration,
Christian Schreiner
caschreirc (at) yahoo (dot) com
__
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/


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


Re: can't open file for writing

2004-09-03 Thread Brian Ford
On Fri, 3 Sep 2004, C Schreiner wrote:

 I can not save to a nonexistant file name under
 Cygwin, but I can under Windows.
[snip]
 I have not seen anything about this in the Cygwin FAQ
 or in two mailing list archive searches.  If there is
 already documentation about this, please point me to
 it.

http://sources.redhat.com/ml/cygwin/2004-06/msg00785.html

?

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: Keeping a local mirror up to date (cy: addressed to exclusive sender for this address)

2004-09-03 Thread Paul
Dave Korn wrote:
  By design, setup searches through all the download directories, keeps
track of all the versions, should know exactly what you've already got and
never re-download something you already have; if it ever does, it's a bug.
For me setup.exe always seems to compare what I actually have INSTALLED 
with what it downloads rather than what is in the download directory. So 
I have ended up making local 'mirrors' that are missing essential 
utilities, because my machine already had them installed. Similarly it 
seems to download over and over again components I have downloaded but 
not installed.

Paul

--
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: openldap 2.2.15-2

2004-09-03 Thread Robert Schmidt
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Robert Schmidt wrote:
I have problems running openldap 2.2.15-2 (cygwin is up-to-date as of this
moment).
You have minires-0.97-1 installed.  The latest version is 0.98-3.  Try
upgrading to it.  The API has apparently changed between the versions,
though the library is not versioned (this is arguably a packaging bug).
I got that far an hour later, but the problem persists.
minires  0.98-3 OK
I've also reinstalled openldap, openldap-devel and minires, and 
rebooted.  Now I've reverted back to minires 0.97-1.

Thanks for the patient pointers on cygcheck-iquette.  I've been using 
cygwin since the B1x's - I can't imagine a life on Windows without it.
It's only now I've started consuming the mailing lists, though... :-)

[... hundreds more files missing in *.new ...]
apache   1.3.29-2   Incomplete
 Apache packaging is very cygcheck -c-unfriendly...
Well, I should have pointed out that I removed those folders myself... :-)
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: Keeping a local mirror up to date

2004-09-03 Thread Robert Pendell
You can also do what I do.  Run rsync and sync up with a mirror.  The
way I have it configured takes a little but at most maybe about 30
minutes to update every so often.  Depends on what has been updated. 
My sync deleted outdated files (ones that don't need to be there) and
downloads new files.  It also does checksum runs on the files.


On Fri, 3 Sep 2004 16:14:09 +0100, Dave Korn [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Keith Christian 
  Sent: 03 September 2004 15:27
  To: Dave Korn
 
   Oops!  We should always keep questions and replies on the list - that way
 they're there in the web archive for anyone else in future who comes along
 with the same problem
 
  Thanks - one more question - What if the mirror the original
  mirror was
  created from is temporarily unavailable?
 
  Example: This morning, the previous mirror was not available:
 
  cygwin_install/dist/ftp%3a%2f%2fftp.nas.nasa.gov%2fmirrors%2fc
  ygwin.com%2fpub%2fcygwin
 
  So I chose mirrors.kernel.org which created this directory:
  cygwin_install/dist/ftp%3a%2f%2fmirrors.kernel.org%2fsources.r
  edhat.com%2fcygwin
 
 
  Further:
 
  1. Suppose the local download directory of ftp.nas.nasa.gov
  had version 1.1 of
  package foo.
 
  2. Suppose another local download directory of
  ftp.nas.nasa.gov had a more
  recent version 1.2 of package foo.
 
  3. Suppose package foo is still at version 1.2 on any up to
  date Cygwin
  mirror.
 
  Then: Does SETUP.EXE check all existing local directories to see which
  contains the most up to date version of a file before
  bothering to download it
  again?
 
   Yes.
 
   Does SETUP.EXE check only the local directory that
  matches the mirror
  it is currently connected to?
 
   No.
 
   By design, setup searches through all the download directories, keeps
 track of all the versions, should know exactly what you've already got and
 never re-download something you already have; if it ever does, it's a bug.
 
   There is one caveat: if setup dies - actually crashes or is killed -
 part-way through downloading a whole series of packages, it may not have
 updated its catalog by the time it gets terminated, and so it might download
 them again.  But once setup has downloaded and exited successfully, it
 should know and remember what it's done and not do it again.
 
 
 
 cheers,
   DaveK
 --
 Can't think of a witty .sigline today
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 



-- 
Robert Pendell
[EMAIL PROTECTED]

Freeipods.com  FreeFlatScreens.com Conga Lines
http://shinji.chaosnet.org/phpBB2

--
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: Keeping a local mirror up to date (cy: addressed to exclusive sender for this address)

2004-09-03 Thread Yitzchak Scott-Thoennes
On Fri, Sep 03, 2004 at 11:04:19PM +0100, Paul wrote:
 Similarly it seems to download over and over again components I have
 downloaded but not installed.

Never done that for me (so long as the previous download's mirror is still
chosen)  Are you changing mirrors?

--
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: /proc registry access

2004-09-03 Thread linda w
Igor Pechtchanski wrote:
Yes. Cygwin will not process paths that contain a : -- perhaps
erroneously, as it should probably check that the : is the second
character, preceded by a letter.  http://cygwin.com/acronyms/#PTC.
 

---
   Do you think it would be desirable to have cygwin not encumber itself
with character/filename validity, but instead let it be processed by the
underlying subsystem (or pseudo subsystem, in this case).  Thanks for
the MLADP.
FWIW, if you want to use Cygwin tools to manipulate the registry, you can
use 'regtool'.
 

   Yeah, but the point of have the registry be like a file system
(or process info be like a file system) is to allow easy access and
manipulation with the normal gnu text utils.  Ran into the problems
using find...
gotta figure out how to get cvs to work through a proxy and, maybe
better, set up a cross development environment on linux.  I lost the
last simple set of instructions I had to build the setup command...sigh.
I think for the proxy bit, I seem to remember having to use a sockified
CVS...
Maybe eventually will it move to my start-do list  :-).
--
   In the marketplace of Real goods, capitalism is limited by safety
   regulations, consumer protection laws, and product liability.  In
   the computer industry, what protects consumers (other than vendor
   good will that seems to diminish inversely to their size)?

--
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: Change path for php

2004-09-03 Thread Brian Dessent
Mirko Tebaldi (Indirizzo Pubblico) wrote:

 in /etc/profile i indicate PATH as :
 
 PATH=cygdrive/c/php4/cli:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
 
 it is correct ? so why configure doesn't find it !?

If that is the actual line you are using and not a typo then it would
seem you are missing the leading / in front of cygdrive.  The way you've
got it above is specifying a relative path, you want instead
/cygdrive/c/...  You should be able to verify that there is a PHP in
the path by typing type php or which php from your shell prompt
before running configure.

Brian

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



how to link without libutil.so? [repost]

2004-09-03 Thread Andrew Schulman
I'm trying to build Unison version 2.9.99.  Compilation succeeds, but 
the link step fails with

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: 
cannot find -lutil

after running a gcc command that includes '-lutil'.  I've searched the 
Cygwin packages, and it does seem that there's no file libutil.a or 
libutil.so in any of them.  On other platforms, this is a standard 
library.

So is there some other library that I should use in place of libutil.* 
on Cygwin?  I tried 'ln -s libcygwin.a /usr/lib/libutil.a' (what the 
hell, it was worth a shot) but it failed.

Other people have asked about this same problem in other forums, but I 
haven't seen any of them get an answer.

Thanks,
Andrew.


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



Re: how to link without libutil.so? [repost]

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 10:14:43PM -0400, Andrew Schulman wrote:
I'm trying to build Unison version 2.9.99.??Compilation?succeeds,?but?
the link step fails with

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: 
cannot find -lutil

after running a gcc command that includes '-lutil'.??I've?searched?the?
Cygwin packages, and it does seem that there's no file libutil.a or 
libutil.so in any of them.??On?other?platforms,?this?is?a?standard?
library.

So is there some other library that I should use in place of libutil.* 
on Cygwin???I?tried?'ln?-s?libcygwin.a?/usr/lib/libutil.a'?(what?the?
hell, it was worth a shot) but it failed.

Other people have asked about this same problem in other forums, but I 
haven't seen any of them get an answer.

As you noted, the file doesn't exist in the cygwin distribution.  It's
possible that you could just get by with removing it from the link line
entirely since it looks like most of the functions in this library are
in cygwin1.dll.

Otherwise, you'll have to come up with workarounds for the missing
functions.

cgf

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



  1   2   >