Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: "Ames Andreas (PN-SYS/A)" To: cygwin AT cygwin DOT com Subject: Problem with PATH env when starting sshd with cygrunsrv Date: Mon, 11 Mar 2002 15:22:14 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Hello, for the output of 'cygcheck -csv', see below. As you can see there is another, much older, cygwin1.dll in my path. If I use: 'cygrunsrv --install sshd --path /usr/sbin/sshd --env PATH="\"/bin:$PATH:/bin\"" --args -D' to install the sshd service (or no path spec at all), starting sshd from cygrunsrv (-S) fails, presenting a (windows) message box telling me, that the entry point '_ctype_' is missing from cygwin1.dll. With 'objdump' I can see that '_ctype_' is really missing from 'c:/programme/sniff/bin/cygwin1.dll' but (as expected) it's present within '/bin/cygwin1.dll'. If I use: 'cygrunsrv --install sshd --path /usr/sbin/sshd --env PATH=/bin --args -D' everything works well (so I have a running sshd here). I guess it's safe to assume that sshd uses 'c:/programme/sniff/bin/cygwin1.dll' in the first case. I'd only like to know what I'm doing wrong with the first invocation above. -------------------cygcheck -csv-------------------------------------- Cygwin Package Information Last downloaded files to: C:\My Download Files\cygwin Last downloaded files from: ftp://ftp.inf.tu-dresden.de/software/windows/cygwin32 Package Version ash 20020131-1 autoconf 2.52a-1 autoconf-devel 2.52-4 autoconf-stable 2.13-4 automake 1.5b-1 automake-devel 1.5-5 automake-stable 1.4p5-5 bash 2.05a-3 bc 1.06-1 binutils 20011002-1 bison 1.33-1 byacc 1.9-1 bzip2 1.0.1-6 clear 1.0 compface 1.4-5 cpio 2.4.2 cron 3.0.1-6 crypt 1.0-1 ctags 5.2-1 curl 7.9.3-1 cvs 1.11.0-1 cygrunsrv 0.95-1 cygutils 0.9.9-1 cygwin 1.3.10-1 dejagnu 20010117-1 diff 0.0 expect 20010117-1 file 3.37-1 fileutils 4.1-1 findutils 4.1 flex 2.5.4-1 fortune 1.8-2 gawk 3.0.4-1 gcc 2.95.3-5 gdb 20010428-3 gdbm 1.8.0-4 gettext 0.10.40-1 ghostscript 6.51-4 gperf 0.0 grep 2.5g groff 1.17.2-1 gzip 1.3.2-1 indent 2.2.7-2 inetutils 1.3.2-17 irc 20010101-1 jbigkit 1.2-6 jpeg 6b-7 less 358-3 libintl 0.10.38-3 libintl1 0.10.40-1 libncurses5 5.2-1 libncurses6 5.2-8 libpng 1.0.12-1 libpng2 1.0.12-1 libreadline4 4.1-2 libreadline5 4.2a-1 libtool 20010531a-1 libtool-devel 20020202-1 libtool-stable 1.4.2-2 libxml2 2.4.13-1 libxslt 1.0.10-1 login 1.4-3 lynx 2.8.4-1 m4 0.0 make 3.79.1-5 man 1.5g-2 mingw-runtime 1.2-1 mktemp 1.4-1 ncftp 3.1.2-1 ncurses 5.2-8 newlib-man 20001118-1 openssh 3.1p1-1 openssl 0.9.6c-3 openssl-devel 0.9.6c-2 patch 2.5-3 pcre 3.7-1 perl 5.6.1-2 pkgconfig 0.10.0-1 popt 1.6.2-1 postgresql 7.1.3-2 python 2.2-1 readline 4.2a-1 regex 4.4-2 rsync 2.5.2-1 rxvt 2.7.2-10 sed 3.02-1 sh-utils 2.0-2 sharutils 4.2.1-2 shutdown 1.2-2 tar 1.13.19-1 tcltk 20001125-1 tcsh 6.11.00-4 termcap 20010825-1 terminfo 5.2-1 texinfo 4.0-5 textutils 2.0.21-1 tiff 3.5.7-1 time 1.7-1 unzip 5.41-1 vim 6.0.93-1 w32api 1.2-1 wget 1.8.1-1 which 1.5-1 whois 4.5.17-1 xpm-nox 4.2.0-1 zip 2.3-1 zlib 1.1.3-7 Cygwin Win95/NT Configuration Diagnostics Current System Time: Mon Mar 11 14:46:20 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 Path: c:\texmf\miktex\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\jdk1.3.1\bin c:\texmf\miktex\bin c:\programme\sniff\bin c:\WINNT\SYSTEM32 c:\WINNT c:\WINNT\SYSTEM32\WBEM c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin c:\Program Files\Microsoft Visual Studio\Common\Tools c:\Program Files\Microsoft Visual Studio\VC98\bin c:\emacs\bin c:\Program Files\Python21 c:\texmf\miktex\bin c:\emacs\bin C:\cygwin\home\ama2fr\bin C:\cygwin\usr\X11R6\bin c:\aspell SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `ntsec tty' HOME = `C:\cygwin\home\ama2fr' MAKE_MODE = `unix' PWD = `/home/ama2fr' USER = `ama2fr' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\ama2fr\Application Data' COLORFGBG = `default;default;0' COLORTERM = `rxvt-xpm' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `FR102060' COMSPEC = `C:\WINNT\system32\cmd.exe' CVSROOT = `:pserver:ama2fr AT atlas DOT fr DOT de DOT tenovis DOT com:/home/cvsroot' DISPLAY = `:0' FTP_proxy = `proxy-fr.de.tenovis.com' HOMEDRIVE = `U:' HOMEPATH = `\' HOMESHARE = `\\FR1146\AMA2FR$' HTTP_proxy = `proxy-fr.de.tenovis.com' INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include' LANG = `de_DE' LCCDIR = `C:\PROGRA~1\lcc\4.1\bin' LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib' LOGONSERVER = `\\TNDERU11' MANPATH = `:/usr/ssl/man' MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98' NO_PROXY = `*.intranet.tenovis.com,*.tenovis.de,*.de.tenovis.com' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/info' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' OSTYPE = `cygwin' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 2, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0502' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SNIFF_DIR = `c:\programme\sniff' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\ama2fr\LOCALS~1\Temp' TERM = `rxvt' TMP = `c:\DOCUME~1\ama2fr\LOCALS~1\Temp' USERDOMAIN = `TNBK1' USERNAME = `AMA2FR' USERPROFILE = `C:\Documents and Settings\ama2fr' WINDIR = `C:\WINNT' WINDOWID = `167843664' _ = `/usr/bin/cygcheck' Use `-r' to scan registry a: fd N/A N/A c: hd NTFS 8048Mb 73% CP CS UN PA FC d: cd N/A N/A e: net NTFS 60759Mb 79% CP CS UN PA FC g: net NTFS 2047Mb 94% CP CS UN PA FC i: net NTFS 17155Mb 83% CP CS PA SF j: net Samba 4063Mb 0% CP UN home k: net NTFS 17155Mb 83% CP CS PA ama2fr l: net NTFS 17155Mb 67% CP CS PA Smarties o: net NTFS 28663Mb 89% CP CS UN PA FC p: net NTFS 12283Mb 55% CP CS UN PA FC u: net NTFS 86776Mb 100% CP CS UN PA FC E_A-B_FR1146 a: /cygdrive/a user textmode . / user binmode,noumount C:/cygwin / system binmode C:/cygwin/bin /usr/bin system binmode C:/cygwin/lib /usr/lib system binmode . / user binmode,noumount Found: C:\cygwin\bin\bash.exe Found: c:\programme\sniff\bin\bash.exe Warning: C:\cygwin\bin\bash.exe hides c:\programme\sniff\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: c:\programme\sniff\bin\cat.exe Warning: C:\cygwin\bin\cat.exe hides c:\programme\sniff\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: c:\programme\sniff\bin\find.exe Warning: C:\cygwin\bin\find.exe hides c:\programme\sniff\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: c:\programme\sniff\bin\ls.exe Warning: C:\cygwin\bin\ls.exe hides c:\programme\sniff\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe Found: c:\programme\sniff\bin\sh.exe Warning: C:\cygwin\bin\sh.exe hides c:\programme\sniff\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 "cygbz21.0.dll" v0.0 ts=2000/11/21 0:53 621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2002/1/16 10:54 107k 2002/01/23 C:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0 "cygcurl-2.dll" v0.0 ts=2002/1/23 19:25 73k 2002/01/16 C:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0 "cygexslt-0.dll" v0.0 ts=2002/1/16 10:06 45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 7:28 35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 7:03 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/20 4:05 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/7 5:34 20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2002/1/13 2:27 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 10:28 21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2001/6/20 19:09 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2000/11/26 2:43 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2000/11/26 2:43 45k 2002/02/08 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0 "cygjbig1.dll" v0.0 ts=2002/2/8 0:59 119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 "cygjpeg6b.dll" v0.0 ts=2002/2/9 6:19 35k 2002/02/04 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0 "cygltdl-3.dll" v0.0 ts=2002/2/4 2:56 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 7:27 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 7:03 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 7:17 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 7:03 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 7:27 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 7:03 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2001/11/21 23:15 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2001/11/21 23:15 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/7 5:34 121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2002/1/13 2:27 66k 2001/11/20 C:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0 "cygregex.dll" v0.0 ts=2001/11/20 15:44 156k 2002/01/16 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2002/1/16 10:54 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2000/11/26 2:39 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2000/11/26 2:39 253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 "cygtiff3.dll" v0.0 ts=2002/2/10 9:34 623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2000/11/26 2:43 612k 2002/01/16 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0 "cygxml2-2.dll" v0.0 ts=2002/1/16 5:24 41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-noX4.dll" v0.0 ts=2002/1/20 19:49 46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-X4.dll" v0.0 ts=2002/1/20 19:50 202k 2002/01/16 C:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0 "cygxslt-1.dll" v0.0 ts=2002/1/16 9:52 22k 2002/01/16 C:\cygwin\bin\cygxsltbreakpoint-1.dll - os=4.0 img=1.0 sys=4.0 "cygxsltbreakpoint-1.dll" v0.0 ts=2002/1/16 10:05 50k 2002/01/20 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2002/1/20 20:41 751k 2002/02/25 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2002/2/25 17:14 Cygwin DLL version info: DLL version: 1.3.10 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 51 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Mon Feb 25 11:14:34 EST 2002 Shared id: cygwin1S3 446k 1999/07/12 c:\programme\sniff\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1998/12/4 5:39 Cygwin DLL version info: DLL version: 2.0.1 DLL epoch: 19 DLL bad signal mask: 19005 API major: 0 API minor: 3 Shared data: 1 DLL identifier: cygwin Mount registry: 1 Cygnus registry name: Cygnus Solutions Cygwin registry name: CYGWIN.DLL setup Program options name: Program Options Cygwin mount registry name: b15.0 Build date: Thu Dec 3 20:39:18 PST 1998 CVS taggnu-win32-b20-branch: Shared id: cygwinS1 Use -h to see help about each section -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/