Re: inet_ntop support in cygwin?
On Fri, Mar 29, 2002 at 02:16:33PM -0700, Harris, Jeffrey A wrote: > I just completed the install and download of all the packages of cygwin. > When compiling a program in cygwin I get the following.. > > gcc -g -Wall -c connect.c > connect.c: In function `lookup_host': > connect.c:26: warning: implicit declaration of function `inet_ntop' > connect.c:26: `INET_ADDRSTRLEN' undeclared (first use in this function) > connect.c:26: (Each undeclared identifier is reported only once > connect.c:26: for each function it appears in.) > connect.c: In function `connection_open': > connect.c:48: `INET_ADDRSTRLEN' undeclared (first use in this function) > connect.c:68: warning: implicit declaration of function `inet_pton' > connect.c:48: warning: unused variable `hostname' > make: *** [connect.o] Error 1 > > A search from / showed that the inet_ntop() function and INET_ADDRSTRLEN > define are not defined anywhere. Does cygwin support inet_ntop()? No INET6 support in Cygwin so far. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/
RE: Printing postscript file
Michael A Chase wrote: >> >> lpr -P //host/name gmeta1.ps- what to put in //host etc. ? >> > >Check your Window's printer definitions. 'host' is the name of the server >hosting the printer. 'name' is the shared name of the printer in that >host. >If its a local printer, use your computer's name and the printer's name. Doesn't work for me on XP. Mine is a local printer, my computer's name is -- according to the value of the COMPUTERNAME envvar -- 'JASON', and my printer name is -- according to the Printers and Faxes control panel -- 'HP LaserJet 1200 Series PCL'. This information is also given thus on the Windows XP Printer Test Page. However: $ lpr -P "//JASON/HP LaserJet 1200 Series PCL" eight.c lpr: can't open '//JASON/HP LaserJet 1200 Series PCL' for writing lpr: The printer name is invalid. (Yes, I know I shouldn't be sending it a textfile but rather PCL, but I don't think that's the issue here.) Just for laughs I tried substituting the 'Port name", whatever that is, for the 'Printer name', with equally dismal results: $ lpr -P "//JASON/DOT4_001" eight.c lpr: can't open '//JASON/DOT4_001' for writing lpr: The printer name is invalid. I have read all the postings in this on-again, off-again thread, but although they raise, they do not appear to solve, the issue which is that some of us cannot connect to our printer *at all* under Cygwin, and it always comes down to the fact the we do not know how to refer to it *symbolically* (an ability which all the various fixes assume). It may be relevant that my printer is connected via USB, but then again, private correspondence with someone else having these problems, and who is connected via the parallel port I gather, suggests that it may not be. Cygcheck output attached as file cygout.txt. _ Jason C. Johnston mailto:[EMAIL PROTECTED] http://www.astadhyayi.net Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Apr 02 19:05:59 2002 Windows XP Professional Ver 5.1 Build 2600 Path: C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj\dev\bin C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\bin c:\Tcl\bin c:\texmf\miktex\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\emacs\emacs-21.1\bin SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj' MAKE_MODE = `unix' PWD = `/home/jcj/dev/src' USER = `Jason C. Johnston' !:: = `::\' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Jason C. Johnston\Application Data' CLIENTNAME = `Console' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `JASON' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVSEDITOR = `/usr/bin/vim' CVSROOT = `/usr/local/cvsroot' FIGNORE = `.o:~' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\Jason C. Johnston' LOGONSERVER = `\\JASON' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/home/jcj' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 1 Stepping 2, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0102' PROGRAMFILES = `C:\Program Files' PROMPT = `@ ' PS1 = `\[\033]0;\w\007\033[32m\]$\[\033[33m\033[0m\] ' SESSIONNAME = `Console' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\DOCUME~1\JASONC~1.JOH\LOCALS~1\Temp' TERM = `cygwin' TMP = `c:\DOCUME~1\JASONC~1.JOH\LOCALS~1\Temp' USERDOMAIN = `JASON' USERNAME = `Jason C. Johnston' USERPROFILE = `C:\Documents and Settings\Jason C. Johnston' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/home (default) = `C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home' flags = 0x HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:/cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:/cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:/cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A
"ls" command halt in ftp
When I use Cygwin 1.3.3 ftp server (installed in w2k advanced server SP2) and run "ls" command, win2k command prompt C:\>ftp servername Connected to servername.xxx.xxx 220 servername FTP server (GNU inetutils 1.3.2) ready. : : User logged in ftp> ls The session halts. Any suggestion ? thanks ! ___ Do You Yahoo!? Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk -- 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/
ssh from winxp -> RH-Linux w. Publickey
Hello cygwin, Ok, i just browsed 10 pages of the mailing-list archives for the problem but that did not change anything. :-( I´ve got a new Cygwin install on my WinXP machine and a updated openssh on the RedHat Linux Machine. I got ntsec usage running fine with correct accounts (domain user n stuff). Doing a "ssh unixserver" works fine, asks me for a password and i´m in, but i want public key authentication (for batch-file usage). I ran ssh-user-config and ssh-host-config. on WinXP: ls -al ~/.ssh/ total 3 drwx--2 holtkamp RSIDUS-a0 Apr 2 10:53 . drwx--3 holtkamp RSIDUS-a0 Mar 28 16:04 .. -rw---1 SYSTEM SYSTEM883 Mar 28 15:27 id_rsa -rw-r--r--1 SYSTEM SYSTEM224 Mar 28 15:27 id_rsa.pub -rw-r--r--1 holtkamp RSIDUS-a 246 Apr 2 10:53 known_hosts on RH-Linux: ls -al ~/.ssh/ drwx--2 holtkamp holtkamp 1024 Apr 2 10:52 . drwx-- 14 holtkamp holtkamp 1024 Mar 28 11:00 .. -rw-r-1 holtkamp holtkamp 224 Mar 28 15:27 .authorized_keys -rw---1 holtkamp holtkamp 887 Mar 28 11:10 id_rsa -rw-r--r--1 holtkamp holtkamp 240 Mar 28 11:10 id_rsa.pub -rw-r--r--1 holtkamp holtkamp 3035 Mar 28 11:11 known_hosts The id_rsa.pub on the Cygwin-Machine matches the .authorized_keys on the Linux Machine. SSH with -vvv gives me the following (only listing interestening part) debug3: check_host_in_hostfile: match line 1 debug3: check_host_in_hostfile: filename /home/holtkamp/.ssh/known_hosts debug3: check_host_in_hostfile: match line 1 debug1: Host 'midas.rsidus.riege.de' is known and matches the RSA host key. debug1: Found key in /home/holtkamp/.ssh/known_hosts:1 debug1: bits set: 1594/3191 debug1: ssh_rsa_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try pubkey: /home/holtkamp/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password So what now ? I don´t know what i made wrong, permissions are right n stuff, connection with password works fine and the debug shows no problem with the key ... i would say it´s a connection problem because it says "did on send a packet" but i´m unsure ... Any suggestions ? -- Daniel Holtkamp Riege Software International GmbH System AdministrationMollsfeld 10 40670 Meerbusch, Germany Email: [EMAIL PROTECTED] Phone: +49-2159-9148-41 Fax: +49-2159-9148-11 - -- 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/
"ls -l or dir" command halt in ftp
When I use Cygwin 1.3.3 ftp server (installed in w2k advanced server SP2) and run "ls" command, win2k command prompt C:\>ftp servername Connected to servername.xxx.xxx 220 servername FTP server (GNU inetutils 1.3.2) ready. : : User logged in ftp> ls -l (or dir) The session halts. Any suggestion ? thanks ! ___ Do You Yahoo!? Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk -- 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/
trouble using scanf on double arguments under Windows2000
scanf() does not always work the way I think it should. Sample program: #include int main() { double dstat, ddyn; dstat=2.; scanf("%lf", &ddyn); printf("%lf %lf\n", dstat, ddyn); return 0; } usage: hugo hugo.out Sample input file hugo.in: 20.1 Output file hugo.out: 2.00 201.00 compilation: make hugo gcc -v yields: Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs gcc version 2.95.3-4 (cygwin special) Dr. Roland Sonnenschein Abt. BV1TEF Brüel & Kjaer Vibro GmbH Landwehrstraße 55 D-64293 Darmstadt Tel.: +49(0)61 51 - 32 18 99 Fax: +49(0)61 51 - 32 18 69 Email: [EMAIL PROTECTED] -- 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/
1.1.10 Problem: mv and directories in use
On windows XP & 2000: open 2 instances of cygwin instance 1: mkdir /1 && echo "tst" > /1/tst && cd /1 instance 2: cd / mv /1 /2 Instead of returning an error, something like "/1" is in use, it copies /1 to /2, THEN returns: mv: cannot remove directory `/1': Permission denied mv: cannot remove `/1': Permission denied Shouldn't it say something like: mv: cannot move `/1': Directory in use Regards, Xavier Bergade. -- 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/
Re: Problem in downloading
I have the same problem... with several (I tryied 10 sites) to download cygwin. I was thinking thas was the proxy configuration but it was not. [EMAIL PROTECTED] wrote: > Hello, > > We tried many times to download the full package of CYGWIN from > various FTP sites using Setup.exe version 2.194.2.22 but we are > getting following error after 98% (246MB) downloading. > > "DOWNLOADING INCOMPLETE" try again. > > Please let us know the solution. > > Thanks, > Deepu Arora > > ST Microelectronics > > >-- >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/ > > -- 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/
RE: 1.1.10 Problem: mv and directories in use
> -Original Message- > From: Xavier Bergade [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 8:31 PM > To: [EMAIL PROTECTED] > Subject: 1.1.10 Problem: mv and directories in use > > > On windows XP & 2000: > open 2 instances of cygwin > > instance 1: > mkdir /1 && echo "tst" > /1/tst && cd /1 > > instance 2: > cd / > mv /1 /2 > > Instead of returning an error, something like "/1" is in use, > it copies /1 to /2, THEN returns: > mv: cannot remove directory `/1': Permission denied > mv: cannot remove `/1': Permission denied > > Shouldn't it say something like: > mv: cannot move `/1': Directory in use Patches gratefully accepted. Rob -- 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/
Re: 1.1.10 Problem: mv and directories in use
I believe the main source of the problem is a Windows "BUG" (Not really a bug, that is how Windows is "intended" to work). Anyways, it is an undesirable "feature" for sure, and very annoying when in the Cygwin enviornment. For the average joe Windows user in Windows Explorer it "kind of" makes sense that Windows works this way. If bash (or cmd) is in a particular directory just sitting at the prompt, that directory is in use, then that problem will arise if the directory is attempted to be moved. It is very annoying. As a partial work around, bash could be maybe modified to never "sit" in the current directory, but instead to hang out on the root of the drive, and only switch to the current directory when a command is run. A similar problem (due to the same, or related, Windows "BUG") manifests itself if you try to overwrite an executable that has an instance of itself currently running. That is a very annoying "feature" as well. Though I agree with you, it would be nice if mv said ahead of time that it could not do it and saved me the clean up hassles when it fails. On Tuesday 02 April 2002 04:31, Xavier Bergade wrote: > On windows XP & 2000: > open 2 instances of cygwin > > instance 1: > mkdir /1 && echo "tst" > /1/tst && cd /1 > > instance 2: > cd / > mv /1 /2 > > Instead of returning an error, something like "/1" is in use, it copies /1 > to /2, THEN returns: > mv: cannot remove directory `/1': Permission denied > mv: cannot remove `/1': Permission denied > > Shouldn't it say something like: > mv: cannot move `/1': Directory in use > > Regards, > > Xavier Bergade. -- 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/
Re: 1.1.10 Problem: mv and directories in use
> I believe the main source of the problem is a Windows "BUG" (Not really a > bug, that is how Windows is "intended" to work). Anyways, it is an > undesirable "feature" for sure, and very annoying when in the Cygwin > enviornment. For the average joe Windows user in Windows Explorer it "kind > of" makes sense that Windows works this way. It is also due, in part, to the way Cygwin's fhandler's work. > If bash (or cmd) is in a particular directory just sitting at the prompt, > that directory is in use, then that problem will arise if the directory is > attempted to be moved. It is very annoying. As a partial work around, bash > could be maybe modified to never "sit" in the current directory, but instead > to hang out on the root of the drive, and only switch to the current > directory when a command is run. I agree, try submitting a patch for bash and see if it gets accepted. > > A similar problem (due to the same, or related, Windows "BUG") manifests > itself if you try to overwrite an executable that has an instance of itself > currently running. That is a very annoying "feature" as well. This is because the executable files are memory mapped so that currently running applications don't take up so much memory. > > Though I agree with you, it would be nice if mv said ahead of time that it > could not do it and saved me the clean up hassles when it fails. I disagree. Ok, some files maybe can't be deleted at the present time, but say I want a directory in its new location now. If mv refused to act when one or more files were locked I'd have to copy the whole directory and then come back and delete the old directory later. What if I forget? I lose a whole load of disk space, whereas if only one or two files are left behind that's far more acceptable. It's better for mv to execute the user's command as far as possible. > > Instead of returning an error, something like "/1" is in use, it copies /1 > > to /2, THEN returns: > > mv: cannot remove directory `/1': Permission denied > > mv: cannot remove `/1': Permission denied > > > > Shouldn't it say something like: > > mv: cannot move `/1': Directory in use No. Regards Chris -- 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/
RE: Printing postscript file
Problem is it can not find the printer for writing; neither the local, nor the network. I tried the postscript file generated by ghostsscript with the same result. Dilip Paul -Original Message- From: Jason Tishler [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 4:24 PM To: Paul Dilip K NPRI Cc: Cygwin Subject: Re: Printing postscript file Paul, Please keep your replies on-list! On Mon, Apr 01, 2002 at 01:13:44PM -0500, Paul Dilip K NPRI wrote: > I already have a ps graphics file. I need not convert a text file to > ps file. I understand the above. > Also I am hooked up to a postscript network printer- hp lasetjet > 1200 PCL 6. How do I send this file to the network ps printer so that it ^^^ The above seems to indicate that your printer is a PCL and *not* a PostScript printer. > will print the graphics? What to use for device name(ip address? printer > name? what is host name?) Did you read the following? http://sources.redhat.com/ml/cygwin/2000-11/msg01442.html It shows how to convert from PostScript to PCL. Jason -- 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/
Creating DLLs using c++/g++
Hi, I have created DLLs by using the following command "gcc -Wl,--out-implib,libmydll.import.a -shared -o mydll.dll mydll.o" and used with a VC++ application. But I have tried the same command with c++ and g++. It's creating the DLL. But the functionality is not accessible by VC++ application. Can anybody give help on this problem? Thank You, Regards, Suhanthan, V. Suhanthan Vanniyasingam www.eRunway.com -- 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/
Re: trouble using scanf on double arguments under Windows2000
Hi Dr. Sonnenschein and the Cygwin newsgroup, I have had the same problem using cygwin and gcc, I believe I am using the latest version of gcc. I thought I was doing something wrong in my program, but I took the same program into Linux, Visual C++ and HPUX 10.20 and they ran exactly the way they are supposed to run with the correct results. My program was using input from the user instead of from a file, but my results were exactly the same as the output from your sample program. I finally gave up on Cygwin and gcc and write my programs on a couple of old HP-UX 10.20 workstations with the latest gcc and have no problems. I like Cygwin and will continue to support it and would like to continue playing with it and writing programs under Cygwin. I do not want to blame gcc or Cygwin because I like them, but I want to know what is causing this behavior as well and is there a workaround. Thank you and have a nice day! James E. Merritt --- "Sonnenschein, Roland Dr." <[EMAIL PROTECTED]> wrote: > scanf() does not always work the way I think it > should. > > Sample program: > > #include > > int main() > { > double dstat, ddyn; > dstat=2.; > scanf("%lf", &ddyn); > printf("%lf %lf\n", dstat, ddyn); > return 0; > } > > usage: > hugo hugo.out > > Sample input file hugo.in: > 20.1 > > Output file hugo.out: > 2.00 201.00 > > compilation: > make hugo > > gcc -v yields: > Reading specs from > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs > gcc version 2.95.3-4 (cygwin special) > > > Dr. Roland Sonnenschein > Abt. BV1TEF > Brüel & Kjaer Vibro GmbH > Landwehrstraße 55 > D-64293 Darmstadt > Tel.: +49(0)61 51 - 32 18 99 > Fax: +49(0)61 51 - 32 18 69 > Email: [EMAIL PROTECTED] > > -- > 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/ > __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://http://taxes.yahoo.com/ -- 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/
Re: openssl - MANPATH - bug?
Wrong list. I've modified the headers to the appropriate list. You've assumed that MANPATH had a previous value. Earnie. "Gerrit P. Haase" wrote: > > Hallo, > > This > $ cat /etc/profile.d/openssl.sh > export MANPATH="${MANPATH}:/usr/ssl/man" > > results in: > $ set | grep MANPATH > MANPATH=:/usr/ssl/man > > What am I doing wrong? > > Gerrit > -- > =^..^= _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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/
Re: rsync question
On Mon, Apr 01, 2002 at 01:06:04PM -0800, Brian Warn wrote: > In case you're wondering, I'm setting this script up as a W2K scheduled > task -- Whenever I need to run a Cygwin thing as a Scheduled Task I use: c:\cygwin\bin\bash.exe --login -c "" in the "Run:" box and c:\cygwin\home\ in the "Start in:" box. -- Ryan T. Sammartino http://members.shaw.ca/ryants/ The state of innocence contains the germs of all future sin. -- Alexandre Arnoux, "Etudes et caprices" -- 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/
Re: openssl - MANPATH - bug?
Earnie schrieb: > Wrong list. I've modified the headers to the appropriate list. Why??? Openssl IS a Cygwin Application. > You've assumed that MANPATH had a previous value. This is the default file which gets installed with openssl by setup.exe. So if there is no previous value for MANPATH this cannot work. Other application are looking for MANPATH in the environment and don't find other manpages in /usr/man e.g. > Earnie. > "Gerrit P. Haase" wrote: >> >> Hallo, >> >> This >> $ cat /etc/profile.d/openssl.sh >> export MANPATH="${MANPATH}:/usr/ssl/man" >> >> results in: >> $ set | grep MANPATH >> MANPATH=:/usr/ssl/man >> >> What am I doing wrong? >> >> Gerrit >> -- >> =^..^= Gerrit -- =^..^= -- 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/
RE: ssh from winxp -> RH-Linux w. Publickey
Daniel, Not really a cygwin question. The files on the unix end should not be .authorized_keys but authorized_keys - or even authorized_keys2 if you want ssh2 Donald. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Holtkamp Sent: 02 April 2002 10:25 To: [EMAIL PROTECTED] Subject: ssh from winxp -> RH-Linux w. Publickey Hello cygwin, Ok, i just browsed 10 pages of the mailing-list archives for the problem but that did not change anything. :-( I´ve got a new Cygwin install on my WinXP machine and a updated openssh on the RedHat Linux Machine. I got ntsec usage running fine with correct accounts (domain user n stuff). Doing a "ssh unixserver" works fine, asks me for a password and i´m in, but i want public key authentication (for batch-file usage). I ran ssh-user-config and ssh-host-config. on WinXP: ls -al ~/.ssh/ total 3 drwx--2 holtkamp RSIDUS-a0 Apr 2 10:53 . drwx--3 holtkamp RSIDUS-a0 Mar 28 16:04 .. -rw---1 SYSTEM SYSTEM883 Mar 28 15:27 id_rsa -rw-r--r--1 SYSTEM SYSTEM224 Mar 28 15:27 id_rsa.pub -rw-r--r--1 holtkamp RSIDUS-a 246 Apr 2 10:53 known_hosts on RH-Linux: ls -al ~/.ssh/ drwx--2 holtkamp holtkamp 1024 Apr 2 10:52 . drwx-- 14 holtkamp holtkamp 1024 Mar 28 11:00 .. -rw-r-1 holtkamp holtkamp 224 Mar 28 15:27 .authorized_keys -rw---1 holtkamp holtkamp 887 Mar 28 11:10 id_rsa -rw-r--r--1 holtkamp holtkamp 240 Mar 28 11:10 id_rsa.pub -rw-r--r--1 holtkamp holtkamp 3035 Mar 28 11:11 known_hosts The id_rsa.pub on the Cygwin-Machine matches the .authorized_keys on the Linux Machine. SSH with -vvv gives me the following (only listing interestening part) debug3: check_host_in_hostfile: match line 1 debug3: check_host_in_hostfile: filename /home/holtkamp/.ssh/known_hosts debug3: check_host_in_hostfile: match line 1 debug1: Host 'midas.rsidus.riege.de' is known and matches the RSA host key. debug1: Found key in /home/holtkamp/.ssh/known_hosts:1 debug1: bits set: 1594/3191 debug1: ssh_rsa_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try pubkey: /home/holtkamp/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password So what now ? I don´t know what i made wrong, permissions are right n stuff, connection with password works fine and the debug shows no problem with the key ... i would say it´s a connection problem because it says "did on send a packet" but i´m unsure ... Any suggestions ? -- Daniel Holtkamp Riege Software International GmbH System AdministrationMollsfeld 10 40670 Meerbusch, Germany Email: [EMAIL PROTECTED] Phone: +49-2159-9148-41 Fax: +49-2159-9148-11 - -- 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/ -- 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/
Re: stacktrace from withn an exec upon error condition
There's been code in MSJ (Microsoft Systems Journal) ages ago by Matt Pietrek, in several articles. Do a google search for "Pietrek stackwalk" for instance. http://iguana.cern.ch/lxr/source/IGUANA/src/Ig_Imports/classlib/src/debug.cxx#1099 has stack trace code you can use on a large number of systems. The library is GPL, drop me a mail if you want to use it. //lat -- Nothing will ever be attempted, if all possible objections must be first overcome. --Dr. Johnson -- 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/
Re: ssh from winxp -> RH-Linux w. Publickey
On Tue, Apr 02, 2002 at 02:20:57PM +0100, Donald MacVicar wrote: > Daniel, > Not really a cygwin question. The files on the unix end should not be > .authorized_keys but authorized_keys - or even authorized_keys2 if you want > ssh2 Since OpenSSH 3.0 on the server machine you can store both, SSH1 and SSH2 keys in authorized_keys. No additional authorized_keys2 needed anymore. And yes, Donald is right, remove the dot. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/
Re: openssl - MANPATH - bug?
On Tue, Apr 02, 2002 at 03:10:52PM +0200, Gerrit P. Haase wrote: > Earnie schrieb: > > > Wrong list. I've modified the headers to the appropriate list. > > Why??? Openssl IS a Cygwin Application. > > > You've assumed that MANPATH had a previous value. > > This is the default file which gets installed with openssl by setup.exe. > So if there is no previous value for MANPATH this cannot work. > Other application are looking for MANPATH in the environment and don't > find other manpages in /usr/man e.g. Did you actually try it? If MANPATH has a leading colon, it's *appended* to the internal search path. If not, it's used exclusivly. $ export MANPATH="/usr/ssl/man" $ man man No manual entry for man $ export MANPATH=":/usr/ssl/man" $ man man [Man page follows] Corinna > > > Earnie. > > > "Gerrit P. Haase" wrote: > >> > >> Hallo, > >> > >> This > >> $ cat /etc/profile.d/openssl.sh > >> export MANPATH="${MANPATH}:/usr/ssl/man" > >> > >> results in: > >> $ set | grep MANPATH > >> MANPATH=:/usr/ssl/man -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/
More setup wishes
I would like to be able to maximize/minimize the chooser window. I've got this nice big 21" monitor and the chooser window sits nicely in the middle of the screen. I want to be able to see more of the list at once. Note, I've declared this as a wish which means I don't plan to code it. Earnie. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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/
RE: Printing postscript file
I don't use XP, so this is based on my NT/W2K/95/ME experience, but when used in conjunction with '//host', 'name' should be the name that it is shared as -- from the "Sharing..." menu option. Type \\JASON in your Start->Run dialog -- that will show you the shares that are exposed. HTH, Chris > -Original Message- > From: Jason C. Johnston [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 3:11 AM > To: [EMAIL PROTECTED] > Subject: RE: Printing postscript file > > Michael A Chase wrote: > >> > >> lpr -P //host/name gmeta1.ps- what to put in //host etc. ? > >> > > > >Check your Window's printer definitions. 'host' is the name of the > server > >hosting the printer. 'name' is the shared name of the printer in that > >host. > >If its a local printer, use your computer's name and the printer's > name. > > Doesn't work for me on XP. Mine is a local printer, my computer's name > is -- according to the value of the COMPUTERNAME envvar -- 'JASON', and > my printer name is -- according to the Printers and Faxes control panel > -- 'HP LaserJet 1200 Series PCL'. This information is also given thus on > the Windows XP Printer Test Page. However: > > $ lpr -P "//JASON/HP LaserJet 1200 Series PCL" eight.c > lpr: can't open '//JASON/HP LaserJet 1200 Series PCL' for > writing > lpr: The printer name is invalid. > > (Yes, I know I shouldn't be sending it a textfile but rather PCL, but I > don't think that's the issue here.) > > Just for laughs I tried substituting the 'Port name", whatever that is, > for the 'Printer name', with equally dismal results: > > $ lpr -P "//JASON/DOT4_001" eight.c > lpr: can't open '//JASON/DOT4_001' for writing > lpr: The printer name is invalid. > > I have read all the postings in this on-again, off-again thread, but > although they raise, they do not appear to solve, the issue which is > that some of us cannot connect to our printer *at all* under Cygwin, and > it always comes down to the fact the we do not know how to refer to it > *symbolically* (an ability which all the various fixes assume). > > It may be relevant that my printer is connected via USB, but then again, > private correspondence with someone else having these problems, and who > is connected via the parallel port I gather, suggests that it may not > be. > > Cygcheck output attached as file cygout.txt. > > _ > Jason C. Johnston > mailto:[EMAIL PROTECTED] > http://www.astadhyayi.net > > << File: cygout.txt >> << File: ATT11063004.txt >> -- 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/
Keyboard problems after cygwin install
Hello, yes I looked in the FAQ as well as in archives, all I could find was related to german keyboard and it didn't look like the problem I see. Hence my questions below, I hope I don't misuse cygwin netiquette. Note: I am a UNIX guy, click-and-be-amazed (sometimes) Windows guy and total cygwin beginner. My system: Win98SE, 3 keyboards defined: english (US), french (Swiss) and czech. 1. Keyboard default: french After I installed cygwin, I was getting error messages in french and cygwin wanted french keyboard neither of these I liked (for programming) so I decided to reinstall with keyboard default=english (US). I removed completely (at least all I could think of) all created by previous (french) installation. I mention this step because I am not sure if this has any effect on the next step or not, maybe it doesn't. 2. Keyboard default: english (US) and reboot All cygwin reinstalled from scratch. When I bring it up, the first window (echo $TERM gives 'cygwin' and the window really looks like MS-DOS Prompt window) it wants the french keyboard despite of the fact the (Windows98) default is english (and keyboard is really set to english). How is this possible? Has anything been left somewhere from the previous install? Does cygwin has a "memory" ??? :-) Anyway, how can I get rid of it and force it to use English keyboard? In ideal world I'd like to have default keyboard french and switch to english () when I want to use cygwin. 3. Surprise: I have added cygwin/Xfree86. When I bring it up (after lots of fiddling with PATH and DISPLAY) it comes up and works but this time, to my biggest surprise, it uses the English keyboard just as I wanted. Can anybody shed some light on this mystery (for me ?) 4. When I click on the cygwin icon to start cygwin and get to this MS-DOS-like cygwin window (with french keyboard), the 'ps' indicates it runs /usr/bin/BASH, however, it hadn't read my .bashrc like it this was not considered a login window. In that .bashrc I defined the new PATH and DISPLAY so 'startx' brings Xwindows up. I have to source it ". .bashrc" manually before invoking 'startx'. How can I make it source .bashrc automatically? Or am I doing something wrong and the whole thing should be done differently? Thank and cheers! ---Zdenek Sekera ([EMAIL PROTECTED]) -- 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/
Bash bug? - piped loops using builtin echo and stdout
With bash, is the behaviour of "while( true ); do echo foo; /bin/echo bar; done | cat" defined? Is it reasonable for me to expect to see "foo", "bar", "foo", "bar", and so on? With an interactive bash, this isn't what happens when I actually type the command in (i.e. sourcing or executing a script works fine). It only starts going wrong at around the 12th iteration. I can't see anything in the archives, and STFW didn't help either. Can anyone else reproduce this? I'm using Win2k with Cygwin 1.3.10-1 and bash 2.05a-3. This also occurs on Win98 with the same versions of Cygwin and bash, but does not occur on Red Hat 7.2 with bash 2.05-8, nor does it occur on Red Hat 7.0 with bash 2.04-11. Should I post the output of cygcheck -s -r -v here, since I'm not sure that this is even a bug, and am reluctant to spam people? -- Stuart Brady -- 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/
Installing current Cygwin distribution solved the scanf() double problem I reported earlier today.
Release is now: 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown Dr. Roland Sonnenschein Abt. BV1TEF Brüel & Kjaer Vibro GmbH Landwehrstraße 55 D-64293 Darmstadt Tel.: +49(0)61 51 - 32 18 99 Fax: +49(0)61 51 - 32 18 69 Email: [EMAIL PROTECTED] -- 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/
Re: "ls -l or dir" command halt in ftp
On Tue, Apr 02, 2002 at 06:11:12PM +0800, lau bella wrote: >When I use Cygwin 1.3.3 ftp server (installed in w2k >advanced server SP2) and run "ls" command, > > >win2k command prompt C:\>ftp servername >Connected to servername.xxx.xxx >220 servername FTP server (GNU inetutils 1.3.2) ready. > : > : >User logged in >ftp> ls -l (or dir) > >The session halts. Any suggestion ? At the very least, upgrade your configuration. 1.3.3 is old. cgf -- 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/
Re: openssl - MANPATH - bug?
Corinna schrieb: >> > You've assumed that MANPATH had a previous value. >> >> This is the default file which gets installed with openssl by setup.exe. >> So if there is no previous value for MANPATH this cannot work. >> Other application are looking for MANPATH in the environment and don't >> find other manpages in /usr/man e.g. > Did you actually try it? If MANPATH has a leading colon, it's *appended* > to the internal search path. If not, it's used exclusivly. > $ export MANPATH="/usr/ssl/man" > $ man man > No manual entry for man > $ export MANPATH=":/usr/ssl/man" > $ man man > [Man page follows] Hmmm, my script isn't able to benefit from this behaviour. It looks like this: if [[ -z $MANPATH ]]; then manpath="/usr/local/man /usr/man" else manpath=${MANPATH//:/ } fi Then there will be searched in this 'PATH': :/usr/ssl/man and the man manpage gets not found there. I'll change it. >> >> > Earnie. >> >> > "Gerrit P. Haase" wrote: >> >> >> >> Hallo, >> >> >> >> This >> >> $ cat /etc/profile.d/openssl.sh >> >> export MANPATH="${MANPATH}:/usr/ssl/man" >> >> >> >> results in: >> >> $ set | grep MANPATH >> >> MANPATH=:/usr/ssl/man -- =^..^= -- 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/
Re: trouble using scanf on double arguments under Windows2000
On Tue, Apr 02, 2002 at 04:58:32AM -0800, James Merritt wrote: >I like Cygwin and will continue to support it and would like to >continue playing with it and writing programs under Cygwin. I do not >want to blame gcc or Cygwin because I like them, but I want to know >what is causing this behavior as well and is there a workaround. In a free software project, you shouldn't have to think in terms of "workarounds". Instead think "How do I fix the problem". The sources for scanf are available. They're in newlib/libc/stdio/scanf.c . If you think there is a problem, then the best way to address it is to investigate patching it and sending the patch to [EMAIL PROTECTED] cgf -- 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/
Re: openssl - MANPATH - bug?
On Tue, Apr 02, 2002 at 03:10:52PM +0200, Gerrit P. Haase wrote: >Earnie schrieb: > >> Wrong list. I've modified the headers to the appropriate list. > >Why??? Openssl IS a Cygwin Application. - cygwin-apps: a by-approval developers list for discussing packaging issues regarding applications that are distributed with the Cygwin DLL. If you are maintaining one of the packages that is distributed with the Cygwin net releases you should be subscribed to this list. This list is intended for discussing solutions. It is not for "bug reports" or "it would be nice" type of musings. Use the main cygwin mailing list for that. cgf -- 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/
Re: stacktrace from withn an exec upon error condition
On Tue, Apr 02, 2002 at 03:37:24PM +0200, Lassi A. Tuura wrote: >There's been code in MSJ (Microsoft Systems Journal) ages ago by Matt >Pietrek, in several articles. Do a google search for "Pietrek >stackwalk" for instance. > >http://iguana.cern.ch/lxr/source/IGUANA/src/Ig_Imports/classlib/src/debug.cxx#1099 >has stack trace code you can use on a large number of systems. The >library is GPL, drop me a mail if you want to use it. Coincidentally enough, the stack walking code in cygwin drew some inspiration from this. I haven't looked at it recently, but I really doubt that the code would deal with the stabs symbol table that gcc/gas/ld use and allow symbolic representation of symbols. The hints I gave in my previous email really are the best way to go on this. cgf -- 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/
Re: CDROM Access very slow under Windows XP
At 11:23 PM 4/1/2002, Arek \(James Potts\) wrote: >Hi. I just installed Cygwin on my Windows XP box and CDROM access seems to >be locked at ~1X for some reason. Any ideas as to what might be causing >this? Thanks in advance. It's very unlikely that Cygwin is directly affecting your CDROM access but, of course, given the information in your report, it's not possible to be more specific in response. My suggestion would be, if you can't determine what else is responsible for the trouble you see, to uninstall Cygwin and see if it makes a difference. I expect it won't. If by some strange coincidence it does, you can reinstall Cygwin and perhaps try debugging the process that gives you this result. No one else has reported such behavior so if it's a bug in Cygwin that you'd like to see fixed, we'll need your input to do so. Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
connect() does not work with UNIX domain datagram sockets
Hi, I am porting a client-server set of programs that run fine under linux. The programs communicate using UNIX domain datagram sockets. the server does the classic socket(), unlink(), bind() and then a loop with read(). There is no accept() because we use datagram sockets. The problem is in the client, which does socket(), connect() and then a loop with write() calls. The connect() hangs for 10 seconds and then fails with errno=111 (Connection refused). When using sendto() I manage to send data, but that doesn't fit well in the current implementation of the client (we use the same codebase for several platforms). According to the man pages of select() on linux and HP-UX it is allowed to use connect() with datagram sockets; it sets the default destination address for the communication over that socket. Is this a cygwin bug, or am I doing something wrong ? Please reply to me directly because I did not yet subscribe to the mailinglist Erik Devriendt mailto:[EMAIL PROTECTED] -- 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/
Re: Problem in downloading
At 02:03 AM 4/2/2002, [EMAIL PROTECTED] wrote: > Hello, > > We tried many times to download the full package of CYGWIN from > various FTP sites using Setup.exe version 2.194.2.22 but we are > getting following error after 98% (246MB) downloading. > > "DOWNLOADING INCOMPLETE" try again. > > Please let us know the solution. Just run setup again and install from the local directory where it stored the packages. Obviously, not all the packages you tried to install initially will be there but you should get the majority. After that, you can rerun setup, install from the internet, and pick the packages you missed in the first round. Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: Creating Static Libraries
At 02:47 AM 4/2/2002, Suhanthan Vanniyasingam wrote: > >Hi, > >I'm new to cygwin. I have found that we can create DLLs using >Cygwin. So What abouts *.lib s? > >Is there any relationship between *.a created with cygwin and *.lib? Yes. If the *.a is an import library (stubs referencing a DLL) rather than a static library, the format is the same as the *.lib. >Is it possible to use these *.a libraries with VC++? Generally, so long as you don't use dynamic memory (or if you do, you need to be very careful about freeing it in the same library as it's allocated - better to just stay away from it). Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: Bash bug? - piped loops using builtin echo and stdout
Stuart, I have the same installation you report (Win2K) and cannot reproduce your problem. Hundreds of iterations work just fine. I do notice that on my two-CPU system this loop will consume almost 90% of the available CPU cycles and about 3/4 of that is kernel mode (as displayed by the "Performance" tab of the "Windows Task Manager"). You don't say much about what is "going wrong," though, so it's hard to hypothesize a problem. Someone (but not me) might get something from the cygcheck output you mention. Personally, I prefer it in an attachment since it makes searching my local mail archive less likely to pick up a posting with in-line cygcheck output. Cygcheck output is not spam. Randall Schulz Mountain View, CA USA At 06:54 2002-04-02, Stuart Brady wrote: >With bash, is the behaviour of "while( true ); do echo foo; /bin/echo bar; >done | cat" defined? Is it reasonable for me to expect to see "foo", >"bar", "foo", "bar", and so on? With an interactive bash, this isn't what >happens when I actually type the command in (i.e. sourcing or executing a >script works fine). It only starts going wrong at around the 12th >iteration. I can't see anything in the archives, and STFW didn't help >either. Can anyone else reproduce this? > >I'm using Win2k with Cygwin 1.3.10-1 and bash 2.05a-3. This also occurs on >Win98 with the same versions of Cygwin and bash, but does not occur on Red >Hat 7.2 with bash 2.05-8, nor does it occur on Red Hat 7.0 with bash >2.04-11. Should I post the output of cygcheck -s -r -v here, since I'm not >sure that this is even a bug, and am reluctant to spam people? >-- >Stuart Brady -- 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/
Re: Creating DLLs using c++/g++
At 07:41 AM 4/2/2002, Suhanthan Vanniyasingam wrote: >Hi, > >I have created DLLs by using the following command > "gcc -Wl,--out-implib,libmydll.import.a -shared -o mydll.dll >mydll.o" >and used with a VC++ application. > >But I have tried the same command with c++ and g++. It's creating the DLL. >But the functionality is not accessible by VC++ application. How so? Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: connect() does not work with UNIX domain datagram sockets
Hi! Tuesday, 02 April, 2002 DEVRIENDT ERIK [EMAIL PROTECTED] wrote: DE> I am porting a client-server set of programs that run DE> fine under linux. DE> The programs communicate using UNIX domain datagram sockets. DE> the server does the classic socket(), unlink(), bind() and then a loop DE> with read(). There is no accept() because we use datagram DE> sockets. DE> The problem is in the client, which does socket(), connect() DE> and then a loop with write() calls. DE> The connect() hangs for 10 seconds and then fails with errno=111 DE> (Connection refused). DE> When using sendto() I manage to send data, but that doesn't fit well DE> in the current implementation of the client (we use the same DE> codebase for several platforms). DE> According to the man pages of select() on linux and HP-UX it is allowed DE> to use connect() with datagram sockets; it sets the default destination DE> address for the communication over that socket. DE> Is this a cygwin bug, or am I doing something wrong ? It may be cygwin bug. You can do a couple of things to help us to find it out. First, send a test program to the list, i'll try to reproduce the problem. Second. Try running your program using strace utility, like this: strace -f -b 65000 -o strace.log some_program.exe Then look into strace.log. I bet it will contain a string "accept from unauthorized server" string (or "connect from unauthorized client"). If that's so, can you please send me strace.log.bz2 via personal e-mail to <[EMAIL PROTECTED]> ? Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19 -- 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/
Re: connect() does not work with UNIX domain datagram sockets
On Tue, Apr 02, 2002 at 05:50:21PM +0200, DEVRIENDT ERIK wrote: > Hi, > > I am porting a client-server set of programs that run > fine under linux. > The programs communicate using UNIX domain datagram sockets. > the server does the classic socket(), unlink(), bind() and then a loop > with read(). There is no accept() because we use datagram > sockets. > > The problem is in the client, which does socket(), connect() > and then a loop with write() calls. > The connect() hangs for 10 seconds and then fails with errno=111 > (Connection refused). > When using sendto() I manage to send data, but that doesn't fit well > in the current implementation of the client (we use the same > codebase for several platforms). > According to the man pages of select() on linux and HP-UX it is allowed > to use connect() with datagram sockets; it sets the default destination > address for the communication over that socket. > > Is this a cygwin bug, or am I doing something wrong ? Could you please test if it works when omitting the unlink() on the server side? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/
Re: Bash bug? - piped loops using builtin echo and stdout
I can reproduce Stuart's problem on W2K. I'm on a uni-processor machine. I've only tried it interactively. Removing the pipe from the process makes "foo" and "bar" alternate as expected. With the pipe the result is: >while( true ); do echo foo; /bin/echo bar; done | cat foo bar foo bar foo bar foo bar foo foo bar bar foo bar foo foo foo bar bar bar foo foo bar bar foo foo foo bar bar bar . . . This is with Cygwin 1.3.10. Just as an alternate data point to avoid too much emphasis on Stuart's configuration. Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 10:56 AM 4/2/2002, Randall R Schulz wrote: >Stuart, > >I have the same installation you report (Win2K) and cannot reproduce your problem. >Hundreds of iterations work just fine. > >I do notice that on my two-CPU system this loop will consume almost 90% of the >available CPU cycles and about 3/4 of that is kernel mode (as displayed by the >"Performance" tab of the "Windows Task Manager"). > >You don't say much about what is "going wrong," though, so it's hard to hypothesize a >problem. > >Someone (but not me) might get something from the cygcheck output you mention. >Personally, I prefer it in an attachment since it makes searching my local mail >archive less likely to pick up a posting with in-line cygcheck output. Cygcheck >output is not spam. > >Randall Schulz >Mountain View, CA USA > > >At 06:54 2002-04-02, Stuart Brady wrote: >>With bash, is the behaviour of "while( true ); do echo foo; /bin/echo bar; done | >cat" defined? Is it reasonable for me to expect to see "foo", "bar", "foo", "bar", >and so on? With an interactive bash, this isn't what happens when I actually type the >command in (i.e. sourcing or executing a script works fine). It only starts going >wrong at around the 12th iteration. I can't see anything in the archives, and STFW >didn't help either. Can anyone else reproduce this? >> >>I'm using Win2k with Cygwin 1.3.10-1 and bash 2.05a-3. This also occurs on Win98 >with the same versions of Cygwin and bash, but does not occur on Red Hat 7.2 with >bash 2.05-8, nor does it occur on Red Hat 7.0 with bash 2.04-11. Should I post the >output of cygcheck -s -r -v here, since I'm not sure that this is even a bug, and am >reluctant to spam people? >>-- >>Stuart Brady > > >-- >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/ -- 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/
Re: stacktrace from withn an exec upon error condition
> I haven't looked at it recently, but I really doubt that the code would > deal with the stabs symbol table that gcc/gas/ld use and allow symbolic > representation of symbols. My code certainly doesn't, it only deals with basic Win32. You get symbols for addresses only if imagehlp library can get them. IIRC this means anything exported from a DLL if no other info is available, and I'd assume it works the same on cygwin since the export mechanism doesn't change. > The hints I gave in my previous email really are the best way to go on > this. Quite right. One addition: address-to-symbol look-up gets complicated with dynamically loaded shared libraries. Post-mortem analysis (say addr2line) doesn't combine well with dynamic loading, which may or may not matter, depending on how much grief you are ready to get into. It does matter to me, hence I use imagehlp, and it has worked for so far (but I haven't used the code on gcc/cygwin, only for native Win32, and virtually all our code is in DLLs and is exported, so most gets mapped correctly; I should check what it actually does on MSVC++, it is a long time I looked at that). To read read symbols from a running program with bfd, look at mpatrol; it has code to fetch symbols from the program itself and any shared libraries currently mapped in. However, the version of mpatrol I used only reads symbols at program start-up, which isn't so great for dynamic loading. (On the other hand, reading symbol data in fatal signal handler is not the greatest of ideas either :-) //lat -- Real programmers don't document. Documentation is for simps who can't read the listings or the object deck. -- 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/
RE: connect() does not work with UNIX domain datagram sockets
Some additional information about my problem : cygwin 1.3.10 running on Windows NT 4.0. Here follows a set of programs (client.c, server.c) that exhibit the problem. If you #define USE_SENDTO in client.c, the communication works. I will also send a strace to Egor Duda. Erik Devriendt # -- makefile - all: server client client: client.c gcc -o client client.c server: server.c gcc -o server server.c # - end of makefile -- /* --- begin of server.c */ #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { struct sockaddr_un name; int socket_id; int s; struct sockaddr saddr; int saddrlen; char buf[1024]; int result; name.sun_family = AF_UNIX; strcpy(name.sun_path, "./testsock"); if ((socket_id=socket(AF_UNIX, SOCK_DGRAM,0)) <0 ) { printf("socket() gave errno = %d : %s\n", errno, strerror(errno)); exit(1); } if ((bind(socket_id,(struct sockaddr *)&name,sizeof(name))) <0) { printf("bind() gave errno = %d : %s\n", errno, strerror(errno)); exit(1); } printf("OK, socket_id = %d\n", socket_id); result = read(socket_id, buf, sizeof(buf)); if(result > 0) printf("read %d bytes : <%s>\n", result, buf); return 0; } /* --- end of server.c */ /* --- begin of client.c */ #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { struct sockaddr_un name; int socket_id, socket_id2; char buf[100]; int sendresult; name.sun_family = AF_UNIX; strcpy(name.sun_path, "./testsock"); if ((socket_id=socket(AF_UNIX, SOCK_DGRAM,0)) <0 ) { printf("socket() gave errno = %d : %s\n", errno, strerror(errno)); exit(1); } strcpy(buf, "hallo\n"); /* #define USE_SENDTO */ #ifdef USE_SENDTO sendresult = sendto(socket_id, buf, strlen(buf)+1, 0, (struct sockaddr *)&name, sizeof(name) ); #else if ( connect(socket_id, (struct sockaddr *)&name, sizeof(name)) < 0) { printf("connect() gave errno = %d : %s\n", errno, strerror(errno)); exit(1); } sendresult = write(socket_id, buf, strlen(buf)+1); #endif printf("sendresult = %d\n", sendresult); if(sendresult < 0) { printf("sendto() gave errno = %d : %s\n", errno, strerror(errno)); exit(1); } printf("OK, socket_id = %d\n", socket_id); return 0; } /* --- begin of client.c */ -- 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/
Re: Bash bug? - piped loops using builtin echo and stdout
Larry, Stuart, I did not look closely enough at the output when I ran my test. I was expecting some more dramatic failure, I guess. I do _not_ see proper alternation of "foo" and "bar." The transpositions occur in iterations 33 45 51 54 64 69 74 79 83 98 105 110 114 122 140 147 154 163 174 190 203 208 214 217 ... I don't see a pattern, so I suppose some sort of race condition is suggested. Perhaps the wait(2) system call used by the shell after the fork for the built-in echo is not really waiting. (BASH should fork for that command, right?) Strace might give useful information or it might perturb things to the point the symptom is no longer seen. Randall Schulz Mountain View, CA USA At 08:14 2002-04-02, Larry Hall (RFK Partners, Inc) wrote: >I can reproduce Stuart's problem on W2K. I'm on a uni-processor machine. >I've only tried it interactively. Removing the pipe from the process >makes "foo" and "bar" alternate as expected. With the pipe the resultis: > > >while( true ); do echo foo; /bin/echo bar; done | cat >... >. >. >. > >This is with Cygwin 1.3.10. Just as an alternate data point to avoid too >much emphasis on Stuart's configuration. > >Larry Hall -- 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/
RE: connect() does not work with UNIX domain datagram sockets
Hi, I attached the strace log as you requested. Unfortunately I don't have bzip installed. I used gzip instead. It contains indeed the accept from unauthorized server" string. Erik Devriendt -Original Message- From: egor duda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 18:06 To: DEVRIENDT ERIK Cc: [EMAIL PROTECTED] Subject: Re: connect() does not work with UNIX domain datagram sockets ... It may be cygwin bug. You can do a couple of things to help us to find it out. First, send a test program to the list, i'll try to reproduce the problem. Second. Try running your program using strace utility, like this: strace -f -b 65000 -o strace.log some_program.exe Then look into strace.log. I bet it will contain a string "accept from unauthorized server" string (or "connect from unauthorized client"). If that's so, can you please send me strace.log.bz2 via personal e-mail to <[EMAIL PROTECTED]> ? Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19 strace.log.gz Description: Binary data -- 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/
RE: connect() does not work with UNIX domain datagram sockets
The test programs I just sent to the mailing list do not use unlink(). But if I do not remove the socket file by hand, I get 'address already in use' error. Erik Devriendt -Original Message- From: Corinna Vinschen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 18:12 To: DEVRIENDT ERIK Cc: cygwin Subject: Re: connect() does not work with UNIX domain datagram sockets [...] Could you please test if it works when omitting the unlink() on the server side? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- 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/
ncftp current release won't run - missing CYGREADLINE5.DLL
The dll is nowhere on my filesystem? Help? -- 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/
setup.exe and mirror list question
Robert (or anyone), Regarding the setup.exe "Choose a Download Site" page: What I am doing right now is running an internal Cygwin mirror, updated every 24h via rsync. When a user runs setup.exe from my mirror, I'd like my internal mirror to be the ONLY available mirror displayed in the install screen. I checked the FAQ & discussion lists and could not see how this would be done. Is this possible? thanks, Scott Prive -- 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/
Re: ncftp current release won't run - missing CYGREADLINE5.DLL
At 11:36 AM 4/2/2002, Gord Wait wrote: >The dll is nowhere on my filesystem? >Help? I'm going to suggest installing the missing DLL. Refer to www.cygwin.com/packages if you're not sure what package contains the DLL you're missing. Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Can't scroll with mouse wheel
Cygwin DLL version: 1.3.10 BASH version: 2.05a-3 Windows XP Professional When I run bash, it appears to be disabling the ability to scroll the window with the mouse wheel. To reproduce: Open a regular command-line window and verify that mouse-wheel scrolling works, run bash and it stops working. -- 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/
Re: info
Hey There! Are you a guy? Do you ever worry that your penis isn't as large as it could be? Maybe you've considered buying a pump? Well, the pump WILL make your penis bigger, that is a fact. But what if you want to do something with your penis besides leave it in a tube? In that case you're back where you started. And then there's surgery. Did you know there is fairly high rate of failure with that kind of stuff? I'd rather have an average penis than a deformed penis, wouldn't you? If you're ready to get serious about increasing the size of your penis, then read on. Not only will the Add-Inches program give you a bigger dick, it will help you sustain erections, it will help you achieve multiple orgasms without losing your erection, it will teach you thrusting techniches that will set you apart in bed from just about every man out there, and it will teach you how to control your orgasms so closely that you can actually plan them. It will do all of this without pumps, surgery, or anything harmful to your body. If you want to: * Last longer in bed* Control your orgasms so you can actually plan when they happen * Increase your penis size without pumps, surgery, or any other gadgets or invasive techniquesthen try the program. We are so sure that it will work for you we GUARANTEE it 100%. If you do the excersizes in the program and don't see results within 1 month we will refund 100% of your money. This program works, it's been tried and tested. Read the testimonials, try the program, you've got nothing to lose. Are you ready to be on your way to having the dick you've always dreamed about? If you are, http://affiliates.add-inches.com/store/%78%30%72%64%62%32";>click here.< br>< br>This message is not spam; it is never sent unsolicited. If you wish to be removed from future mailings please email [EMAIL PROTECTED] with the subject "REMOVE". Thank you. -- 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/
Re: I'm having Trouble with 'readme' on CPAN
--- "Gerrit P. Haase" <[EMAIL PROTECTED]> wrote: > >Hallo Muhammad, > > Am 2002-03-29 um 14:26 schriebst du: > > > Hi,A PERL QUESTION ??? > > - > >I was wondering if anybody has noticed a > problem with the CPAN 'shell'. > > With all other 'Net' applications shut down, it > seems to behave quite well, > > except when running the 'readme' routine. > > Hmmm, never used it... > > I have no problems here (this is perl-5.7.3, the > upcoming perl-5.8), > at least then it will work ok. > > Gerrit > -- > =^..^= > Hi Gerrit, Thanks for your feedback. I'm looking forward to the new release of Perl !! (The idea of debugging CPAN on an emulator (albeit a good one!) makes me feel rather weary). That being said, I'm still very interested to learn as much as I can about Cygwin (not just windoze) Muhammad Worcs. UK __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- 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/
Re: CDROM Access very slow under Windows XP: Oops - my bad.
This seems to be a problem with either the cd in question or the XP command interpreter. Other stuff running from cmd.exe is just as slow. Windows explorer isn't. If it turns out that it isn't the CD, maybe I'll say something about it to Microsoft, as I do quite a bit of stuff from the command line and/or bash. James Potts ([EMAIL PROTECTED]) - Original Message - From: "Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]> To: "Arek (James Potts)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 9:46 AM Subject: Re: CDROM Access very slow under Windows XP > At 11:23 PM 4/1/2002, Arek \(James Potts\) wrote: > >Hi. I just installed Cygwin on my Windows XP box and CDROM access seems to > >be locked at ~1X for some reason. Any ideas as to what might be causing > >this? Thanks in advance. > > > It's very unlikely that Cygwin is directly affecting your CDROM access but, > of course, given the information in your report, it's not possible to > be more specific in response. My suggestion would be, if you can't determine > what else is responsible for the trouble you see, to uninstall Cygwin and see > if it makes a difference. I expect it won't. If by some strange coincidence > it does, you can reinstall Cygwin and perhaps try debugging the process that > gives you this result. No one else has reported such behavior so if it's a > bug in Cygwin that you'd like to see fixed, we'll need your input to do so. > > > > Larry Hall [EMAIL PROTECTED] > RFK Partners, Inc. http://www.rfk.com > 838 Washington Street (508) 893-9779 - RFK Office > Holliston, MA 01746 (508) 893-9889 - FAX > > > -- > 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/ > -- 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/
ftpd now broken with current cygwin release..
I updated my work pc cygwin setup yesterday, and now when I try to use ftp to get files from my work machine, it won't let me login, and tells me it "can suid" Telnet still works. I checked over the /etc/passwd and ftpusers file, they look ok.. Help! Gord Wait -- 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/
Re: ftpd now broken with current cygwin release..
At 01:46 PM 4/2/2002, Gord Wait wrote: >I updated my work pc cygwin setup yesterday, and now when I try to >use ftp to get files from my work machine, it won't let me login, >and tells me it "can suid" > >Telnet still works. > >I checked over the /etc/passwd and ftpusers file, they look ok.. >Help! OK, so you're looking for ideas of things to check. The email archives are a good place to look. The documentation in /usr/doc/Cygwin, ditto. Despite what I'm interpreting as a typo, I'm guessing that your problem is that it can't change your user context. That's been discussed *allot* in many contexts (sshd, login, inetd, etc). It usually comes down to missed configuration setting. The front-runners here? A needed daemon isn't started as SYSTEM and ntsec isn't set in your CYGWIN environment variable (at the system level). But the docs and email archives talk about all kinds of problems and solutions. You might need to spend some time going through them. Good luck, Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: ncftp current release won't run - missing CYGREADLINE5.DLL
Another thing I would suggest is to look at the requirements for ncftp in the setup.ini file. For 3.1.3-1, it indicates: requires: cygwin libncurses5 libreadline5 terminfo less The question is, why weren't these requirements met when you installed ncftp? Did you use a current setup.exe installer? In my case, I had all the required packages installed (at least according to the setup program), but somehow the actual contents of the libreadline packages never got installed on my system. In other words, the latest libreadline4 and 5 entries existed in /etc/setup/installed.db, and the files libreadline[45].lst.gz existed in /etc/setup, but the files /usr/bin/cyghistory[45].dll and /usr/bin/cygreadline[45].dll did not exist. The only way I can imagine this happened is due to a bug (possibly fixed by now) in setup.exe, as that is the only method I've used to install cygwin packages on my system. In any case, the solution was to reinstall them. I also wrote a quick little shell script to make sure I wasn't missing any other files that were supposedly already installed. It can be summed up with the following one-liner command: cd / && ls `zcat /etc/setup/*.gz | grep -v etc/postinstall` >/dev/null This will print out "No such file or directory" errors for each file that is supposedly installed but doesn't actually exist. Alan --On Tuesday, April 02, 2002 11:49 AM -0500 "Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]> wrote: > At 11:36 AM 4/2/2002, Gord Wait wrote: >> The dll is nowhere on my filesystem? >> Help? > > I'm going to suggest installing the missing DLL. Refer to > www.cygwin.com/packages if you're not sure what package contains > the DLL you're missing. -- 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/
Re: [ANNOUNCEMENT] Setup.exe update
On Tue, Mar 19, 2002 at 05:44:16PM +1100, Robert Collins wrote: > > > I tried the new SETUP.EXE. The problem is it doesn't > > recognize my previous installation or rather my previous > > downloads! Instead it creates another folder named according > > to the server it connected and download the packages into it. > > Anyone can help me with this? > > > > Thanks, > > > > Benny Ng > > Benny, it will recognise and use your existing installation and download > cache. What it won't do is add to it. I finally had some time to try the new setup. What seems to happen is that it seems to have this cache based on what is installed and not what is downloaded. On a machine with an old version, it always wants to download everything again even if he already has it. On a machine with the newest it doesn't want to download anything, I can't even seem to let it download things I didn't install. Then I tried downloading it on a machine where cygwin isn't installed on, it downloaded what needs to be downloaded. Kurt -- 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/
Re: ncftp current release won't run - missing CYGREADLINE5.DLL
After posting this message, I finally found the explanation: http://cygwin.com/ml/cygwin/2002-02/msg00947.html Alan --On Tuesday, April 02, 2002 2:43 PM -0500 Alan Dobkin <[EMAIL PROTECTED]> wrote: > In my case, I had all the required packages installed (at > least according to the setup program), but somehow the actual > contents of the libreadline packages never got installed on > my system. In other words, the latest libreadline4 and 5 > entries existed in /etc/setup/installed.db, and the files > libreadline[45].lst.gz existed in /etc/setup, but the files > /usr/bin/cyghistory[45].dll and /usr/bin/cygreadline[45].dll > did not exist. The only way I can imagine this happened is > due to a bug (possibly fixed by now) in setup.exe, as that > is the only method I've used to install cygwin packages on > my system. In any case, the solution was to reinstall them. > > I also wrote a quick little shell script to make sure I wasn't > missing any other files that were supposedly already installed. > It can be summed up with the following one-liner command: > > cd / && ls `zcat /etc/setup/*.gz | grep -v etc/postinstall` >/dev/null > > This will print out "No such file or directory" errors for each > file that is supposedly installed but doesn't actually exist. > > Alan -- 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/
Re: ncftp current release won't run - missing CYGREADLINE5.DLL
Right. And I actually forgot about the fact that this problem is in the FAQ too. I need to take some of my own advice and spend more time looking at the FAQ myself! Why can't my application locate cygncurses5.dll? or cygintl.dll? or cygreadline5.dll? or ...?\ http://cygwin.com/faq/faq_4.html#SEC32 Sorry Chuck and David... Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 03:08 PM 4/2/2002, Alan Dobkin wrote: >After posting this message, I finally found the explanation: > >http://cygwin.com/ml/cygwin/2002-02/msg00947.html > >Alan > >--On Tuesday, April 02, 2002 2:43 PM -0500 Alan Dobkin <[EMAIL PROTECTED]> >wrote: > > > In my case, I had all the required packages installed (at > > least according to the setup program), but somehow the actual > > contents of the libreadline packages never got installed on > > my system. In other words, the latest libreadline4 and 5 > > entries existed in /etc/setup/installed.db, and the files > > libreadline[45].lst.gz existed in /etc/setup, but the files > > /usr/bin/cyghistory[45].dll and /usr/bin/cygreadline[45].dll > > did not exist. The only way I can imagine this happened is > > due to a bug (possibly fixed by now) in setup.exe, as that > > is the only method I've used to install cygwin packages on > > my system. In any case, the solution was to reinstall them. > > > > I also wrote a quick little shell script to make sure I wasn't > > missing any other files that were supposedly already installed. > > It can be summed up with the following one-liner command: > > > > cd / && ls `zcat /etc/setup/*.gz | grep -v etc/postinstall` >/dev/null > > > > This will print out "No such file or directory" errors for each > > file that is supposedly installed but doesn't actually exist. > > > > Alan -- 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/
RE: Strange Crond behavior
Michael, I'm having the same problem you are having, mine on XP Professional. Did you have to do anything special to the SYSTEM user or any of the Unix security files to get this to work? I've tried the exact command you used below and I still get the problem. TIA. Steven Caswell [EMAIL PROTECTED] a.k.a Mungo Knotwise of Michel Delving "One ring to rule them all, one ring to find them..." > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Michael Lang > Sent: Monday, April 01, 2002 4:16 PM > To: Larry Hall (RFK Partners, Inc) > Cc: [EMAIL PROTECTED] > Subject: RE: Strange Crond behavior > > > Hi Larry > > Thanks for answering ... but i´ve already readed the dos and > tried using the install steps .. I now used cygrunsrv -I cron > -d "Cron" -p /usr/sbin/cron -a "-D" -1 /var/log/cron.log -2 > /var/log/cron.log for service installation. It now works ... > *strange* maybe the EventLog tells some more defusing > informations than needed. > > Thanks for your answer anyway > > Greetz mIke > > Michael Lang System Engineer > Jackal-net.at Tel: +43 664 12 42 947 > Austria, Europe Fax: +43 > 1 734 82 34 > http://www.jackal-net.at[EMAIL PROTECTED] > > -Original Message- > From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 01, 2002 4:39 PM > To: Michael Lang; [EMAIL PROTECTED] > Subject: Re: Strange Crond behavior > > At 05:47 AM 4/1/2002, Michael Lang wrote: > >Hello to all > > > >Sorry for bothering but I didn´t find an issue for these strange > >behavior of the Crond . > > > >Does someone knows why using cron as service doesn't start any > >scheduled tasks ? Event Error : > > > >Using /usr/sbin/cron -D > > > seteuid: Not owner > > > > > >0x9D0 : Cygwin Process Id = 0x9D0 : (CRON) error (can't switch user > >context). > > > The problem? Looks like the same old one to me. You're not > running cron as SYSTEM. It seems many folks don't follow > directions and don't check the email archives when they have > a problem as a result. Read the README and follow > the instructions there. If you still have problems, check > the email archives for similar questions. There should be > plenty of information in these two > avenues to solve this issue. If not, you'll need to be more > specific about > why the standard configuration doesn't work for you. > > > Larry Hall [EMAIL PROTECTED] > RFK Partners, Inc. http://www.rfk.com > 838 Washington Street (508) 893-9779 - RFK Office > Holliston, MA 01746 (508) 893-9889 - FAX > > > -- > 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/ > _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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/
NcFTP Feature Request for "getline" (fwd)
I am resending the attached request as it still applies to NcFTP 3.1.3. I am copying the Cygwin list, because I've noticed a related bug in the current Cygwin version. Consider an example with only the following two bookmarks: RedHat Linux --> FTP.RedHat.Com RedHat Updates --> Updates.RedHat.Com With the non-Cygwin Win32 version, tab completion displays the bookmark list with only the second words: ncftp> open LinuxUpdates However, with the Cygwin version, tab completion repeats the first word each time without displaying the list: ncftp> open ncftp> open RedHat ncftp> open RedHat RedHat ncftp> open RedHat RedHat RedHat Unfortunately, I am not able to contribute any patches myself, but hopefully this will not be a difficult fix for someone who is already familiar with the source code. Thanks, Alan --- Begin Message --- Please consider the following enhancement to "getline" tab completion. When using the open command with tab to list the matching bookmarks, getline should enclose the string in quotes if it contains spaces. Consider this example: ncftp> open RedHat Linux Resolving RedHat... Unknown host "RedHat". ncftp> open "RedHat Linux" (quotes inserted manually) Resolving FTP.RedHat.Com... Connecting to 63.240.14.63... Red Hat FTP server ready. All transfers are logged. Logging in... Login successful. Have fun. Automatically inserting quotes like this appears to be standard behavior in most UNIX shells and Windows 2000. Thanks, Alan --- End Message --- -- 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/
REt: Creating DLLs using c++/g++
> From: Suhanthan Vanniyasingam > I have created DLLs by using the following command > "gcc -Wl,--out-implib,libmydll.import.a -shared -o mydll.dll > mydll.o" > and used with a VC++ application. > But I have tried the same command with c++ and g++. It's creating the DLL. > But the functionality is not accessible by VC++ application. Its not a dll problem, its a difference in C++ ABI. You can't generally mix object code from different C++ compilers. In fact different versions of same compiler (say G++-2.x and G++-3.x) produce incompatable C++ code. Different compilers use different name-mangling schemes to protect users from problems that arise when mixing ABI's. There are attempts to standardize C++ ABI across compilers, but that has not happened yet. Danny http://www.sold.com.au - SOLD.com.au Auctions - 1,000s of Bargains! -- 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/
Athena library and sgtty error while compile
Hi all, this is my first post in this mailing list. I tried compiling terminal program which support my language. this program is modification of xterm. But I have met error I cannot solve. I haven't see these errors when I have compiled this program in Solaris. first I tried xmkmf; make, then make stops with this error -- sgtty.h: No such file or directory -- Archive says there is no sgtty.h in cygwin and use other header file instead, but including that file instead sgtty.h also produce error. Then I have tried configure then configure also stop this error. -- Unable to successfully link Athena library (-lcf_x_athena) with test program -- Where can I get and compile Athena library. Please answer. Your answer for a while can help me much Thanks. -- 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/
crypt command
Since the crypt command in cygwin does not work same as crypt command in Unix, so somebody suggesed use mcrypt command (http://mcrypt.hellug.gr/mcrypt/index.html) , I was able to download mcrypt source and there required library files Libmhash and Libmcrypt but when I compile mhash on cygwin, I get the following error. Does any body know how to solve this problem. Thanks Sanjay Here is the error :- make all-recursive make[1]: Entering directory `/usr/src/mhash-0.8.14' Making all in lib make[2]: Entering directory `/usr/src/mhash-0.8.14/lib' /bin/sh ../libtool --silent --mode=link gcc -g -O2 -mno-cygwin -o libmhash.la -rpath /usr/local/lib -version-info 2 -no-undefined -export-symbols ./libmhash.sym mhash.lo swap.lo bzero.lo crc32.lo md5.lo sha1.lo haval.lo tiger.lo tiger_sboxes.lo gosthash.lo keygen_hex.lo keygen_mcrypt.lo keygen_asis.lo keygen.lo keygen_s2k.lo ripemd.lo md4.lo sha256.lo adler32.lo keygen_hex.lo: In function `check_hex': /usr/include/mingw/ctype.h:143: undefined reference to `_imp___pctype' /usr/include/mingw/ctype.h:143: undefined reference to `_isctype' collect2: ld returned 1 exit status make[2]: *** [libmhash.la] Error 1 make[2]: Leaving directory `/usr/src/mhash-0.8.14/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/mhash-0.8.14' make: *** [all] Error 2 -- 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/
Re: [ANNOUNCEMENT] Setup.exe update
Just wanted to comment. The new setup looks great, Robert. Used it last night and it was very intuitive and comprehensive. Thank you for all the time and energy you've put in to updating it. Paul G. -- 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/
RE: More setup wishes
> -Original Message- > From: Earnie Boyd [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 12:18 AM > To: [EMAIL PROTECTED] > Subject: More setup wishes > > > I would like to be able to maximize/minimize the chooser > window. I've got this nice big 21" monitor and the chooser > window sits nicely in the middle of the screen. I want to be > able to see more of the list at once. Yah, so do I - I've got a 19" here. > Note, I've declared this as a wish which means I don't plan > to code it. Lol! Grin. Rob -- 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/
Re[2]: ssh from winxp -> RH-Linux w. Publickey
Hello Corinna, Tuesday, April 02, 2002, 4:08:36 PM, you wrote: CV> On Tue, Apr 02, 2002 at 02:20:57PM +0100, Donald MacVicar wrote: >> Daniel, >> Not really a cygwin question. The files on the unix end should not be >> .authorized_keys but authorized_keys - or even authorized_keys2 if you want >> ssh2 CV> Since OpenSSH 3.0 on the server machine you can store both, SSH1 and SSH2 CV> keys in authorized_keys. No additional authorized_keys2 needed anymore. CV> And yes, Donald is right, remove the dot. Ok, now i´m feeling kinda stupid, but thank you very much :-)) -- Daniel Holtkamp Riege Software International GmbH System AdministrationMollsfeld 10 40670 Meerbusch, Germany Email: [EMAIL PROTECTED] Phone: +49-2159-9148-41 Fax: +49-2159-9148-11 - -- 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/
No such host or network path
I installed the cygwin under c:\cygwin. And a Repository is installed at c:\Repository. An application generate Makefile automatically: export REPOSITORY := /C/Repository/packages then the make always report: makefile:71: //C/Repository/packages/pkgconf/rules.mak: No such host or network path If I change "//C" to "/C", then it works. But there are so many such makefiles, I can not change them every time by hand. So what would be the reason for such a problem? Thanks for help! Gang Lu -- 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/
ip.h & tcp.h
I noticed that these two header files in /usr/include/netinet is really missing. I have been using the ones from FreeBSD and that fit very well. I just need to add the following lines to the beginning of ip.h: /* Added by Wu Yongwei */ #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #define BIG_ENDIAN 4321 #endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif Could Cygwin just use the modified FreeBSD files, or are there any other considerations? I don't think there are any licence issues -- it only asks for an acknowledgement in ads. (BTW, udp.h is good, too.) Best regards, Wu Yongwei -- 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/
missing cygitcl30.dll
One of my users gets an error message complaing that this DLL file is missing on his Win2000 machine. The file should be located under C:\cygwin\bin, but the setup log indicates it was never installed. Can someone please e-mail me a copy of this file, or point me to a site where I can download it (it doesn't appear to be on www.cygwin.com). Thanks in advance. -- 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/
Re: NcFTP Feature Request for "getline" (fwd)
I can't reproduce this the way you see it. OTOH, I understand your problem, and the short answer is: use " character. ncftp> open "R U should do what you want. On cygwin, using rxvt (TERM=rxvt) or dosbox (TERM=cygwin), I get: ncftp> open neurorcn ncftp> open two tabs, and I get ncftp> open neurorcn ncftp> open (e.g. the second tab is interpreted here) neurorcn ncftp> open likewise, when I do something as (IMO) silly as having multi-word bookmark names, in both environments I get ncftp> open neuro one neuro two rcn (lists all three bkmks) ncftp> open n neuro one neuro two (lists two bookmarks, autocompletes 'euro ' ncftp> open neuro neuro one neuro two rcn (thinks that 'open neuro ' is two words, and tries to autocomplete an entirely new word -- so it re-lists all three bkmks) If I try to help, by typing the 'o' for 'neuro one', it doesn't help -- it tries to match on words beginning with 'o' and since I have no bkmks that begin with 'o' -- no match. ncftp> open neuro o ncftp> open neuro o This is The Right Thing To Do, IMO. Very unixy. Now, if I do THIS: ncftp> open "neuro neuro oneneuro two Then, I help by adding an 'o': ncftp> open "neuro o (it autocompletes! 'ne"') ncftp> open "neuro one" Again, The Right Thing To Do. Remember, cygwin ain't windows. --Chuck Alan Dobkin wrote: > I am resending the attached request as it still applies > to NcFTP 3.1.3. I am copying the Cygwin list, because > I've noticed a related bug in the current Cygwin version. > > Consider an example with only the following two bookmarks: > > RedHat Linux --> FTP.RedHat.Com > RedHat Updates --> Updates.RedHat.Com > > With the non-Cygwin Win32 version, tab completion > displays the bookmark list with only the second words: > > ncftp> open > LinuxUpdates > > However, with the Cygwin version, tab completion repeats > the first word each time without displaying the list: > > ncftp> open > ncftp> open RedHat > ncftp> open RedHat RedHat > ncftp> open RedHat RedHat RedHat > > Unfortunately, I am not able to contribute any patches > myself, but hopefully this will not be a difficult fix > for someone who is already familiar with the source code. > > Thanks, > Alan > > > > > Subject: > > NcFTP Feature Request for "getline" > From: > > Alan Dobkin <[EMAIL PROTECTED]> > Date: > > Sun, 04 Nov 2001 20:14:09 -0500 > To: > > NcFTP <[EMAIL PROTECTED]> > > > Please consider the following enhancement to "getline" tab > completion. When using the open command with tab to list > the matching bookmarks, getline should enclose the string > in quotes if it contains spaces. Consider this example: > > ncftp> open RedHat Linux > Resolving RedHat... > > Unknown host "RedHat". > ncftp> open "RedHat Linux" (quotes inserted manually) > Resolving FTP.RedHat.Com... > Connecting to 63.240.14.63... > > Red Hat FTP server ready. All transfers are logged. > Logging in... > > Login successful. Have fun. > > Automatically inserting quotes like this appears to be > standard behavior in most UNIX shells and Windows 2000. > > Thanks, > Alan > > > > > > -- > 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/ > -- 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/
CYGWIN - GMP compile problems
When I try to compile the GMP library in cygwin, it works. However, when I try to "make" any of the programs in the "demos" folder, I get link errors. The link errors are all for the GMP functions. The messages are all something like "undefined reference - __gmpz_get_str", etc. any ideas on how to solve this problem? thanks, Kris -- 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/
Re: NcFTP Feature Request for "getline" (fwd)
Charles, Thanks for taking the time to respond to this issue, but it seems you may have missed my original message (which was attached to the one you responded to and is also included below). I am aware that quotes can be used as a workaround to this problem - but IMO, The Right Thing To Do is to have the quotes inserted automatically. This is also not a matter of Unix vs. Windows behavior, as both Unix and Windows properly deal with spaces in file names during tab completion. In Windows 2000 (with tab completion enabled in cmd): C:\>cd prog --> C:\>cd "Program Files" In bash (using Cygwin or RedHat Linux): $ cd /cygdrive/C/Prog --> $ cd /cygdrive/C/Program\ Files/ Now, regarding the new bug I was reporting specifically in the Cygwin version of NcFTP, you can reproduce it by creating a bookmark list containing *only* the two I mentioned, i.e. "RedHat Linux" and "RedHat Updates", or any other bookmarks that begin with the same word. The reason your scenario didn't duplicate the bug is because you had a third bookmark that started differently. Incidentally, backslash can't be used to escape the space either as it works in bash. It has to be enclosed in quotes. Using spaces in bookmarks may be silly, but I'm sure I'm not the first person to try it and expect it to work, since spaces are valid characters in most filesystems as file names and are permitted as bookmark names in NcFTP. Thanks, Alan --On Tuesday, April 02, 2002 9:09 PM -0500 Charles Wilson <[EMAIL PROTECTED]> wrote: > I can't reproduce this the way you see it. OTOH, I understand > your problem, and the short answer is: use " character. > > ncftp> open "R U > > should do what you want. > > On cygwin, using rxvt (TERM=rxvt) or dosbox (TERM=cygwin), I get: > > ncftp> open > neurorcn > ncftp> open > > two tabs, and I get > > ncftp> open > neurorcn > ncftp> open (e.g. the second tab is interpreted here) > neurorcn > ncftp> open > > likewise, when I do something as (IMO) silly as having multi-word > bookmark names, in both environments I get > > ncftp> open > neuro one neuro two rcn (lists all three bkmks) > ncftp> open n > neuro one neuro two (lists two bookmarks, autocompletes 'euro ' > ncftp> open neuro > neuro one neuro two rcn (thinks that 'open neuro ' is two words, and > tries to autocomplete an entirely new > word -- so it re-lists all three bkmks) > > If I try to help, by typing the 'o' for 'neuro one', it doesn't help -- > it tries to match on words beginning with 'o' and since I have no bkmks > that begin with 'o' -- no match. > > ncftp> open neuro o > ncftp> open neuro o > > This is The Right Thing To Do, IMO. Very unixy. Now, if I do THIS: > > ncftp> open "neuro > neuro oneneuro two > > Then, I help by adding an 'o': > > ncftp> open "neuro o (it autocompletes! 'ne"') > > ncftp> open "neuro one" > > Again, The Right Thing To Do. Remember, cygwin ain't windows. > > --Chuck > > Alan Dobkin wrote: > >> I am resending the attached request as it still applies >> to NcFTP 3.1.3. I am copying the Cygwin list, because >> I've noticed a related bug in the current Cygwin version. >> >> Consider an example with only the following two bookmarks: >> >> RedHat Linux --> FTP.RedHat.Com >> RedHat Updates --> Updates.RedHat.Com >> >> With the non-Cygwin Win32 version, tab completion >> displays the bookmark list with only the second words: >> >> ncftp> open >> LinuxUpdates >> >> However, with the Cygwin version, tab completion repeats >> the first word each time without displaying the list: >> >> ncftp> open >> ncftp> open RedHat >> ncftp> open RedHat RedHat >> ncftp> open RedHat RedHat RedHat >> >> Unfortunately, I am not able to contribute any patches >> myself, but hopefully this will not be a difficult fix >> for someone who is already familiar with the source code. >> >> Thanks, >> Alan >> >> >> >> >> Subject: >> >> NcFTP Feature Request for "getline" >> From: >> >> Alan Dobkin <[EMAIL PROTECTED]> >> Date: >> >> Sun, 04 Nov 2001 20:14:09 -0500 >> To: >> >> NcFTP <[EMAIL PROTECTED]> >> >> >> Please consider the following enhancement to "getline" tab >> completion. When using the open command with tab to list >> the matching bookmarks, getline should enclose the string >> in quotes if it contains spaces. Consider this example: >> >> ncftp> open RedHat Linux >> Resolving RedHat... >> >> Unknown host "RedHat". >> ncftp> open "RedHat Linux" (quotes inserted manually) >> Resolving FTP.RedHat.Com... >> Connecting to 63.240.14.63... >> >> Red Hat FTP server ready. All transfers are logged. >> Logging in... >> >> Login successful. Have fun. >> >> Automatically inserting quotes like this appears to be >> standard behavior in most UNIX shells and Windows 2000. >> >> Thanks, >> Alan -- Uns
RE: Creating DLLs using c++/g++
Hi Larry, Thank you fo rthe reply. I supposed to use extern "C" before the function name. Now I have solved the problem Thank You, Regards, Suhanthan, V. Suhanthan Vanniyasingam www.eRunway.com -Original Message- From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 9:55 PM To: Suhanthan Vanniyasingam; '[EMAIL PROTECTED]' Cc: Narasimha Sarma; Nandika Mirihana Subject: Re: Creating DLLs using c++/g++ At 07:41 AM 4/2/2002, Suhanthan Vanniyasingam wrote: >Hi, > >I have created DLLs by using the following command > "gcc -Wl,--out-implib,libmydll.import.a -shared -o mydll.dll >mydll.o" >and used with a VC++ application. > >But I have tried the same command with c++ and g++. It's creating the DLL. >But the functionality is not accessible by VC++ application. How so? Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
RE: Creating Static Libraries
Hi Larry, Thankyou for your reply. I'm asking can we create static libraries(LIBs) rethar than dynamic libraries(DLLs). I think the import library cannot be used alone as a static library. Is it? Thank You, Regards, Suhanthan, V. Suhanthan Vanniyasingam www.eRunway.com -Original Message- From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 9:54 PM To: Suhanthan Vanniyasingam; '[EMAIL PROTECTED]' Subject: Re: Creating Static Libraries At 02:47 AM 4/2/2002, Suhanthan Vanniyasingam wrote: > >Hi, > >I'm new to cygwin. I have found that we can create DLLs using >Cygwin. So What abouts *.lib s? > >Is there any relationship between *.a created with cygwin and *.lib? Yes. If the *.a is an import library (stubs referencing a DLL) rather than a static library, the format is the same as the *.lib. >Is it possible to use these *.a libraries with VC++? Generally, so long as you don't use dynamic memory (or if you do, you need to be very careful about freeing it in the same library as it's allocated - better to just stay away from it). Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: missing cygitcl30.dll
On Tuesday 02 April 2002 18:09, [EMAIL PROTECTED] wrote: > One of my users gets an error message complaing that this DLL file is > missing on his Win2000 machine. > I get such a message every time I start win2k. It's a remnant from one of the well known viruses, which is trying to start tcl, but fortunately not choosing the proper path environment. I haven't been able to find where this virus runs from. McAfee found several file associated with that virus, but not the one which is attempting to run tcl. You don't want to put the .dll where the virus can find it. > The file should be located under C:\cygwin\bin, but the setup log > indicates it was never installed. > > Can someone please e-mail me a copy of this file, or point me to a site > where I can download it (it doesn't appear to be on www.cygwin.com). > Surely it's included in an obvious cygwin place, like the tcl distribution, or dejagnu. My dejagnu runs reasonably well, although I haven't figured out how David Billinghurst was able to bring his up to date. > Thanks in advance. -- Tim Prince -- 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/
dejagnu-1.4.2 on cygwin
Tim Prince wrote: My dejagnu runs reasonably well, although I haven't figured out how David Billinghurst was able to bring his up to date. dejagnu-1.4.2 builds OOTB for me. - download from any gnu mirror - build out of source tree with srcdir/configure --prefix=/usr make make install This overwrites the cygwin dejagnu, but it doesn't seem to work otherwise. That may be that magic you need. -- 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/
Re: NcFTP Feature Request for "getline" (fwd)
The interesting thing is, as of 3.1.2 and 3.1.3, cygwin ncftp uses the readline library for terminal handling -- just like bash does. Prior to 3.1.2, cygwin ncftp used the home-grown termhandling stuff internal to the ncftp codebase. You'd think that would be an improvement -- and that it would work the same as bash. The way readline works, you call rl_completion_matches() and it returns a different match each time you call it -- internally, it calls a custom 'completion generator function' whose address you store in the function pointer rl_completion_entry_function (if NULL, readline uses a default file iterator). Perhaps the completion generator function that ncftp stores in rl_completion_entry_function is buggy? Anyway, as of yesterday I'm not maintaining ncftp anymore -- Hack Kampbjørn has agreed to take over. However, I'm not going anywhere -- and this IS a community project... all together now: patches gratefully accepted. :-) --Chuck Alan Dobkin wrote: > Charles, > > Thanks for taking the time to respond to this issue, > but it seems you may have missed my original message > (which was attached to the one you responded to and > is also included below). I am aware that quotes can > be used as a workaround to this problem - but IMO, > The Right Thing To Do is to have the quotes inserted > automatically. This is also not a matter of Unix vs. > Windows behavior, as both Unix and Windows properly > deal with spaces in file names during tab completion. > > In Windows 2000 (with tab completion enabled in cmd): > > C:\>cd prog --> > C:\>cd "Program Files" > > In bash (using Cygwin or RedHat Linux): > > $ cd /cygdrive/C/Prog --> > $ cd /cygdrive/C/Program\ Files/ > > Now, regarding the new bug I was reporting specifically > in the Cygwin version of NcFTP, you can reproduce it by > creating a bookmark list containing *only* the two I > mentioned, i.e. "RedHat Linux" and "RedHat Updates", or > any other bookmarks that begin with the same word. The > reason your scenario didn't duplicate the bug is because > you had a third bookmark that started differently. > > Incidentally, backslash can't be used to escape the space > either as it works in bash. It has to be enclosed in quotes. > > Using spaces in bookmarks may be silly, but I'm sure I'm > not the first person to try it and expect it to work, > since spaces are valid characters in most filesystems as > file names and are permitted as bookmark names in NcFTP. > > Thanks, > Alan > > --On Tuesday, April 02, 2002 9:09 PM -0500 Charles Wilson > <[EMAIL PROTECTED]> wrote: > > >>I can't reproduce this the way you see it. OTOH, I understand >>your problem, and the short answer is: use " character. >> >>ncftp> open "R U >> >>should do what you want. >> >>On cygwin, using rxvt (TERM=rxvt) or dosbox (TERM=cygwin), I get: >> >>ncftp> open >>neurorcn >>ncftp> open >> >>two tabs, and I get >> >>ncftp> open >>neurorcn >>ncftp> open (e.g. the second tab is interpreted here) >>neurorcn >>ncftp> open >> >>likewise, when I do something as (IMO) silly as having multi-word >>bookmark names, in both environments I get >> >>ncftp> open >>neuro one neuro two rcn (lists all three bkmks) >>ncftp> open n >>neuro one neuro two (lists two bookmarks, autocompletes 'euro ' >>ncftp> open neuro >>neuro one neuro two rcn (thinks that 'open neuro ' is two words, and >> tries to autocomplete an entirely new >> word -- so it re-lists all three bkmks) >> >>If I try to help, by typing the 'o' for 'neuro one', it doesn't help -- >>it tries to match on words beginning with 'o' and since I have no bkmks >>that begin with 'o' -- no match. >> >>ncftp> open neuro o >>ncftp> open neuro o >> >>This is The Right Thing To Do, IMO. Very unixy. Now, if I do THIS: >> >>ncftp> open "neuro >>neuro oneneuro two >> >>Then, I help by adding an 'o': >> >>ncftp> open "neuro o (it autocompletes! 'ne"') >> >>ncftp> open "neuro one" >> >>Again, The Right Thing To Do. Remember, cygwin ain't windows. >> >>--Chuck >> >>Alan Dobkin wrote: >> >> >>>I am resending the attached request as it still applies >>>to NcFTP 3.1.3. I am copying the Cygwin list, because >>>I've noticed a related bug in the current Cygwin version. >>> >>>Consider an example with only the following two bookmarks: >>> >>>RedHat Linux --> FTP.RedHat.Com >>>RedHat Updates --> Updates.RedHat.Com >>> >>>With the non-Cygwin Win32 version, tab completion >>>displays the bookmark list with only the second words: >>> >>>ncftp> open >>>LinuxUpdates >>> >>>However, with the Cygwin version, tab completion repeats >>>the first word each time without displaying the list: >>> >>>ncftp> open >>>ncftp> open RedHat >>>ncftp> open RedHat RedHat >>>ncftp> open RedHat RedHat RedHat >>> >>>Unfortunately, I am not able to contribute any patches >>>myself, but hopefully this will not be a difficult
Re: ncftp current release won't run - missing
Ok, I read the Faq, I'm sorry for assuming I could just run setup.exe and update my system. I'm a big fan of cygwin, and use it to run an FPGA development environment, it's been great, so I appreciate all the work people have put into it. I don't know if I like the solution in the faq - a multiple sequence install to get only part of an update, then the rest to avoid deleting new dll files.. Don't I need a roadmap of which dll's to update in which sequence to make sure it all works? Aren't there multiple interdependencies which mean I can't get all dll's installed at the same time? Am I right in assuming I should just wipe the old cygwin install right off the hard drive, and the old install directory with its history data and install completely a new release to avoid the problem? I'll be trying that wipe clean and reinstall next.. Gord Wait -- 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/
RE: ncftp current release won't run - missing
> -Original Message- > From: Gord Wait [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 3:18 PM > To: [EMAIL PROTECTED] > Subject: Re: ncftp current release won't run - missing > > > Ok, I read the Faq, I'm sorry for assuming I could just run > setup.exe and update my system. You can with the new setup. What is missing on your system? Rob -- 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/
Download Error Report
Warning Unable to process data: multipart/mixed; boundary="=_NextPart_000_000A_01C5660A.EA94A8D5"
RE: trouble using scanf on double arguments under Windows2000
Since I modernized my Cygwin installation the problem does not appear any more. I should have done this before complaining. Sorry for the inconvenience. -Original Message- From: Christopher Faylor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 5:32 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: trouble using scanf on double arguments under Windows2000 On Tue, Apr 02, 2002 at 04:58:32AM -0800, James Merritt wrote: >I like Cygwin and will continue to support it and would like to >continue playing with it and writing programs under Cygwin. I do not >want to blame gcc or Cygwin because I like them, but I want to know >what is causing this behavior as well and is there a workaround. In a free software project, you shouldn't have to think in terms of "workarounds". Instead think "How do I fix the problem". The sources for scanf are available. They're in newlib/libc/stdio/scanf.c . If you think there is a problem, then the best way to address it is to investigate patching it and sending the patch to [EMAIL PROTECTED] cgf -- 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/
Re: CYGWIN - GMP compile problems
What does the link command look like? Assuming something like gcc -lgmp -o gmptest gmptest.o -lgmp should be last. /Andy / "Kris Ray" <[EMAIL PROTECTED]> wrote: | When I try to compile the GMP library in cygwin, it works. However, when I | try to "make" any of the programs in the "demos" folder, I get link errors. | The link errors are all for the GMP functions. The messages are all | something like "undefined reference - __gmpz_get_str", etc. | | any ideas on how to solve this problem? | | thanks, | Kris | | | | | | | -- | 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/ | | -- The eye of the beholder rests on the beauty! -- 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/
Sorry... (was: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm)
Gerrit schrieb: Not that nice, excuse me please. >> To reproduce the bug: >> perl -e 'use File::Spec; print File::Spec->file_name_is_absolute("C:/test") >> ? "no bug" : "bug";' This should be handled by cygwin1.dll. E.g. it is possible to type: $ mkdir c:/test $ ls c:/test and so on. Since CygwinPerl is linked against cygwin1.dll it should work inside Perl too. Gerrit -- =^..^= -- 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/
RE: Sorry... (was: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm)
I have fixed the bug in my copy by changing the implementation of File::Spec::Unix->file_name_is_absolute to check whether $^O is cygwin and use the rule from Win32.pm. There are other places in the file where such conditionals occur. As to one of the previous replies saying to use ActivePerl on Windows, that is not helpful at all. ActivePerl won't understand /cygdrive/c notation, which makes it hard to have a cygwin installation working with ActivePerl. So far I noticed that the C:/Test notation is understood by everybody (cygwin, Windows tools) so it seems like a good middle ground. George. > -Original Message- > From: Gerrit P. Haase [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 4:26 AM > To: George Necula; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Sorry... (was: Re: Bug: cygwin Perl uses > File/Spec/Unix.pm instead of File/Spec/Win3 2.pm) > > > Gerrit schrieb: > > Not that nice, excuse me please. > > >> To reproduce the bug: > >> perl -e 'use File::Spec; print > >> File::Spec->file_name_is_absolute("C:/test") > >> ? "no bug" : "bug";' > > This should be handled by cygwin1.dll. > E.g. it is possible to type: > $ mkdir c:/test > $ ls c:/test > and so on. > Since CygwinPerl is linked against cygwin1.dll it should work > inside Perl too. > > > Gerrit > -- > =^..^= > -- 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/
imapd on cygwin
I used to have this working but it broke somewhere. I installed imapd for cygwin. Now whenever I run it it simply coredumps: $ /usr/local/sbin/imapd Segmentation fault (core dumped) $ I have followed everything in the readme WRT to setting this up and as I said before I did have this working. The one part that didn't work was accessing Inbox but that was because I wasn't using a mail server that made mbox style inboxes. Now I have exim and have even configured mutt to work. But I want imap to work for me. Before I dive into debugging this I was wondering if anybody had any ideas? -- 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/
Re: imapd on cygwin
Andrew DeFaria wrote: > I used to have this working but it broke somewhere. > > I installed imapd for cygwin. Now whenever I run it it simply coredumps: > > $ /usr/local/sbin/imapd > Segmentation fault (core dumped) > $ > > I have followed everything in the readme WRT to setting this up and as > I said before I did have this working. The one part that didn't work > was accessing Inbox but that was because I wasn't using a mail server > that made mbox style inboxes. Now I have exim and have even configured > mutt to work. But I want imap to work for me. > > Before I dive into debugging this I was wondering if anybody had any > ideas? Well I build a debugable version of imapd and did a little debugging with gdb and this is odd. I'm dying at gettimeofday in the function rfc822_timezone which gdb shows me as: void rfc822_timezone (char *s,void *t) { struct timezone d; struct tm *tm; int hr; gettimeofday(NULL, &d); hr = d.tz_minuteswest / 60; tm = (struct tm *)t; if (tm->tm_isdst) { hr++; } sprintf(s + strlen(s), " (%+04d)", (hr * 100)); } I can find no man page for gettimeofday in Cygwin! And I can't seem to even call it properly: #include #include int main (void) { struct timezone d; printf ("Calling gettimeofday\n"); gettimeofday (NULL, &d); printf ("Returned from gettimeofday\n"); } $ gcc foo.c foo.c: In function `main': foo.c:4: storage size of `d' isn't known So how the hell did it get compiled into imapd this way?!? And how does on call gettimeofday in Cygwin? Finally I tried: $ grep gettimeofday /usr/include/* /usr/include/_syslist.h:#define _gettimeofday gettimeofday /usr/include/reent.h:extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *tp, struct timezone *tzp)); Any ideas? -- 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/
Re: setup.exe and mirror list question
Hello Scott, Tuesday, April 02, 2002, 6:44:47 PM, you wrote: SP> Robert (or anyone), SP> Regarding the setup.exe "Choose a Download Site" page: SP> What I am doing right now is running an internal Cygwin mirror, updated every 24h via rsync. When a user runs setup.exe from my mirror, I'd like my internal mirror to be the ONLY available mirror SP> displayed in the install screen. SP> I checked the FAQ & discussion lists and could not see how this would be done. Is this possible? The setup program fetches the mirror list from a hardcoded URL which is found in the resource section of the executable. So you can use a resource editor to change this URL to something apropriate for you... Another way to achieve this is to get the setup.exe sources and change the URL in the resource (.rc) script file and compile your own version. Still I think both choices will make your version of setup.exe unsupported by this list ... or maybe I'm wrong :)) -- 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/