building a cross compiling cygwin gcc on linux

2005-08-05 Thread Michael Richardson
-BEGIN PGP SIGNED MESSAGE-


I was reading the various posts on cross compilating stuff.
(I want to build *CYGWIN* stuff on Linux. I don't need MINGW32)

I can certainly install the MINGW32 .deb package, but that doesn't give me
the cygwin stuff that I want.

Ironically, if you google for "cygwin cross compiler linux"
(including the quotes), you only get Christopher Faylor's post telling
everyone that you should google for that :-)

http://www.cygwin.com/ml/cygwin/2003-03/msg02047.html
for instance says:

  "Brought over /lib, /usr/lib and /usr/include from my Cygwin machine,
  put in $HOME/cross/i386-pc-cygwin/lib, ...-cygwin/usr/lib, and
  ...-cygwin/include respectively..."

I'm always disturbed by this. Why should I have to copy stuff from a cygwin
machine?  Shouldn't I be able to build all of that with my cross compiler?

After lots of googling, I came up with:

  http://www.wxwidgets.org/technote/crosscmp.htm is a better description,
  but is rather dated (since it talks about egcs...)

  http://is.rice.edu/~welsh/cross-compiler/Cross-Compiling-bookmarks.html
  has lots of bookmarks, alas:
http://troy.il.fontys.nl/~jasper/linux/cross.html

  is no more. Try:
  
http://web.archive.org/web/20011104203312/http://troy.il.fontys.nl/~jasper/linux/cross.html

  Also dated, refers to egcs.

  http://www.delorie.com/howto/cygwin/cygwin-cross-howto.html is also very 
dated.

I worked with the debian mingw32 with -nostdlib/-nostdinc and -isystem
pointed to a copy of the stuff copied from the win32 machine, for awhile.

I just now got all the issues sorted out with the cross-build.

WHAT I DID.

{In the course of this, I think that cygwin copied binutils CVS into the
winsup CVS. Maybe I'm crazy. The CVS logs shows a full history, so...
But, binutils isn't needed anymore}

Pick a directory to build in. In my case /0g/sandboxes

0) download, ./configure, make and install cocom from
   http://cocom.sourceforge.net/ 
   (They have an RPM, but I didn't find a .deb)
   This gets you the "shakli" program. It is a program to help create
   fast parsers. I think it is used for the fs emulation layer.

a) extract gcc-4.0.1
b) check out winsup as told on:
   http://cygwin.com/cvs.html

d) cd winsup
  ln -s ../gcc-4.0.1/fixincludes .
  ln -s ../gcc-4.0.1/gcc .
  ln -s ../gcc-4.0.1/libcpp .
  ln -s ../gcc-4.0.1/libstdc++-v3 .
  rm -rf winsup/mingw   # has CC_FOR_TARGET/CC mixups
  rm -rf sid# has some problem,and we don't need it
  rm -rf rda# has dependancy on intl, which
# doesn't get built.


MAKE SURE THAT "." is not in your PATH.
Some symlinks are made by the name "as" which can screw things up.

e) cd ..
   mkdir build
   cd build

   ../../winsup/configure --prefix=/myprefix/cross --target=i686-pc-cygwin 
--without-headers --with-newlib --disable-shared --enable-languages=c,c++
   make
   mkdir -p /myprefix/cross/lib/gcc/i686-pc-cygwin/4.0.1/install-tools/include
   make install

f) cat hello/hello.c
#include 

main(int argc, char *argv[])
{
printf("hello there\n");
}

cd hello
PATH=/myprefix/cross/bin:$PATH export PATH
make CC=i686-pc-cygwin-gcc hello
scp hello win2kmachine:
ssh win2kmachine ./hello

g) build your favorite stuff, e.g:
   extract libgmp4,
   mkdir build/gmp4
   cd build/gmp4
   PATH=/myprefix/cross/bin:$PATH export PATH
   CC=i686-pc-cygwin-gcc ../../gmp-4.1.2/configure 
--prefix=/myprefix/cross/i686-pc-cygwin/include --host=i686-pc-cygwin --with-pic

   (--with-pic gets rid of some issues that I had with the assembly,
   at a cost of some performance)


WHAT I FIXED


CC and CC_FOR_TARGET are confused a lot in the winsup makefiles.
CC is only when building stuff you need to run on the local machine.
The patch is attached against CVS from 2005-08-03.

I had an issue with cp-demangle.c. I never resolved it. I don't get it.
I later found that it was because I had linked libstdc++ to the gcc-3.4.3
version rather than the gcc-4.0.1 version.

I "fixed" it by doing:

In winsup/cygwin/Makefile.in, the build of cygwin0.dll (aka ${TEST_DLL_NAME}),
has to reference -lcygwin, which hasn't been built/installed yet. (it is in
. as libcygwin.a)

I actually don't think we should -lcygwin at all. Two possible solutions are:

  a)  -nostdlib -lstdc++ -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
  b)  -L.

I prefer (a), because we shouldn't be referencing it all.

I was not able to build mingw, which is why I move it aside in (d).
I did not investigate this deeply, since I don't care about native code for
the moment.

WHAT I DID WRONG


The first time, I tried building binutils seperately.
This failed when building GCC 3.x. The problem is that the AR_FOR_TARGET
macros used in the makefiles for gcc are, it seems expanded a variable number
of times in different paths, and the t=/

Re: building a cross compiling cygwin gcc on linux

2005-08-05 Thread Michael Richardson


pgpRw5eSfFO9Y.pgp
Description: PGP signature


Re: Trouble making .so (undefined symbols)

2005-08-05 Thread Gerrit P. Haase

Warren Young wrote:


Gerrit P. Haase wrote:



add the flag -no-undefined to libmysqlpp_la_LDFLAGS?



Ah.  I added it to a different automake LD* variable previously.  Now 
I'm getting a cygmysqlpp-2.dll, which I wasn't before.  This is 
progress, though incomplete



And you also need to use a shared libmysqlclient library.



Really?  Why?


Libtool chokes when there is no shared library to link against.  This 
cannot be changed without patching libtool.



This is a fair inconvenience because Cygwin builds of MySQL aren't easy 
to come by, probably because the official Win32 build of MySQL works so 
well.


My latest diff files are from January, *should * still work.


I would rather continue with my present scheme, which is using an import 
library for the native build's DLL.  This is, in effect, a "shared 
libmysqlclient library", but I have a feeling that you mean a 
Cygwin-built .so file instead.


You need a Cygwin libmysqlclient DLL.

Now that I have the MySQL++ DLL building, I have a new problem, which is 
that the examples segfault as soon as they try to use anything from the 
DLL.  Is this due to using an import library to link to a VC++-built DLL 
instead of a Cygwin-built .so file?


Yes.


Older versions of libtool as included with the tarball don't work.



I'll add that to the MySQL++ FAQ.

FWIW, I always use the installed autotools (not the ones in the 
tarball), as I always use the autotools in "maintainer mode".



 /usr/bin/install -c -m 644 'coldata.h' '/usr/include/coldata.h'
 /usr/bin/install -c -m 644 'compare.h' '/usr/include/compare.h'
 /usr/bin/install -c -m 644 'connection.h' '/usr/include/connection.h'
[...]
 /usr/bin/install -c -m 644 'vallist.h' '/usr/include/vallist.h'

You should put the headers into a separate directory, e.g.
/usr/include/mysql++.



The README.unix file recommends that people use the --includedir 
configure flag to effect this.


Ok.  I really think it should default to a separate directory though.



Send you a patchfile with PM.



I got it...it seems to just be all the autotools-generated stuff.  Did I 
miss a subtlety, skipping over all that?


No you're right, only change besides regenerating configure and
Makefile.in was in Makefile.am where I added --no-undefined to LDFLAGS.


Thanks for your help so far, Gerrit.



You're welcome,
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/



[ANNOUNCEMENT] New Package: libxml-1.8.17-2

2005-08-05 Thread Yaakov S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following package has been added to the Cygwin distribution:

*** libxml-1.8.17-2

LibXML is the XML C parser and toolkit developed for the Gnome project.

This package is being provided primarily as a prerequisite for the GNOME
1.4 libraries; newer programs should be using libxml2.


Yaakov

- --  *** 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.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC8n0mpiWmPGlmQSMRAhlrAJ4uv1J2KcOymN7dng/J1QCEcBvdsQCg5gc2
ZHmmyOVW1Ci2yWdva5c03qU=
=NLlI
-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/



[ANNOUNCEMENT] New Package: imlib-1.9.14-3

2005-08-05 Thread Yaakov S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following package has been added to the Cygwin distribution:

*** imlib-1.9.14-3

Imlib is an advanced replacement library for libraries like libXpm that
provides many more features with much greater flexibility and speed. It
was originally written for E, now used by the GNOME Project.

This package is being provided primarily as the beginnings of including
the GNOME 1.4 libraries in the Cygwin distribution.


Yaakov

- --  *** 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.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC8n0apiWmPGlmQSMRAi0cAJ9TnSPoYwoHNuu+h4UdN4m4Ufv8dACcCb3F
5sayq4GP7mD/QDSPBw8kZas=
=koQd
-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/



X11 icons without stripes?

2005-08-05 Thread Torsten Bronger
Hallöchen!

I use Cygwin under Win2k.  When I start X11 apps remotely on a Linux
box through an "ssh -X" tunnel, their icons (e.g. in the taskbar)
have black horizontal stripes.  Is there a way to get rid of them?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus


--
Unsubscribe info:  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: Apache with mod_perl up and running

2005-08-05 Thread Harald Joerg
Gerrit P. Haase writes:

> Harald Joerg wrote:
>
>>We already know that - for archeological reasons - mod_perl's DSO
>>library happens to have the same file name as perl's, eh?  Here's
>>a place where this *really* bit me.
>
> Oh yeah, I cannot believe that they don't change the name.  If someone
> has a nice workaround to add to perlld to handle this issue with
> mod_perl, feel free to contact me.

How about being a bit more "positive" when checking for perl?  The
following patch tests whether the dll being built contains an object
called 'perl.o' (would we have to check $(OBJ_EXT)?  I hope not -
perlld is cygwin and cygwin has '.o'):

--- /usr/bin/perlld.orig2005-08-05 11:06:27.041388400 +0200
+++ /usr/bin/perlld 2005-08-05 11:07:23.288868400 +0200
@@ -49,5 +49,5 @@
   my $v_e_r_s = substr("5.8.7",0,-2);
   $v_e_r_s =~ tr/./_/;
-  if ( $dllname =~ /libperl.*/) { 
+  if ( $dllname =~ /libperl.*/  &&  $args =~ /\bperl\.o\b/) { 
 $dllname ="cygperl$v_e_r_s.dll";
   } else {

I admit that I have not yet rebuilt perl with this perlld -
but mod_perl now takes the perlld step without being renamed.

P.S.: In the meantime I managed to compile mod_auth_kerb as well,
linking against /usr/bin/libhttpd as you recommended.  So my mod_perl
deviation had its merits :-)

P.P.S.: In my "success story" about mod_perl I forgot to mention that
I had to run rebaseall to get the server running.

P.P.P.S.: Ah, yes, and I had to re-install emacs because it got stuck
in an endless loop immediately after starting (consuming 100% CPU)
after the rebaseall.
-- 
Cheers,
haj

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



Re: [ANNOUNCEMENT] New package: orpie 1.4.1-1

2005-08-05 Thread Andrew Schulman
> > The package 'orpie' is now available in the Cygwin distribution.
> 
> There is a packaging bug in this release.
> 
>  /etc/default/etc/orpierc
> 
> should be
> 
>  /etc/defaults/etc/orpierc

Thanks.  Sorry, I thought I had corrected this.  A new release will come out
shortly.

> Also I would recommend a postinstall script similar for example to
> /etc/postinstall/man.sh.done

I included one.  Did you not get it?  It runs

[ -f /etc/orpierc ] || cp /etc/defaults/etc/orpierc /etc






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



Re: [ANNOUNCEMENT] New package: orpie 1.4.1-1

2005-08-05 Thread Dr. Volker Zell
> Andrew Schulman writes:

> Thanks.  Sorry, I thought I had corrected this.  A new release will come 
out
> shortly.

Thanks.

> I included one.  Did you not get it?  It runs

> [ -f /etc/orpierc ] || cp /etc/defaults/etc/orpierc /etc

I got it. But check the following URL with it's  refs:

http://sourceware.org/bugzilla/show_bug.cgi?id=571

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: Trouble making .so (undefined symbols)

2005-08-05 Thread Warren Young

Brian Dessent wrote:

http://cygwin.com/ml/cygwin/2004-11/msg00159.html


Okay...that gets the DLL to build.  For the archives, the pthread 
changes are no longer required with current v4.1.x versions.


But the MySQL++ examples still hang when built against a Cygwin MySQL 
client DLL.



New problem: example programs link, and run for a short while, then


This is with a native server?  Or a Cygwin server?


With a native Linux server, on another box.  :)

You might be interested to try it yourself.  Apply the attached patch to 
MySQL++.  Then say "./bootstrap" to re-build all the autoconf stuff, and 
then "make" them.  The very first example you need to run, 
examples/resetdb, exhibits the problem.


But don't bother if you're not personally interested.  I've all but 
given up myself, because of the whole Cygwin GPL issue.  The main point 
of getting shared libraries working is to be able to comply with the 
LGPL (which MySQL++ is licensed under) in a commercial program.  But 
past posts on this list say there are very few commercial Cygwin 
licensees.  How many commercial licensees can there be that also want to 
use MySQL++?


I think efforts are better spent elsewhere, unless there's an easy fix, 
or someone is chasing this problem for reasons not specifically related 
to MySQL++.


Thanks for your help in any case.  You've answered my questions with 
aplomb.  Perhaps the answers will be useful to someone else, in a 
slightly different situation.
Index: config/mysql_loc.m4
===
--- config/mysql_loc.m4 (revision 1007)
+++ config/mysql_loc.m4 (working copy)
@@ -32,15 +32,23 @@
[MYSQL_inc_check="$with_mysql_include 
$with_mysql_include/include $with_mysql_include/include/mysql"])
 
#
-   # Decide which C API library to use, based on thread support
+   # Decide which C API library to use
#
-   if test "x$acx_pthread_ok" = xyes
-   then
-   MYSQL_C_LIB=mysqlclient_r
-   else
-   MYSQL_C_LIB=mysqlclient
-   fi
+   case $host_os in
+   cygwin*)
+   MYSQL_C_LIB=mysqlclient.dll
+   ;;
 
+   *)
+   if test "x$acx_pthread_ok" = xyes
+   then
+   MYSQL_C_LIB=mysqlclient_r
+   else
+   MYSQL_C_LIB=mysqlclient
+   fi
+   ;;
+   esac
+
#
# Look for MySQL C API library
#
Index: lib/Makefile.am
===
--- lib/Makefile.am (revision 1007)
+++ lib/Makefile.am (working copy)
@@ -22,7 +22,7 @@
 
 lib_LTLIBRARIES=libmysqlpp.la
 
-libmysqlpp_la_LDFLAGS=-version-info @MYSQLPP_LIBTOOL_VERSION@
+libmysqlpp_la_LDFLAGS=-version-info @MYSQLPP_LIBTOOL_VERSION@ -no-undefined
 
 libmysqlpp_la_SOURCES = \
coldata.cpp connection.cpp datetime.cpp fields.cpp field_names.cpp \

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

Re: 1.5.18: pthread_cond_wait() can return ETIMEDOUT too early

2005-08-05 Thread Corinna Vinschen
On Aug  4 15:57, Bart Van Assche wrote:
> Hello,
>   
>  For me it is convenient to call pthread_cond_timedwait() to
> specify { 0x7fff, 0 } as the deadline instead of calling
> pthread_cond_wait(). Apparently this works with the Linux
> implementation of pthread_cond_timedwait() I tried, but not with
> Cygwin's implementation. I had a look at Cygwin's implementation
> (winsup/cygwin/thread.c version 1.190), and I expect that this bug is
> caused by an arithmetic overflow during the conversion of the timespec
> deadline into a signed 32-bit timeout in milliseconds.

Thanks for the testcase.  I've applied a patch to current CVS which
should avoid overflow problems.


Corinna

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



gz files in man folders

2005-08-05 Thread James McLaughlin
While trying to find the file containing the man
information for g++ (which I succeeded in doing), I
noticed that in various subfolders of
c:\cygwin\share\man (in particular man1 and man3) a
lot of the .1 and .3 (and.something else for the other
subfolders) files were gzipped. This surprised me as
they were pretty small files.

Is there any reason why it wouldn't be a good idea to
extract some of these (for convenience next time I'm
looking for things related to man or just "tinkering
under the bonnet")?

Thanks,

James McLaughlin

PS. Thanks to everyone who replied re my last posting.
I couldn't find the newlib folder as described, though
I haven't got the latest version and I may have made a
mistake in deciding what not to install - but thanks anyway!

__
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: Updated MySQL patch file to version 4.1.13a

2005-08-05 Thread Warren Young

Gerrit P. Haase wrote:

The attached patch is against MySQL 4.1.13a.


Still no joy.

Thanks for your effort, but I'm ready to give up, for the overriding 
licensing reasons stated elsewhere in this thread.


--
Unsubscribe info:  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: gz files in man folders

2005-08-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to James McLaughlin on 8/5/2005 5:41 AM:
> While trying to find the file containing the man
> information for g++ (which I succeeded in doing), I
> noticed that in various subfolders of
> c:\cygwin\share\man (in particular man1 and man3) a
> lot of the .1 and .3 (and.something else for the other
> subfolders) files were gzipped. This surprised me as
> they were pretty small files.

For files under 1k, zipping doesn't save any disk space (disk space is
used a block at a time, whether you use the entire block or not), and
wastes CPU cycles as it spawns the extra processes to unzip it.  But for
some man pages, the zipping is an improvement in filesize, so the default
maintainer's script for packaging in cygwin purposefully gzips all man
pages.  Man also purposefully zips (bzip2, not gzip) all cat pages, if you
have /var/cache/man/cat?/ directories.  I do note that in general, bzip2
gets better compression ratios on ASCII text, so maybe we should switch
the cygwin default compression engine for man pages?

> 
> Is there any reason why it wouldn't be a good idea to
> extract some of these (for convenience next time I'm
> looking for things related to man or just "tinkering
> under the bonnet")?

I'm personally happy with either approach, compressed or plain-text,
because I have plenty of hard drive space, and in practice I don't notice
the delay of the extra gunzip process in the loop.

- --
Life is short - so eat dessert first!

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

iD8DBQFC81fh84KuGfSFAYARArzZAKCEC3jK/H2DT2x2aVTHpxGXZfxA1wCfa9b0
UHsVaLBPLOFnyyBME2KbTRE=
=WySI
-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: gz files in man folders

2005-08-05 Thread Dave Korn
Original Message
>From: Eric Blake
>Sent: 05 August 2005 13:13

> For files under 1k, zipping doesn't save any disk space (disk space is
> used a block at a time, whether you use the entire block or not), and
> wastes CPU cycles as it spawns the extra processes to unzip it.

  Actually, on a 'doze system, the relevant minimum size is the cluster size
on the drive in question.  IIUIC thatcould be as much as 32k if you're using
a very big HD on an old 9x-based system  but for most of us, running on
NTFS, it'll be 4k.  (And if by 'block' you mean 'sector', aren't they still
512 bytes?  According to msdn default 4kb clustersize == 8 sectors...)


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: Bash 3.00.16(7), paste-from-clipboard binding reset after command execution

2005-08-05 Thread zango
>>
>>On Sun, 10 Jul 2005, Kirill Yarosh wrote:
>>
>> Hi,
>> I have following line in my .inputrc:
>> "\C-v": paste-from-clipboard
>> When the bash starts ^V binded to quoted-insert.
>> $ bind -p | grep '"\\C-v'
>> "\C-v": quoted-insert
>> When I force bash to re-read-init-file with
"\C-x\C-r"
>> ^V bounded to paste-from-clipboard but until
"Return" keyboard
>> key will pressed( until next command ).
>> After execution of new command the binding returns
to quoted-insert.
>>
>> Is it sane behavior ?
>
>No, this is almost certainly not sane behavior.  See
if your .inputrc is
>overridden somewhere (can be done by "bind" commands
in any bash script).
>Other than that, you'll need to debug this further
locally.
>   Igor
>-- 

Hi,

I am seeing the same problem. I had a working cygwin
installation. I downloaded a new package which
wouldn't work with the existing bash shell. So, I
updated the core libraries/bash and Control-V - mapped
to "paste-from-clipboard" in my .inputrc stopped
working. "bind -p" now shows \C-v is mapped to Quoted
Insert.
bind -f ~/.inputrc doesn't work either :(

Please help.

__
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: Updated MySQL patch file to version 4.1.13a

2005-08-05 Thread Jason Pyeron


We are heavily working on the cygwin MySQL client here.

I just now briefly looked over the Trouble making .so (undefined symbols) 
thread.


Please feel free to PM me with some requests / rationales.

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager 7 West 24th Street #100 -
- +1 (443) 921-0381 Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.


--
Unsubscribe info:  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: orpie 1.4.1-2

2005-08-05 Thread Schulman . Andrew
A new version of the orpie package is available in the Cygwin
distribution.

Changes in version 1.4.1-2:
* Corrected a packaging bug that prevented /etc/orpierc from being
installed correctly.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

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

Andrew Schulman.


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



using gcc to build non-cygwin binaries

2005-08-05 Thread Jason Pyeron


Can gcc produce standard win32 dll/exe?

That is not linked to cygwin?

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager 7 West 24th Street #100 -
- +1 (443) 921-0381 Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.


--
Unsubscribe info:  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: Bash 3.00.16(7), paste-from-clipboard binding reset after command execution

2005-08-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to zango on 8/5/2005 6:37 AM:
> I am seeing the same problem. I had a working cygwin
> installation. I downloaded a new package which
> wouldn't work with the existing bash shell. So, I
> updated the core libraries/bash and Control-V - mapped
> to "paste-from-clipboard" in my .inputrc stopped
> working. "bind -p" now shows \C-v is mapped to Quoted
> Insert.
> bind -f ~/.inputrc doesn't work either :(

It has everything to do with your stty settings.  ^v is normally mapped to
lnext (literal next-character) on terminals, and readline 5.0 apparently
tries to honor your stty settings (where lnext is a perfect match to the
readline function quoted-insert) in preference to your .inputrc.
Meanwhile, emacs likes ^q as quoted-insert, although terminals usually
default ^q to start, start overrides lnext if both are given the same
character, and stop (usually ^s) without start will let you hang a
terminal.  So, try "stty lnext ^q stop undef start undef" and see if that
helps with your desired setting for ^v.

As to whether readline should be prefering your stty settings over your
.inputrc, I will have to do more investigation.

- --
Life is short - so eat dessert first!

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

iD8DBQFC82UL84KuGfSFAYARAoRgAKDCBcADgLTDVSc7U3wOR0j75/63NACfbWCU
ttaTTp95EiKdAK4HiIQmYO4=
=dv19
-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: Proposed FAQ in DocBook

2005-08-05 Thread Larry Hall
At 02:08 AM 8/5/2005, you wrote:
>On 8/4/05, Larry Hall wrote:
>> At 11:13 AM 8/4/2005, you wrote:
>> >Yes, as noted they're in the HTML in  tags..., converted from
>> >DocBook's id="..." There will of course be a Table of Contents with links so
>> >you don't have to look at the HTML to determine this.
>> 
>> Ah, OK.  That's what I was looking for.  I just didn't see it in the page
>> you generated so I was concerned that there wouldn't be an easy way to
>> find this for cut-and-paste purposes in email responses. I don't know
>> why I thought this aspect would elude you though. ;-)
>
>OK, I don't have time to commit everything to CVS and hack up the Makefile 
>right now, but if these pass inspection I'll probably get to it tomorrow or 
>over
>the weekend. The one feature I haven't been able to do is linking back from
>the FAQ entry to its place in the table of contents, which is too bad but I
>think it's worth it. I'll leave the old FAQ around but all updates
>will be in the
>DocBook version.
>
>One file:
>http://staff.washington.edu/joshuadf/cygwin/faq-nochunks.html
>Several files:
>http://staff.washington.edu/joshuadf/cygwin/faq.html


This all looks and sounds great.  Thanks!

--
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: using gcc to build non-cygwin binaries

2005-08-05 Thread Dave Korn
Original Message
>From: Jason Pyeron
>Sent: 05 August 2005 14:04

> Can gcc produce standard win32 dll/exe?
> 
> That is not linked to cygwin?

  Yes, use the -mno-cygwin flag (as well as -shared if building a .dll).
That will give you an .exe or .dll that is essentially a mingw application,
i.e. win32 native, and does not link against the cygwin dll or libraries at
all.

  Of course, without cygwin, you can't use any of the POSIX APIs it
implements.  You can still use the limited subset implemented in mingw
though.

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: X11 icons without stripes?

2005-08-05 Thread Igor Pechtchanski
Wrong list, redirected.  Please remove  from
further messages.

On Fri, 5 Aug 2005, Torsten Bronger wrote:

> I use Cygwin under Win2k.  When I start X11 apps remotely on a Linux
> box through an "ssh -X" tunnel, their icons (e.g. in the taskbar)
> have black horizontal stripes.  Is there a way to get rid of them?

Try "ssh -Y" instead of "ssh -X".  For reasons, see the Cygwin/X FAQ
().
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  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: X11 icons without stripes?

2005-08-05 Thread J. David Boyd
Torsten Bronger <[EMAIL PROTECTED]> writes:

> Hallöchen!
>
> I use Cygwin under Win2k.  When I start X11 apps remotely on a Linux
> box through an "ssh -X" tunnel, their icons (e.g. in the taskbar)
> have black horizontal stripes.  Is there a way to get rid of them?
>

I use Cygwin under WinXP, and when I start X11 apps remotely off of my
Mandriva Linux, I get no black stripes.  Is it all the programs you start, or
just some?

What kind of connection are you using?

Dave


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



more in insert and copy from clipboard

2005-08-05 Thread J. David Boyd

Is there some setting that tells Cygwin to use/not use the windows clipboard.

For the longest time, I have been merryly cutting and pasting between firefox,
notepad, a bash shell, emacs, etc, all using ctrl-insert and shft-insert.

Sometime in the recent past, this no longer works.  I can cut and paste
between all of my cygwin programs no problem, but there is no communication
with the windows side of things.

Did I turn off something somewhere.  I've perused the docs some, but haven't
found anything worthwhile yet.

Dave


--
Unsubscribe info:  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: more in insert and copy from clipboard

2005-08-05 Thread Igor Pechtchanski
On Fri, 5 Aug 2005, J. David Boyd wrote:

> Is there some setting that tells Cygwin to use/not use the windows
> clipboard.

Nope, Cygwin *always* uses the Windows clipboard when you use
/dev/clipboard.  If that's not what you mean, you'll have to be more
specific about exactly what you're trying to do.

> For the longest time, I have been merryly cutting and pasting between
> firefox, notepad, a bash shell, emacs, etc, all using ctrl-insert and
> shft-insert.
>
> Sometime in the recent past, this no longer works.  I can cut and paste
> between all of my cygwin programs no problem, but there is no
> communication with the windows side of things.

Are you complaining that the bash shell no longer uses Ctrl-Insert to copy
and Shift-Insert to paste?  What do you use to select the text to
copy/paste?  If you use the mouse, then it's not the bash shell that
copies the text -- it's the console that the shell is running in (i.e., a
cmd.exe window).  AFAIK, that uses the Windows clipboard, just like all
the other Windows apps.  Pasting, however, could happen either via the
console, or via a Bash key binding.

> Did I turn off something somewhere.  I've perused the docs some, but
> haven't found anything worthwhile yet.

Why not take those on one at a time?  Are you able to copy the text from
bash to other apps?  If not, there's something wrong with the console
settings -- select "Properties" from the Alt-Space menu, and see if the
"QuickEdit Mode" is selected.  That should let you mark text with the
mouse and press Enter to copy it to the clipboard (don't think Ctrl-Insert
will work).

Pasting can happen in two ways.  If QuickEdit mode is enabled,
right-clicking in the console window should paste the clipboard contents
(via the Windows means).  Or, bash has a function called
"paste-from-clipboard" that you can bind a key combo to in your ~/.inpurc.
Try binding, say, the Shift-Insert key combination to that function, and
it should work.

If this doesn't help, please describe exactly what you're trying to do,
what worked before, and what doesn't work now.  Getting some information
about your system as requested in  would
also help.
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



Extending Cygwin Linux API - how to expose new API

2005-08-05 Thread Eitan Eliahu

Folks,
I would like to add a function to the Cygwin Linux API. Since the .def file 
is automatically generated this function can not be listed there. I am 
wondering if I need to have the keyword __export before the function but I 
noticed that other API functions don't use export.

Is there any file where all the API functions are listed?

Thanks a lot!
Eitan



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



Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Michael Rilling
I've googled and can't find answers to my issue.  Several people have
mentioned the same issue, but no replies.  Hope you can help.

I've installed the latest cygwin base on my XP SP2 machine.
I've also installed inetutils along with the X stuff.

I'm trying to do a simple telnet from within cygwin.
I run the cygwin.bat file and type telnet (external-host) and always get 
telnet: tcp/telnet: unknown service

Yet when I run the windows telnet client to the same/any host, it works fine.

I have similar issues with FTP.

I'm wondering if you can help me, or point me to a web site with
helpful descriptions.

regards,
mike

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



RE: Extending Cygwin Linux API - how to expose new API

2005-08-05 Thread Dave Korn
Original Message
>From: Eitan Eliahu
>Sent: 05 August 2005 16:22

> Folks,
> I would like to add a function to the Cygwin Linux API. Since the .def
> file is automatically generated this function can not be listed there. I
> am wondering if I need to have the keyword __export before the function
> but I noticed that other API functions don't use export.
> Is there any file where all the API functions are listed?


  I think cygwin.din is the place.  That's where gendef gets it from.


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: bash is crashing

2005-08-05 Thread Cary Jamison
Eric Blake wrote:
> According to Cary Jamison on 8/4/2005 11:07 AM:
>> Not Found: sh
>> Found: C:\cygwin\bin\tar.exe
>
> Not good.  You need /bin/sh to do lots of things in cygwin.  Rerun
> setup.exe, and that should help.  Perhaps the core dump is happening
> when something is trying to invoke /bin/sh, and not reacting nicely?
>
>>
>> The version of cygrunsrv installed is too old to dump service info.
>> cygrunsrv1.10-1
>
> Not your problem, but probably a bug in setup.exe, since cygrunsrv
> 1.10 is indeed new enough to dump service info.
>
>> bash 3.0-8
>
> bash is at 3.0-11 now, in case that helps.

I was wondering what happened to my sh.  It was there before I upgraded. 
Perhaps the problem was I had an old setup?

Igor's right, I was running sshd in the background when I upgraded.  I have 
rebooted since then, though.

I just ran setup again (the latest version) to get 3.0-11, and made sure 
everything was stopped first.  I've now got a proper sh.  I'll run my script 
for a while again to see if it still has problems.

Thanks,
Cary




--
Unsubscribe info:  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: Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Dave Korn
Original Message
>From: Michael Rilling
>Sent: 05 August 2005 16:25

> I've googled and can't find answers to my issue.  Several people have
> mentioned the same issue, but no replies.  Hope you can help.
> 
> I've installed the latest cygwin base on my XP SP2 machine.
> I've also installed inetutils along with the X stuff.
> 
> I'm trying to do a simple telnet from within cygwin.
> I run the cygwin.bat file and type telnet (external-host) and always get
> telnet: tcp/telnet: unknown service
> 
> Yet when I run the windows telnet client to the same/any host, it works
> fine. 
> 
> I have similar issues with FTP.
> 
> I'm wondering if you can help me, or point me to a web site with
> helpful descriptions.

  This error message is often caused when $SYSTEMROOT is not set (or not set
correctly) in your cygwin environment.  What does "set | grep SYST" show you
at the bash prompt?

  If that isn't it, let's see your http://cygwin.com/problems.html cygcheck
output.

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: Bash 3.00.16(7), paste-from-clipboard binding reset after command execution

2005-08-05 Thread Eric Blake
Eric Blake  byu.net> writes:

> 
> As to whether readline should be prefering your stty settings over your
> .inputrc, I will have to do more investigation.

I reported this upstream, and received this response: 
http://article.gmane.org/gmane.comp.shells.bash.bugs/8315

Basically, ~/.inputrc settings are parsed only once, while stty settings are 
ignored in readline 4.x, reparsed for every command (thus overriding 
~/.inputrc) in readline 5.0, and user-settable in the upcoming readline 5.1 
whether stty settings are reparsed or ignored for every command.  Readline 5.1 
is still in alpha, and while I have tried building it for cygwin, I have yet to 
work out all the bugs.  So until then, if you want ~/.inputrc to change the 
default meaning of a character that is also assigned to a terminal function 
(check "stty -a" for those characters), you have to make stty and ~/.inputrc 
agree on what the key will do.

--
Eric Blake



--
Unsubscribe info:  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: Uninstall Cygwin

2005-08-05 Thread Baksik, Frederick (NM75)
 

> -Original Message-
> Sent: Thursday, August 04, 2005 3:21 PM
> Subject: Re: Uninstall Cygwin
> 
> 
> >> If, one day, I want to uninstall Cygwin. How can I do 
> that? No icon 
> >> in Add/remove programs list, no start menu icon... I know 
> there are 
> >> values in the registry, but I don't know what values, so I cannot 
> >> delete thes values. Is there one or more command to 
> uninstall Cygwin?
> >> Else, what can I do? Let it on my disk without using it because I 
> >> can't uninstall it so loose more 1 GO and a half?
> >
> > Simply remove C:\Cygwin (if that's where you stored it). There are 
> > some registry entries that can be ignored or use RegEdit to 
> seek and 
> > destroy entries with Cygnus in them.
> 
> Or better than that would be to use setup.exe to uninstall. 
> Then delete C:\cygwin 

I'd hate to see the logic that would try to figure out which registry keys
need to be deleted considering that 3rd party apps using their own licensed
version of cygwin will use the Cygnus Solutions name.  I've been lucky
enough with such apps that they don't use C:\cygwin, so I can install cygwin
myself without conflicting with their cygwin DLL.

--
Frodak

--
Unsubscribe info:  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: Bash 3.00.16(7), paste-from-clipboard binding reset after command execution

2005-08-05 Thread zango
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>According to zango on 8/5/2005 6:37 AM:
>> I am seeing the same problem. I had a working
cygwin
>> installation. I downloaded a new package which
>> wouldn't work with the existing bash shell. So, I
>> updated the core libraries/bash and Control-V -
mapped
>> to "paste-from-clipboard" in my .inputrc stopped
>> working. "bind -p" now shows \C-v is mapped to
Quoted
>> Insert.
>> bind -f ~/.inputrc doesn't work either :(
>
>It has everything to do with your stty settings.  ^v
is normally mapped to
>lnext (literal next-character) on terminals, and
readline 5.0 apparently
>tries to honor your stty settings (where lnext is a
perfect match to the
>readline function quoted-insert) in preference to
your .inputrc.
>Meanwhile, emacs likes ^q as quoted-insert, although
terminals usually
>default ^q to start, start overrides lnext if both
are given the same
>character, and stop (usually ^s) without start will
let you hang a
>terminal.  So, try "stty lnext ^q stop undef start
undef" and see if that
>helps with your desired setting for ^v.
>
>As to whether readline should be prefering your stty
settings over your
>.inputrc, I will have to do more investigation.
>
>- --
>Life is short - so eat dessert first!
>
>Eric Blake [EMAIL PROTECTED]
>volunteer cygwin bash/readline maintainer

Thanks Eric,

Now, I've added 
"stty lnext ^q stop undef start undef"
to my .bashrc and C-v works once again! :) 

Regards,
girish





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

--
Unsubscribe info:  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: pid confusion and pstree

2005-08-05 Thread Yitzchak Scott-Thoennes
On Thu, Aug 04, 2005 at 03:26:02PM -0400, Jason Pyeron wrote:
> also does anyone have a patch to show the WINPID for pstree?

$ pstree -Ahup|perl 
-wpe's#\d+#($w=Cygwin::pid_to_winpid($&))&&$w!=$&?"$&/$w":$&#ge'
?(1)-+-bash(2100,sthoenna)---mutt(1696/2384)---emacs(2744/1300)
 |-bash(3728,sthoenna)---sleep(1328/2328)
 |-bash(804,sthoenna)---mutt(3912/1672)
 |-bash(1864,sthoenna)-+-perl(1744/3400)
 | `-pstree(1572)
 |-cygrunsrv(1652,SYSTEM)---cygserver(248/336)
 `-cygrunsrv(628,SYSTEM)---syslogd(720/752)

--
Unsubscribe info:  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: pid confusion and pstree

2005-08-05 Thread Jason Pyeron

that is EVIL

thanks

On Fri, 5 Aug 2005, Yitzchak Scott-Thoennes wrote:


On Thu, Aug 04, 2005 at 03:26:02PM -0400, Jason Pyeron wrote:

also does anyone have a patch to show the WINPID for pstree?


$ pstree -Ahup|perl 
-wpe's#\d+#($w=Cygwin::pid_to_winpid($&))&&$w!=$&?"$&/$w":$&#ge'
?(1)-+-bash(2100,sthoenna)---mutt(1696/2384)---emacs(2744/1300)
|-bash(3728,sthoenna)---sleep(1328/2328)
|-bash(804,sthoenna)---mutt(3912/1672)
|-bash(1864,sthoenna)-+-perl(1744/3400)
| `-pstree(1572)
|-cygrunsrv(1652,SYSTEM)---cygserver(248/336)
`-cygrunsrv(628,SYSTEM)---syslogd(720/752)

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



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager 7 West 24th Street #100 -
- +1 (443) 921-0381 Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.


--
Unsubscribe info:  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: Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Brian Dessent
Michael Rilling wrote:

> telnet: tcp/telnet: unknown service

In addition to what Dave said, ensure that you have a symlink from
/etc/services to %WINDIR%\system32\drivers\etc\services and that there
is a line containing the telnet service in that file.  This link should
have been created upon installation for you, and the default windows
services file should have telnet listed, so normally this is not
something you ever have to worry about.

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/



Fwd: Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Michael Rilling
Wow,
After doing a lot more googleing, I've stumbled upon this fix.  Wonder
if you know about this issue?

In regedit go to HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
edit DataBasePath change %SystemRoot% to its real value (on mine its
C:\WINDOWS)  Don't know why but this fixed my issue.

Let me know if you've heard this before.

regards,
mike

-- Forwarded message --
From: Michael Rilling <[EMAIL PROTECTED]>
Date: Aug 5, 2005 11:25 AM
Subject: Outbound telnet/ftp from cygwin not working
To: cygwin@cygwin.com


I've googled and can't find answers to my issue.  Several people have
mentioned the same issue, but no replies.  Hope you can help.

I've installed the latest cygwin base on my XP SP2 machine.
I've also installed inetutils along with the X stuff.

I'm trying to do a simple telnet from within cygwin.
I run the cygwin.bat file and type telnet (external-host) and always get
telnet: tcp/telnet: unknown service

Yet when I run the windows telnet client to the same/any host, it works fine.

I have similar issues with FTP.

I'm wondering if you can help me, or point me to a web site with
helpful descriptions.

regards,
mike

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



Re: Fwd: Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Brian Dessent
Michael Rilling wrote:

> After doing a lot more googleing, I've stumbled upon this fix.  Wonder
> if you know about this issue?
> 
> In regedit go to HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
> edit DataBasePath change %SystemRoot% to its real value (on mine its
> C:\WINDOWS)  Don't know why but this fixed my issue.
> 
> Let me know if you've heard this before.

This happens when something edits the registry and changes that key
from  REG_EXPAND_SZ to REG_SZ.  %-variables are only expanded in keys of
type REG_EXPAND_SZ.  You should find that by default Windows uses
%SystemRoot% and REG_EXPAND_SZ so everything works fine.  It's only when
some brain-dead program or installer mucks about with that key and
changes it to a regular string that you have a problem.

And this will only matter to programs that call getservbyname(), which
these days are very far and few between.  telnet is one though.

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: Fwd: Outbound telnet/ftp from cygwin not working

2005-08-05 Thread Brian Dessent
Brian Dessent wrote:

> This happens when ...

.. or alternatively, your $SYSTEMROOT variable wasn't set at all, as
Dave said.  Hard-coding it will fix the problem, but you really should
find out why it's not set if that is the case, because it could lead to
future mysterious problems.

Past versions of the Cygwin DLL had minor bugs where it would not
propagate the SYSTEMROOT variable in certain circumstances, such as when
sshing into a machine.  But that should be fixed with any recent
version.

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: more in insert and copy from clipboard

2005-08-05 Thread Igor Pechtchanski
On Fri, 5 Aug 2005, J. David Boyd wrote:

> Igor Pechtchanski <[EMAIL PROTECTED]> writes:

.

> > On Fri, 5 Aug 2005, J. David Boyd wrote:
> >
> >> Is there some setting that tells Cygwin to use/not use the windows
> >> clipboard.
> >[snip]
> >> For the longest time, I have been merryly cutting and pasting between
> >> firefox, notepad, a bash shell, emacs, etc, all using ctrl-insert and
> >> shft-insert.
> >>
> >> Sometime in the recent past, this no longer works.  I can cut and
> >> paste between all of my cygwin programs no problem, but there is no
> >> communication with the windows side of things.
> >[snip]
>
> There is no 'Properties' item.  I'm running in Cygwin X-windows, and
> doing everything under X.  My bash is running in an xterm, started with
> this command line (without the line break, of course):
>
> xterm -sl 5000 -sb -rightbar -ms red -cr red -fg black -bg white -e 
> /usr/local/bin/bash -l &

Ah, so you're using an xterm.  This makes the question off-topic for this
list.  I've redirected my reply to the right list, and set the Reply-To:
accordingly.  Please remove  from further
discussion of this, unless it veers back to something relevant to Cygwin
at large, and not just Cygwin/X.

> My best example would be to wget something from a URL in a file.
>
> Last week (two, three weeks ago?) I would have used the mouse to
> highlight the text in firefox (notepad, openoffice.org), then pressed
> Ctl-Ins to copy it into the clipboard. (Or clicked on copy in the menus,
> it worked either way.) Then I would have moved into my xterm, and type
> 'wget ' and then pressed shift-ins, to paste from the clipboard.  I hit
> enter, and wget worked perfect.
>
> Now, I do it all the same, but the shift-ins pastes whatever I last
> ctl-ins from a cygwin-X window.
>
> I don't recall changing any settings anywhere, but something might have
> changed in some internal Cygwin settings file, somewhere...

This has nothing to do with Cygwin settings -- it's an internal setting of
the X server.  My guess would be that either the clipboard thread isn't
starting properly, or you need to run xwinclip instead of using the
-clipboard parameter.  Looking at (and posting) /tmp/XWin.log would help.

The X clipboard settings are generally confusing -- they have at least 4
clipboards, only one of which corresponds to the system clipboard.  As far
as I know, the recent X servers are pretty good at doing the copy/paste
with the system clipboard, but there's always the possibility of
misconfiguration or some other factor that affects this.  Perhaps the
people on the Cygwin/X list will have more helpful comments.

> > If this doesn't help, please describe exactly what you're trying to
> > do, what worked before, and what doesn't work now.  Getting some
> > information about your system as requested in
> >  would also help.
>
> Okay, here is the output from my cygcheck -s -r -v output:
> (sorry, but it goes on for quite a while...)
> [snip]

That's why we prefer it attached to the message, rather than included
inline.  At first glance[*], nothing looks wrong.
HTH,
Igor
[*] For the Cygwin/X folks: rather than waste bandwidth, the original post
on cygwin@ was .
-- 
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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  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: more in insert and copy from clipboard

2005-08-05 Thread J. David Boyd
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

From: Igor Pechtchanski <[EMAIL PROTECTED]>
Subject: Re: more in insert and copy from clipboard
Date: Fri, 5 Aug 2005 15:47:18 -0400 (EDT)

>
> Ah, so you're using an xterm.  This makes the question off-topic for this
> list.  I've redirected my reply to the right list, and set the Reply-To:
> accordingly.  Please remove  from further
> discussion of this, unless it veers back to something relevant to Cygwin
> at large, and not just Cygwin/X.


Okay, thanks, I'll start hanging out on the Cygwin/Xfree location.


>
> This has nothing to do with Cygwin settings -- it's an internal setting of
> the X server.  My guess would be that either the clipboard thread isn't
> starting properly, or you need to run xwinclip instead of using the
> -clipboard parameter.  Looking at (and posting) /tmp/XWin.log would help.
>
> The X clipboard settings are generally confusing -- they have at least 4
> clipboards, only one of which corresponds to the system clipboard.  As far
> as I know, the recent X servers are pretty good at doing the copy/paste
> with the system clipboard, but there's always the possibility of
> misconfiguration or some other factor that affects this.  Perhaps the
> people on the Cygwin/X list will have more helpful comments.

Makes sense, now I know where to start looking.



> That's why we prefer it attached to the message, rather than included
> inline.  At first glance[*], nothing looks wrong.

Actually, I was under the impression that these lists didn't like or allow
attachments.  It must be list dependent.

Thanks for the info,

Dave
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFC88zgULP5ApZWlDMRAnbyAJ9vscjao1a1VtTNUTYH6TOpjbQgqQCeIRUP
tXnSaVASQlt2GHl3AfFX+t0=
=Lwgi
-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: bash is crashing

2005-08-05 Thread Cary Jamison
Cary Jamison wrote:
> I just ran setup again (the latest version) to get 3.0-11, and made
> sure everything was stopped first.  I've now got a proper sh.  I'll
> run my script for a while again to see if it still has problems.

It's still crashing, so I'll look at narrowing it down more now...

Cary




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



What is the point of create_thread_and_wait()?

2005-08-05 Thread Vaclav Haisman

What is the point of create_thread_and_wait() in fhandler_netdrive::exists()?
Or anywhere at all? Why spawning a thread at all when we have to wait for the
task to finish immediately after it is started? I really would like to know,
even though it is probably just lack of knowledge on my side.

VH


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



nfs-server-2.3-2 Cygwin bug with patch

2005-08-05 Thread Linus Hicks
I tried sending a message to the email address given in the BUGS file in the nfs 
-server sources, but it bounced so I submit it here.


I was having a problem with doing an nfs mount on a Linux system and from what I 
found in the code, it's because I am exporting a shared drive on my Windows 
Cygwin machine. From reading the documentation, it is possible to do this, but I 
couldn't get it to work so I started looking at the code. What I did was first 
in Cygwin, mount the shared drive on an existing directory I created for it, 
then put that path in my exports file.


I found two problems. First was that when the directory wasn't found because of 
the other error, the code in libnfs/fhandle.c function fh_buildpath failed to 
set the path correctly when it goes shallower. This results in "Cannot stat 
" error messages.


The second problem was also in libnfs/fhandle.c function path_psi. I noticed in 
the fh_buildpath function that there was conditionally compiled code for Cygwin 
that had to do with changing how the pseudo inode is generated. There was no 
similar code in path_psi.


My patch follows, please be aware my email program is wrapping a couple of 
lines, and I'm hoping the tab characters don't get replaced with spaces:



diff -Naur nfs-server-2.3-2-orig/libnfs/fhandle.c 
nfs-server-2.3-2/libnfs/fhandle.c
--- nfs-server-2.3-2-orig/libnfs/fhandle.c  2005-04-29 14:06:14.00100 
-0400
+++ nfs-server-2.3-2/libnfs/fhandle.c   2005-08-05 15:38:15.052254000 -0400
@@ -620,11 +620,15 @@
char dpath[PATH_MAX + NAME_MAX + 1];
char* dpath_name = NULL;
struct stat dstat;
+#endif /* __CYGWIN__ */
+
+ backtrack:
+
+#ifdef __CYGWIN__
strcpy(dpath, pathbuf);
dpath_name = dpath + strlen(dpath);
 #endif /* __CYGWIN__ */

- backtrack:
if (stat(pathbuf, &sbuf) >= 0
&& (dir = opendir(pathbuf)) != NULL) {
pathlen = strlen(pathbuf);
@@ -828,6 +832,14 @@
 {
struct stat sbuf;

+#ifdef __CYGWIN__
+   char dpath[PATH_MAX + NAME_MAX + 1];
+   char* dpath_name = NULL;
+   struct stat dstat;
+
+   strcpy(dpath, path);
+#endif /* __CYGWIN__ */
+
if (sbp == NULL)
sbp = &sbuf;
if (!svalid && lstat(path, sbp) < 0) {
@@ -898,6 +910,14 @@
} while (strcmp(fname, dp->d_name) != 0);
sbp->st_dev = ddbuf.st_dev;
sbp->st_ino = dp->d_ino;
+#ifdef __CYGWIN__
+   if (lstat(dpath, &dstat) < 0) {
+   dbg_printf(__FILE__, __LINE__, L_ERROR, 
"Cannot stat %s\n", dpath);
+   return NULL;
+   }
+   sbp->st_dev = dstat.st_dev;
+   sbp->st_ino = dstat.st_ino;
+#endif /* __CYGWIN__ */
closedir(dirp);
}
}

--
Unsubscribe info:  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: bash is crashing

2005-08-05 Thread Cary Jamison
Cary Jamison wrote:
>> Ok, I should have sent it too.  There is probably a better way to do
>> this, but here it is...
>>
>> #!/bin/bash
>>
>> # scp anything in the sync directory to the remote machine
>> # and then move it to the done directory.
>> # Currently only works with single files, not directories.
>>
>> RHOST=cjp
>> RDIR="~/sync/recv"
>> LDIR=~/sync
>> LDONEDIR=~/sync/done
>> LOGFILE=~/synclog
>> TIMESTAMP=%D:%T
>> DATE="date +$TIMESTAMP"
>>
>> echo $($DATE) sync.sh starting > $LOGFILE
>>
>> cd $LDIR
>> while true
>> do
>>   sleep 10

It appears to be crashing here in the sleep.  It will go for just a few 
loops around to several minutes before crashing.
What should I try next.  Maybe a strace?

>>   for i in * .[^.]*
>>   do
>> if [[ -f $i ]]
>> then
>>   echo -ne $($DATE)\\040 >> $LOGFILE
>>   if scp -p -q $i $RHOST:$RDIR >> $LOGFILE 2>&1
>>   then
>> mv $i $LDONEDIR
>> echo $($DATE) copied $i >> $LOGFILE
>>   fi
>> fi
>>   done
>> done


Cary




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



rsh from Linx to cygwin

2005-08-05 Thread David McMahon

Hi,

I have a cygwin install with rshd running and
I'm trying to do an rsh from a Linux host:

$ rsh myhost date
Permission denied.

I have the same username/password and $HOME on
both the Linux machine and myhost.

myhost:/etc/hosts.equiv is just a single line +
as is ~/.rhosts.


myhost:/var/log/inetd.log reports this when rsh fails:

someone wants shell
accept, ctrl 3
+ Closing from 20
2160 execl /usr/sbin/in.rshd
2160 reaped, status 0x100


Anyone have any luck rsh'ing from Linux to 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/



Re: What is the point of create_thread_and_wait()?

2005-08-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Vaclav Haisman on 8/5/2005 4:10 PM:
> What is the point of create_thread_and_wait() in fhandler_netdrive::exists()?
> Or anywhere at all? Why spawning a thread at all when we have to wait for the
> task to finish immediately after it is started? I really would like to know,
> even though it is probably just lack of knowledge on my side.

Windows has the (nasty) habit of blocking EVERYTHING in the current
thread, including ctrl-c, when doing lengthy network tasks.  Spawning the
blocking task to its own thread allows cygwin to still react to signals in
the primary thread.  This threading code was added to fhandler_netdrive
due to complaints at the difficulty in stopping a runaway 'ls -F //' on
large domains when // was first made a directory; search the archives from
earlier this year for more details.

- --
Life is short - so eat dessert first!

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

iD8DBQFC9CQr84KuGfSFAYARAumxAJ9RVgjCVEscsf9v+HHTc/n8BCkp9gCgtcA5
kBIvfgmuBXAaLsc0ho/HK3k=
=mrcX
-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: Timezone names

2005-08-05 Thread Joshua Daniel Franklin
On 8/4/05, Cliff Hones wrote:
> I was curious as to why, under Cygwin, the default UK timezone
> names (eg as displayed by "date") are different from the standard
> names.  [Standard UK names are GMT and BST, while Cygwin displays
> GMTST and GMTDT.]  So I did some source digging.  Forgive me if the
> following info is already readily available - but I couldn't find
> it.  Note that the Cygwin FAQ admits to being out of date:
>http://cygwin.com/faq/faq_3.html#SEC85


Thanks, Cliff! Do you mind if I use this for the new FAQ text?


> Cygwin does not use the Newlib version of tzset - there is a
> Cygwin-specific implementation in localtime.cc.  Unlike the
> Newlib tzset, if environment TZ is not set, the Cygwin version
> uses Windows API GetTimeZoneInformation.  The timezone names
> as seen by Cygwin are set using just the the capital letters in
> the Windows timezone names  (which, for the UK, are "GMT Standard Time"
> and "GMT Daylight Time").
> 
> Of course, this affets other timezones too; most US zones translate
> to their standard names, but Central America will generate CAST/CADT
> rather than CST/CDT.
> 
> To get the more standard names, one can, of course, set the
> TZ environment variable explicitly (eg to "GMT0BST").  There is
> logic to complement the TZ setting info with default info from
> built in posixrules, but it's not clear to me if this will set the
> daylight saving on/off points correctly.  An alternative solution,
> which will use the Windows daylight saving info as before is to
> update the Windows timezone database directly.  I believe there is
> a "tzedit" tool to do this in Windows resource kits, but it is easy
> to do using the registry [ok, I know this is frowned on].  The timezone
> names (in NT/2K/XP) are in
>HKLM\Software\Microsoft\Windows NT\Current Version\TimeZones\
> (eg ..\GMT Standard Time for UK).
> The keys "Std" and "Dlt" specify the zone names - I changed mine to
> be "Greenwich Mean Time" and "British Summer Time".  After the change,
> to make it effective, use the Windows "Adjust Date/Time" dialog to reselect
> your timezone.
> 
> OBLIGATORY WARNING - Do not modify registry settings unless you are confident
> you know what you are doing, and know how to restore previous settings if
> your system subsequently malfunctions.
> 
> A possibly better solution, one day, would be for the "localtime" 
> implementation
> to be implemented for Cygwin, with zone files in /usr/share/zoneinfo.
> 
> -- Cliff
> 
> 
> --
> Unsubscribe info:  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: gz files in man folders

2005-08-05 Thread Joshua Daniel Franklin
On 8/5/05, Eric Blake wrote:
> According to James McLaughlin on 8/5/2005 5:41 AM:
> > While trying to find the file containing the man
> > information for g++ (which I succeeded in doing), I
> > noticed that in various subfolders of
> > c:\cygwin\share\man (in particular man1 and man3) a
> > lot of the .1 and .3 (and.something else for the other
> > subfolders) files were gzipped. This surprised me as
> > they were pretty small files.
> 
> For files under 1k, zipping doesn't save any disk space (disk space is
> used a block at a time, whether you use the entire block or not), and
> wastes CPU cycles as it spawns the extra processes to unzip it.  But for
> some man pages, the zipping is an improvement in filesize

I guess it depends on your definition of "pretty small files" since the
g++ manpage in question is 127k gzipped (nearly 500k uncompressed).
If you have most everything installed we're still probably talking about
less than 100M of disk savings, but it's better than nothing--especially
on old machines like my laptop with a 1.5G disk. :)

--
Unsubscribe info:  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: Proposed FAQ in DocBook

2005-08-05 Thread Joshua Daniel Franklin
On 8/3/05, Joshua Daniel Franklin wrote:
> I'm tired of tip-toeing around the texinfo source for the FAQ just to make
> sure links to the numbered questions work, so I've converted the source
> to DocBook and put up preliminary versions:


All done! Everyone update their Cygwin FAQ bookmarks with new, somewhat 
meaningful ones!

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