Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
Stipe schrieb: Gerrit P. Haase wrote: What about expat? Didn't you use the system expat for your build like I see in the configure log: + using system Expat seems that Apache's configure does not pick the OS expat and rather takes it's own packaged version. Linking it statically to the cyghttpd.dll core library. Should we try to force to pick the OS one instead of the bundled one?! +0 from my side here. It picks the sytem libexpat by default as it is stated in the configure log. What I see is that it is not used at all. Gerrit -- =^..^=
Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
Gerrit schrieb: Stipe schrieb: Gerrit P. Haase wrote: What about expat? Didn't you use the system expat for your build like I see in the configure log: + using system Expat seems that Apache's configure does not pick the OS expat and rather takes it's own packaged version. Linking it statically to the cyghttpd.dll core library. Should we try to force to pick the OS one instead of the bundled one?! +0 from my side here. It picks the sytem libexpat by default as it is stated in the configure log. What I see is that it is not used at all. [EMAIL PROTECTED] /i/cygwin/bin $ nm cyghttpd.dll | grep XML [EMAIL PROTECTED] /i/cygwin/bin $ There is a completly stupid bug in the Configure: if [ x$RULE_EXPAT = xyes ]; then if ./helpers/TestCompile lib expat; then echo + using system Expat LIBS=$LIBS -lexpat else if [ ! -d ./lib/expat-lite/ ]; then echo ERROR: RULE_EXPAT set to \yes\ but is not available. exit 1 fi echo + using builtin Expat EXPATLIB=lib/expat-lite/libexpat.a APLIBDIRS=expat-lite $APLIBDIRS CFLAGS=$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite fi fi This is missing: when using the system Expat: CFLAGS=$CFLAGS -DUSE_EXPAT Gerrit -- =^..^=
Re: [UPDATE] apache-1.3.29-1 repackaged
Gerrit schrieb: Stipe schrieb: ok, here are the slight changes: * moved the man and doc to share * added installing apache as service to the doc/Cygwin document * patched Cygwin's config layout to use /usr/share/man as man prefix * nuked the EAPI backup files (*.orig) to reduce patch size. please check and review. Same location as before at: http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/apache-1.3.29-1-src.tar.bz2 After recompiling I get this when starting the daemon as service: httpd: unknown option -- k Are there internal changes regarding the -k switch? The http_main.c patch is missing Attached. Gerrit -- =^..^= http_main.patch Description: Binary data
Re: [UPDATE] apache-1.3.29-1 repackaged
Gerrit P. Haase schrieb: Stipe schrieb: ok, here are the slight changes: * moved the man and doc to share * added installing apache as service to the doc/Cygwin document * patched Cygwin's config layout to use /usr/share/man as man prefix * nuked the EAPI backup files (*.orig) to reduce patch size. please check and review. Same location as before at: http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/apache-1.3.29-1-src.tar.bz2 After recompiling I get this when starting the daemon as service: httpd: unknown option -- k Are there internal changes regarding the -k switch? yep, this has _been_ an cygwin specific thing I added to apache. The guys introduced then some time after bagging for it the -F switch which does the same (not detaching the daemon from the shell). I'll rewrite the README. Thanks for this reminder. Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
Gerrit P. Haase schrieb: There is a completly stupid bug in the Configure: if [ x$RULE_EXPAT = xyes ]; then if ./helpers/TestCompile lib expat; then echo + using system Expat LIBS=$LIBS -lexpat else if [ ! -d ./lib/expat-lite/ ]; then echo ERROR: RULE_EXPAT set to \yes\ but is not available. exit 1 fi echo + using builtin Expat EXPATLIB=lib/expat-lite/libexpat.a APLIBDIRS=expat-lite $APLIBDIRS CFLAGS=$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite fi fi This is missing: when using the system Expat: CFLAGS=$CFLAGS -DUSE_EXPAT nop. The -DUSE_EXPAT indicates the build process that the bundled expat is to be used. hmmm, have to check more deeply into this. Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
Gerrit schrieb: Stipe schrieb: Gerrit P. Haase wrote: What about expat? Didn't you use the system expat for your build like I see in the configure log: + using system Expat seems that Apache's configure does not pick the OS expat and rather takes it's own packaged version. Linking it statically to the cyghttpd.dll core library. Should we try to force to pick the OS one instead of the bundled one?! +0 from my side here. It picks the sytem libexpat by default as it is stated in the configure log. What I see is that it is not used at all. In the relevant Configure part is LIBS=$LIBS -lexpat defined which is not needed here, instead of LIBS there should be this (and CFLAGS which is entirely missing here, what a stupid bug): EXPATLIB= -lexpat CFLAGS=$CFLAGS -DUSE_EXPAT Complete excerpt from Configure: if [ x$RULE_EXPAT = xyes ]; then if ./helpers/TestCompile lib expat; then echo + using system Expat EXPATLIB= -lexpat CFLAGS=$CFLAGS -DUSE_EXPAT else if [ ! -d ./lib/expat-lite/ ]; then echo ERROR: RULE_EXPAT set to \yes\ but is not available. exit 1 fi echo + using builtin Expat EXPATLIB=lib/expat-lite/libexpat.a APLIBDIRS=expat-lite $APLIBDIRS CFLAGS=$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite fi fi -- =^..^=
Re: [UPDATE] apache-1.3.29-1 repackaged
Gerrit P. Haase schrieb: The http_main.c patch is missing Attached. nop, the Apache guys addopted the don't detach patch I posted into their -F switch. So the functionality is the same and I don't add the -k patch anymore. Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: Minires-0.98-1: a test package ready to upload
On Jan 21 21:08, Pierre A. Humblet wrote: Attention maintainers making use of minires: I have a new test version, minires-0.98, which interfaces to the built-in Windows resolver, on systems starting with Windows 2000. Cool! Is there some sort of debug mode which I could switch on so that I can see which set of functions it uses? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc.
Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
enlight me otherwise please ;) Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: [UPDATE] apache-1.3.29-1 repackaged
Stipe Tolj schrieb: ok, here are the slight changes: * moved the man and doc to share * added installing apache as service to the doc/Cygwin document * patched Cygwin's config layout to use /usr/share/man as man prefix * nuked the EAPI backup files (*.orig) to reduce patch size. please check and review. Same location as before at: http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/apache-1.3.29-1-src.tar.bz2 http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/apache-1.3.29-1.tar.bz2 http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/apache-1.3.29-1.md5sum http://cygwin.dev.wapme.net/packages/tolj/cygwin/release/apache/setup.hint changed the install as service section in README of binary package to reflect the -F switch for non-detach, instead of the previously cygwin patched -k switch. Still have to update the layout and get the new binary packaged. Update follows. Stipe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: HEADSUP: Apache maintainer wanted!
Igor Pechtchanski schrieb: See http://www.cygwin.com/ml/cygwin/1998-12/msg00145.html Stipe Oh. Ok. Fixed: http://cygwin.com/acronyms/#CAMP. 0:) why did I stupid one open my mouth ;o) ok. I'll take the blame. Sitpe mailto:[EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
Re: [UPDATE] apache-1.3.29-1 ready for testing and upload
Stipe schrieb: In the relevant Configure part is LIBS=$LIBS -lexpat defined which is not needed here, instead of LIBS there should be this (and CFLAGS which is entirely missing here, what a stupid bug): EXPATLIB= -lexpat CFLAGS=$CFLAGS -DUSE_EXPAT Complete excerpt from Configure: if [ x$RULE_EXPAT = xyes ]; then if ./helpers/TestCompile lib expat; then echo + using system Expat EXPATLIB= -lexpat CFLAGS=$CFLAGS -DUSE_EXPAT else if [ ! -d ./lib/expat-lite/ ]; then echo ERROR: RULE_EXPAT set to \yes\ but is not available. exit 1 fi echo + using builtin Expat EXPATLIB=lib/expat-lite/libexpat.a APLIBDIRS=expat-lite $APLIBDIRS CFLAGS=$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite fi fi to be honest, I still don't get it. ;) I didn't patch this piece of code. Hence it should be failing on _all_ platforms. And to be honest I don't believe it does ;) And I'm not so sure about it. My interpretation is that the CFLAGS is set to indicate that the internal bundled version is picked and within the code (espacially for the WIN32 defines sections) you'll have to react differently. USE_EXPAT is only used in http_main.c and if it is not used there, the header xmlparse.h is never included and the comment suggests that Expat is not linked in when USE_EXPAT isn't defined: /* force Expat to be linked into the server executable */ I guess usually one never knows if the target system has a shared libexpat handy and so they always build it using the bundled expat-lite source. It works if there is no system expat library at the build sysytem and if you want ./Configure to use the system Expat then one needs to define USE_EXPAT and EXPATLIB explicit in the target specific sections (most probably this is the way it is done), so don't care about the generic section, just define the two flags or use the bundled expat-lib (means remove the expat installation from your build system, but why define it again when we have a shared libexpat). If you ask me, this is a Configure bug! Gerrit -- =^..^=
Re: generic-build-script maintainership (WAS Re: non-widget child DropSiteManager error)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charles Wilson wrote: | Off the top of my head, there were patches submitted for some bugfixes | (like the aformentioned sed stuff), functionality extensions (package | listings, gpg signing, etc), and more that I can't recall right now. Here is my submission, commented out chunk-by-chunk: (some of them are independant, such as the empty postinstall directory problem) | @@ -26,15 +26,25 @@ | export FULLPKG=${PKG}-${VER}-${REL} | | # determine correct decompression option and tarball filename | -if [ -e ${PKG}-${VER}.tar.gz ] ; then | - export opt_decomp=z | - export src_orig_pkg_ext=gz | -elif [ -e ${PKG}-${VER}.tar.bz2 ] ; then | +export BASEPKG=${PKG}-${VER} | +if [ -e ${BASEPKG}.tar.bz2 ] ; then |export opt_decomp=j | - export src_orig_pkg_ext=bz2 | + export src_orig_pkg_name=${BASEPKG}.tar.bz2 | +elif [ -e ${BASEPKG}.tar.gz ] ; then | + export opt_decomp=z | + export src_orig_pkg_name=${BASEPKG}.tar.gz | +elif [ -e ${BASEPKG}.tgz ] ; then | + export opt_decomp=z | + export src_orig_pkg_name=${BASEPKG}.tgz | +elif [ -e ${BASEPKG}.tar ] ; then | + export opt_decomp= | + export src_orig_pkg_name=${BASEPKG}.tar | +else | + echo Cannot find original package. | + exit 1 | fi | | -export src_orig_pkg_name=${PKG}-${VER}.tar.${src_orig_pkg_ext} | +# determine correct names for generated files | export src_pkg_name=${FULLPKG}-src.tar.bz2 | export src_patch_name=${FULLPKG}.patch | export bin_pkg_name=${FULLPKG}.tar.bz2 An improved extesion-detection code. Main problem solved is that the default one doesn't have a default else that stops the script. | @@ -48,10 +58,6 @@ | export instdir=${srcdir}/.inst | export srcinstdir=${srcdir}/.sinst | export checkfile=${topdir}/${FULLPKG}.check | -# run on | -host=i686-pc-cygwin | -# if this package creates binaries, they run on | -target=i686-pc-cygwin | prefix=/usr | sysconfdir=/etc | MY_CFLAGS=-O2 Most modern configure script complain that --build should be used instead of --host, and that this could use a cross-compiler, while autodetections should work better or equal. But I guess tghis could be useful in case of compiling on linux with cross-compiler? does anybody needs this, actually? | @@ -80,8 +86,7 @@ |--libdir=${prefix}/lib --includedir=${prefix}/include \ |--mandir=${prefix}/share/man --infodir=${prefix}/share/info \ |--libexecdir='${sbindir}' --localstatedir=/var \ | - --datadir='${prefix}/share' | -) | + --datadir='${prefix}/share' ) | } | build() { |(cd ${objdir} \ Just consistence in the close parens style. | @@ -103,8 +108,7 @@ |rm -f ${instdir}${f} ; \ | fi ;\ |done \ | - for d in ${prefix}/share/doc/${PKG}-${VER} ${prefix}/share/doc/Cygwin \ | - ${sysconfdir}/postinstall ; do | + for d in ${prefix}/share/doc/${PKG}-${VER} ${prefix}/share/doc/Cygwin ; do | if [ ! -d ${instdir}${d} ] ; then |mkdir -p ${instdir}${d} ;\ | fi ;\ | @@ -131,14 +135,16 @@ | fi ;\ |fi ;\ |if [ -f ${srcdir}/CYGWIN-PATCHES/postinstall.sh ] ; then \ | +if [ ! -d ${instdir}${sysconfdir}/postinstall ]; then \ | + mkdir -p ${instdir}${sysconfdir}/postinstall ; \ | +fi \ |/usr/bin/install -m 755 ${srcdir}/CYGWIN-PATCHES/postinstall.sh \ |${instdir}${sysconfdir}/postinstall/${PKG}.sh |fi ) | } Creating postinstall dir only if it is used simplify the more common (altough not dangerous) problem in packaging: an empty postinstall dir. | strip() { |(cd ${instdir} \ | - find . -name *.dll | xargs strip /dev/null 21 | - find . -name *.exe | xargs strip /dev/null 21 | + find . -name *.dll -or -name *.exe | xargs strip /dev/null 21 |true ) | } Just a bit smaller and faster... | @@ -163,14 +169,53 @@ | } | spkg() { |(mkpatch \ | + if [ ${SIG} ]; then name=${srcinstdir}/${src_patch_name} text=PATCH sigfile; fi \ |cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} \ | + if [ -e ${src_orig_pkg}.sig ]; then cp ${src_orig_pkg}.sig ${srcinstdir}/; fi \ |cp $0 ${srcinstdir}/`basename $0` \ | + name=$0 text=SCRIPT sigfile \ | + if [ ${SIG} ]; then cp $0.sig ${srcinstdir}/; fi \ |cd ${srcinstdir} \ |tar cvjf ${src_pkg} * ) | } | finish() { |rm -rf ${srcdir} | } | +sigfile() { | + if [ \( ${SIG} \) -a \( -e $name \) -a \( \( ! -e $name.sig \) -o \( $name -nt $name.sig \) \) ]; then \ | +if [ -x /usr/bin/gpg ]; then \ | + echo $text signature need to be updated; \ | + rm -f $name.sig; \ | + /usr/bin/gpg --detach-sign $name; \ | +else \ | + echo You need the gnupg package installed in order to make signatures.; \ | +fi; \ | + fi; | +} | +checksig() { | + if [ -x /usr/bin/gpg ]; then \ | +if [ -e $0.sig ]; then \ | + echo SCRIPT signature follows:; \ | + /usr/bin/gpg --verify $0.sig $0; \ | +else \ | + echo SCRIPT signature missing.; \ | +fi; \ | +if [ -e ${src_orig_pkg}.sig ]; then \ | + echo
Re: CAMP (was Re: HEADSUP: Apache maintainer wanted!)
[EMAIL PROTECTED] wrote: On Jan 22 04:02, Reini Urban wrote: Igor Pechtchanski schrieb: http://cygwin.com/acronyms/#CAMP. Done. :-D BTW: I hope you all know what camp originally means. Originally a term defined by Susan Sontag for a special outrageous and overt style mainly used by gays. We often use it in discussion on films. (camp style or camp aesthetic) http://www.filonova.no/konferanser/irscl/panel_3b.html Wow, and I thought camp is originally a native english word, having the meaning of a place where people stay in tents or other temporary structures. But I could be wrong. Actually you are right, I don't know where people come up with this craziness, but camp has been in use for ages as a shorten form of basecamp and campsite. I'm quite certain that it was in use long before the word gay meant anything else besides happy. Cheers, Nicholas
Re: HEADSUP: cygserver now has MSG, SEM and SHM support
Corinna, On Sat, Jan 03, 2004 at 10:08:26AM -0500, Jason Tishler wrote: I have some good news to report. First, PostgreSQL builds OOTB against cygserver without *any* source changes. Second, PostgreSQL appears to work just fine when used casually. Unfortunately, when I run PostgreSQL's regression test (which drives the system hard), I get the following errors: [snip] Unfortunately, my build of the latest Cygwin CVS does not appear to work -- all commands just immediately exit. I will try to debug further when I can build a working version of the DLL. I am *very* happy to report that PostgreSQL running against cygserver passes all regression tests under the 2004-Jan-21 snapshot. I really appreciate your efforts to complete the Sys V IPC support work. Thanks, Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Re: HEADSUP: Apache maintainer wanted!
On Thu, 22 Jan 2004, Stipe Tolj wrote: Igor Pechtchanski schrieb: See http://www.cygwin.com/ml/cygwin/1998-12/msg00145.html Stipe Oh. Ok. Fixed: http://cygwin.com/acronyms/#CAMP. 0:) why did I stupid one open my mouth ;o) ok. I'll take the blame. Stipe I promise I'll correct that as soon as CAMP is out. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: [UPDATE] apache-1.3.29-1 repackaged
On Thu, 22 Jan 2004, Stipe Tolj wrote: Gerrit P. Haase schrieb: The http_main.c patch is missing Attached. nop, the Apache guys addopted the don't detach patch I posted into their -F switch. So the functionality is the same and I don't add the -k patch anymore. Stipe Stipe, Please make sure to include this information in both the README and the release announcement. This is likely to hurt people who already have the httpd service set up. Would it make sense to try to detect that case and change the -k option to -F in the postinstall script? That might be too hard, in which case a simple notice somewhere at the top of the release announcement and in the README should suffice. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: Minires-0.98-1: a test package ready to upload
Corinna Vinschen wrote: On Jan 21 21:08, Pierre A. Humblet wrote: Attention maintainers making use of minires: I have a new test version, minires-0.98, which interfaces to the built-in Windows resolver, on systems starting with Windows 2000. Cool! Is there some sort of debug mode which I could switch on so that I can see which set of functions it uses? You can use the RES_DEBUG bit in the state options member to get debug output on stderr. Set it before calling res_init() to watch the initialization phase (registry lookup etc..). If you make try in the source package, you get try_stat.exe and try_dll.exe. You can then type try_xxx domain type to exercise minires with debugging enabled and see all the details (e.g. try_stat cygwin.com 15 to get the MX records). The new Windows interface simply maps the res_nquery() call into the DnsQuery() Windows call with flag DNS_QUERY_TREAT_AS_FQDN. It also uses DnsRecordListFree(). Pierre
Re: Minires-0.98-1: a test package ready to upload
On 2004-01-21T21:08-0500, Pierre A. Humblet wrote: ) Attention maintainers making use of minires: ... ) http://mysite.verizon.net/minires-0.98-1/minires/minires-0.98-1.tar.bz2 ) http://mysite.verizon.net/minires-0.98-1/minires/minires-0.98-1-src.tar.bz2 ) http://mysite.verizon.net/minires-0.98-1/minires/setup.hint ) ) http://mysite.verizon.net/minires-0.98-1/minires-devel/minires-devel-0.98-1. ) tar.bz2 ) http://mysite.verizon.net/minires-0.98-1/minires-devel/setup.hint I am not sure if you intended me to upload this (currently minires-0.97-1 is on sources). However, I am not able to access these URLs: some respond with 423 Locked while others generate 404 Not Found. -- Daniel Reed [EMAIL PROTECTED] http://naim-users.org/nmlorg/ http://naim.n.ml.org/ The best executive is the one who has sense enough to pick good men to do what he wants done, and self-restraint enough to keep from meddling with them while they do it. -- Theodore Roosevelt
Re: Minires-0.98-1: a test package ready to upload
At 03:36 PM 1/22/2004 -0500, Daniel Reed wrote: On 2004-01-21T21:08-0500, Pierre A. Humblet wrote: ) Attention maintainers making use of minires: ... I am not sure if you intended me to upload this (currently minires-0.97-1 is on sources). However, I am not able to access these URLs: some respond with 423 Locked while others generate 404 Not Found. Yes, please upload. Sorry about the cutpaste mistake. Here are the good ones: http://mysite.verizon.net/phumblet/minires-0.98-1/minires/minires-0.98-1.tar.bz2 http://mysite.verizon.net/phumblet/minires-0.98-1/minires/minires-0.98-1-src.tar.bz2 http://mysite.verizon.net/phumblet/minires-0.98-1/minires/setup.hint http://mysite.verizon.net/phumblet/minires-0.98-1/minires-devel/minires-devel-0.98-1.tar.bz2 http://mysite.verizon.net/phumblet/minires-0.98-1/minires-devel/setup.hint Pierre
RE: generic-build-script maintainership
One thing I'd love to see in the generic-build-script, is: set -e instead of all the horrible \ stuff. This would make it easier to indent, reformat, add comments and greatly reduce the noise level. set -e works just fine in both ash and bash. It can also be turned off and on in functions if necessary. Here's how it works: Suppose you have: --- #!/bin/sh true true false echo unreached... This prints unreached Changint to: --- #!/bin/sh set -e true true false echo unreached... --- Makes the script exit with status 1 at the false line. It also works a bit like use strict; and -w in Perl, in that it forces keeping track of commands in the script that exit with a non-zero status. So in the artificial example above, if we don't want to exit at the false line, something like: false || true works, and marks the command as possibly failing. Anyway, just a pet peeve, feel free to ignore me :) -- Rafael
Re: Minires-0.98-1: a test package ready to upload
On 2004-01-22T18:04-0500, Pierre A. Humblet wrote: ) http://mysite.verizon.net/phumblet/minires-0.98-1/minires/minires-0.98-1.tar.bz2 ) http://mysite.verizon.net/phumblet/minires-0.98-1/minires/minires-0.98-1-src.tar.bz2 ) http://mysite.verizon.net/phumblet/minires-0.98-1/minires/setup.hint ) http://mysite.verizon.net/phumblet/minires-0.98-1/minires-devel/minires-devel-0.98-1.tar.bz2 ) http://mysite.verizon.net/phumblet/minires-0.98-1/minires-devel/setup.hint Uploaded. I added curr: 0.97-1 to both setup.hints and left the 0.97-1 version there. -- Daniel Reed [EMAIL PROTECTED] http://naim-users.org/nmlorg/ http://naim.n.ml.org/ A man that is truly great is he who makes the world his debtor.
Re: Initiating a remote X session
Hi Steve, Being triggered when you mentioned you are using SAS, here is another solution that may help you. You can change the scripts with secure shells as you like. We are using sas too. I have installed cygwin to be able to remotely use it, which works fine apart from some nitty gritty AltGr keyboard problems I have and you probably don't when using US keyboards. I used the following set up to give access to users on the Unix containing Sas: The startxwin.bat is modified to: start XWin -multiwindow xterm -T SAS startup window -e \\Your server\Central directory\initsas.sh %1% The server and central directory are accesible to anyone using Sas. Now, the contents of initsas.sh are: xhost +sas server /dev/null echo Starting SAS environment... export IPADDR=`ipconfig | grep ddress | grep 10\. | cut -f 2 -d : | cut -f 2 -d ` rsh sas server -l ${USERNAME} export DISPLAY=\${IPADDR}:0.0\;cd /opt/sas8;sas ${1} Please note that: 1. The usernames for WinXP domains are the same as those used on Unix. 2. The WinXP client is given access to the Unix/Sas host by putting the IP-number/client name in the hosts.equiv. 3. Different versions of Windows give you different formats of ipconfig output. 4. Our Ip-addresses start with 10. 5. As a parameter to the startxwin.bat we use '-explorer', to be used as a sas startup parameter. See your sas documentation for more options. Hope it helps you, H. Steve Howie escribió: Howdy, We've just had a look at cygwin-xfree and are very impressed. However, we'd like to bundle it for our users so that we have a some pre-defined 'sessions' available e.g. connect to a Unix host, run SAS then have the output sent to an cygwin-xfree server. Unix commands are not the forte of most of our users. This is fine with a static IP address - we would launch a program which does something like: rexec host -l username setenv DISPLAY ipaddress; /opt/SAS82/sas from the Cygwin shell. All bets are off, however, since most of our IP addresses are served out by DHCP. We currently use X-Win32 which has a nifty feature for getting around this - you can specify $MYIP:0 which picks up the current IP address of the X-server and passes it to the session definition which is sent to the host which will run the application. So ideally we would like something similar to this in cygwin-xfree : rexec host -l username setenv DISPLAY $MYIP:0; /opt/SAS82/sas I did a quick dig through the archives and noticed something similar to this question - but it was from a while ago - we'd ideally like to have the user get a popup prompting them for a username/password for the host, then pass this information via a command such as the one above, and also pick up the X-servers IP address whether static or dynamic. Is something like this available already? Any info would be appreciated! Thanks, Scotty --- Steve Howie Academic Services, CCS University of Guelph Guelph Ontario CANADA .
RE: non-widget child DropSiteManager error (WAS: RE: Grace (xmgrace) 5.1.12-1 ... )
On Wed, 21 Jan 2004, Brian Ford wrote: I have my new machine set up now, so I'll try to take a stab at compiling it myself today. I'll let you know how I make out. Thanks for being patient. It compiled for me (including DLLs) almost out of the box. I did make the following change to lesstif-0.93.91-6.sh. I am not sure that the change was required, because I did not try without it. But, it felt like a better idea to me :^D. In the prep rule, remove all the autotool stuff between: touch INSTALL \ and rm -f INSTALL ) replacing it simply with: autoreconf --install --force \ so it reads: prep() { (cd ${topdir} \ tar xv${opt_decomp}f ${src_orig_pkg} ; \ cd ${topdir} \ patch -p0 ${src_patch} mkdirs ) \ (cd ${srcdir} \ touch INSTALL \ autoreconf --install --force \ rm -f INSTALL ) } To do a debug build, just look at the target all: all) prep conf build install \ strip pkg spkg finish ; \ STATUS=$? ;; and do everything but the strip step. Let me know if this doesn't work for you. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444
XFree86-xserv 4.3.0-42, Alt Gr, clipboard, accents...
Hi, I have updated to version 4.3.0-42 of XFree86-xserv. I am using Windows XP and a French keyboard. Here are the results: Alt Gr key works with the standard startxwin.sh for Sun Solaris 9 clients, but not for Solaris 7 clients. For Solaris 7 clients, setxkbmap fr changes nothing, neither does a /etc/X11/XF86Config file. For Solaris 7 clients, I run xmodmap with these commands: clear Mod5 keycode 113 = Mode_switch add Mod3 = Mode_switch keycode 10 = ampersand 1 keycode 11 = eacute 2 asciitilde keycode 12 = quotedbl 3 numbersign keycode 13 = apostrophe 4 braceleft keycode 14 = parenleft 5 bracketleft keycode 15 = minus 6 bar keycode 16 = egrave 7 grave keycode 17 = underscore 8 backslash keycode 18 = ccedilla 9 asciicircum keycode 19 = agrave 0 at keycode 20 = parenright degree bracketright keycode 21 = equal plus braceright In order to copy and paste text between X clients and Windows programs, I still have to specify -clipboard in the XWin command of the startxwin.sh script (it is not yet the standard argument). Selected text in X clients now stays highlighted. The accented characters on the French keyboard work correctly: e-acute, e-grave, c-cedilla, a-grave, u-grave. The accented characters obtained by pressing first the accent (circumflex, diaresis) and then the letter work for cygwin X clients, for not for Solaris 7 or Solaris 9 X clients. The accented characters with tilde work for the cygwin shell, but not for cygwin or Solaris X clients. I haven't included the accented characters because the message gets blocked, considered as Spam! Thanks to Harold for all the work! Philippe Auclair ** Institut National de la Recherche Agronomique Unité Centrale Informatique de Jouy Domaine de Vilvert, 78352 Jouy-en-Josas CEDEX, France [EMAIL PROTECTED] tel +33 1 34 65 26 95, fax +33 1 34 65 24 03 **
RE: Startx on WinXP
On Wed, 21 Jan 2004, Brian L. Walter wrote: the *solution* was a cheat. I commented out the references in startx to $HOME. Since I don't have specific configurations, this is an acceptable white lie. Why not try startxwin.bat and the nifty multiwindow mode (ie. Windows is the window manager)? The version of lesstif is 0.93.91-6. Interestingly enough, it's -2 on the win98 machine, on which mwm *does* work. I might try downgrading to -2 (from the install packages on the win98 machine). WFM. -2 was a broken attempt at an Xm DLL. It just so happened that mwm was still linked to the static Xm in that package. In general, it was broken, so don't revert please. You might post strace mwm | grep Mwm 21 to see if it is an app-default issue. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444
Crash in xserv 4.3.0-42
I have not been able to reproduce the access violation in xserv 4.3.0-42. Rejoice! Øyvind
Re: win-ssh-askpass not working.
Steve Howie wrote: Can't get it to work - set up the win-ssh-agent, ran the ssh command from a script after setting the DISPLAY and SSH_ASKPASS environment variables and SSH still prompted me for a password - no askpass window popped up. Any ideas?? Running on Windows XP Professional. Script (as suggested by Alexander Gottwald): #!/bin/bash export DISPLAY=localhost:0.0 export SSH_ASKPASS=/usr/bin/win-ssh-askpass.exe ssh -f -X host -l username /opt/SAS82/sas I've done some test on it yesterday and it showed that the askpass program is only executed when the ssh has no terminal. On linux I could start the ssh from gvim and the it started x11-ssh-askpass. But on windows ssh was always started in a console window. Maybe the run.exe utility might help. But I've never used it and have no links and further information on it. run.exe will start programs without console windows. Then ssh has no terminal and it must start win-ssh-askpass. bye ago NP: Tristesse De La Lune - Eiskalte Liebe -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: win-ssh-askpass not working.
On Thu, 22 Jan 2004, Alexander Gottwald wrote: Steve Howie wrote: Can't get it to work - set up the win-ssh-agent, ran the ssh command from a script after setting the DISPLAY and SSH_ASKPASS environment variables and SSH still prompted me for a password - no askpass window popped up. Any ideas?? Running on Windows XP Professional. Script (as suggested by Alexander Gottwald): #!/bin/bash export DISPLAY=localhost:0.0 export SSH_ASKPASS=/usr/bin/win-ssh-askpass.exe ssh -f -X host -l username /opt/SAS82/sas I've done some test on it yesterday and it showed that the askpass program is only executed when the ssh has no terminal. On linux I could start the ssh from gvim and the it started x11-ssh-askpass. But on windows ssh was always started in a console window. Maybe the run.exe utility might help. But I've never used it and have no links and further information on it. run.exe will start programs without console windows. Then ssh has no terminal and it must start win-ssh-askpass. IIUC, that's exactly what the setsid command is intended to accomplish. You can also try using bash's disown builtin. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
src/winsup/cygwin ChangeLog fhandler.cc
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-01-22 15:08:09 Modified files: winsup/cygwin : ChangeLog fhandler.cc Log message: * fhandler.cc (fhandler_base::open): Revert isfs change. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2277r2=1.2278 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=srcr1=1.169r2=1.170
src/winsup/cygwin ChangeLog cygtls.cc exceptio ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-01-22 19:03:19 Modified files: winsup/cygwin : ChangeLog cygtls.cc exceptions.cc sigproc.cc sigproc.h Log message: * cygtls.cc (_threadinfo::remove): Don't assume that we are removing _my_tls. * exceptions.cc (setup_handler): Improve debugging output. (call_signal_handler_now): Remove ill-advised debugger call. * sigproc.cc (sigcomplete_main): Delete. (sig_send): Honor FIXME and avoid using main thread's completion event for everything or suffer races. (pending_signals::add): Default stored mask to current process mask rather than mask at time of signal send. (wait_sig): Add debugging output. * sigproc.h (sigpacket::mask_storage): Delete. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2278r2=1.2279 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.cc.diff?cvsroot=srcr1=1.4r2=1.5 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=srcr1=1.194r2=1.195 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=srcr1=1.178r2=1.179 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.h.diff?cvsroot=srcr1=1.64r2=1.65
src/winsup/cygwin ChangeLog cygwin.din dcrt0.c ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-01-22 19:14:08 Modified files: winsup/cygwin : ChangeLog cygwin.din dcrt0.cc winsup/cygwin/include/cygwin: version.h Log message: * dcrt0.cc (reent_data): Make global. * cygwin.din: Reexport reent_data. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2279r2=1.2280 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygwin.din.diff?cvsroot=srcr1=1.112r2=1.113 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=srcr1=1.205r2=1.206 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=srcr1=1.155r2=1.156
src/winsup/cygwin/include/cygwin version.h
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-01-22 19:16:17 Modified files: winsup/cygwin/include/cygwin: version.h Log message: change comment. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=srcr1=1.156r2=1.157
src/winsup/cygwin ChangeLog cygtls.cc cygwin.d ...
CVSROOT:/cvs/src Module name:src Branch: cr-0x9e Changes by: [EMAIL PROTECTED] 2004-01-22 20:41:28 Modified files: winsup/cygwin : ChangeLog cygtls.cc cygwin.din dcrt0.cc exceptions.cc sigproc.cc winsup/cygwin/include/cygwin: version.h Log message: * dcrt0.cc (reent_data): Make global. * cygwin.din: Reexport reent_data. * cygtls.cc (_threadinfo::remove): Don't assume that we are removing _my_tls. * exceptions.cc (setup_handler): Improve debugging output. (call_signal_handler_now): Remove ill-advised debugger call. * sigproc.cc (sigcomplete_main): Delete. (sig_send): Honor FIXME and avoid using main thread's completion event for everything or suffer races. (pending_signals::add): Default stored mask to current process mask rather than mask at time of signal send. (wait_sig): Add debugging output. * sigproc.h (sigpacket::mask_storage): Delete. * fhandler.cc (fhandler_base::open): Revert isfs change. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.2267.4.5r2=1.2267.4.6 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.cc.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.2.4.1r2=1.2.4.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygwin.din.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.111r2=1.111.6.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.203.4.1r2=1.203.4.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.193r2=1.193.4.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.175.4.2r2=1.175.4.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.152r2=1.152.6.1
src/winsup/cygwin fhandler.cc
CVSROOT:/cvs/src Module name:src Branch: cr-0x9e Changes by: [EMAIL PROTECTED] 2004-01-22 20:57:45 Modified files: winsup/cygwin : fhandler.cc Log message: missed checkin Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=srconly_with_tag=cr-0x9er1=1.168.6.1r2=1.168.6.2
[PATCH]: 2. Thread safe stdio update
This is an update of my previous patch. It adds support for newlibs __LOCK_INIT macro. Thomas 2004-01-22 Thomas Pfaff [EMAIL PROTECTED] * include/sys/_types.h: New file. * include/sys/lock.h: Ditto. * include/sys/stdio.h: Ditto. * thread.cc: Include sys/lock.h (__cygwin_lock_init): New function. (__cygwin_lock_init_recursive): Ditto. (__cygwin_lock_fini): Ditto. (__cygwin_lock_lock): Ditto. (__cygwin_lock_unlock): Ditto. diff -urpN cygwin.org/include/sys/_types.h cygwin/include/sys/_types.h --- cygwin.org/include/sys/_types.h 1970-01-01 01:00:00.0 +0100 +++ cygwin/include/sys/_types.h 2004-01-12 08:02:01.775041600 +0100 @@ -0,0 +1,37 @@ +/* ANSI C namespace clean utility typedefs */ + +/* This file defines various typedefs needed by the system calls that support + the C library. Basically, they're just the POSIX versions with an '_' + prepended. This file lives in the `sys' directory so targets can provide + their own if desired (or they can put target dependant conditionals here). +*/ + +#ifndef_SYS__TYPES_H +#define _SYS__TYPES_H + +typedef long _off_t; +__extension__ typedef long long _off64_t; + +#if defined(__INT_MAX__) __INT_MAX__ == 2147483647 +typedef int _ssize_t; +#else +typedef long _ssize_t; +#endif + +#define __need_wint_t +#include stddef.h + +/* Conversion state information. */ +typedef struct +{ + int __count; + union + { +wint_t __wch; +unsigned char __wchb[4]; + } __value; /* Value so far. */ +} _mbstate_t; + +typedef void *_flock_t; + +#endif /* _SYS__TYPES_H */ diff -urpN cygwin.org/include/sys/lock.h cygwin/include/sys/lock.h --- cygwin.org/include/sys/lock.h 1970-01-01 01:00:00.0 +0100 +++ cygwin/include/sys/lock.h 2004-01-21 14:34:30.341939200 +0100 @@ -0,0 +1,36 @@ +/* sys/lock.h + + Copyright 2004 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file CYGWIN_LICENSE for +details. */ + +#ifndef _SYS_LOCK_H_ +#define _SYS_LOCK_H_ + +typedef void *_LOCK_T; +#define _LOCK_RECURSIVE_T _LOCK_T + +/* + * This must match cygwins PTHREAD_MUTEX_INITIALIZER which is + * defined in pthread.h + */ +#define _LOCK_T_INITIALIZER ((_LOCK_T)20) + +#define __LOCK_INIT(CLASS,NAME) \ + CLASS _LOCK_T NAME = _LOCK_T_INITIALIZER; + +#define __lock_init(__lock) __cygwin_lock_init(__lock) +#define __lock_close(__lock) __cygwin_lock_fini(__lock) +#define __lock_acquire(__lock) __cygwin_lock_lock(__lock) +#define __lock_release(__lock) __cygwin_lock_unlock(__lock) + +#define __lock_init_recursive(__lock) __cygwin_lock_init_recursive(__lock) +#define __lock_close_recursive(__lock) __cygwin_lock_fini(__lock) +#define __lock_acquire_recursive(__lock) __cygwin_lock_lock(__lock) +#define __lock_release_recursive(__lock) __cygwin_lock_unlock(__lock) + +#endif diff -urpN cygwin.org/include/sys/stdio.h cygwin/include/sys/stdio.h --- cygwin.org/include/sys/stdio.h 1970-01-01 01:00:00.0 +0100 +++ cygwin/include/sys/stdio.h 2004-01-21 14:34:03.493332800 +0100 @@ -0,0 +1,25 @@ +/* sys/stdio.h + + Copyright 2004 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file CYGWIN_LICENSE for +details. */ + +#ifndef _SYS_STDIO_H_ +#define _SYS_STDIO_H_ + +#include sys/lock.h + +#if !defined(__SINGLE_THREAD__) +# if !defined(_flockfile) +#define _flockfile(fp) __cygwin_lock_lock ((_LOCK_T *)(fp)-_lock) +# endif +# if !defined(_funlockfile) +#define _funlockfile(fp) __cygwin_lock_unlock ((_LOCK_T *)(fp)-_lock) +# endif +#endif + +#endif diff -urpN cygwin.org/thread.cc cygwin/thread.cc --- cygwin.org/thread.cc2004-01-19 09:37:50.0 +0100 +++ cygwin/thread.cc2004-01-22 13:49:27.961144000 +0100 @@ -44,6 +44,7 @@ details. */ #include sys/timeb.h #include exceptions.h #include sys/fcntl.h +#include sys/lock.h extern int threadsafe; @@ -54,6 +55,39 @@ __getreent () return _my_tls.local_clib; } +extern C void +__cygwin_lock_init (_LOCK_T *lock) +{ + *lock = NULL; + pthread_mutex_init ((pthread_mutex_t*) lock, NULL); +} + +extern C void +__cygwin_lock_init_recursive (_LOCK_T *lock) +{ + *lock = NULL; + if (!pthread_mutex_init ((pthread_mutex_t*) lock, NULL)) +(*(pthread_mutex_t*)lock)-type = PTHREAD_MUTEX_RECURSIVE; +} + +extern C void +__cygwin_lock_fini (_LOCK_T *lock) +{ + pthread_mutex_destroy ((pthread_mutex_t*) lock); +} + +extern C void +__cygwin_lock_lock (_LOCK_T *lock) +{ + pthread_mutex_lock ((pthread_mutex_t*) lock); +} + +extern C void +__cygwin_lock_unlock (_LOCK_T *lock) +{ + pthread_mutex_unlock ((pthread_mutex_t*) lock); +} + inline LPCRITICAL_SECTION ResourceLocks::Lock (int _resid) {
Fix write deadlock with streaming serial devices
This trivial patch fixes the problem reported here: http://www.cygwin.com/ml/cygwin/2004-01/msg00664.html Tested and confirmed by the reporter here: http://www.cygwin.com/ml/cygwin/2004-01/msg00716.html and by Martin Farnik in a previous private email discussion. If the input buffer overflows because a device is streaming faster than the application is reading, all serial communications cease and calls return ERROR_OPERATION_ABORTED. In order to restart communication, ClearCommError must be called. Without this patch, a deadlock inside fhandler_serial::raw_write could occur. Martin has supplied me with an strace log of another hang, but I have yet to fully understand it. A patch for it is hopefully forth comming. The fhandler_serial::raw_read patch is merely a suggestion to correct a possible thinko. Feel free to ignore it, or correct my limited analysis. Thanks. 2004-01-22 Brian Ford [EMAIL PROTECTED] * fhandler_serial.cc (fhandler_serial::raw_write): Prevent a deadlock when the input buffer overflows. (fhandler_serial::raw_read): Correct to print the actual error and only call PurgeComm when necessary. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444Index: fhandler_serial.cc === RCS file: /cvs/src/src/winsup/cygwin/fhandler_serial.cc,v retrieving revision 1.47 diff -u -p -r1.47 fhandler_serial.cc --- fhandler_serial.cc 11 Dec 2003 18:07:42 - 1.47 +++ fhandler_serial.cc 22 Jan 2004 22:38:04 - @@ -133,16 +133,16 @@ fhandler_serial::raw_read (void *ptr, si continue; err: - PurgeComm (get_handle (), PURGE_RXABORT); debug_printf (err %E); - if (GetLastError () == ERROR_OPERATION_ABORTED) - n = 0; - else + if (GetLastError () != ERROR_OPERATION_ABORTED) { + PurgeComm (get_handle (), PURGE_RXABORT); tot = -1; __seterrno (); break; } + + n = 0; } out: @@ -169,6 +169,9 @@ fhandler_serial::raw_write (const void * switch (GetLastError ()) { case ERROR_OPERATION_ABORTED: + DWORD ev; + if (!ClearCommError (get_handle (), ev, NULL)) goto err; + if (ev) termios_printf (error detected %x, ev); continue; case ERROR_IO_PENDING: break;
[Patch]: secret event
fhandler_socket.cc has a handle leak: when several accept()'s are made on an AF_LOCAL parent socket, it accumulates secret_event handles. Also close on exec does not work properly on the secret_event when the call occurs after the event creation. The patch fixes both issues. For the close on exec, the event is always created with inheritance allowed, but the handle inheritance is set appropriately. I had to drop the ProtectHandle because of the changing inheritance. Pierre 2004-01-22 Pierre Humblet [EMAIL PROTECTED] * fhandler_socket.cc (fhandler_socket::create_secret_event): Avoid creating multiple handles. Always allow event inheritance but set the handle inheritance appropriately. Improve error handling. (fhandler_socket::check_peer_secret_event): Improve error handling. (fhandler_socket::close_secret_event): Simply call CloseHandle. (fhandler_socket::set_close_on_exec): Set secret event inheritance. Index: fhandler_socket.cc === RCS file: /cvs/src/src/winsup/cygwin/fhandler_socket.cc,v retrieving revision 1.115 diff -u -p -r1.115 fhandler_socket.cc --- fhandler_socket.cc 7 Dec 2003 22:37:11 - 1.115 +++ fhandler_socket.cc 22 Jan 2004 23:27:49 - @@ -183,6 +183,9 @@ fhandler_socket::create_secret_event (in struct sockaddr_in sin; int sin_len = sizeof (sin); + if (secret_event) +return secret_event; + if (::getsockname (get_socket (), (struct sockaddr*) sin, sin_len)) { debug_printf (error getting local socket name (%d), WSAGetLastError ()); @@ -191,17 +194,13 @@ fhandler_socket::create_secret_event (in char event_name[CYG_MAX_PATH]; secret_event_name (event_name, sin.sin_port, secret ?: connect_secret); - LPSECURITY_ATTRIBUTES sec = get_inheritance (true); - secret_event = CreateEvent (sec, FALSE, FALSE, event_name); - if (!secret_event GetLastError () == ERROR_ALREADY_EXISTS) -secret_event = OpenEvent (EVENT_ALL_ACCESS, FALSE, event_name); + secret_event = CreateEvent (sec_all, FALSE, FALSE, event_name); if (!secret_event) -/* nothing to do */; - else if (sec == sec_all_nih || sec == sec_none_nih) -ProtectHandle (secret_event); - else -ProtectHandleINH (secret_event); +debug_printf(create event %E); + else if (get_close_on_exec ()) +/* Event allows inheritance, but handle will not be inherited */ +set_inheritance (secret_event, 1); return secret_event; } @@ -222,7 +221,7 @@ void fhandler_socket::close_secret_event () { if (secret_event) -ForceCloseHandle (secret_event); +CloseHandle (secret_event); secret_event = NULL; } @@ -234,11 +233,8 @@ fhandler_socket::check_peer_secret_event secret_event_name (event_name, peer-sin_port, secret ?: connect_secret); HANDLE ev = CreateEvent (sec_all_nih, FALSE, FALSE, event_name); - if (!ev GetLastError () == ERROR_ALREADY_EXISTS) -{ - debug_printf (event \%s\ already exists, event_name); - ev = OpenEvent (EVENT_ALL_ACCESS, FALSE, event_name); -} + if (!ev) +debug_printf(create event %E); signal_secret_event (); @@ -1302,6 +1298,8 @@ fhandler_socket::fcntl (int cmd, void *a void fhandler_socket::set_close_on_exec (int val) { + if (secret_event) +set_inheritance (secret_event, val); if (!winsock2_active) /* Winsock 2.0 */ set_inheritance (get_handle (), val); set_close_on_exec_flag (val);
RE: [ANNOUNCEMENT] New Package Available: perl-libwin32-0.191-1
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edward S. Peschko Sent: Wednesday, January 21, 2004 4:58 PM To: [EMAIL PROTECTED] Subject: Re: [ANNOUNCEMENT] New Package Available: perl-libwin32-0.191-1 exceedingly cool... Just curious, but are the code patches to do this merged into the standard distributions (ie: the standard libwin32 api (which I think is with perl itself)? And does this work in mingw mode (ie: with -mno-cygwin)? Absolutely, if you have a Perl built with MinGW. The libwin32 source builds cleanly with MinGW and Borland C/C++ 5.5. Building a Perl with MinGW is described in man perlwin32, except that you don't have to install the (non-cygwin) MinGW distribution, but simply use CC=gcc -mno-cygwin. There is apparently a way to build modules for ActivePerl with MinGW, described here, note the patch referenced on that page is not used in my package: http://perso.club-internet.fr/rocherl/HowTo/howto-mingw.html And here: http://tinyurl.com/33qny (search.cpan.org) I haven't tried this myself, but I will in the future. (ps - also, do you know the difference perchance between Win32::GUI and Win32::GUITest? Can you do mouse events, supply keys to applications, etc? http://search.cpan.org/ is a good place to look for modules and find out what they do. You can install Win32::GuiTest on Cygwin with perl -MCPAN -e shell force install Win32::GuiTest The tests aren't quite Cygwin friendly, but they all pass. Not sure if it works or not, and it spews out a whole bunch of gcc warnings, which is normal with code written for VC++. ( pps - as for the other Win32:: modules, do you know their status (Win32::AdminMisc, etc)? I'd very much like to be able to do pretty much everything I can do with ActiveState under cygwin (and possibly mingw) perl, and that means setting up services, setting environment variables, testing GUIs via sending keystrokes and mouse-events, modifying registry varbs, etc. libwin32 does some of this stuff, but not all... You can probably install many Win32:: modules using the CPAN shell, some you might need to tweak a bit to install cleanly (see your ~/.cpan/build). In such cases I'd encourage you to send patches to the authors. If you run into problems building something, and you've read all the relevant documentation, this list may be able to help. I've seen many references to Win32::AdminMisc, but it wasn't easy to find as CPAN doesn't think that module exists... here's the homepage: http://www.roth.net/perl/adminmisc/ Also it doesn't use MakeMaker, but comes with a visual studio .dsp file... I'll see if I can get it properly Cygwin-ized. -- Rafael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
Hi Pierre, thanks first for looking at my problem! Regarding the CreateFileMapping problem, the message you report is *** CreateFileMapping, Win32 error 0. Terminating. but the code in Cygwin is api_fatal (CreateFileMapping %s, %E. Terminating., mapname); The *** in front is added elsewhere, but you are missing the space after CreateFileMapping and the mapname (which could be null). I see two formatting arguments but only one parameter. Is that right? So, what version of Cygwin are you using? cygcheck -V says 1.38 (is it the version number you needed to know?) I made an update 2 days ago. From a cmd window in c:\cygwin\bin, what does strace true produce? it gives the same result: *** CreateFileMapping, Win32 error 0. Terminating. Are the non privileged users running from the console or from terminal services? I am not sure whether I understand your question correctly. The non privilieged users connect from any Windows system via rdesktop to the Windows 2003 server and are trying to open a cygwin shell on the Remotedesktor. Do they have the create global object privilege? If not, try to assign it. Here I'm lost. How do I do this? You say it's working on Win2000. What service pack? Also, on that machine, what are the answers to the 2 questions above? SP 4 - 'strace true' prints out almost everything I can imagine starting with Program name: C:\cygwin\bin\true.exe Stefan -- Unsubscribe info: 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: fetchmail problem with latest cygwin-1.5.6-1
Jason == Jason Tishler [EMAIL PROTECTED] writes: Jason Volker, Jason On Mon, Jan 19, 2004 at 08:00:54PM +0100, Dr. Volker Zell wrote: fetchmail doesn't work with the latest cygwin-1.5.6-1. See below: fetchmail: reading message [EMAIL PROTECTED]:207 of 213 (3253 header octets) fetchmail: (10881 body octets) 691 [main] sh 940 sig_send: error sending signal -33 to pid 940, pipe handle 0x324, Win32 error 232 51772 [main] sh 940 sig_send: error sending signal -33 to pid 940, pipe handle 0x324, Win32 error 232 fetchmail: not flushed fetchmail: reading message [EMAIL PROTECTED]:208 of 213 (3204 header octets) 125 [main] fetchmail 2200 fhandler_base::dup: dup(/dev/null) failed, handle 1C0, Win32 error 6 Jason FWIW, I cannot reproduce the above problem on Windows 2000 SP4 under Jason cygwin-1.5.6-1 or the 2004-Jan-21 snapshot. BTW, my fetchmail and Jason procmail setups appear to be similar to yours. Well I cannot produce the problem either on a W2K server edition at home, which is otherwise setup exactly as my laptop on w2k prof. edition. I just noticed that on my laptop fetchmail runs fine when running under gdb. So how can I debug this. Do I need a debuggable cygwin dll ? Jason Jason -- Unsubscribe info: 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: running the latest cygwin on a windows 2003 server
Dave Korn wrote: another question to this topic came into my mind: why is this all happening only to the Windows Server 2003 machine? Ah, but then you go and point out that... Although the SAMBA problem appears on all machines. That's true. It seems that I have two problems here and the SAMBA thing is _not_ the one that hinders cygwin to run, right? And you're using a domain, right? Yes in both cases. Is this related to the Pre-Windows 2000 Compatible Access group thingy? As a matter of fact I don't have any clue. I have to read this first http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=pre-windows+2000+ compatible+access+group but your former advice seems setting me on the track. I only have to figure out how to do set global priviliges You might both find some useful information in this article Development Impacts of Security Changes in Windows Server 2003: http://msdn.microsoft.com/library/en-us/dncode/html/secure06122003.asp Creating Various Global Objects May Fail : Starting with Windows Server 2003, the creation of some global objects, such as file mapping will fail unless the calling process has the SeCreateGlobalPrivilege privilege enabled. Note that the privilege check is limited to the creating of said objects, and does not apply to opening existing ones. For example, the following code will fail on Windows Server 2003 unless the process account has this privilege: HANDLE hMap = CreateFileMapping(INVALID_HANDLE_VALUE,0,PAGE_READWRITE, 0, 0x,Global\\MyMapping); By default this privilege is assigned to all services and administrators. This privilege also applies when creating symbolic links in the object manager. The way around this is to either grant the account in question this privilege, or do not make the object name global. Of course, the latter may not be possible. Regards, Stefan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
emacs in console mode not work properly
hi, everyone the emacs in console mode seem not work properly in the latest cygwin, i mean when i start emacs and load a file to edit, i can not see the file content in emacs, on the contrary, the emacs is filled with the console content which should be dispeared. -- Unsubscribe info: 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: snapshot now == 1.5.7 soon, please try
Christopher Faylor wrote: On Wed, Jan 21, 2004 at 10:05:21AM -0500, Christopher Faylor wrote: On Wed, Jan 21, 2004 at 10:03:24AM -0500, Christopher Faylor wrote: On Wed, Jan 21, 2004 at 02:08:00PM +0100, Philippe Torche wrote: Christopher Faylor wrote: The current cygwin snapshot has fixes for: 1) missing cygserver 2) bash hang 3) vim SEGV If anyone has reported any other problems then please try the snapshot and see if they still exist. 2 and 3 above are particularly nasty bugs which could cause a lot of other mysterious problems. http://cygwin.com/snapshots/ I'm using CVS compiled version of 2004-01-21 10:00 GMT+1 and I'm experimenting the following problem with pipe ! CVS != snapshot. Please try the snapshot. Yes tested both, but CVS seems better! ...and if you still have a problem then please provide a *small test case* that shows the problem. I've tried, but not found a fail *small test case* ...and in case this is a problem in the snapshot, I've added some better debuggging output. If you are building the DLL from scratch, then maybe you want to debug this with gdb? You can add error_start=gdb to the cygwin environment variable and add some 'try_to_debug()' calls to the function that you identified. cgf Thanks for your changes and your informations. 1) Now the problem as changed : the first process return error 128 (net helpmsg 128 says There are no child processes to wait for). 3) Another problem is that ^C don't work (since 1.5.6 maybe) inside a bash prompt (with windows console or rxvt). Ex: [EMAIL PROTECTED] ~$ dsjfajfasjf Typing ^C does nothing Same problem when using read from a bash script. 2) For your info : - Just before some commits, changelog 2004-01-21 19:19, changelog 2004-01-21 20:14, changelog 2004-01-21 20:17, 260 tests passes, and now 255. FAIL: ltp/fstat02.c (execute) FAIL: ltp/fstat04.c (execute) FAIL: ltp/stat01.c (execute) FAIL: ltp/symlink01.c (execute) FAIL: ltp/umask03.c (execute) -- Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /cygdrive/u/src/external/cygwin/src/winsup/testsuite/config/default.exp as tool-and-target-specific inte rface file. Running /cygdrive/u/src/external/cygwin/src/winsup/testsuite/winsup.api/winsup.exp ... FAIL: msgtest.c (execute) FAIL: semtest.c (execute) FAIL: shmtest.c (execute) FAIL: ltp/fstat02.c (execute) FAIL: ltp/fstat04.c (execute) NOTE: error deleting ltp-kill02.exe: error deleting ltp-kill02.exe: permission denied NOTE: error deleting ltp-kill09.exe: error deleting ltp-kill09.exe: permission denied NOTE: error deleting ltp-pipe10.exe: error deleting ltp-pipe10.exe: permission denied FAIL: ltp/stat01.c (execute) FAIL: ltp/symlink01.c (execute) FAIL: ltp/umask03.c (execute) === winsup Summary === # of expected passes255 # of unexpected failures8 # of expected failures 14 Binary file /cygdrive/u/src/external/cygwin/release/i686-pc-cygwin/winsup/testsuite/../cygwin/cygwin0.dll matc hes CYGWIN=smbntsec tty codepage:ansi -- Unsubscribe info: 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: running the latest cygwin on a windows 2003 server
Thanks a lot to all who helped me. In case one encounters this problem the web-site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncode/html/secure06122003.asp gives an answer. Creating Various Global Objects May Fail: Starting with Windows Server 2003, the creation of some global objects, such as file mapping will fail unless the calling process has the SeCreateGlobalPrivilege privilege enabled. Note that the privilege check is limited to the creating of said objects, and does not apply to opening existing ones. For example, the following code will fail on Windows Server 2003 unless the process account has this privilege: HANDLE hMap = CreateFileMapping(INVALID_HANDLE_VALUE,0,PAGE_READWRITE, 0, 0x,Global\\MyMapping); By default this privilege is assigned to all services and administrators. This privilege also applies when creating symbolic links in the object manager. The way around this is to either grant the account in question this privilege, or do not make the object name global. Of course, the latter may not be possible. OK now, how to solve this: Start - Administrative Tools - Local Security Policy Security Settings - Local Policies - User Rights Assignment Key: Create Global Objects Add the group that has limited rights (e.g. Remote Desktor Users) Stefan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Win XP crash with inetd ftp server
My XP Professional SP1 system had a kernel crash apparently related to the tcpip, related I believe to the inetd service running Here is the event information Symbolic name: ER_KRNLCRASH_LOG Error code 004e, parameter1 0002, parameter2 0058, parameter3 0007ff2f, parameter4 0001. The network adapter os a 3Com Gigabit LOM (3c940) Attached is the cygcheck -svr and the output of netstat -a Have others experienced system crashes with the cygwin inetd service? this has happened several times. When I disabled the inetd service, the sudden crashes ceased. Regards, Charles -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 cygcheck_output.gz Description: application/gzip netstat_output.gz Description: application/gzip -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
On Jan 22 09:32, Stefan Zachow wrote: Do they have the create global object privilege? If not, try to assign it. Here I'm lost. How do I do this? Start - All Programs - Control Panel - Adminstrative Tools - Domain Security Policy In there is a group of settings called User Rights Assignment. You'll find it there. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
On Jan 22 09:32, Stefan Zachow wrote: Hi Pierre, So, what version of Cygwin are you using? cygcheck -V says 1.38 (is it the version number you needed to know?) I made an update 2 days ago. No, not the version of cygcheck, the version of cygwin. `uname -r' would show that. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Win XP crash with inetd
I forgot to include the Error message in the XP event viewer from inetd prior to the crash: The description for Event ID ( 0 ) in Source ( inetd ) 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: inetd : PID 1892 : uucp/tcp: No such user 'uucp', service ignored. -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 http://www.gamma-rs.ch ---BeginMessage--- My XP Professional SP1 system had a kernel crash apparently related to the tcpip, related I believe to the inetd service running Here is the event information Symbolic name: ER_KRNLCRASH_LOG Error code 004e, parameter1 0002, parameter2 0058, parameter3 0007ff2f, parameter4 0001. The network adapter os a 3Com Gigabit LOM (3c940) Attached is the cygcheck -svr and the output of netstat -a Have others experienced system crashes with the cygwin inetd service? this has happened several times. When I disabled the inetd service, the sudden crashes ceased. Regards, Charles -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 cygcheck_output.gz Description: application/gzip netstat_output.gz Description: application/gzip ---End Message--- -- Unsubscribe info: 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: simple newbie init question
On Jan 21 16:39, Edward W. Rouse wrote: This is the result of 'inetd -d', edited for brevity. ADD : talk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd registered /usr/sbin/in.talkd on 19 ADD : ntalk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd registered /usr/sbin/in.talkd on 20 ADD : cvspserver proto=tcp, wait=0, user=root builtin=0 server=/usr/bin/cvs FREE: cvspserver proto=tcp, wait=0, user=root builtin=0 server=/usr/bin/cvs For some reason it immediately frees the cvspserver after adding it. I also find the register lines disconcerting. I know that on a normal Linux system, inetd has port info in /etc/services, which is missing from the cygwin install. I was assuming that it was getting that info from somewhere else. I guess I shouldn't assume. Do I need to add /etc/services? Authoritative answer: No. For the records: The /etc/services symlink is just a convenience for the user. If you create a file in /etc instead, it won't be used by the OS. Never. Cygwin is using Winsock. Winsock uses the services file in ${SYSTEMROOT}/system32/drivers/etc on NT systems and in ${windir} on 9x systems. Open the *correct* services file, add the cvspserver line and you're done. Be careful on 9x systems to use the very same layout as in any other line, otherwise the system might misbehave. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.6: cygpath problem
On Jan 21 13:50, Pierre Bogossian wrote: I guess the problem comes from that I'm running Windows NT 4 SP6, which have a too old version of shell32.dll... Indeed, a search on google told that SHGetSpecialFolderPathA exists as of shell32.dll version 4.71 while the version on my system is 4.00. My bad. Whith the latest patch to cygpath I accidentally also checked in this experimental change. I've reverted it in CVS so it will work again in the next version (soon). Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: grep doesn't work w/ latest cygwin
On Jan 21 20:07, stillwater269 wrote: I've downloaded the latest cygwin for the first time yesterday (1/20/04). Downloaded from cygwin.com, got the setup.exe, and ran it. My aim was to use postgres. initdb calls grep, and it fails missing the dll cygpcre.dll. initdb additionally fails missing the dll cygcrypt-0.dll. I tried reinstalling just grep to no avail. Then install pcre and crypt. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Win XP crash with inetd
Since Cygwin is doing nothing which should result in a BSOD, I doubt that Cygwin is the actual cause of that problem. So far I never experienced a BSOD which I could trace back to Cygwin or inetd or it's services. Actually I never had a BSOD since I'm using XP. Corinna On Jan 22 11:05, Charles L. Werner wrote: I forgot to include the Error message in the XP event viewer from inetd prior to the crash: The description for Event ID ( 0 ) in Source ( inetd ) 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: inetd : PID 1892 : uucp/tcp: No such user 'uucp', service ignored. -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 http://www.gamma-rs.ch Date: Thu, 22 Jan 2004 10:35:20 +0100 From: Charles L. Werner [EMAIL PROTECTED] Subject: Win XP crash with inetd ftp server To: [EMAIL PROTECTED] Reply-To: cwATgamma-rsDOTch My XP Professional SP1 system had a kernel crash apparently related to the tcpip, related I believe to the inetd service running Here is the event information Symbolic name: ER_KRNLCRASH_LOG Error code 004e, parameter1 0002, parameter2 0058, parameter3 0007ff2f, parameter4 0001. The network adapter os a 3Com Gigabit LOM (3c940) Attached is the cygcheck -svr and the output of netstat -a Have others experienced system crashes with the cygwin inetd service? this has happened several times. When I disabled the inetd service, the sudden crashes ceased. Regards, Charles -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: simple newbie init question
On Jan 22 11:07, Corinna Vinschen wrote: For the records: The /etc/services symlink is just a convenience for the user. If you create a file in /etc instead, it won't be used by the OS. Never. Cygwin is using Winsock. Winsock uses the services file in ${SYSTEMROOT}/system32/drivers/etc on NT systems and in ${windir} on 9x systems. Can we have a FAQ entry for that, btw.? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Win XP crash with inetd ftp server
-Original Message- From: cygwin-owner On Behalf Of Charles L. Werner My XP Professional SP1 system had a kernel crash apparently related to the tcpip, related I believe to the inetd service running Here is the event information Symbolic name: ER_KRNLCRASH_LOG Error code 004e, parameter1 0002, parameter2 0058, parameter3 0007ff2f, parameter4 0001. The network adapter os a 3Com Gigabit LOM (3c940) Attached is the cygcheck -svr and the output of netstat -a Have others experienced system crashes with the cygwin inetd service? this has happened several times. When I disabled the inetd service, the sudden crashes ceased. Nonetheless, the odds are that this is only indirectly caused by running an ftp server. My bet is that your network card has a buggy driver. Error 0x4e means the virtual memory page frame number list has been corrupted. Only a kernel-mode device driver could hope to achieve this. It may be the case that the bug in the device driver is triggered by some ioctl that cygwin happens to send that most win32 applications don't, but your best bet is still going to be surfing the 3com website and seeing if there's a newer version of the driver. If you have windbg and the xp debugging symbols installed, you could check the memory.dmp file that was created by the bsod. Or you might wish to run the driver verifier on it in order to show that the driver definitely was or was not at fault. However these are fairly advanced topics and it really doesn't look like this is a cygwin problem. 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/
1.5.6 is there a problem with this build?
Hi there are various grumbles about 1.5.6 in posts here, . I've noticed a few odd things, but can't pin them down. If so, should we roll back (never tried that!) or wait for a new release? Comments Please zzapper (vim cygwin zsh) -- vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg? http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
wget FTP wildcards
Hi, I have trouble using wildcards in wget FTP connections. wget doesn't treat `*' and `?' as wildcards but ordinary characters, so the connection results in something like this: $ wget -e ftp_proxy=192.168.35.1:3128 ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/ source/* Warning: wildcards not supported in HTTP. --11:16:34-- ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/source/* = `*' Connecting to 192.168.35.1:3128... connected. Proxy request sent, awaiting response... 404 Not Found 11:16:54 ERROR 404: Not Found. Note that I use FTP proxy server (firewall), I run CygWin over M$ Win2000Pro and this problem occurs using both wget from CygWin installation and M$ Win wget binary I downloaded separately, and also running from GygWin bash or M$ Win cmdline. Thanks for any help, regards -- venck [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.razdva.cz/vencik/ -- Unsubscribe info: 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: wget FTP wildcards
-Original Message- From: cygwin-owner On Behalf Of Václav Krpec I have trouble using wildcards in wget FTP connections. wget doesn't treat `*' and `?' as wildcards but ordinary characters, so the connection results in something like this: $ wget -e ftp_proxy=192.168.35.1:3128 ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/ source/* Warning: wildcards not supported in HTTP. --11:16:34-- ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/source/* = `*' Connecting to 192.168.35.1:3128... connected. Proxy request sent, awaiting response... 404 Not Found 11:16:54 ERROR 404: Not Found. Note that I use FTP proxy server (firewall), I run CygWin over M$ Win2000Pro and this problem occurs using both wget from CygWin installation and M$ Win wget binary I downloaded separately, and also running from GygWin bash or M$ Win cmdline. Well, like the error message tells you, Warning: wildcards not supported in HTTP. You're trying to use a feature that doesn't exist. Just don't, and the problem will go away. The actual way to use wget to fetch every file in a directory would be to use the options -r -l1. You can also use the various accept and reject options of wget to try and narrow in on the precise set of files that you want. If you really, really, *really* want a pattern matching version of wget, it would always be possible to make a shell script that calls wget --spider to list all the files without fetching them, parses the output using sed, perl, grep or awk to make a list of the matching names, writing them into a temp file as it goes, and finally calls wget --input-file= to download only the files that matched. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
Thank you all for your help! the 'global object privilege' was the reason for cygwin not running on the Win2003 Server. As a matter of fact. The original question started in another thread first and moved to this one due to two seperate problems. Do they have the create global object privilege? If not, try to assign it. As soon as the latest stable Samba version is released I try to check for the persistence of the mkgroup problem. thanks again Stefan -- Unsubscribe info: 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: rsh as NONE SYSTEM user = permission denied
Thanks for a not very helpful response there Larry. Some of us do search the archives before asking questions you know. The real reason for this is the way the is root user checking is being done. i.e. if the service user = the login user then it treats it as the root login case which is not necessarily the case but as long as you know that its ignoring the hosts.equiv file and only reading the users .rhosts file its easy to work around. Also of note is that the current hosts.equiv format is not documented and doesn't conform to the current unix standards. That's to say that the current code only supports: hostname user From the current basic hosts.equiv / .rhosts format I've currently got a patch for inetutils util library which when linked directly fixes these issues all be it not totally. The fix provides: hostname hostname + hostname user hostname -user As well as adding more descriptive errors on login failure by using the error passed from iruserok if applicable. If anyone would like the patch just shout. N.B. this only fixes the inetutils library and not the core cygwin libs which are linked by default. Steve - Original Message - From: Larry Hall To: Steven Hartland Sent: 19 January 2004 16:36 Subject: Re: rsh as NONE SYSTEM user = permission denied At 08:02 AM 1/19/2004, Steven Hartland you wrote: Has anyone gotten rsh to work with a none system user? I've followed the guide inetutils-1.3.2.README. telnet works fine but a simple: rsh -l myuser ls / fails with: Permission denied. Anyone got any ideas? N.B. anyway of getting a log file out of rshd? Yes. Please visit: Problem reports: http://cygwin.com/problems.html and provide the requested information. Also the output of 'cygcheck rsh' just before you would invoke 'rsh' would be helpful. This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd problems
Hi all, I've manage to setup sshd as a service on a windows 2000 box, and it all seemed to be working well. I can ssh into the box and browse directories etc. without any warning messages being produced, however if I try and run a command via ssh then the connection is dropped immediately after the following error message, setgid: Invalid argument e.g. F:\C:\cygwin\bin\ssh.exe [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Last login: Thu Jan 22 10:59:24 2004 from 127.0.0.1 [EMAIL PROTECTED] ~ $ ls James.pdf PUTTY.RND acs.log index.html temp workarea === F:\C:\cygwin\bin\ssh.exe [EMAIL PROTECTED] ls [EMAIL PROTECTED]'s password: setgid: Invalid argument === [EMAIL PROTECTED] ~ $ id uid=18158(NordJ) gid=10513(Domain Users) groups=20164(All UK),20206(Chandlers Ford),12729(Dept Encoders),11854(Dept Eng Development),20107(Dept Stream Content),20125(Dept Systems Div (Ch),20203(Dept TV Platform ( A),10513(Domain Users),14553(MAGIC F),15039(N Dept Eng Develop.),17109(N Dept TV Platforms),15031(N Development R),15011(N Eng Dev CRX),15029(N VHDL R),15028(N Video Server),16027(Phoenix Change),15143(Reachout Hosts),16217(UK Synamedia),16934(Web User Access),20200(Worldwide),0(root),544(Administrators),545(Users) === I am at a loss as to why it works when not using a command and fails when using one. Does anyone have any ideas? the passwd and group file are uptodate. Anyone any ideas? Please CC me in the reply as I'm not subscribed. Regards /James -- Technology is a word that describes something that doesn't work yet. Douglas Adams -- Unsubscribe info: 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: wget FTP wildcards
But, as you can see, I'm trying to do __FTP__ connection, and these allows wildcards usage (according to wget man pages). Maybe -g on option will help... I'm gonna try... No. I know it works on Linux, why not on cygWin? Do I need special settings? Or wget thinks I'm trying to make http connection? Why? I specified FTP protocol. How to force the protocol? -Original Message- From: cygwin-owner On Behalf Of Vclav Krpec I have trouble using wildcards in wget FTP connections. wget doesn't treat `*' and `?' as wildcards but ordinary characters, so the connection results in something like this: $ wget -e ftp_proxy=192.168.35.1:3128 ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/ source/* Warning: wildcards not supported in HTTP. --11:16:34-- ftp://ftp.fit.vutbr.cz/pub/XFree86/4.3.0/source/* = `*' Connecting to 192.168.35.1:3128... connected. Proxy request sent, awaiting response... 404 Not Found 11:16:54 ERROR 404: Not Found. Note that I use FTP proxy server (firewall), I run CygWin over M$ Win2000Pro and this problem occurs using both wget from CygWin installation and M$ Win wget binary I downloaded separately, and also running from GygWin bash or M$ Win cmdline. Well, like the error message tells you, Warning: wildcards not supported in HTTP. You're trying to use a feature that doesn't exist. Just don't, and the problem will go away. The actual way to use wget to fetch every file in a directory would be to use the options -r -l1. You can also use the various accept and reject options of wget to try and narrow in on the precise set of files that you want. If you really, really, *really* want a pattern matching version of wget, it would always be possible to make a shell script that calls wget --spider to list all the files without fetching them, parses the output using sed, perl, grep or awk to make a list of the matching names, writing them into a temp file as it goes, and finally calls wget --input-file= to download only the files that matched. 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/ -- venck [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.razdva.cz/vencik/ -- Unsubscribe info: 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: sshd problems
Check that both your passwd and group files are up to date and also check and double check the permissions of the sshd config user keys and user home dir / login files. The checks should include ensuring that SYSTEM has access. We had loads of issues all which gave a similar error all which turned out to be permissions issues and not that could be seen with and ls -l either they all related to SYSTEM not having access to said files / dirs. Steve - Original Message - From: James Nord [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 22 January 2004 11:13 Subject: sshd problems Hi all, I've manage to setup sshd as a service on a windows 2000 box, and it all seemed to be working well. I can ssh into the box and browse directories etc. without any warning messages being produced, however if I try and run a command via ssh then the connection is dropped immediately after the following error message, setgid: Invalid argument This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
error 1062 when starting distccd
hi! $ /etc/rc.d/init.d/distccd start Starting distccd: [ OK ] it seems running: $ ps -a PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd 266826282628 2668? 1000 13:37:52 /usr/bin/distccd 180426282628 1804? 1000 13:37:53 /usr/bin/distccd but i think it doesn't work... so i stopped it und tried to start in another way: $ cygrunsrv -S distccd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. HELP!!! -- Unsubscribe info: 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: error 1062 when starting distccd
Christian wrote: hi! $ /etc/rc.d/init.d/distccd start Starting distccd: [ OK ] it seems running: $ ps -a PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd 266826282628 2668? 1000 13:37:52 /usr/bin/distccd 180426282628 1804? 1000 13:37:53 /usr/bin/distccd but i think it doesn't work... so i stopped it und tried to start in another way: $ cygrunsrv -S distccd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. HELP!!! Please read the docu about cygrunsrv how to use it to install a service correct. The look into the Windows eventlog, what is the error message? Then look in the distcc logfile, what are the error messages? You may specify some additional options to distcc, e.g. not to run as daemon in the background. Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
On Thu, Jan 22, 2004 at 11:48:26AM +0100, Stefan Zachow wrote: Thank you all for your help! the 'global object privilege' was the reason for cygwin not running on the Win2003 Server. Except that cygwin 1.5.6 is supposed to work even for users who do not have that privilege. That's why I still would like to know what version you are running, and if you run Cygwin from the console or from terminal services. Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: fetchmail problem with latest cygwin-1.5.6-1
On Thu, Jan 22, 2004 at 09:51:39AM +0100, Dr. Volker Zell wrote: Jason == Jason Tishler [EMAIL PROTECTED] writes: Jason Volker, Jason On Mon, Jan 19, 2004 at 08:00:54PM +0100, Dr. Volker Zell wrote: fetchmail doesn't work with the latest cygwin-1.5.6-1. See below: fetchmail: reading message [EMAIL PROTECTED]:207 of 213 (3253 header octets) fetchmail: (10881 body octets) 691 [main] sh 940 sig_send: error sending signal -33 to pid 940, pipe handle 0x324, Win32 error 232 51772 [main] sh 940 sig_send: error sending signal -33 to pid 940, pipe handle 0x324, Win32 error 232 fetchmail: not flushed fetchmail: reading message [EMAIL PROTECTED]:208 of 213 (3204 header octets) 125 [main] fetchmail 2200 fhandler_base::dup: dup(/dev/null) failed, handle 1C0, Win32 error 6 Jason FWIW, I cannot reproduce the above problem on Windows 2000 SP4 under Jason cygwin-1.5.6-1 or the 2004-Jan-21 snapshot. BTW, my fetchmail and Jason procmail setups appear to be similar to yours. Well I cannot produce the problem either on a W2K server edition at home, which is otherwise setup exactly as my laptop on w2k prof. edition. I just noticed that on my laptop fetchmail runs fine when running under gdb. So how can I debug this. Do I need a debuggable cygwin dll ? Yes. And, building with --enable-debugging might be useful since there is a chance that it will detect handle corruption which, I suspect is what is going wrong. -- Unsubscribe info: 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: error 1062 when starting distccd
Gerrit P. Haase schrieb: Christian wrote: hi! $ /etc/rc.d/init.d/distccd start Starting distccd: [ OK ] it seems running: $ ps -a PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd 266826282628 2668? 1000 13:37:52 /usr/bin/distccd 180426282628 1804? 1000 13:37:53 /usr/bin/distccd but i think it doesn't work... so i stopped it und tried to start in another way: $ cygrunsrv -S distccd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. HELP!!! Please read the docu about cygrunsrv how to use it to install a service correct. The look into the Windows eventlog, what is the error message? Then look in the distcc logfile, what are the error messages? You may specify some additional options to distcc, e.g. not to run as daemon in the background. Gerrit I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with cygrunsrv.exe -S distccd, the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. When starting with /etc/rc.d/init.d/distccd start it says: PID 2588 : (dcc_setup_daemon_path) daemon's PATH is /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. PID 2588 : (dcc_standalone_server) 1 CPU online on this server. PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 i686-pc-cygwin, built Dec 23 2003 22:30:33). I think, thats fine. Whats wrong when starting distccd with cygrunsrv? -- Unsubscribe info: 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: snapshot now == 1.5.7 soon, please try
On Thu, Jan 22, 2004 at 10:29:40AM +0100, Philippe Torche wrote: 2) For your info : - Just before some commits, changelog 2004-01-21 19:19, changelog 2004-01-21 20:14, changelog 2004-01-21 20:17, 260 tests passes, and now 255. FAIL: ltp/fstat02.c (execute) FAIL: ltp/fstat04.c (execute) FAIL: ltp/stat01.c (execute) FAIL: ltp/symlink01.c (execute) FAIL: ltp/umask03.c (execute) Unless you are interested in fixing cygwin problems, you can save yourself the effort of reporting test suite problems. I run the testsuite regularly and before releasing cygwin. There is no value in reporting test suite problems here. -- Unsubscribe info: 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: simple newbie init question
On Thu, Jan 22, 2004 at 11:17:41AM +0100, Corinna Vinschen wrote: On Jan 22 11:07, Corinna Vinschen wrote: For the records: The /etc/services symlink is just a convenience for the user. If you create a file in /etc instead, it won't be used by the OS. Never. Cygwin is using Winsock. Winsock uses the services file in ${SYSTEMROOT}/system32/drivers/etc on NT systems and in ${windir} on 9x systems. Can we have a FAQ entry for that, btw.? The symlink is supposed to be there to avoid just such a FAQ entry. If it is missing that's a bug which needs to be fixed. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: error 1062 when starting distccd
Hallo Christian, [distcc as service fails] I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with cygrunsrv.exe -S distccd, the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. What is in the Windows eventlog? Is there a special error log? 'Failed: no error' is not a very descriptive error message. When starting with /etc/rc.d/init.d/distccd start it says: PID 2588 : (dcc_setup_daemon_path) daemon's PATH is /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. PID 2588 : (dcc_standalone_server) 1 CPU online on this server. PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 i686-pc-cygwin, built Dec 23 2003 22:30:33). I think, thats fine. In your previous mail you stated that you thought that it was not working, so does it work at all now? Whats wrong when starting distccd with cygrunsrv? I cannot read your logfiles, what are the error messages in the log? In the Eventlog? How did you install it to run as service? I guess that it was not correct what you did, but I don't know unless you tell us what and how you did to install it. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: error 1062 when starting distccd
Gerrit P. Haase schrieb: Hallo Christian, Hi Gerrit! I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with cygrunsrv.exe -S distccd, the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. What is in the Windows eventlog? Is there a special error log? 'Failed: no error' is not a very descriptive error message. That's all in the Windows eventlog, when the start fails.. :-/ When starting with /etc/rc.d/init.d/distccd start it says: PID 2588 : (dcc_setup_daemon_path) daemon's PATH is /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. PID 2588 : (dcc_standalone_server) 1 CPU online on this server. PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 i686-pc-cygwin, built Dec 23 2003 22:30:33). I think, thats fine. In your previous mail you stated that you thought that it was not working, so does it work at all now? I checked it more and found this: nmap say port 3632 is open. i can see 4 processes in the windows-taskmanager. but the processes do nothing. my other machine(linux) running distccd is working fine for my slow laptop.. ;) Whats wrong when starting distccd with cygrunsrv? I cannot read your logfiles, what are the error messages in the log? In the Eventlog? How did you install it to run as service? I guess that it was not correct what you did, but I don't know unless you tell us what and how you did to install it. I wrote all i can find about distccd in my Windows logfiles. So i installed it: cygrunsrv.exe -I distccd -p /cygdrive/c/cygwin/bin/distccd.exe Gerrit Christian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: simple newbie init question
Renamed services, ran the file and, yes!, the links were there. Restarted inetd and cvspserver is now running. Woot. Thanks for all the help. Ed. -Original Message- From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 6:42 PM To: Edward W. Rouse Cc: [EMAIL PROTECTED] Subject: RE: simple newbie init question Hmm, this seems up to date... So, you should also have the postinstall script /etc/postinstall/base-files-mketc.sh.done. If you don't, something went wrong when executing that postinstall script -- /var/log/setup.log should contain some details. Otherwise, simply rerun the script -- no need to reinstall base-files. Igor On Wed, 21 Jan 2004, Edward W. Rouse wrote: Yes. Here is the appropriate line from cygcheck -svr. base-files 2.6-1 However I do not have the symlinks you mention. Can I manually create them using ln or do I need to reinstall the base-files? Ed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Pechtchanski Sent: Wednesday, January 21, 2004 6:02 PM To: Edward W. Rouse Cc: [EMAIL PROTECTED] Subject: RE: simple newbie init question I don't recall you posting your cygcheck -svr output. Do you have the base-files package installed? If so, /etc/services should be a symbolic link to C:\WINNT\system32\drivers\etc\services (you should also have symbolic links for /etc/hosts, /etc/protocols, and /etc/networks). If you don't have those, please remove (or rename) your /etc/services to something else and (re)install the base-files package. Igor On Wed, 21 Jan 2004, Edward W. Rouse wrote: Well, I didn't. But I got a copy, added it to the /etc directory, added the cvspserver line, saved everything and restarted inetd. And it still gives me the debug result in my last post. And I still don't have the pserver service starting. Any other suggestions? It doesn't look like inetd is using /etc/services. Can someone tell me where it might be looking? Ed. -Original Message- From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 5:47 PM To: Edward W. Rouse Cc: [EMAIL PROTECTED] Subject: RE: simple newbie init question You should already have /etc/services. Just add the cvspserver line. Igor On Wed, 21 Jan 2004, Edward W. Rouse wrote: This is the result of 'inetd -d', edited for brevity. ADD : talk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd registered /usr/sbin/in.talkd on 19 ADD : ntalk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd registered /usr/sbin/in.talkd on 20 ADD : cvspserver proto=tcp, wait=0, user=root builtin=0 server=/usr/bin/cvs FREE: cvspserver proto=tcp, wait=0, user=root builtin=0 server=/usr/bin/cvs For some reason it immediately frees the cvspserver after adding it. I also find the register lines disconcerting. I know that on a normal Linux system, inetd has port info in /etc/services, which is missing from the cygwin install. I was assuming that it was getting that info from somewhere else. I guess I shouldn't assume. Do I need to add /etc/services? Ed. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
Sorry Pierre, I replied to your personal address only, but it was bouncing back. uname -r says 1.5.5(0.94/3/2) when I have cygwin installed and update via setup, what I definitely did, why do I have an older version than expected? I thought it must be the latest version that I have. Stefan Pierre A. Humblet wrote: Except that cygwin 1.5.6 is supposed to work even for users who do not have that privilege. That's why I still would like to know what version you are running, and if you run Cygwin from the console or from terminal services. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
Now I have version 1.5.6(0.108/3/2). When was this one released? Shall I revert the privilege stuff to test again? Stefan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
On Thu, Jan 22, 2004 at 03:55:44PM +0100, Stefan Zachow wrote: Now I have version 1.5.6(0.108/3/2). When was this one released? Shall I revert the privilege stuff to test again? Yes please. About mail bouncing back, my personal mail goes to my ISP, Verizon, which is down. The mailing lists go to my PC at home (exim on Win98), which appears to be more reliable! Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rshd and stdout
David Reid wrote: I'm using rsh to run a command on a remote machine. But I only get output back from stderr, not from stdout. Here is my sample program and the output: main() { fprintf(stdout, stdout\n); fprintf(stderr, stderr\n); } $ rsh machine1 ./main stderr How can I get stdout back to the rsh client? Note: cygwin rshd is running on a windows box, rsh can be on windows or linux, the result is the same. It works as I would expect when using the linux rshd on a linux box (it prints stdout and stderr) Did you compile your sample program with the -mno-cygwin flag or with a non-cygwin compiler ? I'm asking because this problem reminds me of an issue I reported last year (http://sources.redhat.com/ml/cygwin/2003-02/msg02224.html) and which is still unresolved (actually, I don't think that anyone really paid attention to my report ;-). Anyway, running cygwin and non-cygwin binaries of your sample program using rsh gives interesting results: $ rsh localhost main_cygwin stdout $ rsh localhost main_nocygwin stderr Pierre -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm -- Unsubscribe info: 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: version 1.5.6 enhancement
Version 1.5.6 works without the privilege setting! Could you please tell me when 1.5.6 came up? What about my 1.5.5 version? I don't understand why it wasn't updated, because right now I got the update without any further selection within setup. Stefan Pierre A. Humblet wrote: On Thu, Jan 22, 2004 at 03:55:44PM +0100, Stefan Zachow wrote: Now I have version 1.5.6(0.108/3/2). When was this one released? Shall I revert the privilege stuff to test again? Yes please. -- Unsubscribe info: 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: version 1.5.6 enhancement
On Thu, 22 Jan 2004, Stefan Zachow wrote: Version 1.5.6 works without the privilege setting! Could you please tell me when 1.5.6 came up? You have asked this twice now. Is it really that hard to find? From http://www.cygwin.com, scroll down to news and look at: New Cygwin DLL 1.5.6-1 release. You should really be able to find this without asking the list. What about my 1.5.5 version? What about it? Pierre said it was fixed in 1.5.6. Why worry about 1.5.5? I don't understand why it wasn't updated, because right now I got the update without any further selection within setup. Did you choose a different mirror site the last time you updated? Maybe the mirror just caught up? I wouldn't worry about it now. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: 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: GNU make and VPATH problems
Pete Flugstad wrote: So, before I start trying to debug GNU make, has anyone seen anything like this? I'll work on recreating the problem with a simplified setup, so I can post an example here, but I'm hoping someones seen this before. Getting no response, I downloaded the GNU make 3.80-1 sources from: http://mirrors.kernel.org/sources.redhat.com/cygwin/release/make/ and do a configure/build with -g. And it works just fine. No problem finding the source files in VPATH. Just to make sure, I compared my binary /usr/bin/make.exe to the one from the .tar.bz2 file downloaded from the above URL, and they were identical. Seems like maybe an GCC optimization bug somewhere, which my debug build doesn't trigger? Pete -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
On Thu, 22 Jan 2004, Stefan Zachow wrote: Pierre Humbelt wrote: api_fatal (CreateFileMapping %s, %E. Terminating., mapname); The *** in front is added elsewhere, but you are missing the space after CreateFileMapping and the mapname (which could be null). I see two formatting arguments but only one parameter. Is that right? Yes, the %E is short hand for Win32 error %d, GetLastError() essentially. Are the non privileged users running from the console or from terminal services? I am not sure whether I understand your question correctly. The non privilieged users connect from any Windows system via rdesktop to the Windows 2003 server and are trying to open a cygwin shell on the Remotedesktor. For future reference, this means termial services (ie. not on the console). -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: 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.6 is there a problem with this build?
On Thu, 22 Jan 2004, zzapper wrote: Hi there are various grumbles about 1.5.6 in posts here, . I've noticed a few odd things, but can't pin them down. http://www.cygwin.com/ml/cygwin/2004-01/msg00772.html If so, should we roll back (never tried that!) or wait for a new release? This is *always* an individual decision. Why ask us? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: 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: error 1062 when starting distccd
You could try the following alternatives to cygrunsrv: Start distccd - /usr/bin/distccd --daemon --nice 4 --log-file /var/log/distccd.log --pid-file /var/run/distccd.pid Stop distccd - if [ -f /var/run/distccd.pid ]; then kill -s SIGTERM $(cat /var/run/distccd.pid); fi You could either create a shell function or alias to reduce typing. -Original Message- From: Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:51 AM To: Gerrit P. Haase Cc: Christian; cygwin Subject: Re: error 1062 when starting distccd Gerrit P. Haase schrieb: Hallo Christian, Hi Gerrit! I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with cygrunsrv.exe -S distccd, the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. -- Unsubscribe info: 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: simple newbie init question
On Jan 22 09:35, Christopher Faylor wrote: On Thu, Jan 22, 2004 at 11:17:41AM +0100, Corinna Vinschen wrote: On Jan 22 11:07, Corinna Vinschen wrote: For the records: The /etc/services symlink is just a convenience for the user. If you create a file in /etc instead, it won't be used by the OS. Never. Cygwin is using Winsock. Winsock uses the services file in ${SYSTEMROOT}/system32/drivers/etc on NT systems and in ${windir} on 9x systems. Can we have a FAQ entry for that, btw.? The symlink is supposed to be there to avoid just such a FAQ entry. If it is missing that's a bug which needs to be fixed. Sure, but *if* the symlink is missing for some reason and somebody thinks that a missing /etc/services is the reason that Cygwin crashes, then the FAQ entry helps to avoid any further mail on this issue. Well, on second thought... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: error 1062 when starting distccd
Here is someone's solution that uses cygrunsrv: http://lists.samba.org/archive/distcc/2004q1/001960.html You could try the following alternatives to cygrunsrv: Start distccd - /usr/bin/distccd --daemon --nice 4 --log-file /var/log/distccd.log --pid-file /var/run/distccd.pid Stop distccd - if [ -f /var/run/distccd.pid ]; then kill -s SIGTERM $(cat /var/run/distccd.pid); fi You could either create a shell function or alias to reduce typing. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
launching GUI programs via command-line ssh
I have been searching for a way to use su on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. thanks 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: launching GUI programs via command-line ssh
Start here: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=interact+with+desktop+sshd+site%3Acygwin.combtnG=Google+Search On Thu, 22 Jan 2004, DAVID SPEAR wrote: I have been searching for a way to use su on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
regarding about i686-pc-cygwin/bin/ld: cannot find -lX11
Dear Corinna or anyone who can help, I ran 'make' on my cygwin to compile one of my c program and got into the 'cannot find -lX11' error. I searched the cygwin archives and found Corinna's reply to someone running into the same problem back in Sep 2003. The solution was to set the LD_LIBRARY_PATH to look for the libX11 files. Thus I added my own CYGWIN_LIBX11 path to my .bashrc as such: export CYGWIN_LIBX11=/cygwin/usr/X11R6/lib export NS_HOME=/home/CHOY_PENG_FAI/ns-allinone-2.26/ export PATH=$NS_HOME/tcl8.3.2/unix:$NS_HOME/tk8.3.2/unix:$NS_HOME/bin:$PATH export LD_LIBRARY_PATH=$NS_HOME/tcl8.3.2/unix:$NS_HOME/tk8.3.2/unix:$NS_HOME/o tcl-1.0a8:$CYGWIN_LIBX11:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.3.2/library However, when I ran 'make' again, I still received the same error. Did I make any mistake somewhere? Kindly advise. Thank you. Rgds Choy Nanyang Technological University Singapore __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: launching GUI programs via command-line ssh
DAVID SPEAR wrote: I have been searching for a way to use su on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. My understanding is that this cannot be done. MS Windows is NOT a network aware windowing system like X. -- Don't take life too seriously, you won't get out alive. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
bash, dircolors, setsid and a stackdump
I've just encountered a very strange problem involving setsid, rxvt, bash and dircolors. I'm using CVS from Thu Jan 22 07:18:16 PST 2004. I have a simple script script.sh: ---begin script--- #!/bin/sh echo foo sleep 10 ---end script--- I have uncommented the dircolors line in the default /etc/profile and am using the default /etc/DIR_COLORS. I start an rxvt window with rxvt -e bash --login -i. From that window, I execute setsid bash script.sh and get a stackdump from sleep.exe. ---begin stackdump--- Exception: STATUS_ACCESS_VIOLATION at eip=6100256C eax=616727A4 ebx= ecx=6167 edx=435F534C esi=0EC8 edi=00BE ebp=0022DA88 esp=0022DA70 program=C:\cygwin\bin\sleep.exe cs=001B ds=0023 es=0023 fs=003B gs= ss=0023 Stack trace: Frame Function Args 0022DA88 6100256C (6167, 0002, 0022DAA8, ) /netrel/src/cygwin-20040122/winsup/cygwin/cygheap.cc:180 0022DAA8 610915CF (0A03001C, 0022EC9C, 0022E370, 0022E370) /netrel/src/cygwin-20040122/winsup/cygwin/syscalls.cc:104 0022EDB8 6108EFDE (0A04CFF0, 0A04C5C8, 0A04D138, 0003) /netrel/src/cygwin-20040122/winsup/cygwin/spawn.cc:794 0022EDE8 6108FC36 (0003, 0A04CFF0, 0A04C5C8, 0A04D138) /netrel/src/cygwin-20040122/winsup/cygwin/spawn.cc:975 0022EE08 6102729B (0A04CFF0, 0A04C5C8, 0A04D138, 61088DE7) /netrel/src/cygwin-20040122/winsup/cygwin/exec.cc:36 0022EEF8 610868F1 (0A04CFF0, 0A04C5C8, 0A04D138, )??:0 0022EF48 00414735 (0A04CE48, , 0A045398, )??:0 0022EFB8 004135B3 (0A04CD80, , , )??:0 0022EFF8 004107BF (0A045380, , , )??:0 0022F028 004101E4 (0A045380, , 004888F4, 0A041310)??:0 0022F058 004039F9 (61672C1C, 0002, 0002, 0001)??:0 0022F0B0 00401783 (0002, 61672C1C, 0A0411A8, 0022F108)??:0 0022F0F0 61005EB5 (0022F108, 77D447A6, , 77D42EC8) /netrel/src/cygwin-20040122/winsup/cygwin/dcrt0.cc:901 0022FF90 61005FA0 (, , , ) /netrel/src/cygwin-20040122/winsup/cygwin/dcrt0.cc:945 End of stack trace ---end stackdump--- I do not encounter the problem if I * run the command from a cmd.exe window either from within a bash --login -i shell or directly from cmd.exe; * comment out the dircolors line in /etc/profile; or * invoke setsid sh script.sh If I run setsid bash script.sh from an ash shell (running in a cmd.exe window or rxvt) I don't get a stackdump, but the shell won't accept another command until the script terminates. Dave #!/bin/sh #while true; do #if [ `/bin/procps -o ppid -p $$ --no-heading | /bin/awk '{print $1}'` = 1 ]; then #exit #fi echo foo sleep 10 #done Exception: STATUS_ACCESS_VIOLATION at eip=6100256C eax=616727A4 ebx= ecx=6167 edx=435F534C esi=0EC8 edi=00BE ebp=0022DA88 esp=0022DA70 program=C:\cygwin\bin\sleep.exe cs=001B ds=0023 es=0023 fs=003B gs= ss=0023 Stack trace: Frame Function Args 0022DA88 6100256C (6167, 0002, 0022DAA8, ) /netrel/src/cygwin-20040122/winsup/cygwin/cygheap.cc:180 0022DAA8 610915CF (0A03001C, 0022EC9C, 0022E370, 0022E370) /netrel/src/cygwin-20040122/winsup/cygwin/syscalls.cc:104 0022EDB8 6108EFDE (0A04CFF0, 0A04C5C8, 0A04D138, 0003) /netrel/src/cygwin-20040122/winsup/cygwin/spawn.cc:794 0022EDE8 6108FC36 (0003, 0A04CFF0, 0A04C5C8, 0A04D138) /netrel/src/cygwin-20040122/winsup/cygwin/spawn.cc:975 0022EE08 6102729B (0A04CFF0, 0A04C5C8, 0A04D138, 61088DE7) /netrel/src/cygwin-20040122/winsup/cygwin/exec.cc:36 0022EEF8 610868F1 (0A04CFF0, 0A04C5C8, 0A04D138, )??:0 0022EF48 00414735 (0A04CE48, , 0A045398, )??:0 0022EFB8 004135B3 (0A04CD80, , , )??:0 0022EFF8 004107BF (0A045380, , , )??:0 0022F028 004101E4 (0A045380, , 004888F4, 0A041310)??:0 0022F058 004039F9 (61672C1C, 0002, 0002, 0001)??:0 0022F0B0 00401783 (0002, 61672C1C, 0A0411A8, 0022F108)??:0 0022F0F0 61005EB5 (0022F108, 77D447A6, , 77D42EC8) /netrel/src/cygwin-20040122/winsup/cygwin/dcrt0.cc:901 0022FF90 61005FA0 (, , , ) /netrel/src/cygwin-20040122/winsup/cygwin/dcrt0.cc:945 End of stack trace Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Jan 22 08:11:42 2004 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: ~\bin C:\cygwin\usr\local\bin C:\cygwin\usr\local\bin\i686-pc-cygwin C:\cygwin\bin c:\jdk1.2.2\bin c:\ntreskit c:\oracle\ora817\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\oracle\ora920\bin C:\cygwin\usr\sbin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Rational\ClearCase\bin c:\Program Files\Rational\common c:\Program Files
Re: rsh as NONE SYSTEM user = permission denied
At 06:19 AM 1/22/2004, Steven Hartland you wrote: Thanks for a not very helpful response there Larry. Some of us do search the archives before asking questions you know. Oh, forgive me. I wasn't using my mind-reading abilities when I read your post. As you'll notice from the rest of the quoted message below, I pointed you to the problem reporting page that explains the leg work that you should do before posting. That includes searching the email archives (which you mentioned you did - again sorry for not reading your mind) as well as available docs (which you probably also did - we highly encourage that too and appreciate those who do it!). But the part you missed in all that prose was that you should always send your 'cygcheck' output. One of the first questions that occurred to me and that I couldn't answer from your original post was Is he using Cygwin's rsh?. 'cygcheck' output along with the other information I asked for would have allowed me and others on the list to eliminate that and other obvious questions and follow-up with more informed questions. So that's why I pointed you at that page and asked the questions I did. If you felt that was being unhelpful, sorry. I did the best I could. Clearly, you were better equipped to solve your problem than anyone else here (including me) so I guess it doesn't matter. You should be careful about chastising people who respond to your posts however. While I've developed a relatively thick skin over the years on this list, you can't expect that from everyone, especially when they're doing you the favor of any response. You just might be limiting your potential pool of help for future posts. I'm guessing that's not your real intent. Anyway, I'm glad you found a solution you find acceptable. snip - Original Message - From: Larry Hall To: Steven Hartland Sent: 19 January 2004 16:36 Subject: Re: rsh as NONE SYSTEM user = permission denied At 08:02 AM 1/19/2004, Steven Hartland you wrote: Has anyone gotten rsh to work with a none system user? I've followed the guide inetutils-1.3.2.README. telnet works fine but a simple: rsh -l myuser ls / fails with: Permission denied. Anyone got any ideas? N.B. anyway of getting a log file out of rshd? Yes. Please visit: Problem reports: http://cygwin.com/problems.html and provide the requested information. Also the output of 'cygcheck rsh' just before you would invoke 'rsh' would be helpful. -- Unsubscribe info: 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: regarding about i686-pc-cygwin/bin/ld: cannot find -lX11
-Original Message- From: cygwin-owner On Behalf Of fai choy I ran 'make' on my cygwin to compile one of my c program and got into the 'cannot find -lX11' error. I searched the cygwin archives and found Corinna's reply to someone running into the same problem back in Sep 2003. The solution was to set the LD_LIBRARY_PATH to look for the libX11 files. Thus I added my own CYGWIN_LIBX11 path to my .bashrc as such: export CYGWIN_LIBX11=/cygwin/usr/X11R6/lib That looks wrong to me. Most people would have those files in /usr/X11R6/lib. Most people don't even have a directory called 'cygwin' in the root folder of their cygwin install. I think you meant to say export CYGWIN_LIBX11=/usr/X11R6/lib and you got a bit mixed up. 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/
im not depressed anymore
Boo :))) pain releavers Link to the details http://www.V2.jinhai.info/m001p/index.php?id=m0027 Qipurkama http://www.dHa9Ttr.jinhai.info/m001p/byebye.html my fat wife lost hundred pounds makes you last forever at bed time im not depressed anymore -- Unsubscribe info: 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: grep doesn't work w/ latest cygwin
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of stillwater269 Sent: Wednesday, January 21, 2004 8:08 PM To: [EMAIL PROTECTED] Subject: grep doesn't work w/ latest cygwin I've downloaded the latest cygwin for the first time yesterday (1/20/04). Downloaded from cygwin.com, got the setup.exe, and ran it. My aim was to use postgres. initdb calls grep, and it fails missing the dll cygpcre.dll. initdb additionally fails missing the dll cygcrypt-0.dll. Although packages should theoretically depend on all the other packages they need, if this does happen you can search for files using setup package search here: http://cygwin.com/packages/ Then install the packages you find using the Full view in setup.exe HTH -- Rafael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Most mirrors don't have md5.sum
I noticed that the mirror site that I am using via rsync: rsync://mirrors.kernel.org/sources.redhat.com/cygwin/ lost the md5.sum file some time ago (2-3 months?). An informal and incomplete check of sites from http://cygwin.com/mirrors.html indicates these sites have the md5.sum file: http://www.online-mirror.org/cygwin/ http://cygwin.get-software.com/ and these sites do not have the md5.sum file: http://mirrors.kernel.org/sources.redhat.com/cygwin/ http://cygwin.thehostedbox.com/ http://sigunix.cwru.edu/pub/cygwin/ftp/ http://mirrors.theonlinerecordstore.com/cygwin/ http://sources-redhat.mirrors.redwire.net/cygwin/ http://cygwin.matrix.com.br/ http://ftp.univie.ac.at/packages/cygwin/ http://mirror.cpsc.ucalgary.ca/mirror/cygwin.com/ Should it be at every site? Thanks - Jim -- Unsubscribe info: 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.6 is there a problem with this build?
On Thu, 22 Jan 2004 10:14:50 -0600 (CST), Brian Ford [EMAIL PROTECTED] wrote: On Thu, 22 Jan 2004, zzapper wrote: Hi there are various grumbles about 1.5.6 in posts here, . I've noticed a few odd things, but can't pin them down. http://www.cygwin.com/ml/cygwin/2004-01/msg00772.html If so, should we roll back (never tried that!) or wait for a new release? This is *always* an individual decision. Why ask us? Because I can't get a clear picture from the NG of whether there actually is a problem (whenever there's a new version of any s/w there's always a flurry of noise) , if there is, whether a corrected version is shortly to arrive etc. I was hoping for an authoritative reply (but didn't wish to annoy anyone) zzapper (vim cygwin zsh) -- vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg? http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips -- Unsubscribe info: 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: running the latest cygwin on a windows 2003 server
On Thu, 22 Jan 2004, Stefan Zachow wrote: [snip] I only have to figure out how to do set global priviliges Stefan, Did you try the editrights tool? Grab it using Cygwin's setup.exe. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with mkgroup -d DOMAIN
Your version is only as recent as the one on the mirror you're using. If you used a stale mirror, you'll get an older version. Igor On Thu, 22 Jan 2004, Stefan Zachow wrote: Sorry Pierre, I replied to your personal address only, but it was bouncing back. uname -r says 1.5.5(0.94/3/2) when I have cygwin installed and update via setup, what I definitely did, why do I have an older version than expected? I thought it must be the latest version that I have. Stefan Pierre A. Humblet wrote: Except that cygwin 1.5.6 is supposed to work even for users who do not have that privilege. That's why I still would like to know what version you are running, and if you run Cygwin from the console or from terminal services. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: 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: Win XP crash with inetd ftp server
On Thu, 22 Jan 2004, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Charles L. Werner My XP Professional SP1 system had a kernel crash apparently related to the tcpip, related I believe to the inetd service running Here is the event information Symbolic name: ER_KRNLCRASH_LOG Error code 004e, parameter1 0002, parameter2 0058, parameter3 0007ff2f, parameter4 0001. The network adapter os a 3Com Gigabit LOM (3c940) Attached is the cygcheck -svr and the output of netstat -a Have others experienced system crashes with the cygwin inetd service? this has happened several times. When I disabled the inetd service, the sudden crashes ceased. Nonetheless, the odds are that this is only indirectly caused by running an ftp server. My bet is that your network card has a buggy driver. Error 0x4e means the virtual memory page frame number list has been corrupted. Only a kernel-mode device driver could hope to achieve this. It may be the case that the bug in the device driver is triggered by some ioctl that cygwin happens to send that most win32 applications don't, but your best bet is still going to be surfing the 3com website and seeing if there's a newer version of the driver. If you have windbg and the xp debugging symbols installed, you could check the memory.dmp file that was created by the bsod. Or you might wish to run the driver verifier on it in order to show that the driver definitely was or was not at fault. However these are fairly advanced topics and it really doesn't look like this is a cygwin problem. cheers, DaveK Yeah. See http://cygwin.com/acronyms/#BSOD. ;-) Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: 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: launching GUI programs via command-line ssh
Actually, most of the first ten or so hits are outdated. David, you can simply add the -i (--interactive) flag to cygrunsrv when setting up sshd (you can temporarily edit the ssh-host-config script -- line 556 for Win2003, line 563 otherwise). Note that this will cause a CMD window to pop up for the sshd process (can't be avoided). Perhaps we should add a -i option to ssh-host-config (using the attached patch)? Corinna, what do you think? Igor On Thu, 22 Jan 2004, Brian Ford wrote: Start here: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=interact+with+desktop+sshd+site%3Acygwin.combtnG=Google+Search On Thu, 22 Jan 2004, DAVID SPEAR wrote: I have been searching for a way to use su on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. == ChangeLog: 2004-01-22 Igor Pechtchanski [EMAIL PROTECTED] * ssh-host-config: Add --interactive-service parameter. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton--- ssh-host-config-orig2003-11-05 10:47:47.0 -0500 +++ ssh-host-config 2004-01-22 16:12:16.148145600 -0500 @@ -82,6 +82,10 @@ do shift ;; + -i | --interactive-service ) +interactive_flag=-i +;; + -w | --pwd ) password_value=$1 shift @@ -553,14 +557,14 @@ then [ -z ${_cygwin} ] _cygwin=ntsec if [ $_nt2003 -gt 0 -a ${sshd_server_in_sam} = yes ] then - if cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -a -D -u sshd_server -w ${_password} -e CYGWIN=${_cygwin} + if cygrunsrv -I sshd -d CYGWIN sshd $interactive_flag -p /usr/sbin/sshd -a -D -u sshd_server -w ${_password} -e CYGWIN=${_cygwin} then echo echo The service has been installed under sshd_server account. echo To start the service, call \`net start sshd' or \`cygrunsrv -S sshd'. fi else - if cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -a -D -e CYGWIN=${_cygwin} + if cygrunsrv -I sshd -d CYGWIN sshd $interactive_flag -p /usr/sbin/sshd -a -D -e CYGWIN=${_cygwin} then echo echo The service has been installed under LocalSystem account. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/