Re: SableVM & Cygwin (was: Re: sablevm + windows)

2004-10-15 Thread Grzegorz B. Prokopski
On Wed, 2004-10-13 at 11:57, Gerrit P. Haase wrote: 
> 1.
> I have a stripped down standalone libffi package with a shared libffi
> now.  This version is based on the sources from the cygwin release of
> gcc-3.3.3. You can take this package and maintain it, that means update
> it when Cygwin GCC is updated and integrate the changes happened in the
> libffi subdirectory.

I like this idea.  Because history shows we cannot count on having
independant releases of libffi from upstream, I having a separate
package of libffi (or libffi-derived/rebranded/whatever) library makes
sense.

I am perfectly fine with the idea of starting making idependant releases
of libffi within Cygwin.  This sounds little crazy that somebody who
just wants to compile SableVM has to fetch whole gcc-java package (which
is not small and actually does not contain everything we need).  This is
IMNSHO very good reason to have such releases within Cygwin.

Besides having this library available in Cygwin, we would also make _the
same sources_ available for people for independent download.  This way
we would not need to point people "Go, fetch huge GCC sources, maybe
hack a bit the build system, and compile yourself libffi".  This
involves no additional work over what's required to maintain Cygwin
package.

> 2.
> Include this stripped down libffi version with the SableVM sourcetree
> and link libffi into the main DLL as a convenience library.

Now I am seriously risking confusing everybody, so I'll try to explain
it clearly.  We're going to "merge" sablevm-classpath and sablevm into
one .tar.gz.  According to latest agreements and first tests (results
are in my sandbox) this "super-sablevm" tar.gz will actually contain
sablevm-x.y.z.tar.gz and sablevm-classpath-x.y.z.tar.gz plus a build
system with configure/Makefiles (from user POV it'd be just as natural
as the current system, with the difference that it'd require single
configure and single "make" invocation).  I see no reason why we could
not (at some later point) include "independant-libffi.tar.gz" into such
super-tarball of SableVM.  Note that this is much different from
including libffi code into sablevm itself.  (I hope I didn't confuse you
too much).

> IMO it would be easier to keep it uptodate when it is included with the
> SableVM sources and also distributed this way.  So one can continue when
> you or me are gone.

You know, this is like with Linux kernel.  The fact that something gets
merged in mainline does not necessarily mean it'll be always better
maintained.  There's many examples of things that got merged in Linux
and "died" and thing that have never been merged (because ex. they do
not "belong" to Linux kernel), but are well and alive.

On the organizational side, as I said before - we'll provide all the
necessary support, at least as good as SableVM itself has.

> I have a patch I can send you, there is the stripped down libffi
> integrated in the SablVM build.  The standalone libffi is available as
> separate package from my webserver:
> http://anfaenger.de/cygwin/cygwin-1.5/libffi-cygwin-standalone/

Great.  This might be something to start from.

> Ready compiled SableVM binary and source package:
> http://anfaenger.de/cygwin/cygwin-1.5/sablevm/
> 
> The source package includes also the patch and uses a statically libffi,
> so it doesn't need a FFI DLL.  Could you verify that this SableVM works
> as expected, please?

*2*MB diff that puts libffi in SableVM? Ouch!



I took a quick look at the non-libffi part of your patche.  In general
our approach is to integrate all reasonable changes required
by ports, so that SableVM worked on them out-of-the-box.  (2MB patch
hardly qualifies as reasonable, at least at the first sight)

Would it be possible to separate the changes you really had to do to
SableVM (and SableVM Classpath - on which changes I haven't looked yet)
from the rest, so that we could see clearly what the changes were?

Such cleaned-up diffs would really be very helpful.  Given the amount
of great work you put in porting SableVM to Cygwin - why not have an
out-of-the box support for Cygwin in the official SableVM?  This is
somethings that surely "belongs" to SableVM proper.

Thanks for helping us so much,

Grzegorz B. Prokopski
-- 
Grzegorz B. Prokopski   <[EMAIL PROTECTED]>
SableVM - Free, LGPL'ed Java VM  http://sablevm.org
Why SableVM ?!?  http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS   http://www.debian.org



--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Reini Urban
Jani Tiainen schrieb:
Igor Pechtchanski wrote:
But yes, that's OT.
Yep.  A perfect topic for the cygwin-talk list... ;-)
That list doesn't exists in GMane... =(
it does:
http://news.gmane.org/gmane.os.cygwin.talk
--
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/


cygwin update for named pipes

2004-10-15 Thread Pinhas Krengel
Hi
mkfifo does not work on my cygwin (version ??). I have been told that it 
works on newer versions. What packeages should I update (slect in the update 
install window)?
Thanks
Pinhas 




--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Jani Tiainen
Igor Pechtchanski wrote:
On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:

Igor Pechtchanski wrote:

On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:
This is *not* the right list for discussing how to subvert the existing
Cygwin installations on users' machines by distributing your own copy of
cygwin1.dll (though this *has* been discussed in the past - search the
list archives).
Okay, but what /would/ be the right place? Since I don't think people
will be willing to install Cygwin just for being able to use a single
other piece of software...

So try MinGW...
>
Think Gtk for Windows programs (such as Gaim): they come with the proper
frameworks included, so the user won't have to worry about that.

So try MinGW...  See also ... :-)
MinGW works greatly... And take GIMP as an example. You need sparate GTK 
package installed. Just like many new .NET apps needs .NET Framework 
installed - separately. Just to use _single_ application. Why does this 
differ from installing Cygwin? Execpt other is enforced and offered by 
Microsoft other by bunch of maniacs... (No offence =)

At the same time, however, we do not want Windows-based users to
feel forced into Cygwin's behaviours.  We want to distribute a
Windows application - GPL'd, with some Unix-style quirks, and
compatible to the other major OS'es out there, but Windows
nevertheless.
So maybe the MinGW project is more like what you're looking for, then.
Indeed; we're looking into it.

Be aware, though, that you won't get full POSIX functionality that Cygwin
provides -- only those parts that are directly supported by the MSVC
runtime.  In particular, you'll lose the ability to understand POSIX
(Cygwin) filenames.
There also exists GnuWin32 libraries that has very, very _minimal_ set 
of POSIX functions to make many libraries and applications to work.

Those who truly want a full Unix experience wouldn't use Windows in
the first place, and thus not Cygwin either.
This is not true at all (to put it mildly).  Those who want POSIX behavior
on Windows *will* (and *do*) use Cygwin.  But this particular point is
better ed.
Right, but I wouldn't define "POSIX behaviour" as "full Unix experience" ;-)

Hey, we're getting there -- see the efforts on porting Gnome to Cygwin...
Microsoft also offers "competitive" package, SFU that has, mainly libs 
for POSIX stuff. It doesn't contain all magnificent applications that 
Cygwin does, like X11 and SSH (which are great tools when used together.)

But yes, that's OT.

Yep.  A perfect topic for the cygwin-talk list... ;-)
That list doesn't exists in GMane... =(
--
Jani Tiainen
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


printf output missing in multi-threaded program

2004-10-15 Thread tfisher
Hi, I am having the exact same problem as described below (I am
using cygwin on windows XP).  Corinna says (below) that it is fixed.
I have downloaded and installed several versions of cygwin including
the latest from "setup.exe" as well as recent individual snapshots
and the problem keeps occuring.  COuld you advise what release of
cygwin should be used.
Thanks alot.
-Tom Fisher


Re: printf output missing in multi-threaded program

* From: Corinna Vinschen 
* To: cygwin at cygwin dot com
* Date: Fri, 24 Sep 2004 10:40:05 +0200
* Subject: Re: printf output missing in multi-threaded program
* References: <[EMAIL PROTECTED]>
* Reply-to: cygwin at cygwin dot com

On Sep 24 09:20, Siegmar Gross wrote:
> Hi,
>
> some of my multi-threaded programs don't print everything they should.
> I have for example a small program to show that LinuxThreads don't
> behave like real POSIX threads concerning "fork()" (only the thread
> which creates a child process can wait for its termination with
> LinuxThreads). When I run the program on Solaris I get the following
> output:
>
> gorbag work 23 fork_thr   Solaris
> Thread thr_fork: forking a child process.
> Child process: I'm sleeping for 2 seconds.
> Thread thr_wait: sleeping for 5 seconds.
> Thread thr_fork: sleeping for 10 seconds.
> Child process: terminating.
> Thread thr_wait: try to wait for child process.
> Thread thr_wait: child terminated.
> Thread thr_fork: try to wait for my child.   !! missing in Cygwin
> Thread thr_fork: No child processes  !! missing in Cygwin
> gorbag work 24
>
>
> When I compile and run the program on Cygwin the last output from
> "thr_fork" will not be displayed. I've upgraded Cygwin to the latest
> version yesterday. "cygcheck -c" displays that all packages are OK. Cygwin
> is installed on Windows XP with all updates excluding SP2.
>
> eiger src 4 fork_thr
> Thread thr_fork: forking a child process. Cygwin
> Thread thr_wait: sleeping for 5 seconds.
> Thread thr_fork: sleeping for 10 seconds.
> Child process: I'm sleeping for 2 seconds.
> Child process: terminating.
> Thread thr_wait: try to wait for child process.
> Thread thr_wait: child terminated.
> eiger src 5

That's what I get with a recent Cygwin snapshot:

Thread thr_fork: forking a child process.
Thread thr_wait: sleeping for 5 seconds.
Thread thr_fork: sleeping for 10 seconds.
Child process: I'm sleeping for 2 seconds.
Thread thr_fork: 1 s of sleeping time passed
Thread thr_fork: 2 s of sleeping time passed
Child process: terminating.
Thread thr_fork: 3 s of sleeping time passed
Thread thr_fork: 4 s of sleeping time passed
Thread thr_wait: try to wait for child process.
Thread thr_wait: child terminated.
Thread thr_fork: 5 s of sleeping time passed
Thread thr_fork: 6 s of sleeping time passed
Thread thr_fork: 7 s of sleeping time passed
Thread thr_fork: 8 s of sleeping time passed
Thread thr_fork: 9 s of sleeping time passed
Thread thr_fork: 10 s of sleeping time passed
Thread thr_fork: try to wait for my child.
Thread thr_fork: No child processes

Looks ok, doesn't it?

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: non-interactive cygwin setup

2004-10-15 Thread Gary R. Van Sickle
> > AllocConsole can only pop up a *new* console (right?),
> 
> Quoting MSDN 
> ():
> 
> A process can be associated with only one console, so the 
> AllocConsole
> function fails if the calling process already has a 
> console. A process
> can use the FreeConsole function to detach itself from its current
> console, then it can call AllocConsole to create a new console or
> AttachConsole to attach to another console.
> 
> So, basically, if there's another console, that console will be used.
> 

I should have added, "...in the context in question."  I though sure that
this was already tried, and whoever was doing it was unable to get a usable
console handle and eventually gave up.  What the problem may have been, or
even if I'm remembering correctly, I know not.

-- 
Gary R. Van Sickle
 


--
Unsubscribe info:  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: Don't Feed the Trolls [nt]

2004-10-15 Thread Robert McNulty Junior
Charles Wilson wrote:
no text
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

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


Don't Feed the Trolls [nt]

2004-10-15 Thread Charles Wilson
no text
--
Unsubscribe info:  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: Top 10 Reasons Republicans Support Kerry

2004-10-15 Thread Robert McNulty Junior
Andrew DeFaria wrote:

>[EMAIL PROTECTED] wrote:
>
>  
>
>>Republican Bill Shireman's Top 10 Reasons Republicans Support John Kerry
>>
>>I'm a lifelong Republican, though I vote for the best candidate - or the
>>least objectionable one.  Four years ago, I hoped George Bush would be a
>>moderate, fiscally conservative leader, firm but thoughtful.  I have
>>been repeatedly disappointed.  My top 10 reasons for opposing George
>>Bush, and supporting John Kerry, are:
>>
>>1. Stubborn is not Strong.   
>>2. You can't promote the Bill of Rights by violating it.  
>>3. You can't advance democracy by imposing it by force. 
>>4. Brave and Free, not fearful and insecure, are the qualities great
>>presidents inspire 
>>5. 30,000 deaths do not avenge the murder of 3,000 
>>6. Killing terrorists requires precise aim. 
>>7. You cannot protect 300 million rich by frightening 3 billion poor. 
>>8. In the military, Smart is as important as Strong 
>>9. Those who seek liberty through security lose both. Security is the
>>result, not the cause, of liberty. 
>>10. The "Last Resort" should be the last resort.
>>
>>Some say Kerry and Bush are equally unacceptable.  That is a convenient
>>illusion.  Kerry has been an able, smart, capable, thoughtful
>>legislator.  He has demonstrated his heroism by placing his body in the
>>line of fire, to protect his men.  John Kerry will be a worthy resident
>>of the house Lincoln and Roosevelt once occupied.  
>>
>>America is a great nation.  We need a fresh opportunity to demonstrate
>>that to the world.  I hope you will join me by committing your dollars
>>and sense to a cause to which many have devoted their lives.  
>>
>>Join with me at:
>>http://www.democrats.org/epatriots/give.html?sourcecode=E006137
>>
>>A Republican I admire very much, former Congressman Pete McCloskey, says
>>it much better than I, at this site:  www.pacsatpost.com/mccloskey.
>>
>>And two websites that help provide an alternative to the negative,
>>divisive politics of the right and left: 
>>http://www.radicalmiddle.com/  (Radical Middle website)
>>http://noosphere.cc/iparticles.html (Integral Politics website)
>>
>>Best wishes,
>>
>>Bill Shireman
>>415-364-3839
>>[EMAIL PROTECTED]
>>www.future500.org
>>
>>(Personal views of Bill Shireman, not representative of the views of
>>Future 500 companies, board members, or affiliates)
>>
>>
>>END OF MY EMAIL
>>
>>
>> Bill Shireman
>> President and CEO
>> The Future 500
>> 415 Jackson St, 2nd Fl.
>> San Francisco, CA  94110
>> (415) 364-3839
>> [EMAIL PROTECTED]
>> www.future500.org
>>
>> 
>>
>>
>>
>Here's a quarter! Call somebody who cares!
>
>Seriously, take your political garbage somewhere else.
>  
>
When this popped up on Mozilla, it said that it came from China.


--
Unsubscribe info:  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: Top 10 Reasons Republicans Support Kerry

2004-10-15 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote:

>Republican Bill Shireman's Top 10 Reasons Republicans Support John Kerry
>
>I'm a lifelong Republican, though I vote for the best candidate - or the
>least objectionable one.  Four years ago, I hoped George Bush would be a
>moderate, fiscally conservative leader, firm but thoughtful.  I have
>been repeatedly disappointed.  My top 10 reasons for opposing George
>Bush, and supporting John Kerry, are:
>
>1. Stubborn is not Strong.   
>2. You can't promote the Bill of Rights by violating it.  
>3. You can't advance democracy by imposing it by force. 
>4. Brave and Free, not fearful and insecure, are the qualities great
>presidents inspire 
>5. 30,000 deaths do not avenge the murder of 3,000 
>6. Killing terrorists requires precise aim. 
>7. You cannot protect 300 million rich by frightening 3 billion poor. 
>8. In the military, Smart is as important as Strong 
>9. Those who seek liberty through security lose both. Security is the
>result, not the cause, of liberty. 
>10. The "Last Resort" should be the last resort.
>
>Some say Kerry and Bush are equally unacceptable.  That is a convenient
>illusion.  Kerry has been an able, smart, capable, thoughtful
>legislator.  He has demonstrated his heroism by placing his body in the
>line of fire, to protect his men.  John Kerry will be a worthy resident
>of the house Lincoln and Roosevelt once occupied.  
>
>America is a great nation.  We need a fresh opportunity to demonstrate
>that to the world.  I hope you will join me by committing your dollars
>and sense to a cause to which many have devoted their lives.  
>
>Join with me at:
>http://www.democrats.org/epatriots/give.html?sourcecode=E006137
>
>A Republican I admire very much, former Congressman Pete McCloskey, says
>it much better than I, at this site:  www.pacsatpost.com/mccloskey.
>
>And two websites that help provide an alternative to the negative,
>divisive politics of the right and left: 
>http://www.radicalmiddle.com/  (Radical Middle website)
>http://noosphere.cc/iparticles.html (Integral Politics website)
>
>Best wishes,
>
>Bill Shireman
>415-364-3839
>[EMAIL PROTECTED]
>www.future500.org
>
>(Personal views of Bill Shireman, not representative of the views of
>Future 500 companies, board members, or affiliates)
>
> 
>END OF MY EMAIL
>
>
>  Bill Shireman
>  President and CEO
>  The Future 500
>  415 Jackson St, 2nd Fl.
>  San Francisco, CA  94110
>  (415) 364-3839
>  [EMAIL PROTECTED]
>  www.future500.org
>
>  
>
Here's a quarter! Call somebody who cares!

Seriously, take your political garbage somewhere else.
-- 
I ask people why they have deer heads on their walls. They always say
because it's such a beautiful animal. I think my mother is attractive,
but I only have photographs of her.


--
Unsubscribe info:  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 GMP 4.1.4-3 does not work correctly

2004-10-15 Thread Gerrit P. Haase
Hi Angelo,
in this case the bits precision is always a multiple of 30
(this is strange: one expect a multiple of a power of 2!)

4.1.3 and 4.1.4 were configured / compiled with the option:
  --enable-nails
Could you please compile your version with-nails and see if it is
'broken' in your version too then?
What is the option '--enable-nails' supposed to do?
Here is the docu: http://swox.com/gmp/manual/Low-level-Functions.html
[...]
At the mpn level, a nail build is neither source nor binary compatible 
with a non-nail build, strictly speaking. But programs acting on limbs 
only through the mpn functions are likely to work equally well with 
either build, and judicious use of the definitions below should make any 
program compatible with either build, at the source level.

For the higher level routines, meaning mpz etc, a nail build should be 
fully source and binary compatible with a non-nail build.
[...]

--
Unsubscribe info:  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: [PATCH] gzip-1.3.5-1 fails to set stdout to binary mode

2004-10-15 Thread Reini Urban
Earl Chew schrieb:
This patch duplicates the change in gzip-1.3.3-4 and is also mentioned
in:
http://sources.redhat.com/ml/cygwin/1997-02/msg00204.html
Earl
--- tailor.h~2002-09-25 14:21:30.0 -0700
+++ tailor.h2004-10-15 17:42:50.229826500 -0700
@@ -299,7 +299,11 @@
 #endif
 #ifndef SET_BINARY_MODE
+# ifdef __CYGWIN32__
+#  define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
+# else
 #  define SET_BINARY_MODE(fd)
+# endif
 #endif
 #ifndef OPEN

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


[PATCH] gzip-1.3.5-1 fails to set stdout to binary mode

2004-10-15 Thread Earl Chew
This patch duplicates the change in gzip-1.3.3-4 and is also mentioned
in:
http://sources.redhat.com/ml/cygwin/1997-02/msg00204.html
Earl
--- tailor.h~   2002-09-25 14:21:30.0 -0700
+++ tailor.h2004-10-15 17:42:50.229826500 -0700
@@ -299,7 +299,11 @@
 #endif
 #ifndef SET_BINARY_MODE
+# ifdef __CYGWIN32__
+#  define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
+# else
 #  define SET_BINARY_MODE(fd)
+# endif
 #endif
 #ifndef OPEN

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


SableVM and SableVM-Classpath 1.1.6

2004-10-15 Thread Gerrit P. Haase
Hi,
I have binary packages of SableVM and SableVM Classpath uploaded;
http://anfaenger.de/cygwin/cygwin-1.5/sablevm/
export CLASSPATH=/usr/lib/sablevm/sablevm-classpath
get sablecc to run a benchmark: http://sablecc.org/
I used the stable release:
http://prdownloads.sourceforge.net/sablecc/sablecc-2.18.2.tar.gz?download
Fetch this file: 
http://anfaenger.de/cygwin/cygwin-1.5/sablevm/simplec.sablecc

extract sablecc and run:
$ sablevm -Yc sablecc-2.18.2/lib/sablecc.jar \
> org.sablecc.sablecc.SableCC simplec.sablecc
or
$ time sablevm -Yc sablecc-2.18.2/lib/sablecc.jar \
> org.sablecc.sablecc.SableCC simplec.sablecc
to see how long it lasts.
I got different times, at my AMD workstation:
real7m52.707s
user5m47.429s
sys 0m26.057s
At my PIII workstation:
real3m22.998s
user2m38.177s
sys 0m7.340s
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/


Anunciate Gratis

2004-10-15 Thread Compraunauto . com
Compra un Auto en:
http://www.compraunauto.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: Distributing Cygwin-based software

2004-10-15 Thread Igor Pechtchanski
On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:

> Igor Pechtchanski wrote:
>
> > On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:
> >
> > > [ sha1 call doesn't link ]
> >
> > Try linking it with -lcrypto? ;-)  I'm surprised it works on OS/X, though.
>
> LDFLAGS = -lpthread -lcrypto
>
> We do. ;-)

No, you don't.  You need

LDLIBS = -lpthread -lcrypto

Also, FYI, -lpthread is a no-op on Cygwin.

> > This is *not* the right list for discussing how to subvert the existing
> >
> > Cygwin installations on users' machines by distributing your own copy of
> > cygwin1.dll (though this *has* been discussed in the past - search the
> > list archives).
>
> Okay, but what /would/ be the right place? Since I don't think people
> will be willing to install Cygwin just for being able to use a single
> other piece of software...

So try MinGW...

> Think Gtk for Windows programs (such as Gaim): they come with the proper
> frameworks included, so the user won't have to worry about that.

So try MinGW...  See also ... :-)

> > Cygwin is an emulation layer.  The Cygwin distribution contains a set
> > of packages that use this emulation layer.
>
> Exactly - but where to discuss projects that use the emulation layer and
> aren't part of the distribution (thought they might eventually be)?

On the mailing lists devoted to such projects.  Or, you can ITP your
project for inclusion into Cygwin on the cygwin-apps list -- see
.

> > > At the same time, however, we do not want Windows-based users to
> > > feel forced into Cygwin's behaviours.  We want to distribute a
> > > Windows application - GPL'd, with some Unix-style quirks, and
> > > compatible to the other major OS'es out there, but Windows
> > > nevertheless.
> >
> > So maybe the MinGW project is more like what you're looking for, then.
>
> Indeed; we're looking into it.

Be aware, though, that you won't get full POSIX functionality that Cygwin
provides -- only those parts that are directly supported by the MSVC
runtime.  In particular, you'll lose the ability to understand POSIX
(Cygwin) filenames.

> > > Those who truly want a full Unix experience wouldn't use Windows in
> > > the first place, and thus not Cygwin either.
> >
> > This is not true at all (to put it mildly).  Those who want POSIX behavior
> > on Windows *will* (and *do*) use Cygwin.  But this particular point is
> > better ed.
>
> Right, but I wouldn't define "POSIX behaviour" as "full Unix experience" ;-)

Hey, we're getting there -- see the efforts on porting Gnome to Cygwin...

> But yes, that's OT.

Yep.  A perfect topic for the cygwin-talk list... ;-)
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: Distributing Cygwin-based software

2004-10-15 Thread Soeren Nils Kuklau
Igor Pechtchanski wrote:
On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:
 

[ sha1 call doesn't link ]

Try linking it with -lcrypto? ;-)  I'm surprised it works on OS/X, though.
 

LDFLAGS = -lpthread -lcrypto
We do. ;-)
This is *not* the right list for discussing how to subvert the existing
Cygwin installations on users' machines by distributing your own copy of
cygwin1.dll (though this *has* been discussed in the past - search the
list archives).
Okay, but what /would/ be the right place? Since I don't think people 
will be willing to install Cygwin just for being able to use a single 
other piece of software...

Think Gtk for Windows programs (such as Gaim): they come with the proper 
frameworks included, so the user won't have to worry about that.

Cygwin is an emulation layer.  The Cygwin distribution contains a set of
packages that use this emulation layer.
 

Exactly - but where to discuss projects that use the emulation layer and 
aren't part of the distribution (thought they might eventually be)?

At the same time, however, we do not want Windows-based users to feel
forced into Cygwin's behaviours.  We want to distribute a Windows
application - GPL'd, with some Unix-style quirks, and compatible to the
other major OS'es out there, but Windows nevertheless.
   

So maybe the MinGW project is more like what you're looking for, then.
 

Indeed; we're looking into it.
Those who truly want a full Unix experience wouldn't use Windows in the
first place, and thus not Cygwin either.
   

This is not true at all (to put it mildly).  Those who want POSIX behavior
on Windows *will* (and *do*) use Cygwin.  But this particular point is
better ed.
Right, but I wouldn't define "POSIX behaviour" as "full Unix experience" ;-)
But yes, that's OT.
Thanks for the responses,
--
Soeren 'Chucker' Kuklau
--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Igor Pechtchanski
On Sat, 16 Oct 2004, Soeren Nils Kuklau wrote:

> > sha1sum.exe?
>
> Calling an external tool for generating password hashes seems awkward.
> We do have openssl-devel installed, and the `sha.h' header file looks
> identical to the one we're used to (from OS X), so we're unsure why this
> bug is occurring. Since I haven't found any info on this on the 'net,
> I'll have to assume the mistake is somewhere in our code :-)

Try linking it with -lcrypto? ;-)  I'm surprised it works on OS/X, though.

> Before we've fixed that, however, we can obviously not release a Windows
> (Cygwin) binary.
>
> As to the comments about this thread being on the wrong mailing list:
>
> 1) I don't want to be a bother - if a list moderator wants this
> discussion to stop, I'll stop, and I hereby apologize for any trouble
> I've apparently caused.

This is the right mailing list for discussing, say, problems building
something on Cygwin (if you think it's Cygwin's fault or some idiosyncracy
of Cygwin).

This is *not* the right list for discussing how to subvert the existing
Cygwin installations on users' machines by distributing your own copy of
cygwin1.dll (though this *has* been discussed in the past - search the
list archives).  If you're careful, you might even pull it off.

> 2) I personally believe that Cygwin is primarily an environment, and not
> a distribution.

Cygwin is an emulation layer.  The Cygwin distribution contains a set of
packages that use this emulation layer.

> We do use Cygwin to build our project, because Cygwin feels less "alien"
> from our point of view.

That's one of the goals of Cygwin - to make porting Unix applications to
Windows easier.

> At the same time, however, we do not want Windows-based users to feel
> forced into Cygwin's behaviours.  We want to distribute a Windows
> application - GPL'd, with some Unix-style quirks, and compatible to the
> other major OS'es out there, but Windows nevertheless.

So maybe the MinGW project is more like what you're looking for, then.

> Those who truly want a full Unix experience wouldn't use Windows in the
> first place, and thus not Cygwin either.

This is not true at all (to put it mildly).  Those who want POSIX behavior
on Windows *will* (and *do*) use Cygwin.  But this particular point is
better ed.
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: Distributing Cygwin-based software

2004-10-15 Thread Soeren Nils Kuklau
Jani Tiainen wrote:
Dave Korn wrote: 

Can I have a copy of your source code please?

Soon :-)
Only if daemon is published (or distributed)... =)
Give us a few weeks and we'll release it to the outside. Source and 
binaries for Mac OS X and Linux/x86.

D N wrote:
Srvany?
Try that out :)
Thanks, we will.
sha1sum.exe? 

Calling an external tool for generating password hashes seems awkward. 
We do have openssl-devel installed, and the `sha.h' header file looks 
identical to the one we're used to (from OS X), so we're unsure why this 
bug is occurring. Since I haven't found any info on this on the 'net, 
I'll have to assume the mistake is somewhere in our code :-)

Before we've fixed that, however, we can obviously not release a Windows 
(Cygwin) binary.

As to the comments about this thread being on the wrong mailing list:
1) I don't want to be a bother - if a list moderator wants this 
discussion to stop, I'll stop, and I hereby apologize for any trouble 
I've apparently caused.

2) I personally believe that Cygwin is primarily an environment, and not 
a distribution. We do use Cygwin to build our project, because Cygwin 
feels less "alien" from our point of view. At the same time, however, we 
do not want Windows-based users to feel forced into Cygwin's behaviours. 
We want to distribute a Windows application - GPL'd, with some 
Unix-style quirks, and compatible to the other major OS'es out there, 
but Windows nevertheless. Those who truly want a full Unix experience 
wouldn't use Windows in the first place, and thus not Cygwin either.

Have a nice weekend, everyone.
--
Soeren 'Chucker' Kuklau
--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Jani Tiainen
Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of Soeren Nils Kuklau
Sent: 14 October 2004 20:32

we're working on a cross-platform server daemon, and on the Windows 
side, we have chosen to use Cygwin for POSIX compatibility reasons.

  Can I have a copy of your source code please?
Only if daemon is published (or distributed)... =)
Until then, you'll have to wait. (GPL section 2)
After distributing to "outside" you can have your copy. 
(http://www.gnu.org/licenses/gpl-faq.html#InternalDistribution)

--
Jani Tiainen

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


Top 10 Reasons Republicans Support Kerry

2004-10-15 Thread [EMAIL PROTECTED]
Republican Bill Shireman's Top 10 Reasons Republicans Support John Kerry

I'm a lifelong Republican, though I vote for the best candidate - or the
least objectionable one.  Four years ago, I hoped George Bush would be a
moderate, fiscally conservative leader, firm but thoughtful.  I have
been repeatedly disappointed.  My top 10 reasons for opposing George
Bush, and supporting John Kerry, are:

1. Stubborn is not Strong.   
2. You can't promote the Bill of Rights by violating it.  
3. You can't advance democracy by imposing it by force. 
4. Brave and Free, not fearful and insecure, are the qualities great
presidents inspire 
5. 30,000 deaths do not avenge the murder of 3,000 
6. Killing terrorists requires precise aim. 
7. You cannot protect 300 million rich by frightening 3 billion poor. 
8. In the military, Smart is as important as Strong 
9. Those who seek liberty through security lose both. Security is the
result, not the cause, of liberty. 
10. The "Last Resort" should be the last resort.

Some say Kerry and Bush are equally unacceptable.  That is a convenient
illusion.  Kerry has been an able, smart, capable, thoughtful
legislator.  He has demonstrated his heroism by placing his body in the
line of fire, to protect his men.  John Kerry will be a worthy resident
of the house Lincoln and Roosevelt once occupied.  

America is a great nation.  We need a fresh opportunity to demonstrate
that to the world.  I hope you will join me by committing your dollars
and sense to a cause to which many have devoted their lives.  

Join with me at:
http://www.democrats.org/epatriots/give.html?sourcecode=E006137

A Republican I admire very much, former Congressman Pete McCloskey, says
it much better than I, at this site:  www.pacsatpost.com/mccloskey.

And two websites that help provide an alternative to the negative,
divisive politics of the right and left: 
http://www.radicalmiddle.com/  (Radical Middle website)
http://noosphere.cc/iparticles.html (Integral Politics website)

Best wishes,

Bill Shireman
415-364-3839
[EMAIL PROTECTED]
www.future500.org

(Personal views of Bill Shireman, not representative of the views of
Future 500 companies, board members, or affiliates)

 
END OF MY EMAIL


  Bill Shireman
  President and CEO
  The Future 500
  415 Jackson St, 2nd Fl.
  San Francisco, CA  94110
  (415) 364-3839
  [EMAIL PROTECTED]
  www.future500.org

--
Unsubscribe info:  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 GMP 4.1.4-3 does not work correctly

2004-10-15 Thread Angelo Graziosi (D. Zanello)
Hi,

with the package gmp-4.1.4-1 I have the same problems that were present
with 4.1.3 and that WERE NOT present with 4.1.2!

I have downloaded the source gmp-4.1.4.tar.bz2 from
http://www.swox.com/gmp/
and have built it and uninstalled the Cygwin GMP package.
With this source, all works fine (as Cygwin package 4.1.2)!

The simple LiDIA-GMP application is:

//  LiDIA_picalc.cpp

#include 
#include 
#include 

#ifdef LIDIA_NAMESPACE
using namespace LiDIA;
#endif

using namespace std;

int main()
{
   int nDigits = 10;

   cout << endl
<< "Number of digits: ";
   cin >> nDigits;

   bigfloat::set_precision(nDigits);

   bigfloat x = Pi();

   cout << setprecision(nDigits) << endl
<< "PI = " << x << endl;

   return 0;
}

// 

With Cygwin packages it is built with

g++ -O3 -Wall -I/usr/local/include LiDIA_picalc.cpp \
-s -L/usr/local/lib -lLiDIA -lgmp -o LiDIA_picalc

(/usr/local is the directory where I have installed my builds
of LiDIA-2.1.2 and gmp-4.1.4 from http://www.swox.com/gmp/)



RESULTS with Cygwin packages 4.1.3, 4.1.4

Number of digits: 20

PI = 0.48602824728463545305e-4




RESULTS with Cygwin package 4.1.2,
 build 4.1.4 from http://www.swox.com/gmp/ source


Number of digits: 20

PI = 3.1415926535897932385


With these buids I have verified almost 2000 digits of PI

--




The simple strictly GMP application is:

//  picalc.cpp ===

#include 
#include 
#include 

using namespace std;

int main()
{
   int nBits;
   mpf_t x,y,t,sx,sx1,y1,pi,TWO,HALF,ONE;

   cout << endl
<< "Number of bits precision (0, default): ";
   cin >> nBits;

   if (nBits > 0) mpf_set_default_prec(nBits);

   // Constant definition
   mpf_init_set_str(ONE,"1e0",10);
   mpf_init_set_str(TWO,"2e0",10);
   mpf_init_set_str(HALF,"5e-1",10);

   mpf_init(x);
   mpf_init(y);
   mpf_init(t);
   mpf_init(sx);
   mpf_init(sx1);
   mpf_init(y1);
   mpf_init(pi);

   cout << "Current precision: " << mpf_get_default_prec() << endl
<< endl;

   mpf_sqrt(x,TWO);// X(0) = sqrt(2)
   mpf_add(pi,TWO,x);  // PI(0) = 2+sqrt(2)
   mpf_sqrt(y,x);  // Y(0) = 2^(1/4) = sqrt(X(0))

   mpf_set(sx,y);  // SX(0) = sqrt(X(0))
   mpf_div(sx1,ONE,sx);// SX1(0) = 1/SX(0), i = 0

   do
   {
  mpf_add(t,sx,sx1);   // T = SX(i)+SX1(i)
  mpf_mul(x,HALF,t);   // X(i+1) = 0.5*(SX(i)+SX1(i))

  mpf_sqrt(sx,x);  // SX(i+1) = sqrt(X(i+1))
  mpf_div(sx1,ONE,sx); // SX1(i+1) = 1/SX(i+1)

  mpf_mul(t,y,sx); // T = Y(i)*SX(i+1)+SX1(i+1)
  mpf_add(t,t,sx1);

  mpf_add(x,x,ONE);// X = X(i+1) + 1
  mpf_add(y,y,ONE);// Y = Y(i) + 1
  mpf_div(y1,ONE,y);   // Y1 = 1/Y(i)

  // Y(i+1) = [Y(i)*SX(i+1)+SX1(i+1)]/[Y(i)+1]
  mpf_mul(y,t,y1);

  mpf_mul(t,x,y1); // T = [X(i+1)+1]/[Y(i)+1]
  mpf_mul(pi,pi,t);// PI(i+1) = PI(i)*T

  // For i -> inf, PI(i+1) == PI(i) == PI, T == 1
   } while(mpf_eq(ONE,t,1) == 0);

   // To output only significant digits use %.Ff
   gmp_printf("T = %.Ff\nPI= %.Ff",t,pi);

/*
   cout << endl
   << "T = ";
   mpf_out_str(stdout,10,0,t);
   cout << endl
<< "PI= ";
   mpf_out_str(stdout,10,0,pi);
*/

   mpf_clear(ONE);
   mpf_clear(TWO);
   mpf_clear(HALF);
   mpf_clear(x);
   mpf_clear(y);
   mpf_clear(t);
   mpf_clear(sx);
   mpf_clear(sx1);
   mpf_clear(y1);
   mpf_clear(pi);
}

// 

With Cygwin packages it is built with

g++ -O3 -Wall -I/usr/local/include picalc.cpp \
-s -L/usr/local/lib -lgmp -o picalc

(/usr/local is the directory where I have installed my build
of gmp-4.1.4 from http://www.swox.com/gmp/)



RESULTS with Cygwin packages 4.1.3, 4.1.4

Number of bits precision (0, default): 0
Current precision: 60

T = 1.0043
PI= 3.14159265358979323743


in this case the bits precision is always a multiple of 30
(this is strange: one expect a multiple of a power of 2!)


RESULTS with Cygwin package 4.1.2,
 build 4.1.4 from http://www.swox.com/gmp/ source


Number of bits precision (0, default): 0
Current precision: 64

T = 1.0003
PI= 3.14159265358979323857


in this case the bits precision is always a multiple of 32

With these buids I have verified almost 2000 digits of PI

--

angelo
[EMAIL PROTECTED]

On Mon, 11 Oct 2004, Gerrit P. Haase wrote:

> Angelo schrieb:
> 
> Oh not again...
> 
> > I have rebuilt my previous applications

Re: LibFFI or LibVM?

2004-10-15 Thread Mark Wielaard
Hi (CCed Anthony since he is the libffi maintainer),

On Fri, 2004-10-15 at 20:20, Etienne Gagnon wrote:
> IMO, I see little reasons to get a single copyright holder, given
> libffi's weak license, other than to gain the ability to change
> the license...  As I said: it's simply an opinion. ;-)

Having paperwork on file with a custodian for a project has the benefit
of making sure the status of a project is not questioned now or in the
future. And that the copyrights can be enforced by that entity. We do
this also for GNU Classpath for example to make sure that every
contributer can, may and has actively consented to distribute his
contribution as free software. And that we have a record of who did what
and with the knowledge and assistance of any employers that might have
claim on what was produced by their employees. Cases like SCO-IBM
(unfortunately) make clear why that is a good thing to have.

> [...] has considerably slowed down (if not killed) the windows port.

That is bad. Lets try to get the missing patches merged in. There is a
mailinglist [EMAIL PROTECTED] to discuss this if there is
actual code that could be merged in.

Cheers,

Mark


signature.asc
Description: This is a digitally signed message part


Migrate to a better life in USA/Canada or European Union....

2004-10-15 Thread immigartion service to USA/Canada , Europe
We are a firm of immigration consultants specialising in getting visa and resident 
permits  for  aliens  who wish to migrate to the European Union or United States of 
America and Canada.This is your chance to live your dream and escape the uncertain 
future of the third world for ever at very minimal charges .
To register with us,please send email to the following address or write a letter to us 
including a copy of your international passport,home and office address with your 
telephone and fax numbers.
Benefits of registering with us includes:
1.Free job placement in the European Union or USA/Canada
2.Free housing for three months wherever you decide to locate
You may choose to pay our fees by insatllments after your arrival  here and placement 
in an appriopriate work according to your experience.
Dont waste this chance.Contact us NOW!!.
Mr.Patrick Turton Esq
Apartado Correos 49043
28080 Madrid
Spain.
Fax.+34 619 201 901
Email: [EMAIL PROTECTED]
Ms.Lucia Fernandez
Email:[EMAIL PROTECTED]
Ms.Eva Burger
[EMAIL PROTECTED]  
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: LibFFI or LibVM? [was: Re: SableVM & Cygwin

2004-10-15 Thread Tom Tromey
> "Etienne" == Etienne Gagnon <[EMAIL PROTECTED]> writes:

Etienne> I am strongly opposed to the GCC Steering Committee (or whatever
Etienne> delegates they have for libffi) position on rejecting contributions
Etienne> to libffi without copyright assignment, which has considerably
Etienne> slowed down (if not killed) the windows port.

This position seems not to have been enforced, as new ports and bug
fixes have been going in.  Usually Jim Wilson asks about the status of
the libffi stuff after the patch is already committed.

About the Windows port - were some patches missed?  I don't recall
hearing about this.

Tom

--
Unsubscribe info:  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: non-interactive cygwin setup

2004-10-15 Thread Christopher Cobb
Rainer Hochreiter  hochreiter.at> writes:

> 
> is there a chance to install cygwin without gui dialog?
> 
> my plan is to download all needed packages into a local directory
> and then install the packages from that local directory by starting
> setup from a command line without further user interaction.
> 

Here is a script that I use over ssh.  It has not been exhaustively tested but
seems to work for the light duty I have put it through so far.  

Every now and then setup.exe seems to hang.  Since I'm logged in over ssh, I
can't tell if maybe setup.exe has put up a dialog and is waiting for user input.
 My normal response is to make sure the desired application has been installed,
and then give setup.exe a "generous" amount of time to finish up.  If it still
hasn't returned, I kill it.

The other caveat is that when you run this script, in addition to installing the
requested packages, it upgrades all of your packages to their latest versions. 
This may or may not be good for you.

--- begin installCygwinPackages.sh ---
#!/bin/sh
#
# This script allows you to install a cygwin package from the command line.
#
# Usage: installCygwinPackages.sh  ... 
#
# It assumes that packages are at /packages and that setup.exe is somewhere
# in the path (like /usr/local/bin).
#
# It works by inserting fake package entries with a zeroed out versions
# into installed.db, then running setup.exe.
#
# Unfortunately, setup.exe insists on popping up a progress window
# on the local system.
#
# WARNING: any currently installed packages will also be updated.  (How can 
# these be pinned?)
# 
# Thanks to Max Bowsher for the idea.
#
# Author: -c-c-o-b-b-a-t-e-m-a-i-l-d-o-t-c-o-m-
#

PACKAGES_DIR=/packages # adjust this for your installation

scriptName=`basename $0`

[ "$#" = "0" ] && {
   echo>&2 "$scriptName: No packages specified."
   echo>&2 "Usage: $scriptName  ... "
   exit 1
}

# most recently used install site dir
INSTALL_SITE_DIR=$PACKAGES_DIR/`cd $PACKAGES_DIR && cat /etc/setup/last-mirror |
sed -e 's@:@[EMAIL PROTECTED]' -e 's@/@[EMAIL 
PROTECTED]' |
xargs ls -td | head -1`

# argument for setup, is this necessary?
INSTALL_SITE=`echo $INSTALL_SITE_DIR | sed -e '[EMAIL PROTECTED]@:@g' -e '[EMAIL 
PROTECTED]@/@g' |
   sed -e 's|\([^/]\)/[^/].*|\1|'`

SETUP_INI=$INSTALL_SITE_DIR/setup.ini
INSTALLED_DB=/etc/setup/installed.db

# backup installed.db
INSTALLED_DB_BACKUP=$INSTALLED_DB.`date +%F_%H_%M_%S`
cp $INSTALLED_DB $INSTALLED_DB_BACKUP

# check dependencies and normalize list of packages to install
_packagesToInstall()
{
for pkgName
do
# make sure package exists
grep -q "^@ $pkgName$" $SETUP_INI || {
echo>&2 $scriptName: NOT FOUND: package: $pkgName
continue
}
grep -q "^$pkgName " $INSTALLED_DB && continue
echo $newPackages | tr " " "\n" | grep -q "^$pkgName$" && continue
newPackages="$newPackages $pkgName"
echo $pkgName

# check dependencies
requiredPkgs=`awk < $SETUP_INI '
/@ / {
pkgName=$2
}
pkg == pkgName &&
/requires: / {
num=split($0,arrPkgs," ")
for (i=2; i<=num; ++i)
printf arrPkgs[i] " "
}
' pkg=$pkgName
`
_packagesToInstall $requiredPkgs
done
}
packagesToInstall()
{
 newPackages=""
_packagesToInstall $*
}

packages=`packagesToInstall "$@"`
[ "$packages" ] && {

# add zero-version packages to $INSTALLED_DB
for pkgName in $packages
do
pkgFileName=`
awk < $SETUP_INI '
/@ / {
pkgName=$2
}
pkg == pkgName &&
/install: / {
num=split($2,arrFile,"/")
pkgFile=arrFile[num]
hyphenOffset=index(pkgFile,"-")
verLength=index(pkgFile,".tar.") - hyphenOffset
pkgSuffix=substr(pkgFile, hyphenOffset + verLength)
if (hyphenOffset != 0)
{
pkgPrefix=substr(pkgFile, 0, hyphenOffset)
print pkgPrefix "0" pkgSuffix
}
else
{
pkgPrefix=substr(pkgFile, 0, verLength-1)
print pkgPrefix "-0" pkgSuffix
}
pkgPrinted="true"
exit
}
END{
if (pkgPrinted != "true") print pkgFile
}
' pkg=$pkgName
`
echo $pkgName $pkgFileName 0 |
cat $INSTALLED_DB - | sort -uf > $INSTALLED_DB.tmp &&
mv $INSTALLED_DB.tmp $INSTALLED_DB
done

echo>&2 $scriptName: installing: $packages
setup -D -L -s $INSTALL_SITE -R `cygpath -m /` -q -n
}
---  end  installCygwinPackages.sh ---



--
Unsubscribe info:  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: vim problem with my install, y?

2004-10-15 Thread Christopher Cobb
Danilo Turina  alcatel.it> writes:
> 
> Notice that the TERM variable is set (and also a "strange" version of sh 
> installed) by Rational Rose only you choose a specific sub-package of 
> Rose (maybe the Model Integrator), if don't install that package, TERM 
> var is not set by Rose setup and the "strange" sh is not installed.
> 
And if you have a .sh file type handler to, say, be handled by cygwin/bin/sh,
then it squashes that, too.



--
Unsubscribe info:  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: LibFFI or LibVM? [was: Re: SableVM & Cygwin (was: Re: sablevm + windows)]

2004-10-15 Thread Tom Tromey
> ">" == Grzegorz B Prokopski <[EMAIL PROTECTED]> writes:

>> They're also considering change of the license to a more
>> restrictive one.

False.  Where did you hear this?

Tom

--
Unsubscribe info:  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 with diff -I 'regexp'

2004-10-15 Thread Igor Pechtchanski
On Fri, 15 Oct 2004, Le Dréau Philippe wrote:

> Hello :
> My problem : I'd like to ignore the lines beginning with --
> $ diff -I '^--' test1.txt test2.txt
> 1,3c1,3
> < 1when
> < --I want ?
> < #ok nok
> ---
> > 2when
> > --I want
> > #ok
>
> [snip]
> The lines are in the output, why ?

"man diff", line 35:

   -I RE  --ignore-matching-lines=RE
  Ignore changes whose lines all match RE.
   ^^^
(the relevant part is underlined).

Not Cygwin-specific.
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: Updated: gmp-4.1.4-1

2004-10-15 Thread Gerrit P. Haase
Kelley wrote:

> --- Lapo Luchini <[EMAIL PROTECTED]> wrote:

>> gmp-4.1.4-1 has been uploaded to the Cygwin net distribution.
>> 
>> Thanks go to Gerrit, who did *all* the work on this release.
>> 
>> Please notice gmp-4.1.3 had a serious miscomputation bug, upgrade to
>> gmp-4.1.4 is strongly suggested.

> Could it possible to get a version of gmp compiled with --enable-mpfr

This release includes mpfr as a shared library.

> ... or even better libmpfr 2.0.3 compiled and packaged seperately,
> though it has a requirement to be built along with libgmp (The two
> projects teams have split, gmp 4.x is distributed with the two year old
> mpfr 2.0.1.  The next major release of gmp will not include mpfr at
> all).

If mpfr isn't bundled anymore we'll provide a separate package.


> I have compiled and installed it on my own without difficulty.  

> My main reason for requesting this is that GFortran 95, which will come
> with upcoming GCC 4.0, requires libmpfr to build.  Furthermore, the
> main GCC developers have been receptive to the proposal that all of GCC
> 4.1 be modified to use libmpfr for its internal math optimiziations
> instead of its homegrown routines.

Or if it is required to have a more recent mpfr version for this then we
could remove mpfr from the GMP package and build mpfr seperately.


Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


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



Re: Problem with Cygwin reading/storing backspace character

2004-10-15 Thread Igor Pechtchanski
On Fri, 15 Oct 2004, Maria Green wrote:

> Hi,
>
> I program in C++ and have a problem while reading characters from the
> stdin. Cygwin doesn't behave the same way as my Linux do and I don't
> know if it's supposed to or not. I've searched the web for several hours
> but I can't find any informtion about this so I will be very thankful
> for some help.
>
> My problem
> I use readline

istream::readline, to be exact.  There's also a library called 'readline'
that lets you do input editing -- you're obviously not using that.

> to read one line and store the characters in an array. If I write
> something wrong and removes it with backspace, both the character
> deleted and the backspace character is stored in the array as well. This
> does not happen when you use Linux.

This is not Cygwin-specific, BTW.

> My questions
> Is Cygwin supposed to behave like this?

Yes, but it's not Cygwin that's causing this behavior, it's your terminal
settings.

> If so, is there anyway to make it behave like Linux instead?

Yes.  'stty erase ^H'.  "man stty" for more info.
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: Selectively zipping files together

2004-10-15 Thread Igor Pechtchanski
On Thu, 14 Oct 2004, Siegfried Heintze wrote:

> I'm trying to use sun's jar utility (from Sun's java development kit)
> along with the Cygwin find command to selectively zip together a
> directory tree and send it to someone that can explode the tree using
> WinZIP or PKZIP.
>
> I suppose it off topic to discuss the jar utility here. I'm looking for
> an appropriate mailing list to solicit help with jar (suggestions are
> welcome).
>
> The following does not work because it just grabs all the files in my
> directory. I tried using the -print on find that did not help. I tried
> removing the "@" pipe find into xargs and that did not work.
>
> /usr/bin/find "." \( ! -name \*.pch -a ! -path \*CVS\* \) | jar cvf@ ..\\archive.zip

To put this on-topic, use the java wrapper scripts I posted a while ago
(they are also in the cygwin-apps CVS, under wrappers/java).  They contain
a "jar" wrapper script (which needs to be edited, hence it's not a package
yet) that understands Cygwin paths, etc.  So, basically, you'll need to
run

/usr/bin/find . -type f -a ! -name \*.pch -a ! -path \*CVS\* | /usr/local/bin/jar cvf@ 
../archive.jar

> Since we are not allowed to discuss jar here, is there a Cygwin utility that
> produces Windows ZIP files that will work with find?

Or just use the 'zip' utility from the 'zip' package (D'Oh!).

> I even tried tar (even though it is not the format I want). Why does this
> not work?
>
> /usr/bin/find "." \( ! -name \*.pch -a ! -path \*CVS\* \) | xargs tar cvf 
> ../archive.zip

Again, /usr/bin/find . -type f -a ! -name \*.pch -a ! -path \*CVS\* -print0 | xargs 
-r0 tar cjvf ../archive.tar.bz2

> The problem is the same: all the files are included. I also, for all of
> the above, tried using the -print on the find command but that did not
> help.

'-print' is the default action.  You were missing the '-type f'

> Oh - and one last question: is there any document that compares bzip with
> bzip2 and gnuzip and winzip?

Ain't no such animal as 'gnuzip' -- did you mean 'gzip'?  'bzip' is a
patent-ridden ancestor to 'bzip2', and is rarely used these days (if at
all).  See, for example, the 'bzip' article at
 (the sixth match in a
Google search for 'bzip', BTW).
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: non-interactive cygwin setup

2004-10-15 Thread Igor Pechtchanski
On Thu, 14 Oct 2004, Gary R. Van Sickle wrote:

> > On Thu, 14 Oct 2004, Gary R. Van Sickle wrote:
> >
> > > [snip]
> > > > >I thought if a GUI app called printf it generally caused a console
> > > > >to be opened for it.  Maybe that's only with msvcrt.  In any case,
> > > > >the fact is that it is being run from a cmdline and so it certainly
> > > > >can communicate with the console.  The presence of command-line
> > > > >options in argc/argv could be taken as a fairly strong hint that it
> > > > >was being run from a shell rather than an icon.  And there's always
> > > > >"isatty (1)" if you really really want to be sure.
> > > >
> > > > This is a windows limitation.  GUI apps (apps created with
> > > > -mwindows) can't send output to or receive input from the console.
> > > > Of course, a GUI can interpret command line information.  It just
> > > > cannot send output to the console that started it.
> > > >
> > > > You could use AllocConsole to create a separate console which the
> > > > GUI could then use, however.
> > >
> > > Here's a maybe-less-icky way to do it.  Have two exes, one "setup.exe"
> > > which is a 100% command-line program that normally just spawns
> > > "winsetup.exe", the current GUI setup, and goes away.  Give it
> > > "--help", and it prints help in the regular command-line way and
> > > exits.  Yeah, two exes, but worse tragedies have happened.
> >
> > Well, running the command-line program will pop up a console
> > window if it's not running from a console already.  How's
> > that different from just using AllocConsole in the GUI
> > version?  In fact, isn't this what MSVCRT does under the
> > covers anyway?
> > Igor
>
> AllocConsole can only pop up a *new* console (right?),

Quoting MSDN ():

A process can be associated with only one console, so the AllocConsole
function fails if the calling process already has a console. A process
can use the FreeConsole function to detach itself from its current
console, then it can call AllocConsole to create a new console or
AttachConsole to attach to another console.

So, basically, if there's another console, that console will be used.

> which doesn't buy anybody anything (it's worse than a dialog IYAM).
> With the way I suggested you'd have:
>
> $ setup --help
> Cygwin Setup Version blah blah blah
> Usage:
>-a  Blah blah bl-blah blah blah.
> .
>
> $ setup --option-one=Hello -XyZ
> Doing command-line setup stuff, please watch the dots.done.
>
> $ setup
> << GUI version winsetup.exe is spawned >>
>
> Double-click on winsetup.exe ==> runs GUI version.
>
> Double-click on setup.exe ==> runs setup.exe which flashes a console (which
> actually I think can be prevented), spawns winsetup.exe, and goes away.
>
> So in almost all (maybe even all) cases, you have no unused or new consoles
> floating around and you get intuitive behavior.  Yet another of "GRVS's Olde
> Tyme Solutions Which Make Everybody Happy(TM)"!

Or, we could just call GetConsoleWindow() and check for a NULL returned
value (in which case we can even pop up a message box with help info).
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: Updated: gmp-4.1.4-1

2004-10-15 Thread Kelley Cook
--- Lapo Luchini <[EMAIL PROTECTED]> wrote:

> gmp-4.1.4-1 has been uploaded to the Cygwin net distribution.
> 
> Thanks go to Gerrit, who did *all* the work on this release.
> 
> Please notice gmp-4.1.3 had a serious miscomputation bug, upgrade to
> gmp-4.1.4 is strongly suggested.

Could it possible to get a version of gmp compiled with --enable-mpfr
... or even better libmpfr 2.0.3 compiled and packaged seperately,
though it has a requirement to be built along with libgmp (The two
projects teams have split, gmp 4.x is distributed with the two year old
mpfr 2.0.1.  The next major release of gmp will not include mpfr at
all).

I have compiled and installed it on my own without difficulty.  

My main reason for requesting this is that GFortran 95, which will come
with upcoming GCC 4.0, requires libmpfr to build.  Furthermore, the
main GCC developers have been receptive to the proposal that all of GCC
4.1 be modified to use libmpfr for its internal math optimiziations
instead of its homegrown routines.

Thanks,
Kelley Cook

--
Unsubscribe info:  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: tcsh and chere-0.3-1

2004-10-15 Thread Igor Pechtchanski
On Thu, 14 Oct 2004, Dave wrote:

> --- Andrew Grimm <[EMAIL PROTECTED]> wrote:

.  Thanks.

> > Igor Pechtchanski said:
> > > > Does anyone know of a way to get a `-` at the start of $0? I believe
> > > > this will force all the shells to start as login shells and is the
> > > > most generic solution.
> > >
> > > Sure.  'bash -c "exec -l $PROG $ARGS"'. :-)
> >
> > Ya beat me to it :)  Although, in the current design, this would make
> > a bash shell call a login shell call a normal shell (for the cd) which
> > is a bit of a quoting nightmare.

Not necessarily.  Have bash set the variable and 'exec' the shell -- and
then rely on the startup script to do the 'cd'...

> > You could make a support script (/bin/shere) that did somehting like
> > this:
>
> Thanks guys. My brains been turned to slush reading all the different
> shell man pages (as you may have figured from my last few emails).
>
> It turns out that on windows 2k, if you remove the cd $HOME from the
> appropriate login script, you can just `/bin/tcsh -l`. Since 2k puts you
> in the appropriate path anyway.
>
> Nice. It even works with network paths.
>
> Can anyone confirm this works on 9x, NT and XP?
>
> If it does work on all platforms, it's my preferred route. It'll still
> need:
> an env var for the startup scripts to check
> a shell script (which may be chere) to set the variable
>
> And will mean you have a spare sh for every term opened in this manner.

Umm, as I said above, you can set the variable in the bash command, and
use 'exec -l' to spawn the shell.  As long as the startup scripts have to
recognize the variable anyway, they might as well do the 'cd'... :-)

HTH,
Igor

> Dave.
>
> i.e. comment out the cd $HOME line, run something like:
> regtool set /HKLM/Directory/shell/cygwin_tcsh/command/ "c:\cygwin\bin\rxvt -e 
> /bin/tcsh -l"
>
> Or just edit your registry and give the menu a spin.

-- 
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: named pipes under cygwin

2004-10-15 Thread Danilo Turina
I have an updated version of the Cygwin "distribution" (no snapshots) 
and that command works.

Salut,
Danilo
Pinhas Krengel wrote:
Are named pipes supported in the latest version of cygwin.
On my system (how can I verify its version?) typing (as explained in man 
mkfifo)
mkfifo pini
bash-2.05b$ mkfifo pini
mkfifo: cannot create fifo ``pini'': Function not implemented




--
--
Danilo Turina
Alcatel Optics OND Network Management
Rieti (Italy) - Phone: +39 0746 600332
--
3 anni 6 mesi 6 giorni 6 ore 44 minuti 51 secondi
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


named pipes under cygwin

2004-10-15 Thread Pinhas Krengel
Are named pipes supported in the latest version of cygwin.
On my system (how can I verify its version?) typing (as explained in man 
mkfifo)
mkfifo pini
bash-2.05b$ mkfifo pini
mkfifo: cannot create fifo ``pini'': Function not implemented




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



[OT] RE: vim problem with my install, y?

2004-10-15 Thread Dave Korn
> -Original Message-
> From: Danilo Turina 
> Sent: 15 October 2004 14:36

> Dave Korn wrote:
> 
> > [  Danilo, you only mailed this to me, but I think it 
> should go to the list
> > so the information can be archived, and since it's most 
> likely that was what
> > you meant and it was only an accident ("Reply" instead of 
> "Reply all"?),
> > I've Cc'd it back in.  ]
> 
> I don't know exactly which is the problem (maybe the fact 
> that I'm using 
> gmane to access the list?), anyway looking at the list 
> archives it seems 
> that my previous message has been received by the list.
> 
> Ciao,
> 
>   Danilo


  Ah, that'll be it.  Kinda OT now, but enough people read this list through
gmane to make it worth explaining: since you were replying to a new posting,
your reply went by both mail and nntp, with both a To: header and a
Newsgroups: header.  The mailed copy arrived at my inbox, and because it's
mail and outlook doesn't show full headers I didn't see the newsgroups
header.  Then when a copy did arrive (via gmane to the mailing list and then
on to me), it was dropped because I already had one matching that Msg-ID, so
I didn't see any copy with the list address in its headers.  Mystery solved.


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/



[ANNOUNCEMENT] Updated: gmp-4.1.4-1

2004-10-15 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

gmp-4.1.4-1 has been uploaded to the Cygwin net distribution.

Thanks go to Gerrit, who did *all* the work on this release.

Please notice gmp-4.1.3 had a serious miscomputation bug, upgrade to
gmp-4.1.4 is strongly suggested.

GMP is a free library for arbitrary precision arithmetic, operating on
signed integers, rational numbers, and floating point numbers. There is
no practical limit to the precision except the ones implied by the
available memory in the machine GMP runs on. GMP has a rich set of
functions, and the functions have a regular interface.

The primary source for information for gmp is:



If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkFv0h0ACgkQaJiCLMjyUvswGACfaZs6fySZTLJG+M5a/FD6x8Z2
MS8AoKQ+9DQow7a/9bgnbUnL5GZsTOqi
=cx7D
-END PGP SIGNATURE-


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



Re: vim problem with my install, y?

2004-10-15 Thread Danilo Turina
Dave Korn wrote:
[  Danilo, you only mailed this to me, but I think it should go to the list
so the information can be archived, and since it's most likely that was what
you meant and it was only an accident ("Reply" instead of "Reply all"?),
I've Cc'd it back in.  ]
I don't know exactly which is the problem (maybe the fact that I'm using 
gmane to access the list?), anyway looking at the list archives it seems 
that my previous message has been received by the list.

Ciao,
Danilo
--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Soeren Nils Kuklau
> Sent: 14 October 2004 20:32

> we're working on a cross-platform server daemon, and on the Windows 
> side, we have chosen to use Cygwin for POSIX compatibility reasons.

  Can I have a copy of your source code please?

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: vim problem with my install, y?

2004-10-15 Thread Dave Korn
> -Original Message-
> From: Danilo Turina 
> Sent: 14 October 2004 14:42
> To: Dave Korn

[  Danilo, you only mailed this to me, but I think it should go to the list
so the information can be archived, and since it's most likely that was what
you meant and it was only an accident ("Reply" instead of "Reply all"?),
I've Cc'd it back in.  ]

> Dave Korn wrote:
> 
> >>-Original Message-
> >>From: cygwin-owner On Behalf Of Lane, Frank L
> >>Sent: 13 October 2004 22:47
> > 
> >>Thanks Chris: you nailed it.  TERM was nutc, whatever that's 
> >>supposed to be, 
> > 
> >   It's something done by those Rational Rose perverts[*]:
> > 
> > http://www.google.com/search?hl=en&q=TERM%3Dnutc
> > 
> > cheers, 
> >   DaveK
> > [*] http://cygwin.com/acronyms#3PP 

> Notice that the TERM variable is set (and also a "strange" 
> version of sh 
> installed) by Rational Rose only you choose a specific sub-package of 
> Rose (maybe the Model Integrator), if don't install that 
> package, TERM 
> var is not set by Rose setup and the "strange" sh is not installed.
> 
> Ciao,
> 
>   Danilo


  That's interesting to know: so there's only one part of RR that wants to
run in a unix world.   The term "nutc" refers to the "NuTCracker operating
environment" component, which it seems is a rebadged version of the MKS unix
environment[*], used by RR to support their tools.  This message:

http://www.cygwin.com/ml/cygwin/2002-07/msg00734.html

and others referenced from 

http://www.silug.org/lists/silug-discuss/200306/msg00055.html ]

give the recipe for helping the two installations to co-exist.

cheers, 
  DaveK
[*]  MKS:  Mortice Kern Systems, whose unix environment includes an
application compatibility layer and ports of various shells and tools; in
short, it's very much like cygwin, except for a) not being free and b) not
being half as good.
-- 
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: Ping: Cygwin libtool / assembler problem with -DPIC

2004-10-15 Thread Gerrit P. Haase
Yes, I know I'm annoying...

configure already checks for needed gcc options:

checking for gcc option to produce PIC...

So why don't go with it and use the option which is issued here from
configure?  What are all the tests good for if finally libtool overrides
it with its own flags?


Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


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



Re: Ping: Cygwin libtool / assembler problem with -DPIC

2004-10-15 Thread Gerrit P. Haase
Hi Charles,

yet another contra:

> You're missing the point.  *libtool* doesn't know that -DPIC means
> nothing for your code.  On some platforms, you really have to compile 
> DIFFERENT CODE, not just compile the same code in a different way 
> (-fpic), when you want to make a pic object.

Don't mix things up.  `-f' is a command line switch for gcc/ld/whatever,
`-D' defines a macro and is not a command line switch to any tool.
You can think of it as counterpart of a `#define PIC 1' in any included
header and doesn't affect the behaviour of gcc/ld/whatever.

So IMO -D is completely in the user domain, just like CFLAGS, ASFLAGS
et al.  If libtool needs a flag internally to distinguish between shared
a non shared code compilation, then use another one, e.g. LT_DO_LO_NOW?


> See above.  Libtool is providing a symbol that COULD, even on cygwin, be
> of some use.  You cannot specify it as an AM_CFLAGS because it should be
> "on" when building .lo's and "off" when building .o's -- and AM_CFLAGS
> don't allow that fine-grain control.  So libtool does it.

IMO the only relevant and also the only used flag on platforms where it
is needed is -fPIC?



> It is not used by gmp.  It might be used by ncurses.  Or Orbit.  Or any
> one of the thousands of other libtoolized packages.  You're asking me to
> unilaterally remove a feature from libtool that other packages may 
> already be using, because gmp doesn't use it and gets confused by it?

Yes.  Well, what I'm really asking for is to make libtool better, i.e.
do s.th. about the fact that a defined PIC macro breaks assembler code
e.g. to disable the macro automatically when assembler code is to be
compiled with libtool. 


Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


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



problem with diff -I 'regexp'

2004-10-15 Thread Le Dréau Philippe
Hello :
My problem : I'd like to ignore the lines beginning with --
$ diff -I '^--' test1.txt test2.txt
1,3c1,3
< 1when
< --I want ?
< #ok nok
---
> 2when
> --I want
> #ok
5,6c5,6
< 2
< 3
---
> 4
> 5
8c8
< test 2
---
> test x

The lines are in the output, why ? I obtain the same thig with the following
similar commands :
$ diff -I '^#' test1.txt test2.txt
$ diff -I 'want' test1.txt test2.txt
Why the regular expression is ignore?

The input files :
test1.txt
1when
--I want ?
#ok nok
#end of comment
2
3
test 1
test 2

test2.txt
1when
--I want
#ok nok
#end of comment
2
3
test 1
test 2


A normal command produces :
$ diff test1.txt test2.txt
1,3c1,3
< 1when
< --I want ?
< #ok nok
---
> 2when
> --I want
> #ok
5,6c5,6
< 2
< 3
---
> 4
> 5
8c8
< test 2
---
> test x

An ignore option that runs (line 5 and 6 of the following disappear, that's
ok):
$ diff -I '^[[:digit:]]' test1.txt test2.txt
1,3c1,3
< 1when
< --I want ?
< #ok nok
---
> 2when
> --I want
> #ok
8c8
< test 2
---
> test x

Philippe Le Dréau



--
Unsubscribe info:  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: Distributing Cygwin-based software

2004-10-15 Thread Corinna Vinschen
On Oct 14 21:32, Soeren Nils Kuklau wrote:
> 1) We've looked at `cygrunsrv', and it appears to be a convenient tool 
> for setting our daemon up as an NT service.  For people that do not have 
> Cygwin installed, can we just distribute `cygrunsrv' as stand-alone tool 
> to go inside our daemon's working directory?

That's possible, but see below.

> 2) Similarly, what about distributing `cygwin1.dll' - I am aware of the 
> "dllpath hell" problem this causes; what is the preferred option here?

The preferred option is to ask the user to install a standard Cygwin
installation from cygwin.com, using the Cygwin setup tool.  Then your
application can rely on the standard Cygwin install.

> 3) Cross-posting from the other mail: I also found rather little 
> documentation on `cygrunsrv'. The bundled README file comprehensively 
> lists possible arguments, but appears to assume that the daemon to be 
> run is inside the Cygwin root directory (such as C:\Cygwin), whereas we 
> believe it would make more sense to distribute our package for 
> installation inside Windows' Program Files folder. Does `cygrunsrv' 
> understand Windows-like paths, or can we rely on a `/cygdrive/c/Program\ 
> Files/'-like path structure?

cygrunsrv is made as a tool to support a Cygwin installation.  cygrunsrv
itself requires the Cygwin DLL and it's designed to start Cygwin-linked
applications.  If you're going to install a service which is outside the
Cygwin installation tree, you can rely on the standard Cygwin install
to request some information.  E. g., the cygdrive prefix isn't hardcoded
to /cygdrive, but you can call `mount -p' in an installation script to
get the valid path prefix.

> 4) Finally, a coding issue: We use SHA1 hashing for passwords. During 
> linking, we get:
> 
> obj/alstring.o(.text+0x316):alstring.c: undefined reference to `_SHA1'
> 
> LDFLAGS are: -lpthread -lcrypto
> 
> Are we missing a specific Cygwin package?

Probably openssl-devel.


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: Setup failure: mount error

2004-10-15 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Luke Kendall
> Sent: 15 October 2004 09:20

> Luke Kendall wrote:
> 
> > Anyway, the final experiment I can try now is to run 
> "mount" from the
> > network install, and see it it makes Cygwin uninstallable 
> again, without
> > a Windows reinstall.
> 
> Okay, after doing running the command:
> 
>   mount
> 
> from the network-installed Cygwin, on the local machine the 
> registry is
> changed to have keys under HKCU and HKLM Software->Cygnus Solutions->
> Cygwin->mounts v2->  (Default) REG_SZ (value not set).

  Yes, running *any* cygwin app will re-create the cygwin registry keys with
default contents if they don't already exist.

  Particularly mount, of course, since the main purpose of the cygwin
registry keys is to store details of mount points.

> Dunno.  Maybe this is just a weird PC.  I can't reproduce the problem.

  Yeh, I was starting to think we should just shrug and go "Musta been some
kinda bizarro transient h/w failure" unless you can find a way of repeating
it.

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: Ping: Cygwin libtool / assembler problem with -DPIC

2004-10-15 Thread Gerrit P. Haase
Charles Wilson wrote:
That's a gmp bug, not a libtool bug.
And I don't think so.  IMO all assembler code cannot be compiled on
Cygwin when you use -DPIC to compile it.  If libtool is used as it is
now, the compilation will fail, so libntool should care about this and
don't use this flag in case platform is Cygwin and compiling assembler
code.
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: Setup failure: mount error

2004-10-15 Thread Luke Kendall
Luke Kendall wrote:
Anyway, the final experiment I can try now is to run "mount" from the
network install, and see it it makes Cygwin uninstallable again, without
a Windows reinstall.
Okay, after doing running the command:
mount
from the network-installed Cygwin, on the local machine the registry is
changed to have keys under HKCU and HKLM Software->Cygnus Solutions->
Cygwin->mounts v2->  (Default) REG_SZ (value not set).
I didn't think to check the actual value until after starting the next
test setup.exe run, at which point I noticed that there's also a
Software->Cygnus Solutions->Cygwin->Program Options that is the same:
(Default) REG_SZ (value not set).
But although the installation paused for a minute after the Download
phase, it's gotten past where it did before, and is happily installing
packages.
Dunno.  Maybe this is just a weird PC.  I can't reproduce the problem.
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: Selectively zipping files together

2004-10-15 Thread Brian Dessent
Siegfried Heintze wrote:

> Well that was one of my questions. What is the zip utility that comes with
> Cygwin? 

The package name is "zip" and contains the info-zip code from
.  The commands are "zip" and "unzip".  Type
"zip -h" or "man zip" for usage.  I find it very bizarre that someone
could be familiar with the "find", "tar", and "jar" commands but never
have it occur to him to try "zip".

> Is it compatible with Windows zip?

A zip file is a zip file, it doesn't matter what platform the program
that created it was running under.  So, yes.  But you can verify this
yourself in about 20 seconds worth of work.

> And what about using tar with find? I hope that is not off topic. Why does
> tar insist on zipping up the entire directory instead of just the files I
> select with find?

Probably because you're passing tar directory names in addition to
filenames.

And you shoudn't use the terminology "zipping up" because the tar file
format has nothing to do with zip.  I also noticed that in your example
you were having tar create a filename ending in .zip.  This is a very
bad thing to do - tar creates tar files, not zip files, and misnaming
the file as such will only cause confusion.  Don't confuse "tar" for a
compression program, it's not.  tar files are usually compressed
seperately with one of several compression methods (.tar.gz, .tar.bz2,
.tar.Z, etc.)

Brian

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



Re: Setup failure: mount error

2004-10-15 Thread Luke Kendall
luke wrote:
All this happened on a PC with no OS installed until I installed W2K.
The purpose was to test Cygwin.
So the very next thing (the only thing) I did was (try to) install
Cygwin.
But thinking about it last night, there was one other difference: I
created a file c:\cyg.bat that simply set PATH to include the directory
where I keep various helper Cygwin scripts (like the .bat to drive the
install via setup).
Perhaps that somehow got run by setup or by one of the post-install
scripts instead of some (internal) Cygwin command called "cyg"?
I can test both theories by trying to reproduce the problem.
Having c:\cyg.bat didn't make any difference - it still installed fine.
I've just removed Cygwin again, except for two files - cygwin1.dll and
bash.exe, since trying to remove them gave the error "access is denied".
(This is after checking that no bash process was running, via the 
Task\Manager; and no Cygwin services were running.)  Oh, and and of
course c:\cygwin and c:\cygwin\bin directories.

"Odd," I thought, and rebooted and deleted them following the reboot.
Anyway, the final experiment I can try now is to run "mount" from the
network install, and see it it makes Cygwin uninstallable again, without
a Windows reinstall.
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: Ping: Cygwin libtool / assembler problem with -DPIC

2004-10-15 Thread Gerrit P. Haase
Hi Charles,
I just don't think it is good idea to use flags for s.th. else just
because they are there anywhere.  If there is need for anther special
flag then introduce it, exactly for this reason and this platform and
for nothing else.  DLL_EXPORT is the best example, if there is really a
need for another flag like this to be used like you described then
introduce one which is a flag that doesn't affect other tools like ld,
as, ar, 
PIC is the option to get position independent code where it makes a 
difference.  It makes no difference on Cygwin: so don't use the flag.

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/


Problem with Cygwin reading/storing backspace character

2004-10-15 Thread Maria Green
Hi,

I program in C++ and have a problem while reading characters from the
stdin. Cygwin doesn't behave the same way as my Linux do and I don't know
if it's supposed to or not. I've searched the web for several hours but I
can't find any informtion about this so I will be very thankful for some help.

My problem
I use readline to read one line and store the characters in an array. If I
write something wrong and removes it with backspace, both the character
deleted and the backspace character is stored in the array as well. This
does not happen when you use Linux.

My questions
Is Cygwin supposed to behave like this? If so, is there anyway to make it
behave like Linux instead?


Cygwin version: 1.5.11-1
Operating system: Windows XP
Linux version: Linux Mandrake 10.0.

The code I used to test this:
int main()
{
 char text[] = {'A', 'A', 'A', 'A', 'A', 'A', 'A'};

 cin.getline(text, 7);


 //Print the whole string
 cout<(text[i])<<":";
 }
 cout