Re: SuiteSparse-3.1.0-1
--- Dr. Volker Zell ha scritto: Marco Atzeri writes: Hi All, I would like to adopt SuiteSparse It is one of the packages need to compile octave, it is also present in debian. Attached a change to the cygwin specific patch which fixes a small setup.hint error and a new .cygport file which builds out of the source tree. Ciao Volker rebuild as suggested. To download wget -r -np http://matzeri.altervista.org/cygwin/SuiteSparse/index.html setup.hint SuiteSparse-3.1.0-1-src.tar.bz2 SuiteSparse-3.1.0-1.tar.bz2 libSuiteSparse-devel/libSuiteSparse-devel-3.1.0-1.tar.bz2 libSuiteSparse-devel/setup.hint Ciao Marco ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/
Re: [ITA] qhull-2003.1-1
--- Dr. Volker Zell ha scritto: Marco Atzeri writes: Hi All, I would like to adopt Qhull, as it is one of the packages needed to compile octave. It is also present in debian - cut - The attached patch fixes it for me. Also attached a modified .cygport file to build outside of the source directory and a cygwin specific patch which fixes a setup.hint error. Ciao Volker rebuild as suggested. to download wget -r -np http://matzeri.altervista.org/cygwin/qhull/index.html setup.hint qhull-2003.1-1-src.tar.bz2 qhull-2003.1-1.tar.bz2 libqhull/libqhull-2003.1-1.tar.bz2 libqhull/setup.hint libqhull-devel libqhull-devel/libqhull-devel-2003.1-1.tar.bz2 libqhull-devel/setup.hint Ciao Marco ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/
Re: [ITA] glpk-4.21-1 - now glpk-4.25-1
--- Dr. Volker Zell ha scritto: Marco Atzeri writes: Hi All, as previously discussed glpk is one of the package needed to compile octave it is also present in debian. glpk-4.25 compiles with shared library. Ciao Volker compiled as suggested to download wget -r -np http://matzeri.altervista.org/cygwin/glpk/index.html setup.hint glpk-4.25-1-src.tar.bz2 glpk-4.25-1.tar.bz2 libglpk-devel/libglpk-devel-4.25-1.tar.bz2 libglpk-devel/setup.hint libglpk0/libglpk0-4.25-1.tar.bz2 libglpk0/setup.hint Ciao Marco ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/
Re: [ITA] hdf5-1.6.7-1
--- Dr. Volker Zell ha scritto: Marco Atzeri writes: Dear all, I would like to adopt HDF5 With the attached patch hdf5 is build with shared libs. Also attached the modified .cygport file to support splitting in main, lib and devel packages and cygwin specific patch which corrects some setup.hint errors. Ciao Volker rebuilt as suggested To download wget -r -np http://matzeri.altervista.org/cygwin/hdf5/index.html setup.hint hdf5-1.6.7-1-src.tar.bz2 hdf5-1.6.7-1.tar.bz2 libhdf5-devel/libhdf5-devel-1.6.7-1.tar.bz2 libhdf5-devel/setup.hint libhdf5_0/libhdf5_0-1.6.7-1.tar.bz2 libhdf5_0/setup.hint Ciao Marco ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/
[GTG] Re: [ITA] glpk-4.21-1 - now glpk-4.25-1
Marco Atzeri writes: compiled as suggested to download wget -r -np http://matzeri.altervista.org/cygwin/glpk/index.html setup.hint glpk-4.25-1-src.tar.bz2 glpk-4.25-1.tar.bz2 libglpk-devel/libglpk-devel-4.25-1.tar.bz2 libglpk-devel/setup.hint libglpk0/libglpk0-4.25-1.tar.bz2 libglpk0/setup.hint Builds fine from source, packaging and setup.hint look good. GTG Volker
[GTG] Re: [ITA] hdf5-1.6.7-1
Marco Atzeri writes: rebuilt as suggested To download wget -r -np http://matzeri.altervista.org/cygwin/hdf5/index.html setup.hint hdf5-1.6.7-1-src.tar.bz2 hdf5-1.6.7-1.tar.bz2 libhdf5-devel/libhdf5-devel-1.6.7-1.tar.bz2 libhdf5-devel/setup.hint libhdf5_0/libhdf5_0-1.6.7-1.tar.bz2 libhdf5_0/setup.hint Builds fine from source, packaging and setup.hint look good. GTG Volker
Re: SuiteSparse-3.1.0-1
Marco Atzeri writes: rebuild as suggested. To download wget -r -np http://matzeri.altervista.org/cygwin/SuiteSparse/index.html setup.hint SuiteSparse-3.1.0-1-src.tar.bz2 SuiteSparse-3.1.0-1.tar.bz2 libSuiteSparse-devel/libSuiteSparse-devel-3.1.0-1.tar.bz2 libSuiteSparse-devel/setup.hint Although my build gives identical files SuiteSparse-3.1.0-1.tar.bz2 and libSuiteSparse-devel-3.1.0-1.tar.bz2 I get the following error during compilation: cc -O3 -c -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I../../metis-4.0/Lib -I../../CCOLAMD/Include -I../../CAMD/Include -I../Include -I../../UFconfig ../Partition/cholmod_metis.c ../Partition/cholmod_metis.c:52:19: metis.h: No such file or directory ../Partition/cholmod_metis.c: In function `metis_memory_ok': ../Partition/cholmod_metis.c:165: error: `idxtype' undeclared (first use in this function) ../Partition/cholmod_metis.c:165: error: (Each undeclared identifier is reported only once ../Partition/cholmod_metis.c:165: error: for each function it appears in.) ../Partition/cholmod_metis.c: In function `cholmod_metis_bisector': ../Partition/cholmod_metis.c:214: error: `idxtype' undeclared (first use in this function) ../Partition/cholmod_metis.c:214: error: `Mp' undeclared (first use in this function) ../Partition/cholmod_metis.c:214: error: `Mi' undeclared (first use in this function) ../Partition/cholmod_metis.c:214: error: `Mnw' undeclared (first use in this function) ../Partition/cholmod_metis.c:214: error: `Mew' undeclared (first use in this function) ../Partition/cholmod_metis.c:214: error: `Mpart' undeclared (first use in this function) ../Partition/cholmod_metis.c:293: error: parse error before ')' token ../Partition/cholmod_metis.c:294: error: parse error before ')' token ../Partition/cholmod_metis.c:295: error: parse error before ')' token ../Partition/cholmod_metis.c:296: error: parse error before ')' token ../Partition/cholmod_metis.c:297: error: parse error before ')' token ../Partition/cholmod_metis.c: In function `cholmod_metis': ../Partition/cholmod_metis.c:511: error: `idxtype' undeclared (first use in this function) ../Partition/cholmod_metis.c:511: error: `Mp' undeclared (first use in this function) ../Partition/cholmod_metis.c:511: error: `Mi' undeclared (first use in this function) ../Partition/cholmod_metis.c:511: error: `Mperm' undeclared (first use in this function) ../Partition/cholmod_metis.c:511: error: `Miperm' undeclared (first use in this function) ../Partition/cholmod_metis.c:636: error: parse error before ')' token ../Partition/cholmod_metis.c:637: error: parse error before ')' token ../Partition/cholmod_metis.c:638: error: parse error before ')' token ../Partition/cholmod_metis.c:639: error: parse error before ')' token make[4]: *** [cholmod_metis.o] Error 1 make[4]: Leaving directory `/misc/src/SuiteSparse-3.1.0-1/build/CHOLMOD/Lib' make[3]: *** [library] Error 2 make[3]: Leaving directory `/misc/src/SuiteSparse-3.1.0-1/build/CHOLMOD' make[2]: *** [../../CHOLMOD/Lib/libcholmod.a] Error 2 make[2]: Leaving directory `/misc/src/SuiteSparse-3.1.0-1/build/KLU/Demo' make[1]: *** [library] Error 2 make[1]: Leaving directory `/misc/src/SuiteSparse-3.1.0-1/build/KLU' make: *** [default] Error 2 Ciao Volker
[GTG] Re: [ITA] qhull-2003.1-1
Marco Atzeri writes: rebuild as suggested. to download wget -r -np http://matzeri.altervista.org/cygwin/qhull/index.html setup.hint qhull-2003.1-1-src.tar.bz2 qhull-2003.1-1.tar.bz2 libqhull/libqhull-2003.1-1.tar.bz2 libqhull/setup.hint libqhull-devel libqhull-devel/libqhull-devel-2003.1-1.tar.bz2 libqhull-devel/setup.hint Builds fine from source, packaging and setup.hint look good. GTG Volker
Re: SuiteSparse-3.1.0-1
--- Dr. Volker Zell ha scritto: Marco Atzeri writes: rebuild as suggested. To download wget -r -np http://matzeri.altervista.org/cygwin/SuiteSparse/index.html setup.hint SuiteSparse-3.1.0-1-src.tar.bz2 SuiteSparse-3.1.0-1.tar.bz2 libSuiteSparse-devel/libSuiteSparse-devel-3.1.0-1.tar.bz2 libSuiteSparse-devel/setup.hint Although my build gives identical files SuiteSparse-3.1.0-1.tar.bz2 and libSuiteSparse-devel-3.1.0-1.tar.bz2 I get the following error during compilation: cc -O3 -c -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I../../metis-4.0/Lib -I../../CCOLAMD/Include -I../../CAMD/Include f**k!!! I forgot the SuiteSparse-3.1.0-1.src.patch and due to the hurry not checked the log rebuilt and reloaded again. To download wget -r -np http://matzeri.altervista.org/cygwin/SuiteSparse/index.html Ciao Volker Grazie Marco ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/
FW: svn / subversion does not print
gds wrote on 12 May 2008 21:42: Yes, strace and cygcheck both indicate that cygexpat-0.dll is missing and should be in /bin. Don't see it there. Just see an expat package in the installer, no libexpat0 as pointed out here: http://www.nabble.com/-PACKAGING-ERROR--subversion-1.4.5-2-td16959043.html Sounds like there is a packaging problem. Tried going back to svn 1.4.5-1 instead of latest 1.4.5-2 with same result. I was wrong, there is a libexpat0 (I was looking for libxpat0). Re-installing it seems to fix the problem. Ok, I've now fixed this. (I probably should have gone ahead and done so when I first noticed it but I didn't want to risk treading on anyone's toes until I'd at least mentioned it first on the list.) Setup.ini appears to have rebuilt correctly. cheers, DaveK -- Can't think of a witty .sigline today
coreutils-6.11-1 in release-2 area
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've finally finished a build of coreutils 6.11, and uploaded it to the release-2 area. It makes heavy use of the openat() family of functions. It also exercises the improved statvfs interface; I was able to remove the cygwin-specific hack for df -T. It fixes the bug with rm -rf 'dir ' that I recently reported on the -devel list, but I am still waiting on a cygwin1.dll fix for mkdir 'dir /' to correctly munge the trailing space. Note that .exe magic is slightly different, in part due to different underlying semantics. For example, now that 'foo.' and 'foo' are separate files, it is much tougher to decide whether 'foo' and 'foo.exe' are the same file, or whether a directory has both files at once. Likewise, now that open() sees through symlinks that lack .exe suffix (for example, if /bin/ksh linked to /bin/pdksh instead of /bin/pdksh.exe), there are a lot fewer cygwin-specific patches. Additionally, I had to alter my magic to work with the new cygwin_path_conv methods, rather than the old PATH_MAX interfaces. So there will probably be issues and/or regressions; please report them on this list, and I will try to fix them before cygwin 1.7.0 goes live. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgo+LkACgkQ84KuGfSFAYAK5gCff4/PHY9ko9UVikB4FCEImEyL EGgAnAkOc4p+QSEpBfm3Q9uFnXlyFLx+ =NdW9 -END PGP SIGNATURE-
Re: auto complete history
* Robert Bram (Sun, 11 May 2008 11:05:38 +1000) In a previous installation of Cygwin, I had 'history auto complete' in so far as I could type a letter, press the up key and the prompt would cycle through the most recent entries in history whose first letter matches the letter I typed. On my newest install, this feature isn't present. Can anyone please let me know how to put it in place? Depends on your shell. In Zsh it would be... bindkey '\e[A' history-beginning-search-backward bindkey '\e[B' history-beginning-search-forward and in Bash... \e[A: history-search-backward \e[B: history-search-forward Put these in your .zshrc or .inputrc. Thorsten -- Unsubscribe info: 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: auto complete history
Thank you Thorsten In a previous installation of Cygwin, I had 'history auto complete' in Depends on your shell. In Zsh it would be... and in Bash... \e[A: history-search-backward \e[B: history-search-forward Put these in your .zshrc or .inputrc. I also needed this in my .bashrc, and the above works. Thank you! export INPUTRC=$HOME/.inputrc Rob :) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated: libgcrypt-1.4.1-1
Volker Zell writes: Gergely Budai writes: Version 1.4.1-1 of libgcrypt has been uploaded. Libgcrypt is a general purpose crypto library based on the code used in GnuPG. Is it possible to split this library in main, lib and devel packages for the next release ? Addition for .cygport file: abi=11 PKG_NAMES=${PN} ${PN}${abi} ${PN}-devel PKG_HINTS=setup lib devel PKG_CONTENTS[0]= etc/ usr/bin/*.exe usr/share/doc/ usr/share/info/ PKG_CONTENTS[1]= usr/bin/*-${abi}.dll PKG_CONTENTS[2]= usr/bin/${PN}-config usr/include/ usr/lib/ usr/share/aclocal/ 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: auto complete history
* Robert Bram (Mon, 12 May 2008 17:18:40 +1000) In a previous installation of Cygwin, I had 'history auto complete' in Depends on your shell. In Zsh it would be... and in Bash... \e[A: history-search-backward \e[B: history-search-forward Put these in your .zshrc or .inputrc. I also needed this in my .bashrc, and the above works. Thank you! export INPUTRC=$HOME/.inputrc That's already the default so it doesn't do anything. Thorsten -- Unsubscribe info: 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: [Packaging bug] Re: [ANNOUNCEMENT] Updated: libgcrypt-1.4.1-1
Volker Zell writes: Gergely Budai writes: Version 1.4.1-1 of libgcrypt has been uploaded. The latest version is somehow broken nm --demangle --defined-only libgcrypt.dll.a | grep 'gcry_control' nm: d000187.o: no symbols nm: d00.o: no symbols nm: d000186.o: no symbols nm: d000185.o: no symbols nm: d000184.o: no symbols nm: d000183.o: no symbols nm: d000182.o: no symbols nm: d000181.o: no symbols nm: d000180.o: no symbols nm: d000179.o: no symbols nm: d000178.o: no symbols nm: d000177.o: no symbols nm: d000176.o: no symbols nm: d000175.o: no symbols nm: d000174.o: no symbols nm: d000173.o: no symbols nm: d000172.o: no symbols nm: d000171.o: no symbols nm: d000170.o: no symbols nm: d000169.o: no symbols nm: d000168.o: no symbols nm: d000167.o: no symbols nm: d000166.o: no symbols : : It seems stripping the libraries is the culprit. Try the attached .cygport file which also splits the package in main, devel and runtime packages: --- cut here - # Cygport script for libgcrypt DESCRIPTION=A general purpose crypto library based on the code from GnuPG. HOMEPAGE=http://www.gnupg.org/; SRC_URI=ftp://ftp.gnupg.org/gcrypt/libgcrypt/${P}.tar.bz2 ftp://ftp.gnupg.org/gcrypt/libgcrypt/${P}.tar.bz2.sig; abi=11 PKG_NAMES=${PN} ${PN}${abi} ${PN}-devel PKG_HINTS=setup lib devel PKG_CONTENTS[0]= etc/ usr/bin/*.exe usr/share/doc/ usr/share/info/ PKG_CONTENTS[1]= usr/bin/*-${abi}.dll PKG_CONTENTS[2]= usr/bin/${PN}-config usr/include/ usr/lib/ usr/share/aclocal/ # We also include the self-tests after compilation src_compile() { cd ${S} cygautoreconf cd ${B} cygconf cygmake src_test } --- cut here - --- cut here - diff -urN origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/devel.hint src/libgcrypt-1.4.1/CYGWIN-PATCHES/devel.hint --- origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/devel.hint 1970-01-01 01:00:00.0 +0100 +++ src/libgcrypt-1.4.1/CYGWIN-PATCHES/devel.hint 2008-05-12 11:28:40.703125000 +0200 @@ -0,0 +1,6 @@ +sdesc: A general purpose crypto library based on the code from GnuPG - (development) +ldesc: Libgcrypt is a general purpose crypto library based on the code +used in GnuPG. +category: Devel Libs +requires: cygwin libgcrypt11 bash coreutils grep sed +external-source: libgcrypt diff -urN origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/lib.hint src/libgcrypt-1.4.1/CYGWIN-PATCHES/lib.hint --- origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/lib.hint 1970-01-01 01:00:00.0 +0100 +++ src/libgcrypt-1.4.1/CYGWIN-PATCHES/lib.hint 2008-05-12 11:27:04.328125000 +0200 @@ -0,0 +1,6 @@ +sdesc: A general purpose crypto library based on the code from GnuPG - (runtime) +ldesc: Libgcrypt is a general purpose crypto library based on the code +used in GnuPG. +category: Libs +requires: cygwin libgpg-error +external-source: libgcrypt diff -urN origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/setup.hint src/libgcrypt-1.4.1/CYGWIN-PATCHES/setup.hint --- origsrc/libgcrypt-1.4.1/CYGWIN-PATCHES/setup.hint 1970-01-01 01:00:00.0 +0100 +++ src/libgcrypt-1.4.1/CYGWIN-PATCHES/setup.hint 2008-05-12 11:27:37.25000 +0200 @@ -0,0 +1,5 @@ +sdesc: A general purpose crypto library based on the code from GnuPG. +ldesc: Libgcrypt is a general purpose crypto library based on the code +used in GnuPG. +category: Libs +requires: cygwin --- cut here - 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: Installing Cygwin with a USB thumb drive
I used to run a portable version of cygwin from my usb drive -- and I confirm that it works. I never tried to use it on a system that already had cygwin installed. I used these instructions although the look like they haven't been updated since Feb 2005: http://www.dam.brown.edu/people/sezer/software/cygwin/ -- Kevin Hilton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
GnuPG2
Anyone been able to successfully compile GnuPG2 on cygwin? I keep getting an error relating to the gettext package. I installed gettext from svn --- got a little bit farther in the make process, but still getting errors. Any other tips? -- Kevin Hilton -- Unsubscribe info: 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: Feature request: rm to recycle bin
Given that the code for sending to recycyle bin is already in place, may I request that a command line option be added to rm and rmdir to send all files to the bin? This would be extremely handy for use in scripts, to me at the very least. The code to move files into the bin is an underlying, hidden feature of the unlink(2), rmdir(2) and rename(2) POSIX calls. The rm(1) tool has no access to this functionality and there's no intention to add a non-POSIX API to allow any tool to use it. There is a library called libtrash that implements a trash can for GNU/Linux by intercepting the above calls: http://pages.stern.nyu.edu/~marriaga/software/libtrash/ . No one has packaged it for Cygwin. It requires the use of LD_PRELOAD, which I believe is supposed to work in Cygwin, although I've never tried to use it. Hm... might be interesting to try... I'll look at it. A. -- Unsubscribe info: 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: Script utility for cygwin?
# ls -la | grep -i script # du -a | grep -i script # find / -type f -name '*script*' # which script Or just try it: # PC - ~ script # Script started, file is typescript Charles Stepp Meskimen's Law: There's never time to do it rite, but there's always time to do it over. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 11:40 AM To: cygwin@cygwin.com Subject: RE: Script utility for cygwin? On Fri, May 09, 2008 at 10:19:39AM -0400, Mark J. Reed wrote: On Fri, May 9, 2008 at 10:10 AM, [EMAIL PROTECTED] wrote: Hi Does the 'script' utility exist in cygwin? Yes. searched the components of the latest distribution but didn't see it. Well, it's right there in /usr/bin/script on my machine. don't know what package it came from, but it works. http://cygwin.com/cgi-bin2/package-grep.cgi?grep=%2Fscript.exe cgf Thanks for that. I had searched for 'script' (instead of 'script.exe'), and didn't notice what I needed in the lng list. But, now that I know what Cygwin package it's in, how do I turn that into knowing what to look for in Cygwin Setup? Sorry for the newbie questions, but I really did try to help myself, and the solution isn't yet obvious to me. Thanks tl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Installing Cygwin with a USB thumb drive
One recommendation I have is to NOT run if from a flash drive if there is a hard drive install...it can fiddle with stuff that will make the hard drive installed not be correct. Charles Stepp Meskimen's Law: There's never time to do it rite, but there's always time to do it over. -Original Message- From: Adam McCarthy [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 7:38 PM To: cygwin@cygwin.com Subject: Installing Cygwin with a USB thumb drive I really enjoy Cygwin and would love to have a portable copy on a thumb drive. I use Cygwin all the time, and obviously I can't install it on every computer I go on, especially since many are not mine. I saw many instructions on the web for doing it, but I wanted to see if their were instructions that were recommended, I know that likely there will not be an official but I figured at least if it works. Is it fairly easy to install it on a thumb drive? I'm not worried if it's hard or command line, because I've install Gentoo Linux before and have much experience with command line, I just don't want it to screw up current Cygwins on my machines. Most PCs I use it on, will not have Cygwin, but perhaps I need to do something on a PC that already has Cygwin, I don't want it to screw up the local Cygwin. Thanks Again Adam McCarthy -- Unsubscribe info: 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.7 undefined reference to getreent when using mno-cygwin
http://cygwin.com/acronyms/#PPIOSPE. I've redirected your query to the appropriate list and set the Reply-To: header -- please make sure your mailer honors it. Ugh, top-posting... Reformatted. On Mon, 12 May 2008, Jesús Oliva wrote: Hi, I have a pure Win32 console program which I am trying to compile under Cygwin. I am including the following libraries -lws2_32 -lrpcrt4 -luuid -lrpcns4 -lpsapi -liphlpapi and am using a host of Win32 calls for threading, sockets, semaphores, etc. I know that I need to compile with the option -mno-cygwin to be able to run the program on a computer without the cygwin.dll, which is what I want, however, when I add this option I get the following linker error: undefined reference to `___getreent' This is my linker statement: g++ -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D WIN32 -D CYGWIN -D __CYGWIN__ CoreMain.o CoreLibrary.a -Wl,--rpath -Wl,/usr/local/lib -o CoreTest -mno-cygwin -lws2_32 -lrpcrt4 -luuid -lrpcns4 -lpsapi -liphlpapi I have found that I get this for every line in the code where I use either getchar() or printf(...\b...); fflush(stdout); and when I comment out these the error goes away, but jumps to the next line or file where I use this or something like it. I must admit that I have not tried removing all hundreds of them, just the first 15 or so... I have tried to include all sorts of libraries instead of the cygwin.dll and actually, when I include the -lpthread it compiles, but then the program crashes when I start using threads and semaphores... As I mentioned above, when I do not state -mno-cygwin, everything works fine and the program runs perfectly! But then it needs the cygwin.dll, of course... I found a few references to this on the web, mostly promoting the compiler directive -D __CYGWIN__ which I have tried, but to no avail... Below is a snippet of output from the linker. I hope this will make sense to somebody out there, who can tell me what to include in my linker statement... Thank you very much in advance! Best regards, Thor List [Linker output snipped] Thor, You have to use -mno-cygwin for the whole compilation, not just for the link line, otherwise the wrong headers get picked up. IOW, don't add -mno-cygwin to LDFLAGS -- instead, redefine CXX='g++ -mno-cygwin' (and CC='gcc -mno-cygwin') and rebuild everything from scratch. Igor I have a similar problem that the one related below, but when I try to above compile everything with the -mno-cygwin option, I get many errors such as: 'error: u_int32_t has not been declared I suppose that, if I don´t want to use cygwin.dll, I should add some libraries to the compiling and linking process, but I don´t know wich. Could you help me?? Thank you very much, Jesús Oliva You may need headers that define the above types, or you may be unable to compile the code with -mno-cygwin if those headers are not present in MinGW. Remember, -mno-cygwin means no Cygwin -- you're using MinGW, and will only be able to compile programs that MinGW has enough support for. Further questions about this should really be directed to a MinGW list... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Unable to run sshd under a domain sshd_server account
I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. Why do I want to do that? Because in the default install, starting a cygwin shell from the console gives me a much different environment and permissions than if I start a cygwin shell via ssh. For example, from a console shell on the Windows 2003 Server: $ echo $USER tschutter $ echo $USERNAME tschutter $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FLOODDATA $ id uid=18718(tschutter) gid=10513(Domain Users) groups=544(Administrators),545(Users),10513(Domain Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) $ ls //other/f$ Data RECYCLERSystem\ Volume\ Information But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FDSVBLD01SGRAPE $ id uid=18718(tschutter) gid=10513(Domain Users) groups=545(Users),10513(Domain Users) $ ls //other/f$ ls: cannot access //other/f$: Permission denied The sshd server was setup using ssh-host-config --yes. So it appears that when I login via ssh, I am logged in as a local user, not a domain user. Also, when logged in via ssh, I am not in the Administrators, FDSV-GG-PrxBLD, and FDSV-GG-PrxPCAdmins groups. As a side note, I would think that USERNAME being set to sshd_server is a bug. It appears that the solution is to create a domain sshd_server account and run sshd as that user. So I created a domain account called fdsv-sa-prx-sshdsrvr. I gave this account the required rights: $ editrights -a SeCreateTokenPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeTcbPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyInteractiveLogonRight -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyNetworkLogonRight -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyRemoteInteractiveLogonRight -u fdsv-sa-prx-sshdsrvr $ editrights -a SeIncreaseQuotaPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeServiceLogonRight -u fdsv-sa-prx-sshdsrvr I added fdsv-sa-prx-sshdsrvr to local Administrators group. I changed the ownership of the /etc/ssh files and /var/empty: $ chown fdsv-sa-prx-sshdsrvr /etc/ssh* /var/empty I changed the log on account for the CYGWIN sshd service to the fdsv-sa-prx-sshdsrvr account. I then tried to start the service: $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. I have attached the output from cygcheck -s -v -r as grape-cygcheck.out. So where do I go from here? What am I missing? -- Tom Schutter First American - Proxix Solutions (512) 977-6822 grape-cygcheck.out Description: grape-cygcheck.out -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
widely-spaced characters in rxvt
What causes rxvt to switch to displaying characters with lots of space in between them? I heard that there's some interaction between X11-mode rxvt setup and plain-window rxvt setup. I don't think I've installed any X11 libraries, servers, or even fonts since rxvt was working right, but now rxvt is acting up again. Daniel -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account
Schutter, Thomas A. wrote: I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. Why do I want to do that? Because in the default install, starting a cygwin shell from the console gives me a much different environment and permissions than if I start a cygwin shell via ssh. For example, from a console shell on the Windows 2003 Server: $ echo $USER tschutter $ echo $USERNAME tschutter $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FLOODDATA $ id uid=18718(tschutter) gid=10513(Domain Users) groups=544(Administrators),545(Users),10513(Domain Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) $ ls //other/f$ Data RECYCLERSystem\ Volume\ Information But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FDSVBLD01SGRAPE $ id uid=18718(tschutter) gid=10513(Domain Users) groups=545(Users),10513(Domain Users) $ ls //other/f$ ls: cannot access //other/f$: Permission denied Obviously you're using pubkey authentication. If that's not an absolute requirement for you, then use password authentication. That will resolve your problem. Otherwise, if you must use pubkey authentication, I'll direct you to the FAQ: http://cygwin.com/faq/faq-nochunks.html#faq.using.shares These are the recommended workarounds for this issue for the 1.5.x Cygwin package series. The 1.7.x Cygwin package series will offer an alternative approach which resolves the issue but is not released so it's only available in snapshots. Search for 'cyglsa' if you're curious about this new facility. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: 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: widely-spaced characters in rxvt
Daniel Barclay wrote on 12 May 2008 17:39: What causes rxvt to switch to displaying characters with lots of space in between them? Did you overlook Chuck Wilson's reply in our thread last week? http://cygwin.com/ml/cygwin/2008-05/msg00158.html Specifically the second paragraph. 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: widely-spaced characters in rxvt
Daniel Barclay wrote: What causes rxvt to switch to displaying characters with lots of space in between them? The font it's using. I heard that there's some interaction between X11-mode rxvt setup and plain-window rxvt setup. I don't think I've installed any X11 libraries, servers, or even fonts since rxvt was working right, but now rxvt is acting up again. You have to check what's the default font [1] or if you changed it [2]. There was a thread on the list, long ago, about the default being a font that comes with the X11 fonts. I'm not sure what's the case right now, but a widely-spaced font sounds like a font that you have installed but lacks the necessary hints (that's a X11 font term). [1] /etc/defaults/etc/X11/app-defaults/Rxvt or URxvt; [2] ~/.Xdefaults -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
svn / subversion does not print
No svn commands print, e.g., svn help comes up blank with no errors printed. This happened before and I wrote down in notebook svn needs crypto pkg to run However, did not write down which crypto package. Installing the crypt cygwin package did not help. This only started after a cygwin upgrade and reboot. Before that it worked fine. Any ideas what I need to do? Thanks, -gene -- Unsubscribe info: 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: svn / subversion does not print
On 5/12/2008 12:32 PM, gds wrote: No svn commands print, e.g., svn help comes up blank with no errors printed. This happened before and I wrote down in notebook svn needs crypto pkg to run However, did not write down which crypto package. Installing the crypt cygwin package did not help. This only started after a cygwin upgrade and reboot. Before that it worked fine. Any ideas what I need to do? My WAG is that you're missing a DLL. Try running cygcheck `which svn` and look for messages about missing DLLs. If you find any, please report back to the list so the setup.hint can be fixed. -- David Rothenberger [EMAIL PROTECTED] I never let my schooling get in the way of my education. -- Mark Twain -- Unsubscribe info: 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: svn / subversion does not print
David Rothenberger wrote: On 5/12/2008 12:32 PM, gds wrote: No svn commands print, e.g., svn help comes up blank with no errors printed. This happened before and I wrote down in notebook svn needs crypto pkg to run However, did not write down which crypto package. Installing the crypt cygwin package did not help. This only started after a cygwin upgrade and reboot. Before that it worked fine. Any ideas what I need to do? My WAG is that you're missing a DLL. Try running cygcheck `which svn` and look for messages about missing DLLs. If you find any, please report back to the list so the setup.hint can be fixed. Yes, strace and cygcheck both indicate that cygexpat-0.dll is missing and should be in /bin. Don't see it there. Just see an expat package in the installer, no libexpat0 as pointed out here: http://www.nabble.com/-PACKAGING-ERROR--subversion-1.4.5-2-td16959043.html Sounds like there is a packaging problem. Tried going back to svn 1.4.5-1 instead of latest 1.4.5-2 with same result. -gene -- Unsubscribe info: 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: svn / subversion does not print
gds wrote: David Rothenberger wrote: On 5/12/2008 12:32 PM, gds wrote: No svn commands print, e.g., svn help comes up blank with no errors printed. This happened before and I wrote down in notebook svn needs crypto pkg to run However, did not write down which crypto package. Installing the crypt cygwin package did not help. This only started after a cygwin upgrade and reboot. Before that it worked fine. Any ideas what I need to do? My WAG is that you're missing a DLL. Try running cygcheck `which svn` and look for messages about missing DLLs. If you find any, please report back to the list so the setup.hint can be fixed. Yes, strace and cygcheck both indicate that cygexpat-0.dll is missing and should be in /bin. Don't see it there. Just see an expat package in the installer, no libexpat0 as pointed out here: http://www.nabble.com/-PACKAGING-ERROR--subversion-1.4.5-2-td16959043.html Sounds like there is a packaging problem. Tried going back to svn 1.4.5-1 instead of latest 1.4.5-2 with same result. I was wrong, there is a libexpat0 (I was looking for libxpat0). Re-installing it seems to fix the problem. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Unable to run sshd under a domain sshd_server account [SOLVED]
-Original Message- From: Schutter, Thomas A. Sent: Monday, May 12, 2008 9:52 AM To: 'cygwin@cygwin.com' Subject: Unable to run sshd under a domain sshd_server account I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. Why do I want to do that? Because in the default install, starting a cygwin shell from the console gives me a much different environment and permissions than if I start a cygwin shell via ssh. For example, from a console shell on the Windows 2003 Server: $ echo $USER tschutter $ echo $USERNAME tschutter $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FLOODDATA $ id uid=18718(tschutter) gid=10513(Domain Users) groups=544(Administrators),545(Users),10513(Domain Users),18169(FDSV- GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) $ ls //other/f$ Data RECYCLERSystem\ Volume\ Information But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server $ echo $HOSTNAME fdsvbld01sgrape $ echo $USERDOMAIN FDSVBLD01SGRAPE $ id uid=18718(tschutter) gid=10513(Domain Users) groups=545(Users),10513(Domain Users) $ ls //other/f$ ls: cannot access //other/f$: Permission denied The sshd server was setup using ssh-host-config --yes. So it appears that when I login via ssh, I am logged in as a local user, not a domain user. Also, when logged in via ssh, I am not in the Administrators, FDSV-GG-PrxBLD, and FDSV-GG-PrxPCAdmins groups. As a side note, I would think that USERNAME being set to sshd_server is a bug. It appears that the solution is to create a domain sshd_server account and run sshd as that user. So I created a domain account called fdsv- sa-prx-sshdsrvr. I gave this account the required rights: $ editrights -a SeCreateTokenPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeTcbPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyInteractiveLogonRight -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyNetworkLogonRight -u fdsv-sa-prx-sshdsrvr $ editrights -a SeDenyRemoteInteractiveLogonRight -u fdsv-sa-prx- sshdsrvr $ editrights -a SeIncreaseQuotaPrivilege -u fdsv-sa-prx-sshdsrvr $ editrights -a SeServiceLogonRight -u fdsv-sa-prx-sshdsrvr I added fdsv-sa-prx-sshdsrvr to local Administrators group. I changed the ownership of the /etc/ssh files and /var/empty: $ chown fdsv-sa-prx-sshdsrvr /etc/ssh* /var/empty I changed the log on account for the CYGWIN sshd service to the fdsv- sa-prx-sshdsrvr account. I then tried to start the service: $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. I have attached the output from cygcheck -s -v -r as grape- cygcheck.out. So where do I go from here? What am I missing? First, I am sorry that I broke the original thread. I was not subscribed to the list when I made the first post, so I was unable to reply to that thread. I solved the problem. I had missed the /var/log files when changing ownership to the new domain sshd_server account. The chown command above should be: chown fdsv-sa-prx-sshdsrvr /etc/ssh* /var/empty /var/log/lastlog /var/log/sshd.log Now the sshd server starts, and when I login my id is correct, and I can view shares: $ echo $USERDOMAIN FLOODDATA $ id uid=18718(tschutter) gid=10513(Domain Users) groups=544(Administrators),545(Users),10513(Domain Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) $ ls //other/f$ Data RECYCLERSystem\ Volume\ Information Note that my USERNAME is still wrong: $ echo $USERNAME fdsv-sa-prx-sshdsrvr Although this method of creating and using a domain sshd_server account is not one of the recommended workarounds, it appears to work. In the other thread, Larry Hall pointed me to the FAQ http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the suggestions was to provide your password to a net use command. I was unable to make that work, because net use never asks for my password: $ net use \\other\f$ System error 67 has occurred. The network name cannot be found. As Larry Hall pointed out in the other thread, the cyglsa dll should solve this problem and I look forward to trying it out when 1.7.x is available. I am not ready to jump to snapshots at this time. -- Tom Schutter First
Re: widely-spaced characters in rxvt
René Berber wrote: Daniel Barclay wrote: What causes rxvt to switch to displaying characters with lots of space in between them? The font it's using. I heard that there's some interaction between X11-mode rxvt setup and plain-window rxvt setup. I don't think I've installed any X11 libraries, servers, or even fonts since rxvt was working right, but now rxvt is acting up again. You have to check what's the default font [1] or if you changed it [2]. Damn! It just changed again. The main question question is why it keeps changing when I running the CygWin installer even though I don't (as far as I know) touch its font settings or touch the installer settings for which fonts are installed. How do I get it to behave consistently (well, consistently with a good font, rather than consistentl with a bad font). Daniel -- Unsubscribe info: 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: widely-spaced characters in rxvt
René Berber wrote: Daniel Barclay wrote: What causes rxvt to switch to displaying characters with lots of space in between them? The font it's using. But why exactly would it display characters with lots of space between them? Surely the font isn't designed that way. What is actually going wrong? You have to check what's the default font [1] or if you changed it [2]. c:/tools/cygwin/etc/defaults/etc/X11/app-defaults/ says: Rxvt*font:-bitstream-bitstream vera sans mono-medium-r-normal--*-160-*-*-m-*-iso8859-1 I have not ~/.Xdefaults There was a thread on the list, long ago, about the default being a font that comes with the X11 fonts. I'm not sure what's the case right now, but a widely-spaced font sounds like a font that you have installed but lacks the necessary hints (that's a X11 font term). It sounds like a bigger problem than hints. They're for kerning, making small improvements to renderings, etc., right. From the symptom I'm getting, it seems that rxvt doesn't even know how wide the individual glyphs are. Daniel -- Unsubscribe info: 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: rxvt in native mode, widely spaced characters [Was: Re: why Sorry, your message has been denied due to keywords found in your subject?]
Charles Wilson wrote: However, with regards to rxvt in native mode, the widely spaced characters you are seeing happens when rxvt can't find, or doesn't understand, the font you specified. Well, I didn't specify anything. I haven't touched any of /etc/X11/app-defaults/Rxvt, ~/.Xdefaults or ~/.Xresources, or given any options on the command line Iused to invoke rxvt. I am using whatever the CygWin packages and installer installed on my machine, which evidently changes in non-intuitive ways when I re-run it to modify the combinations of packages I have installed even though I'm not (consciously) touching any X11 or font-related packages). Just now, I tried installing the ruby package, and as soon as I started rxvt, it started in messed-up form--widely spaced characters, in yellow, on a dark blue background--rather than the way it started immediately before--normally spaced characters, in black, on a white background. Does that color change give any hints regarding what's happening (what unrelated thing got modified when I re-ran cygwin.exe to install Ruby)? Hmm. Those colors seem to match what's in /etc/defaults/etc/X11/app-defaults/Rxvt: Rxvt*background:#40 Rxvt*foreground:#bf Rxvt*scrollBar: true Rxvt*scrollBar_right: true Rxvt*font: -bitstream-bitstream vera sans mono-medium-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*boldfont: -bitstream-bitstream vera sans mono-bold-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*saveLines: 1 !Rxvt*loginshell: true Rxvt.backspacekey: ^H What's the command to determine which cygwin package installs that file? Is there a dependency problem in that that package does not depend on the package containing the font that that first package depends on? Most importantly, how to I get rvxt to work right (and consistently)? Daniel -- Unsubscribe info: 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: rxvt in native mode, widely spaced characters [Was: Re: why Sorry, your message has been denied due to keywords found in your subject?]
I wrote: I am using whatever the CygWin packages and installer installed on my machine, which evidently changes in non-intuitive ways when I re-run it to modify the combinations of packages I have installed even though I'm not (consciously) touching any X11 or font-related packages). Just now, I tried installing the ruby package, and as soon as I started rxvt, it started in messed-up form--widely spaced characters, in yellow, on a dark blue background--rather than the way it started immediately before--normally spaced characters, in black, on a white background. Does that color change give any hints regarding what's happening (what unrelated thing got modified when I re-ran cygwin.exe to install Ruby)? Hmm. Those colors seem to match what's in /etc/defaults/etc/X11/app-defaults/Rxvt: Rxvt*background:#40 Rxvt*foreground:#bf Rxvt*scrollBar:true Rxvt*scrollBar_right: true Rxvt*font:-bitstream-bitstream vera sans mono-medium-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*boldfont:-bitstream-bitstream vera sans mono-bold-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*saveLines: 1 !Rxvt*loginshell:true Rxvt.backspacekey: ^H What's the command to determine which cygwin package installs that file? Never mind; I found cygcheck. I still don't understand what's going on with rxvt. When I modify or remove /etc/defaults/etc/X11/app-defaults/Rxvt, nothing changes. On one hand, that makes sense--I'm not (knowingly) running X11. On the other hand, it's a little strange that rxvt is still using the colors given in that file. Is rxvt getting them from compiled-in values, or is it getting them from somewhere else? (I also terminated all CygWin processes, started bash, and ran rxvt to see if CygWin somehow was emulating xrdb's behavior (of reading the X11 defaults) some other way, but there was still no difference.) In any case, that still leaves unanswered the question of what makes rvxt switch between normally spaced black characters on a white background vs. widely spaced yellow on blue. What else does rxvt read? Does rxvt switch to some more-basic default (i.e., the black-on-white setting rather than the yellow-on-blue setting) if it can't find something it's looking for? What else might be going on? Thanks, Daniel -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account [SOLVED]
On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Schutter, Thomas A. Sent: Monday, May 12, 2008 9:52 AM To: '[EMAIL PROTECTED]' http://cygwin.com/acronyms/#PCYMTNQREAIYR. Subject: Unable to run sshd under a domain sshd_server account I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. [snip] But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server Yes -- Windows does not understand user impersonation and does not allow real user switching. So what sshd does is invoke processes with the appropriate token privileges for the user it's impersonating, while updating internal Cygwin data structures, but still running as sshd_server. So Cygwin sees the right user (in its internal state), but Windows processes, of course, don't. The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. Oops -- a segfault. This is definitely a bug somewhere -- no matter what, sshd should not segfault. First, I am sorry that I broke the original thread. I was not subscribed to the list when I made the first post, so I was unable to reply to that thread. There is a way to do this with the help of the archives. I've posted the recipe multiple times -- you should be able to find it in the archives. I solved the problem. I had missed the /var/log files when changing ownership to the new domain sshd_server account. The chown command above should be: chown fdsv-sa-prx-sshdsrvr /etc/ssh* /var/empty /var/log/lastlog /var/log/sshd.log Now the sshd server starts, and when I login my id is correct, and I can view shares: $ echo $USERDOMAIN FLOODDATA $ id uid=18718(tschutter) gid=10513(Domain Users) groups=544(Administrators),545(Users),10513(Domain Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins) $ ls //other/f$ Data RECYCLERSystem\ Volume\ Information Note that my USERNAME is still wrong: $ echo $USERNAME fdsv-sa-prx-sshdsrvr See above. Although this method of creating and using a domain sshd_server account is not one of the recommended workarounds, it appears to work. In the other thread, Larry Hall pointed me to the FAQ http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the suggestions was to provide your password to a net use command. I was unable to make that work, because net use never asks for my password: $ net use \\other\f$ System error 67 has occurred. The network name cannot be found. See net help use: The syntax of this command is: NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]] ... password Is the password needed to access the shared resource. *Produces a prompt for the password. The password is not displayed when you type it at the password prompt. So, you need to type net use '\\other\f$' \* (note the escaped/quoted '*'), and it'll prompt you for the password. As Larry Hall pointed out in the other thread, the cyglsa dll should solve this problem and I look forward to trying it out when 1.7.x is available. I am not ready to jump to snapshots at this time. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- Unsubscribe info: 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: rxvt in native mode, widely spaced characters [Was: Re: why Sorry, your message has been denied due to keywords found in your subject?]
Daniel Barclay wrote: Well, I didn't specify anything. I haven't touched any of /etc/X11/app-defaults/Rxvt, ~/.Xdefaults or ~/.Xresources, or given any options on the command line Iused to invoke rxvt. I am using whatever the CygWin packages and installer installed on my machine, which evidently changes in non-intuitive ways when I re-run it to modify the combinations of packages I have installed even though I'm not (consciously) touching any X11 or font-related packages). No. There is something else going on, but Ruby does NOT affect rxvt. However, I suggest rather than blindly re-installing/un-installing packages at random, you instead read the documentation. /usr/share/doc/Cygwin/rxvt-20050409.README Just now, I tried installing the ruby package, and as soon as I started rxvt, it started in messed-up form--widely spaced characters, in yellow, on a dark blue background--rather than the way it started immediately before--normally spaced characters, in black, on a white background. before == default when rxvt can't find, and is not explicitly given, any configuration information at all. after == rxvt found the default system app-defaults file (/etc/X11/app-defaults/Rxvt) but you do not have the fonts that it specifies. Either install the bitstream vera fonts in your Windows sytem, (e.g. go to Control Panel/Fonts... http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ Or change the specified font. You can do the latter by editing the /etc/X11/app-defaults/Rxvt file itself, or overriding it for your particular account by (1) creating a ~/.Xdefaults file that specifies a different font (2) explicitly starting rxvt with the '-fn some font' option Does that color change give any hints regarding what's happening (what unrelated thing got modified when I re-ran cygwin.exe to install Ruby)? My guess is that rxvt's own postinstall script, which is supposed to copy /etc/defaults/etc/X11/app-defaults/Rxvt into the actual /etc/X11/app-defaults/ directory failed the first time you ran setup. Then second time you ran setup, it tried again to run all the post-install scripts that had not yet succeeded. This second time, it worked, and you are now the proud owner of an /etc/X11/app-defaults/Rxvt file, which rxvt.exe now finds. Hmm. Those colors seem to match what's in /etc/defaults/etc/X11/app-defaults/Rxvt: Rxvt*background:#40 Rxvt*foreground:#bf Rxvt*scrollBar:true Rxvt*scrollBar_right: true Rxvt*font:-bitstream-bitstream vera sans mono-medium-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*boldfont:-bitstream-bitstream vera sans mono-bold-r-normal--*-160-*-*-m-*-iso8859-1 Rxvt*saveLines: 1 !Rxvt*loginshell:true Rxvt.backspacekey: ^H What's the command to determine which cygwin package installs that file? cygcheck -f /etc/defaults/etc/X11/app-defaults/Rxvt which will tell you it is, perhaps unsurprisingly, installed by the rxvt package. However, that is the *default* version of the file. The actual file that is used by rxvt at runtime is in /etc/X11/app-defaults/, not in /etc/defaults/etc/X11/app-defaults/. It is copied from one location to the other by (again, surprise!) the rxvt post-installation script, which is automatically executed by setup.exe the first time you install the rxvt package -- or every time you run setup.exe, until the script succeeds if there were unexpected problems. Is there a dependency problem in that that package does not depend on the package containing the font that that first package depends on? No. Most importantly, how to I get rvxt to work right (and consistently)? Change the two lines that start with Rxvt*font and Rxvt*boldfont in /etc/X11/app-defaults/Rxvt with the following (or override using ~/.Xdefaults). Each entry should be all on one line, and mind the space between Lucida and Console (ditto Courier and New): Either Rxvt*font: -outline-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1 Rxvt*boldfont: -outline-Lucida Console-bold-r-*-*-14-*-*-*-c-*-iso8859-1 Or Rxvt*font: -outline-Courier New-normal-r-*-*-16-*-*-*-c-*-iso8859-1 Rxvt*boldfont: -outline-Courier New-bold-r-*-*-16-*-*-*-c-*-iso8859-1 Alternatively, you can specify the font on the command line (but there, you have to use windows names for the fonts, not the XLFD names above. That is, rxvt.exe -fn Lucida Console-14 ... or rxvt.exe -fn Courier New-16 -- Chuck -- Unsubscribe info: 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: rxvt in native mode, widely spaced characters [Was: Re: why Sorry, your message has been denied due to keywords found in your subject?]
Daniel Barclay wrote: I still don't understand what's going on with rxvt. When I modify or remove /etc/defaults/etc/X11/app-defaults/Rxvt, nothing changes. Correct. Because that is the *default* file (that's why it is underneath /etc/defaults/). The actual file used at runtime is over in /etc/X11/app-defaults/. On one hand, that makes sense--I'm not (knowingly) running X11. On the other hand, it's a little strange that rxvt is still using the colors given in that file. Is rxvt getting them from compiled-in values, or is it getting them from somewhere else? It's getting them from /etc/X11/app-defaults/Rxvt. rxvt parses the X11/app-defaults file itself, and does not rely on the Xserver's 'xrdb' (resource management) to do it. (I also terminated all CygWin processes, started bash, and ran rxvt to see if CygWin somehow was emulating xrdb's behavior (of reading the X11 defaults) some other way, but there was still no difference.) Because nothing (that matters) changed. /etc/X11/app-defaults/Rxvt was still there, and rxvt itself read the contents. In any case, that still leaves unanswered the question of what makes rvxt switch between normally spaced black characters on a white background vs. widely spaced yellow on blue. Hopefully my other message answered this question (and those that followed which I've snipped out). -- Chuck -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account [SOLVED]
-Original Message- From: Igor Peshansky Sent: Monday, May 12, 2008 4:30 PM To: Schutter, Thomas A. Subject: RE: Unable to run sshd under a domain sshd_server account [SOLVED] On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Schutter, Thomas A. Sent: Monday, May 12, 2008 9:52 AM To: '[EMAIL PROTECTED]' http://cygwin.com/acronyms/#PCYMTNQREAIYR. Subject: Unable to run sshd under a domain sshd_server account I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. [snip] But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server Yes -- Windows does not understand user impersonation and does not allow real user switching. So what sshd does is invoke processes with the appropriate token privileges for the user it's impersonating, while updating internal Cygwin data structures, but still running as sshd_server. So Cygwin sees the right user (in its internal state), but Windows processes, of course, don't. Interesting. I suspected this, but this is the first time that I have seen this explicitly stated. The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. Oops -- a segfault. This is definitely a bug somewhere -- no matter what, sshd should not segfault. Agreed. In the other thread, Larry Hall pointed me to the FAQ http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the suggestions was to provide your password to a net use command. I was unable to make that work, because net use never asks for my password: $ net use \\other\f$ System error 67 has occurred. The network name cannot be found. See net help use: The syntax of this command is: NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]] ... password Is the password needed to access the shared resource. *Produces a prompt for the password. The password is not displayed when you type it at the password prompt. So, you need to type net use '\\other\f$' \* (note the escaped/quoted '*'), and it'll prompt you for the password. OK. So on a console cygwin shell: $ net use '\\other\f$' The command completed successfully. But when run in a ssh shell (using the sshd_server account): $ net use '\\other\f$' \* Type the password for \\zoom\f$: System error 1326 has occurred. Logon failure: unknown user name or bad password. Same thing happens with: $ net use '\\other\f$' '*' $ net use '\\other\f$' * -- Tom Schutter First American - Proxix Solutions (512) 977-6822 -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account [SOLVED]
On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Igor Peshansky Sent: Monday, May 12, 2008 4:30 PM To: Schutter, Thomas A. Subject: RE: Unable to run sshd under a domain sshd_server account [SOLVED] On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Schutter, Thomas A. Sent: Monday, May 12, 2008 9:52 AM To: '[EMAIL PROTECTED]' http://cygwin.com/acronyms/#PCYMTNQREAIYR. Subject: Unable to run sshd under a domain sshd_server account I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. [snip] But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server Yes -- Windows does not understand user impersonation and does not allow real user switching. So what sshd does is invoke processes with the appropriate token privileges for the user it's impersonating, while updating internal Cygwin data structures, but still running as sshd_server. So Cygwin sees the right user (in its internal state), but Windows processes, of course, don't. Interesting. I suspected this, but this is the first time that I have seen this explicitly stated. Well, at least Windows processes don't understand the Cygwin notion of effective UID, which is why $USERNAME and $USER don't match (one is set by Windows, and the other by a Cygwin process -- bash). The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. Oops -- a segfault. This is definitely a bug somewhere -- no matter what, sshd should not segfault. Agreed. Those problems are usually very hard to reproduce. If you're set up to build a debug version of sshd and run it under gdb to reproduce the fault, a stack backtrace would be helpful. In the other thread, Larry Hall pointed me to the FAQ http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the suggestions was to provide your password to a net use command. I was unable to make that work, because net use never asks for my password: $ net use \\other\f$ System error 67 has occurred. The network name cannot be found. See net help use: The syntax of this command is: NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]] ... password Is the password needed to access the shared resource. *Produces a prompt for the password. The password is not displayed when you type it at the password prompt. So, you need to type net use '\\other\f$' \* (note the escaped/quoted '*'), and it'll prompt you for the password. OK. So on a console cygwin shell: $ net use '\\other\f$' The command completed successfully. But when run in a ssh shell (using the sshd_server account): $ net use '\\other\f$' \* Type the password for \\zoom\f$: System error 1326 has occurred. Logon failure: unknown user name or bad password. Umm, yes. Sorry. I forgot that sshd runs in a pty, which is a pipe as far as Windows is concerned. And 'net' cannot read the password from a pipe... Same thing happens with: $ net use '\\other\f$' '*' $ net use '\\other\f$' * Actually supplying the password instead of '*' should work. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account [SOLVED]
On Mon, 12 May 2008, Igor Peshansky wrote: On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Igor Peshansky Sent: Monday, May 12, 2008 4:30 PM To: Schutter, Thomas A. Subject: RE: Unable to run sshd under a domain sshd_server account [SOLVED] On Mon, 12 May 2008, Schutter, Thomas A. wrote: -Original Message- From: Schutter, Thomas A. Sent: Monday, May 12, 2008 9:52 AM To: '[EMAIL PROTECTED]' http://cygwin.com/acronyms/#PCYMTNQREAIYR. Subject: Unable to run sshd under a domain sshd_server account I am having problems setting up sshd to run under a domain sshd_server account instead of a local sshd_server account. [snip] But when I login via ssh: $ echo $USER tschutter $ echo $USERNAME sshd_server Yes -- Windows does not understand user impersonation and does not allow real user switching. So what sshd does is invoke processes with the appropriate token privileges for the user it's impersonating, while updating internal Cygwin data structures, but still running as sshd_server. So Cygwin sees the right user (in its internal state), but Windows processes, of course, don't. Interesting. I suspected this, but this is the first time that I have seen this explicitly stated. Well, at least Windows processes don't understand the Cygwin notion of effective UID, which is why $USERNAME and $USER don't match (one is set by Windows, and the other by a Cygwin process -- bash). The application event log has this error message: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 2068: service `sshd' failed: signal 11 raised. Oops -- a segfault. This is definitely a bug somewhere -- no matter what, sshd should not segfault. Agreed. Those problems are usually very hard to reproduce. If you're set up to build a debug version of sshd and run it under gdb to reproduce the fault, a stack backtrace would be helpful. In the other thread, Larry Hall pointed me to the FAQ http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the suggestions was to provide your password to a net use command. I was unable to make that work, because net use never asks for my password: $ net use \\other\f$ System error 67 has occurred. The network name cannot be found. See net help use: The syntax of this command is: NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]] ... password Is the password needed to access the shared resource. *Produces a prompt for the password. The password is not displayed when you type it at the password prompt. So, you need to type net use '\\other\f$' \* (note the escaped/quoted '*'), and it'll prompt you for the password. OK. So on a console cygwin shell: $ net use '\\other\f$' The command completed successfully. But when run in a ssh shell (using the sshd_server account): $ net use '\\other\f$' \* Type the password for \\zoom\f$: System error 1326 has occurred. Logon failure: unknown user name or bad password. Umm, yes. Sorry. I forgot that sshd runs in a pty, which is a pipe as the ssh remote session far as Windows is concerned. And 'net' cannot read the password from a pipe... Same thing happens with: $ net use '\\other\f$' '*' $ net use '\\other\f$' * Actually supplying the password instead of '*' should work. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- Unsubscribe info: 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: Unable to run sshd under a domain sshd_server account [SOLVED]
On Mon, May 12, 2008 at 06:02:18PM -0500, Schutter, Thomas A. wrote: -Original Message- From: Igor Peshansky Sent: Monday, May 12, 2008 4:30 PM To: Schutter, Thomas A. Subject: RE: Unable to run sshd under a domain sshd_server account [SOLVED] Well, sorta. It isn't necessary to include information from the header in the body of your responses. It doesn't solve any useful purpose. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/