Re: [RFC] Change to subversion package: Move /usr/bin/* - /usr/bin/subversion/* and add symlinks in /usr/bin
Op Mon, 12 Jul 2004 11:32:30 +0100 schreef Max Bowsher in [EMAIL PROTECTED]: : Christopher Faylor wrote: [...] : The FHS dictates no subdirectories in /usr/bin and I think it's a good : rule. Program specific subdirectories belong in /usr/lib. : : ... : : Why didn't rpm just put its binaries in /usr/bin/rpm? Why didn't qt put : them in /usr/bin/qt? Regardless of the reason, they put their packages : in /usr/lib. So should you. : : OK, I'll use /usr/lib. : : Though the FHS actually permits subdirs of /usr/bin, even defining the : meaning of one subdir, /usr/bin/mh ...as an option, and it may also be a symlink (The following directories, or symbolic links to directories, must be in /usr/bin, if the corresponding subsystem is installed) : http://www.pathname.com/fhs/pub/fhs-2.3.html#USRBINMOSTUSERCOMMANDS It /does/ require: /usr/bin/X11 must be a symlink to /usr/X11R6/bin if the latter exists. The latter *does* exist. The former _does not_. [Heads up X11-maintainer? (Same is true for /usr/lib/X11 - /usr/X11R6/lib/X11 and /usr/include/X11 - /usr/X11R6/include/X11 url:http://www.pathname.com/fhs/pub/fhs-2.3.html#USRX11R6XWINDOWSYSTEMVERSION11REL )] However, in http://www.pathname.com/fhs/pub/fhs-2.3.html#REQUIREMENTS2 it clearly states: There must be no subdirectories in /bin. It does not forbid symlinks to dirs AFAICS... L8r, Buzz. -- ) | | ---/ ---/ Yes, this | This message consists of true | I do not -- | | // really is | and false bits entirely.| mail for ) | | //a 72 by 4 +---+ any1 but -- \--| /--- /--- .sigfile. | |perl -pe s.u(z)\1.as.| me. 4^re
FROM IBRAHIM
THE DIRECTOR GENERAL FEDERAL MINSTRY OF FINANCE FEDERAL SECRETARIAT COMPLEX. ATT, I am ibrahim the Personal Assistant to the son of late Head of state Mohamed Abacha. I have in my possession the documents of US$10.5M (ten million, five hundred thousand united states dollars) which the late head of state, gen. Sani Abacha, approved to be paid into the account of a private company in Lebanon. This company was recommended by Mrs. Sani Abacha who is also a Lebanese, before the sudden death of our former head of state. Therefore I have seen this as an opportunity of my time and have decided to make an alternative arrangement towards the diversion of the fund for my selves. Note that the first phase payment has been made since last year. Having received approved for the last phase of 1998/99 national reconstruction scheme projects, I need your kind assistance providing either your company or personal bank account where this money will be transferred. As a matter of urgency, type this application and e-mail it to me on the above address with your phone/fax number, without hesitation. Again try to type the application below with your company or your personal letter headed paper. THE DIRECTOR GENERAL FEDERAL MINSTRY OF FINANCE FEDERAL SECRETARIAT COMPLEX. Sir, Applications for the change of bank Account for the transfer of US$10,5M with contract no: FGN/NRS/914/98. Owing to the sudden death of the head of state Gen. Sani Abacha and other unavoidable circumstances, I/We write for the cancellation of my/our bank account in Taiwan. CHINA TRUST COMMERCIAL BANK 122 TUNHUWA BRANCH TAIPEI TAIWAN. A/C NO: 09954441 It is my/our pleasure that your ministry and other concerned authorities should direct my/our payment to this new reliable bank account. BANK NAME / ADDRESS: . ACCOUNT NO: . BENEFICIARY: BANK TELEX, TELEPHONE FAX NO: . I/WE look forward to receiving a satisfactory reply of my or our application.Thanks for your consideration. Yours Faithfully, (your name and signature ) As soon as this application is written , e-mail it to me for prompt procession as this fund is awaiting instructions from the relevant authorities here, for further credit to your nominated bank account. For providing your personal or companys bank account , (You I) shall discuss and agree on how much you will collect from the total sum when it enters into your account. I expect your earliest e-mail or [EMAIL PROTECTED] Best Regards, Mr. Ibrahim C.
OPENGL ON CYGWIN
Hi, My name is Loren Greenman, and I am running Cygwin at home. When I log in remotely (secure shell) to the computers at where I work, I am unable to run application that require OpenGL. I have downloaded the OpenGL library, and am otherwise up to date on Cygwin. However, I still get an error that says OpenGL not available whenever I try to use this program. My graphics card has OpenGL capabilities, and when I run a OpenGL test program from Cygwin it works, but when I try it after remotely logging into another computer I am unable to use this program. Any help is greatly appreciated. Loren Greenman
Re: OPENGL ON CYGWIN
On Tue, 13 Jul 2004, Loren Greenman wrote: Hi, My name is Loren Greenman, and I am running Cygwin at home. When I log in remotely (secure shell) to the computers at where I work, I am unable to run application that require OpenGL. I have downloaded the OpenGL library, and am otherwise up to date on Cygwin. However, I still get an error that says OpenGL not available whenever I try to use this program. My graphics card has OpenGL capabilities, and when I run a OpenGL test program from Cygwin it works, but when I try it after remotely logging into another computer I am unable to use this program. Any help is greatly appreciated. - What OS are you using at work? - Do other X11 programs work on the remote host? No: Check FAQ for X11 Forwarding - What does glxinfo report? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: OPENGL ON CYGWIN
Loren, Considering the message that made it to the list just before yours (http://cygwin.com/ml/cygwin-xfree/2004-07/msg00074.html), the choice of ALL-CAPS for the subject was perhaps not the wisest... :-) More below. On Tue, 13 Jul 2004, Loren Greenman wrote: Hi, My name is Loren Greenman, and I am running Cygwin at home. When I log in remotely (secure shell) to the computers at where I work, I am unable to run application that require OpenGL. I have downloaded the OpenGL library, and am otherwise up to date on Cygwin. However, I still get an error that says OpenGL not available whenever I try to use this program. My graphics card has OpenGL capabilities, and when I run a OpenGL test program from Cygwin it works, but when I try it after remotely logging into another computer I am unable to use this program. Any help is greatly appreciated. Loren Greenman I believe you're confusing the native OpenGL support (which you get from the opengl package) and the OpenGL/GLX extension for the X server. The OpenGL test program is most likely running using the native OpenGL. For the remote program to use OpenGL, you'll need to have the GLX extension enabled in the X server. While from what I recall it is already working (see http://cygwin.com/ml/cygwin-xfree/2004-03/msg00323.html), you'll need to post the exact error message you're getting and the exact commands you used to invoke your XWin session and the failing program. You might also be asked later to post /tmp/XWin.log from a failed session. Igor P.S. A WAG: since you mentioned that you connect via ssh, take a look at http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: When i try to start X with command: $ startx (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 Rules = xorg Model = pc105 Layout = it Variant = (null) Options = (null ) at this point output stops, and no window appear. with 'ps' I can see that Xwin.exe and xinit.exe are both running (in winXp task manager too) trying with startxwin.bat, I get the same output and again no window. what does mount report? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
$ mount C:\Programmi\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type sys tem (binmode) C:\Programmi\cygwin\bin on /usr/bin type system (binmode) C:\Programmi\cygwin\lib on /usr/lib type system (binmode) C:\Programmi\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) o: on /cygdrive/o type user (binmode,noumount)
How to use ddd with XWindows?
I apologize if I had already posted this question. However, I did not see my own posting and I assume it never made it to the mailing list. I see from the posting below that you are using startx. H... I think that is the command I use on Linux. I tried it on Win2003 server running cygwin and there is no such command. I'm using the command XWin.exe and I'm trying to run the ddd debugger. XWindows seems to start OK. I can run X utilities like the XClock. However, when I try to start ddd main_assert.exe I get the Error: Can't open display:. Someone in the [EMAIL PROTECTED] mailing list suggested I need to set the display and then I was chastised for carrying on off topic. Can someone help me run ddd? Currently, ddd is my only motivation for running XWindows. I was told I needed to start the XWindows server before I could run ddd. Thanks, Siegfried -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Gottwald Sent: Tuesday, July 13, 2004 9:32 AM To: [EMAIL PROTECTED] Subject: Re: X startup hangs On Tue, 13 Jul 2004, electa wrote: When i try to start X with command: $ startx (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 Rules = xorg Model = pc105 Layout = it Variant = (null) Options = (null ) at this point output stops, and no window appear. with 'ps' I can see that Xwin.exe and xinit.exe are both running (in winXp task manager too) trying with startxwin.bat, I get the same output and again no window. what does mount report? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: $ mount C:\Programmi\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type sys tem (binmode) C:\Programmi\cygwin\bin on /usr/bin type system (binmode) C:\Programmi\cygwin\lib on /usr/lib type system (binmode) C:\Programmi\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) o: on /cygdrive/o type user (binmode,noumount) Hm, at least the wrong filessystem mode is not the problem. From your log I see it stops when it generates the keyboard layout. You may disable this by adding the option -kb to the commandline to start XWin but you will get the US layout as default. But I don't know what causes xkbcomp to hang for some users and until I can reproduce this I have no change to debug what is happening. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: How to use ddd with XWindows?
On Tue, 13 Jul 2004, Siegfried Heintze wrote: I apologize if I had already posted this question. However, I did not see my own posting and I assume it never made it to the mailing list. I see from the posting below that you are using startx. H... I think that is the command I use on Linux. I tried it on Win2003 server running cygwin and there is no such command. I'm using the command XWin.exe and I'm trying to run the ddd debugger. XWindows seems to start OK. I can run X utilities like the XClock. However, when I try to start ddd main_assert.exe I get the Error: Can't open display:. Someone in the [EMAIL PROTECTED] mailing list suggested I need to set the display and then I was chastised for carrying on off topic. Can someone help me run ddd? Currently, ddd is my only motivation for running XWindows. I was told I needed to start the XWindows server before I could run ddd. After you've started XWindows run DISPLAY=:0.0 ddd main_assert.exe The DISPLAY environment variable is important you can set it with export DISPLAY=:0.0 in bash or setenv DISPLAY :0.0 in tcsh. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: gaim 'BadWindow' crashes fixed
Danilo, If you have the uncompressed TIFFs handy, could you please send them to me? Or if there is an easier way to fix the problem, please, someone speak up. Thanks. On Tue, 2004-07-06 at 11:01, Danilo Turina wrote: I also think so. In fact when I used WindowMaker (now I go with -multiwindow) I had the same problem and it was caused by lz77 compressed tiff icons. If I remember well (but I usually don't), I converted the broken TIFFs with IrfanView to uncompressed (or non-lz77 compressed) TIFFs. Ciao, Danilo Alexander Gottwald wrote: On Tue, 6 Jul 2004, Jean-Claude Gervais wrote: You wouldn't happen to know how to fix the WindowMaker Preferences Utility corrupted icons bug, would you? Maybe this is the long standing bug with lz77 compressed tiff files in the windowmaker package with libtiff without lz77 algorithm. But i don't use windowmaker and can't tell exactly. bye ago
Re: How to use ddd with XWindows?
On Tue, 13 Jul 2004, Siegfried Heintze wrote: I apologize if I had already posted this question. However, I did not see my own posting and I assume it never made it to the mailing list. I see from the posting below that you are using startx. H... I think that is the command I use on Linux. I tried it on Win2003 server running cygwin and there is no such command. Did you install the X-startup-scripts package? Do you have /usr/X11R6/bin in your PATH? I'm using the command XWin.exe and I'm trying to run the ddd debugger. XWindows seems to start OK. I can run X utilities like the XClock. However, when I try to start ddd main_assert.exe I get the Error: Can't open display:. You did try export DISPLAY=:0.0; ddd main_assert.exe, right? Or even DISPLAY=:0.0 ddd main_assert.exe? Someone in the [EMAIL PROTECTED] mailing list suggested I need to set the display and then I was chastised for carrying on off topic. Actually, the other way around (first the off-topic part, then set the DISPLAY), and you weren't chastised, just informed. The message got redirected to this list, too. :-) It also said set the DISPLAY (note the capitals). What it meant was set the DISPLAY environment variable to the correct value. Above are a couple of ways that could be done. Can someone help me run ddd? Currently, ddd is my only motivation for running XWindows. I was told I needed to start the XWindows server before I could run ddd. XWin should do it, but startx will also include some standard command-line options and start an xterm. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: X startup hangs
still hangs... $ startx -- -kb -multiwindow -clipboard Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.7.0.0-10 Contact: [EMAIL PROTECTED] XWin was started with the following command line: /usr/X11R6/bin/X :0 -kb -multiwindow -clipboard _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 0007 winSetEngine - Multi Window or Rootless = ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 16 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 734 depth: 16 winFinishScreenInitFB - Masks: f800 07e0 001f winInitVisualsShadowGDI - Masks f800 07e0 001f BPRGB 6 d 16 bpp 16 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shar ed memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 (++) XkbExtension disabled Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from li st! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li st! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! winPointerWarpCursor - Discarding first warp: 512 367 winInitMultiWindowWM - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello --- An important test: without -multiwindow, the X window appear. but she hangs sooner. in task manager, now cat.exe is running. (it gets 0% of CPU). if I kill cat.exe via task manager, an Xterm now appear in X window. X is ready now! What is doing cat with X? - A reminescence: In early past cat.exe sometimes gets 100% CPU during X startup. X don't finish start, and i resolve by killing cat. When i do it, X is ready. there are 2 differences: - now cat has 0% CPU - with -multiwindow, X hangs before cat
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: still hangs... $ startx -- -kb -multiwindow -clipboard (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 (++) XkbExtension disabled Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from li st! It is getting beyond the point where it failed earlier. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello --- An important test: without -multiwindow, the X window appear. but she hangs sooner. in task manager, now cat.exe is running. (it gets 0% of CPU). if I kill cat.exe via task manager, an Xterm now appear in X window. X is ready now! What is doing cat with X? maybe this is from the xinitrc script. Do you have .xinitrc in your home directory? do you still get the cat started when doing xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard Can you provide me with an strace output of the above: strace -o xinit.strace xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard please mail me the xinit.strace _directly_ (i don't want to annoy the list with the large output) bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: How to use ddd with XWindows?
Siegfried Heintze wrote: I apologize if I had already posted this question. However, I did not see my own posting and I assume it never made it to the mailing list. I see from the posting below that you are using startx. H... I think that is the command I use on Linux. I tried it on Win2003 server running cygwin and there is no such command. Just to interject, the startx script does exist on Cygwin. That's how I typically start X. You have to invoke it in a posix shell on some versions of Windows because of the way Windows detects executable scripts, though.
src/winsup/mingw ChangeLog Makefile.in include ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-07-13 11:04:25 Modified files: winsup/mingw : ChangeLog Makefile.in winsup/mingw/include: _mingw.h Log message: * include/_mingw.h: Increment minor version for 3.4 release. * Makefile.in: Ditto. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.200r2=1.201 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/Makefile.in.diff?cvsroot=srcr1=1.47r2=1.48 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/include/_mingw.h.diff?cvsroot=srcr1=1.27r2=1.28
src/winsup/mingw ChangeLog include/limits.h
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-07-13 11:11:36 Modified files: winsup/mingw : ChangeLog winsup/mingw/include: limits.h Log message: * include/limits.h: Change to new file header preamble. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.201r2=1.202 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/include/limits.h.diff?cvsroot=srcr1=1.4r2=1.5
src/winsup/mingw ChangeLog Makefile.in
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-07-13 11:23:08 Modified files: winsup/mingw : ChangeLog Makefile.in Log message: * Makefile.in: Move use of --nostdinc++ as GCC3.4 refuses to use it for C modules. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.202r2=1.203 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/Makefile.in.diff?cvsroot=srcr1=1.48r2=1.49
src/winsup/mingw ChangeLog mingwex/Makefile.in ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2004-07-13 13:01:28 Modified files: winsup/mingw : ChangeLog winsup/mingw/mingwex: Makefile.in winsup/mingw/profile: Makefile.in Log message: * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it for C modules. * mingwex/Makefile.in: Ditto. * profile/Makefile.in: Ditto. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.203r2=1.204 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/Makefile.in.diff?cvsroot=srcr1=1.14r2=1.15 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/profile/Makefile.in.diff?cvsroot=srcr1=1.9r2=1.10
Re: cygwin: /proc and /cygdrive insvisible
Hello, is there a reason (i bet there is :-) why the /proc and /cygdrive directory isn't visible when ls -l / ? cd / mkdir proc cygdrive Sounds easy. But unfortunately it doesn't work for the /proc. The command executes but after that there is still no directory visible via LS. Mit freundlichen Grüssen, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: access to event log of windows
Hello, is there a way to read/write from/to the event log of windows ? syslog and vsyslog are implemented in Cygwin. On NT they use the event log system. You're right. But i think with syslog i can only write to the log. What i also need is to read from it :-) In other words: i'd like to scan NT eventlog for errors, programatically. Mit freundlichen Grüssen, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Wrapping long lines (Was Re: FAQ update suggestion for I'm having basic problems with find. Why?)
At 08:47 PM 7/11/2004, you wrote: On Sat, Jul 10, 2004 at 09:54:05AM -0500, Eduardo Chappa wrote: That was CGF himself, he volunteered to not to volunteer. He brought this topic onto himself. This statement is disingenuous. For shame. Perhaps, perhaps not. I'm still waiting for somebody, other than you Chris[1], to tell me who asked you to do anything about anything discussed here (prior to the replied-to post; I see there was a deal subsequently proposed that did in fact ask for some tit-for-tat action). [1] This exception is of course an attempt to help prevent this message from being misinterpreted as a demand for you to do anything. It is not, and is not to be misconstrued as such. Nor, in fact, is it to be construed as a demand for anybody else to do anything either. One would hope this would be clear from the complete lack of demands or implications of demands contained herin, but when in Rome Oh, and BTW, whatever anybody wants to convince themselves of, if you're pointing folks to Google to get info out of your archives (which contain their own seach feature), your archives are broken. DISCLAIMER: That was the Royal Your, not to be construed as Chris' archives etc. Remember, denial is stage one. I'm not sure what you're looking to get from someone responding to your inquiry Simply clarification on who did the deed. If in fact a deed was done. but from my perspective, based on what you've said, this just prolongs a thread that has drifted beyond the scope of the original inquiry and no longer serves a constructive purpose. If you can succinctly point to one, then perhaps it's still worthwhile to continue this thread. Last I checked we were talking about broken archives, for some definition of broken anyway. You'll note that my post mentions a shortcoming I've noticed pertaining to that very subject. At the same time you are of course right, there is no point in continuing this thread. It has served its purpose... if that purpose was to get a maintainer to quit. Otherwise, let's just let it die and move on. I think all relevant points have been made already. Indeed. Truth is the most valuable thing we have. Let us economise it. - Mark Twain -- Gary R. Van Sickle -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
Hello all, Thanks for the help so far, on this issue with the mysterious non-network based rsync slowdown. To recap... Brian Dessent wrote: Reini Urban wrote: Alexis Gallagher wrote: When the file is alredy there, rsync reports a speedup of about 70. (When the file is not already there, the speed up is 1, of course.) I am running rsync over ssh with pre-generated keys installed in my .ssh directories. This is a binary MP3. rsync (as diff) is not good in checking binary diffs. Please try it with a typical text file, where the patch is smaller than the source. That is not correct at all, and rsync would be much less useful if it were true. rsync works with arbitrary binary data just as well as it does with text. In any event I checked Reini's theory using a 5 MB text file that consists only of x's and newlines. So unlike an MP3, this file is non-binary and extremely compressible. And what I observed was as follows: scp: 348800 bytes/sec rsync (file not there): 303075 bytes/sec, with speedup of 1 rsync (file already there): 733 bytes/sec, with speedup of 70 This is pretty much exactly the same problem as I was having with the MP3 file. And I'm still quite puzzled. Cheers, Alexis -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
- Original Message - From: Alexis Gallagher In any event I checked Reini's theory using a 5 MB text file that consists only of x's and newlines. So unlike an MP3, this file is non-binary and extremely compressible. And what I observed was as follows: scp: 348800 bytes/sec rsync (file not there): 303075 bytes/sec, with speedup of 1 rsync (file already there): 733 bytes/sec, with speedup of 70 This is pretty much exactly the same problem as I was having with the MP3 file. And I'm still quite puzzled. Is this not because its showing you the network transfer rate i.e. spending all its time doing compression and therefore not having to do actual network transfers? How long did each test take? Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
Brian Dessent schrieb: Reini Urban wrote: When the file is alredy there, rsync reports a speedup of about 70. (When the file is not already there, the speed up is 1, of course.) I am running rsync over ssh with pre-generated keys installed in my .ssh directories. This is a binary MP3. rsync (as diff) is not good in checking binary diffs. Please try it with a typical text file, where the patch is smaller than the source. That is not correct at all, and rsync would be much less useful if it were true. rsync works with arbitrary binary data just as well as it does with text. It has no conception of 'lines' or any other type of delimited text. All it does is split up the file into fixed-length chunks and calculates a rolling checksum of each of these. It does not use anything resembling 'diff' or 'patch'. http://rsync.samba.org/tech_report/node2.html Thanks for clarification. Makes sense. So as punishment I made another bench. What is the maximum overhead? It cannot be the reported difference (factor 500). http://rsync.samba.org/tech_report/node6.html has about a similar filesize (2.1MB binary). In this example with a hit:miss ration of 64247:948 the overhead is 5312200:5629158+1632284 (if read and write is synchronous) compared to rcp. So about max 2.5 overhead, and not 500. So check if the net overhead in the cygwin version is broken? Could be easily tested out with two local files: head -c 210 /dev/random test1.mp3 head -c 210 /dev/random test2.mp3 cp test1.mp3 test1-same.mp3 cp test2.mp3 test2.bak time rsync test1.mp3 test2.mp3 real0m0.518s user0m0.201s sys 0m0.171s time rsync test1.mp3 test1-same.mp3 real0m0.524s user0m0.154s sys 0m0.263s RSYNC_RSH=ssh TEST=othermachine cp test2.bak test2.mp3 time scp test2.mp3 $TEST: 63.2KB/s real0m36.619s user0m0.170s sys 0m0.233s # 100% different $ time rsync test1.mp3 $TEST:test2.mp3 Server is very old version of rsync, upgrade recommended. real0m37.162s user0m0.388s sys 0m0.202s # 100% same $ time rsync test2.mp3 $TEST:test2.bak Server is very old version of rsync, upgrade recommended. real0m7.298s user0m1.201s sys 0m2.217s 6x faster than scp, with same data. 0.5s (1.4%) slower than scp, with complete random data. $ rsync --version rsync version 2.6.2 protocol version 28 $ ssh $TEST rsync --version rsync version 2.4.6 protocol version 24 $ ssh -V OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 $ ssh $TEST ssh -V OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.6c 21 dec 2001 $ uname -r 1.5.10(0.116/4/2) -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
Hi Steve, Steven Hartland wrote: Is this not because its showing you the network transfer rate i.e. spending all its time doing compression and therefore not having to do actual network transfers? How long did each test take? I just performed the test again, this time timing the transfers with a stopwatch. (This time I was transferring a text file that consisted of 5 million zeros, which is about 5MB.) Here's what I found. scp: 19 seconds rsync (no there): 17 seconds rsync (already there): 93 seconds So it's taking much longer in real time when the file is already there, which is exactly the situation where rsync is supposed to accelerate teh transfer. The cygwin machine is a Pentium III 1Ghz, and the eMac is a bit faster I believe. This should be fast enough that it's not bottlenecking on the hash computation, I think. Cheers, Alexis -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
* Alexis Gallagher (2004-07-12 19:46 +0200) I am finding that rsync+ssh is giving extremely slow file transfers. But this slowdown is hitting not when it needs to send data over the network, but when it applies the rsync algorithm which is supposed to be faster than sending all the data over the network. This is very puzzling. For a benchmark, I tried transfering a 5.4 MB mp3 file three different ways. Here were my results, as reported by 'scp -v' and 'rsync --progress --stats': scp: 311000 B/s rsync (file not there): 309000 B/s rsync (file already there): 741 B/s When the file is alredy there, rsync reports a speedup of about 70. (When the file is not already there, the speed up is 1, of course.) I am running rsync over ssh with pre-generated keys installed in my .ssh directories. rsync under Cygwin is extremly slow and CPU intensive. For example a simple script that syncs my dot files from my local NetWare server takes 1:10 minutes to run and eats about 60% CPU while on my Gentoo box (which has exactly the same hardware) it takes 7 seconds and 2% CPU. Try disabling checksumming, zipping and transfer the whole file ('-W'). Try it without ssh. Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
Are you using --size-only? Depending on the processor the check of the file chunks can be slower. Steve / K - Original Message - From: Alexis Gallagher So it's taking much longer in real time when the file is already there, which is exactly the situation where rsync is supposed to accelerate teh transfer. The cygwin machine is a Pentium III 1Ghz, and the eMac is a bit faster I believe. This should be fast enough that it's not bottlenecking on the hash computation, I think. This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin: /proc and /cygdrive insvisible
* Oliver Geisen (2004-07-13 08:26 +0200) is there a reason (i bet there is :-) why the /proc and /cygdrive directory isn't visible when ls -l / ? cd / mkdir proc cygdrive Sounds easy. But unfortunately it doesn't work for the /proc. The command executes but after that there is still no directory visible via LS. Exactly: [EMAIL PROTECTED] mkdir /proc mkdir: created directory `/proc' [EMAIL PROTECTED] ls -al / /proc 1022:11 total 13 -rwx--+ 1 thorsten Kein 1416 May 8 11:33 bash.bat* -rwx--+ 1 thorsten Kein 1388 Feb 23 00:12 bash.lnk* drwxrwx---+ 4 thorsten Benutzer0 Jul 13 10:12 bin/ dr-xr-xr-x9 0root0 Jan 1 1970 cygdrive/ -rwx--+ 1 thorsten Kein 1415 May 8 11:25 cygwin.bat* -rwx--+ 1 thorsten Kein 7022 Jul 13 10:16 cygwin.ico* drwxrwx---+ 17 thorsten Benutzer0 Jul 8 20:47 etc/ drwxrwxrwx+ 3 thorsten Kein0 Mar 23 20:18 home/ drwxrwx---+ 28 thorsten Benutzer0 Jul 7 19:01 lib/ drwxrwx---+ 4 thorsten Benutzer0 Jun 13 17:19 opt/ drwxrwx---+ 2 thorsten Benutzer0 Mar 9 01:53 sbin/ drwxrwx---+ 16 thorsten Benutzer0 Jul 13 11:57 tmp/ drwxrwx---+ 20 thorsten Benutzer0 Jun 21 22:29 usr/ drwxrwx---+ 11 thorsten Benutzer0 Jun 21 23:00 var/ [EMAIL PROTECTED] ls /proc 304/ 864/ 992/ 1044/1112/1152/1516/ 1652/ 1696/ 1832/ 2424/2940/ 3412/ cpuinfo loadavg meminfo partitions registry/ stat uptime version Mit freundlichen Grüssen, ? Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync very slow, but not a network issue
Ok, Now this is progress. When I use '--size-only' then I do see a speedup. The 'transfer' is virtually instantaneous on the stopwatch, and 'rsync --stats' reports a speed of a mere 25 bytes/sec but with a reported speedup of 78125. I can see why this works, but I remain confused why I should need to resort to it. This is basically dispensing with the rsync algorithm, no? The cygwin machine is a Pentium III, 966 Mhz, 512MB of RAM. And the OSX machine is a 1 Ghz PowerPC G4 with 256MB of RAM. I can't believe everyone would use rsync as much as they do if it were not useful on machines of such specifications. Is there a way to benchmark its hashing algorithm on both sides? Maybe the rsync process is getting insufficient priority on one side of the transfer? I remain puzzled, Alexis Gallagher Steven Hartland wrote: Alexis Gallagher wrote: So it's taking much longer in real time when the file is already there, which is exactly the situation where rsync is supposed to accelerate teh transfer. The cygwin machine is a Pentium III 1Ghz, and the eMac is a bit faster I believe. This should be fast enough that it's not bottlenecking on the hash computation, I think. Are you using --size-only? Depending on the processor the check of the file chunks can be slower. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: FAQ update suggestion for I'm having basic problems with find. Why?
On 2004-07-08, Larry Hall wrote: At 10:02 AM 7/8/2004, you wrote: I have been using *ixy-type systems on and off for what must now be 16 years, including using find. I was using find today on an UDF/ISO format DVD-R, and was perplexed by it seemingly missing out large chunks of the hierarchy at random. It seems that find has an optimisation relating to the hard link count on directories and the presence or otherwise of the . and .. objects. If the filesystem you are finding on doesn't have the . and .. objects then find will fail silently(!) To get it to work, you need to turn the optimisation off with the - noleaf option. This is documented in the man page, but when you come to the symptoms cold, it looks more like a subsystem issue than an application issue, so it didn't occur to me to look in the documentation for find. The problem here is that the route to discovery of the solution is somewhat tricky. (In fact you could say that it is a dangerous optimisation in find. If the optimisation is not valid, there are no error messages and it fails silently. I guess I should be looking to see if this issue has already come up on the upstream version of find.) Right. I'd agree with this notion. My point is this: Whilst this is not an issue with Cygwin per se, the nature of Cygwin means that this issue will tend to arise commonly with Cygwin, and tend not to arise under traditional unixes. Why's that? Traditional unixes have been around for longer. Cygwin contains more to do with joining together stuff which has origins in different paradigms, so you are likely to see more problems with edge cases. Perhaps it would be a good idea to mention this issue in the Cygwin FAQ? Possibly as a second point under the existing heading of I'm having basic problems with find. Why? We could have an extra paragraph that goes something like this: If find does not seem to be producing enough results, or seems to be missing out some directories, you may be experiencing a problem with one of find's optimisations. See the documentation for the option '-noleaf' in the man page. That seems to be reasonable wording. But my inclination would be to get the results of more research into the 'find' issue before adding this to the Cygwin doc somewhere (not sure if the FAQ is quite the right spot given that we haven't seen allot of questions about it - at least not yet ;-) ). Would you be able to look into this further? On Windows XP over NTFS, find apparently worked fine without the -noleaf option. On Windows XP over three DVD-R discs, each containing a distinct data set, all laid out in UDF/ISO format using Ahead Nero 5.5, find required the -noleaf option in order to find all the objects as expected. The three discs were an archive copy of a hard disk from a notebook PC, with the files spread over three DVDs with the decision as to which disk each group of files was placed on made by estimation of usefulness. Discs 1 and 2 contained only one directory at the top level of the hierarchy called Documents and Settings. All other objects were below that directory. Disc 3 contained multiple directories and files at the top level of the hierarchy. The command lines containing find would be: cd /cygdrive/e find -type f -print0 | xargs -0 md5sum | sort +1 somefile find -noleaf -type f -print0 | xargs -0 md5sum | sort +1 somefile (Where /cygdrive/e refers to a DVD reading drive.) The idea is to get a file containing a list of MD5 sums of all files in the hierarchy. The number of search hits returned was as follows: Disc 1 without -noleaf: 0 hits with-noleaf: 7379 hits Disc 2 without -noleaf: 0 hits with-noleaf: 4325 hits Disc 3 without -noleaf: 17618 hits with-noleaf: 37973 hits I also made a list of MD5 sums from the original notebook hard disk using a similar command line. Combining the MD5 sums lists from the DVD-R discs, then sorting the results and comparing with the MD5 sum list from the original hard disk results were as follows: DVD-R discs read without -noleaf: Huge numbers of files completely missing from DVD-R set DVD-R discs read with -noleaf: Minor differences which could all be explained by: (a) Filename truncation on DVD-R filesystem (b) Permissions issues on the hard disk NTFS filesystem (c) Fondling of files by Windows XP in meantime (e.g. desktop.ini) So, from this my conclusion was that -noleaf was necessary when reading from a DVD-R filesystem made as described above. The result of zero hits when the top level directory only contains one directory is consistent with the behaviour described in the find documentation under the -noleaf option. I had Googled for a while to try and find the answer, but to no avail. My search did lead me to the Cygwin mailing list, which lead me first to a suggestion that I read the Cygwin FAQ. The Cygwin
Re: rsync very slow, but not a network issue
Thorsten Kampe schrieb: * Alexis Gallagher (2004-07-12 19:46 +0200) I am finding that rsync+ssh is giving extremely slow file transfers. But this slowdown is hitting not when it needs to send data over the network, but when it applies the rsync algorithm which is supposed to be faster than sending all the data over the network. This is very puzzling. For a benchmark, I tried transfering a 5.4 MB mp3 file three different ways. Here were my results, as reported by 'scp -v' and 'rsync --progress --stats': scp: 311000 B/s rsync (file not there): 309000 B/s rsync (file already there): 741 B/s When the file is alredy there, rsync reports a speedup of about 70. (When the file is not already there, the speed up is 1, of course.) I am running rsync over ssh with pre-generated keys installed in my .ssh directories. rsync under Cygwin is extremly slow and CPU intensive. For example a simple script that syncs my dot files from my local NetWare server takes 1:10 minutes to run and eats about 60% CPU while on my Gentoo box (which has exactly the same hardware) it takes 7 seconds and 2% CPU. Try disabling checksumming, zipping and transfer the whole file ('-W'). Try it without ssh. I rechecked my test, this time with cygserver enabled. Before I ran it without cygserver and without ipc-daemon2. (Forgot if rsync uses now the old ipc-daemon2 or the new cygserver or no ipc at all.) Same (fast) results as expected, for both cases with local files. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin: /proc and /cygdrive insvisible
On Jul 13 13:30, Thorsten Kampe wrote: * Oliver Geisen (2004-07-13 08:26 +0200) is there a reason (i bet there is :-) why the /proc and /cygdrive directory isn't visible when ls -l / ? cd / mkdir proc cygdrive Sounds easy. But unfortunately it doesn't work for the /proc. The command executes but after that there is still no directory visible via LS. Exactly: [EMAIL PROTECTED] mkdir /proc mkdir: created directory `/proc' [EMAIL PROTECTED] ls -al / [etc] Just create a directory proc from Windows Explorer. From Cygwin's point of view the directory already exists, even though it's plain virtual. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin: /proc and /cygdrive insvisible
* Corinna Vinschen (2004-07-13 14:21 +0200) On Jul 13 13:30, Thorsten Kampe wrote: * Oliver Geisen (2004-07-13 08:26 +0200) is there a reason (i bet there is :-) why the /proc and /cygdrive directory isn't visible when ls -l / ? cd / mkdir proc cygdrive Sounds easy. But unfortunately it doesn't work for the /proc. The command executes but after that there is still no directory visible via LS. Exactly: [EMAIL PROTECTED] mkdir /proc mkdir: created directory `/proc' [EMAIL PROTECTED] ls -al / [etc] Just create a directory proc from Windows Explorer. From Cygwin's point of view the directory already exists, even though it's plain virtual. You misunderstood my intention: creating a real /proc has no benefit and isn't neccessary. /cygdrive is different - I always create that folder with explorer. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin: /proc and /cygdrive insvisible
On Jul 13 14:24, Thorsten Kampe wrote: * Corinna Vinschen (2004-07-13 14:21 +0200) Just create a directory proc from Windows Explorer. From Cygwin's point of view the directory already exists, even though it's plain virtual. You misunderstood my intention: creating a real /proc has no benefit and isn't neccessary. /cygdrive is different - I always create that folder with explorer. Oh, even a real /proc has a benefit. It allows comfortable TAB-completion, as in `cat /pTAB' :-) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: access to event log of windows
Another Method is using psloglist from SysInternals psutils package. It's not cygwin, but native win32. ... I have doubts there's a portable way to scan syslog programmatically. If you simply want to access the NT event log, look at the libwin32-perl package (there may be other ways, too). ... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Problem while copying .EXE files
-Original Message- Sent: 12 July 2004 12:32 To: Cygwin List Subject: Re: Problem while copying .EXE files I'm sorry but I can't reproduce it. I'm getting a truncated but still normal file after calling this application. I also don't see anything strange in your strace output. Looks pretty much like my strace output, incuding all arguments to NtCreateFile. Corinna Thanks very much for the feedback, I cannot reproduce it on my XP system either. I will continue to try and debug this when I have some free time. regards Mike Lerwill -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs forever. Win2K (no win98 OS) Shouldn't HKEY_PERFOMANCE_DATA be disabled on NT systems, or does it work? This cat has pid 560: $ cat /proc/560/status Name: cat State: R (runnable) Tgid: 560 Pid:560 PPid: 1956 Uid:1000 1000 1000 1000 Gid:544 544 544 544 VmSize:40940 kB VmLck: 0 kB VmRSS: 28208 kB VmData:27980 kB VmStk: 0 kB VmExe:16 kB VmLib: 192 kB SigPnd: SigBlk: SigIgn: kill 560 doesn't help, /bin/kill.exe neither. pskill works ok. $ uname -a CYGWIN_NT-5.0 reini 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Reini Urban wrote: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs forever. According to MSDN (http://msdn.microsoft.com/library/en-us/perfmon/base/the_hkey_performance_data_key.asp): ...although you use the registry to collect performance data, the data is not stored in the registry database. Instead, calling the registry functions with the HKEY_PERFORMANCE_DATA key causes the system to collect the data from the appropriate system object managers. To obtain performance data from the local system, use the RegQueryValueEx function, with the HKEY_PERFORMANCE_DATA key. The first call opens the key; you do not need to explicitly open the key first. However, be sure to use the RegCloseKey function to close the handle to the key when you are finished obtaining performance data. This tells me that reading from HKEY_PERFORMANCE_DATA never returns EOF, so that you have to terminate it explicitly from the outside. So your behavior sounds absolutely normal. Win2K (no win98 OS) Shouldn't HKEY_PERFOMANCE_DATA be disabled on NT systems, or does it work? If the key is present, it'll be in /proc/registry. FWIW, the MSDN web page above doesn't mention any restrictions on the systems that this key is present on. This cat has pid 560: $ cat /proc/560/status [snip] kill 560 doesn't help, /bin/kill.exe neither. pskill works ok. /bin/kill -f 560. $ uname -a CYGWIN_NT-5.0 reini 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
symboilc link does not expand if followed by /..
Hi all, I found a problem with symbolic link expansion in cygwin. Symbolic link does not expand properly if it is followed by /.. . To see it at your place please do the following. cd /tmp mkdir dir1 mkdir dir2 touch dir1/1.c cd dir2 ln -s ../dir1 symlink if we do ls symlink it gives 1.c as expected. But if we do ls symlink/.. then it list contents of present directory. @/tmp/dir2 $ ls symlink 1.c @/tmp/dir2 $ ls symlink/.. symlink I think it should list contents of /tmp directory. Could somebody throw some light over it. regards Vinay -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
-Original Message- From: cygwin-owner On Behalf Of Igor Pechtchanski Sent: 13 July 2004 15:30 To: Reini Urban On Tue, 13 Jul 2004, Reini Urban wrote: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs forever. According to MSDN (http://msdn.microsoft.com/library/en-us/perfmon/base/the_hke y_performance_data_key.asp): [snip] This tells me that reading from HKEY_PERFORMANCE_DATA never returns EOF, so that you have to terminate it explicitly from the outside. So your behavior sounds absolutely normal. Reading a registry key isn't like reading a stream. There's no file position pointer and no EOF mark. You read all (or as much as you want) of the data in one operation. I don't think this failure mode seems likely. Win2K (no win98 OS) Shouldn't HKEY_PERFOMANCE_DATA be disabled on NT systems, or does it work? If the key is present, it'll be in /proc/registry. FWIW, the MSDN web page above doesn't mention any restrictions on the systems that this key is present on. Heh. Check this: [EMAIL PROTECTED] ~ cd /proc/registry/ [EMAIL PROTECTED] /proc/registry ls HKEY_CLASSES_ROOTHKEY_CURRENT_USER HKEY_LOCAL_MACHINEHKEY_USERS HKEY_CURRENT_CONFIG HKEY_DYN_DATA HKEY_PERFOMANCE_DATA [EMAIL PROTECTED] /proc/registry ls -la Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry next I type 'ls' space tab to get [EMAIL PROTECTED] /proc/registry ls HKEY_ then I press P tab and the bash window vanishes !! And check this too: [EMAIL PROTECTED] /proc/registry getfacl HKEY_PERFOMANCE_DATA Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry getfacl * # file: HKEY_CLASSES_ROOT # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_CURRENT_CONFIG # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_CURRENT_USER # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_DYN_DATA # owner: dk # group: Domain Users user::r-x group::r-x other:r-x mask:rwx # file: HKEY_LOCAL_MACHINE # owner: Administrators # group: SYSTEM user::r-x group::r-x other:r-- mask:rwx Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry There's something badly wrong: it seems that any attempt to stat or otherwise access it causes a segfault. Tell me, do you suppose the spelling mistake between HKEY_PERFOMANCE_DATA and HKEY_PERFO*R*MANCE_DATA could be resulting in some internal routine in cygwin's registry-filesystem mapping code getting called with a NULL pointer? cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
David, since that doesn't look too good, I tried it on NT4 SP6 as well as on XP SP1. I can't reproduce the below problems in either system. Does that only happen on W2K perhaps? Depending on the SP? Corinna On Jul 13 16:07, Dave Korn wrote: Heh. Check this: [EMAIL PROTECTED] ~ cd /proc/registry/ [EMAIL PROTECTED] /proc/registry ls HKEY_CLASSES_ROOTHKEY_CURRENT_USER HKEY_LOCAL_MACHINEHKEY_USERS HKEY_CURRENT_CONFIG HKEY_DYN_DATA HKEY_PERFOMANCE_DATA [EMAIL PROTECTED] /proc/registry ls -la Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry next I type 'ls' space tab to get [EMAIL PROTECTED] /proc/registry ls HKEY_ then I press P tab and the bash window vanishes !! And check this too: [EMAIL PROTECTED] /proc/registry getfacl HKEY_PERFOMANCE_DATA Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry getfacl * # file: HKEY_CLASSES_ROOT # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_CURRENT_CONFIG # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_CURRENT_USER # owner: Administrators # group: SYSTEM user::r-x group::r-x other:--- mask:rwx # file: HKEY_DYN_DATA # owner: dk # group: Domain Users user::r-x group::r-x other:r-x mask:rwx # file: HKEY_LOCAL_MACHINE # owner: Administrators # group: SYSTEM user::r-x group::r-x other:r-- mask:rwx Segmentation fault (core dumped) [EMAIL PROTECTED] /proc/registry There's something badly wrong: it seems that any attempt to stat or otherwise access it causes a segfault. Tell me, do you suppose the spelling mistake between HKEY_PERFOMANCE_DATA and HKEY_PERFO*R*MANCE_DATA could be resulting in some internal routine in cygwin's registry-filesystem mapping code getting called with a NULL pointer? cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
dlopen under cygwin
Hi all, Is dlopen() friends supported under cygwin? If so, is the DLL that gets loaded using dlopen() a regular Win32 DLL, or a 'special' type of cygwin DLL? Reason I ask it that (while trying to get 'plugins' to work under cygwin) I had a look at the gmodule source code of glib, and it seems that gmodule uses regular Win32 LoadLibrary() calls to load the DLL, instead of calling dlopen(). I was wondering if that it actually correct. Kind regards, Maarten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
-Original Message- From: cygwin-owner On Behalf Of Corinna Vinschen Sent: 13 July 2004 16:20 David, since that doesn't look too good, I tried it on NT4 SP6 as well as on XP SP1. I can't reproduce the below problems in either system. Does that only happen on W2K perhaps? Depending on the SP? Corinna XP, SP1. But I haven't upgraded my .dll in a while: [EMAIL PROTECTED] /davek uname -a CYGWIN_NT-5.1 mace 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin I notice however that Reini is using 1.5.10, so it's not just a version thing. I'll try building cvs and see if it still happens. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
is inet_pton() family implemented?
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Corinna Vinschen Sent: 13 July 2004 16:20 David, since that doesn't look too good, I tried it on NT4 SP6 as well as on XP SP1. I can't reproduce the below problems in either system. Does that only happen on W2K perhaps? Depending on the SP? Corinna XP, SP1. But I haven't upgraded my .dll in a while: [EMAIL PROTECTED] /davek uname -a CYGWIN_NT-5.1 mace 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin I notice however that Reini is using 1.5.10, so it's not just a version thing. I'll try building cvs and see if it still happens. Umm, Dave, I think you may be confused. Reini's issue was that cat /proc/registry/HKEY_PERFOMANCE_DATA (yes, I didn't notice the typo before, interesting) didn't terminate, which I, after reading MSDN, believe to be perfectly valid behavior. He wasn't getting any segfaults. FWIW, I can't reproduce your segfaults either, on Win2k SP3, but I can reproduce the behavior Reini reported. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
-Original Message- From: Igor Pechtchanski Sent: 13 July 2004 16:41 On Tue, 13 Jul 2004, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Corinna Vinschen Sent: 13 July 2004 16:20 David, since that doesn't look too good, I tried it on NT4 SP6 as well as on XP SP1. I can't reproduce the below problems in either system. Does that only happen on W2K perhaps? Depending on the SP? Corinna XP, SP1. But I haven't upgraded my .dll in a while: [EMAIL PROTECTED] /davek uname -a CYGWIN_NT-5.1 mace 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin I notice however that Reini is using 1.5.10, so it's not just a version thing. I'll try building cvs and see if it still happens. Umm, Dave, I think you may be confused. Nope, not really. Or not for that reason, anyway! Reini's issue was that cat /proc/registry/HKEY_PERFOMANCE_DATA (yes, I didn't notice the typo before, interesting) You also made a typo of your own there: he wasn't reading the key /proc/registry/HKEY_PERFOMANCE_DATA but the default *value* for that key, indicated by /proc/registry/HKEY_PERFOMANCE_DATA/@ didn't terminate, which I, after reading MSDN, believe to be perfectly valid behavior. He wasn't getting any segfaults. I know. I didn't say he was (getting segfaults). I just pointed out a couple of interesting things I discovered while trying to reproduce his bug. I also explained why your interpretation of MSDN was incorrect. A registry key simply isn't something you can go on and on reading from. There isn't a single key anywhere in the registry that has any kind of EOF whatsoever, so the lack of one on this particular key can't make the difference. I didn't get around to trying the actual cat instruction he quoted. I'll try it now: [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA Segmentation fault (core dumped) [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ And then it hangs, as described. Takes (up to) 100%cpu, as well. However I find that unlike Reini, I can kill it easily enough: [Window 1] [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ [Hangs. Meanwhile in window 2:] [EMAIL PROTECTED] ~ ps PIDPPIDPGID WINPID TTY UIDSTIME COMMAND I2464 12464 2464 con 11165 11:44:15 /usr/bin/bash 3908 13908 3908 con 11165 16:03:39 /usr/bin/bash 7803908 780 3628 con 11165 16:34:03 /usr/bin/make I10283908 780 1076 con 11165 16:34:03 /usr/bin/tee 3884 13884 3884 con 11165 16:45:18 /usr/bin/bash 4008 14008 4008 con 11165 16:45:20 /usr/bin/bash 2736 780 780 2772 con 11165 16:45:25 /usr/bin/sh 31322736 780 2340 con 11165 16:45:25 /usr/bin/make 2443132 780 2440 con 11165 16:45:25 /usr/bin/sh 3720 244 780180 con 11165 16:45:25 /usr/bin/make 16923720 780 2172 con 11165 16:46:06 /usr/bin/sh 23841692 780 2936 con 11165 16:46:06 /usr/bin/gcc 34122384 780 3412 con 11165 16:46:07 /usr/bin/gcc 259638842596 1672 con 11165 16:46:07 /usr/bin/cat 338040083380 2280 con 11165 16:46:26 /usr/bin/ps [EMAIL PROTECTED] ~ kill 2596 [EMAIL PROTECTED] ~ [And back in window 1:] [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ Terminated [EMAIL PROTECTED] ~ FWIW, I can't reproduce your segfaults either, on Win2k SP3, but I can reproduce the behavior Reini reported. Igor Well, I get the segfaults *and* Reini's bug. Guess I'm just lucky! cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: is inet_pton() family implemented?
electa wrote: No. -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: dlopen under cygwin
Maarten wrote: Hi all, Is dlopen() friends supported under cygwin? If so, is the DLL that gets loaded using dlopen() a regular Win32 DLL, or a 'special' type of cygwin DLL? dlopen() works and one should use it. Reason I ask it that (while trying to get 'plugins' to work under cygwin) I had a look at the gmodule source code of glib, and it seems that gmodule uses regular Win32 LoadLibrary() calls to load the DLL, instead of calling dlopen(). I was wondering if that it actually correct. This seems to work too, but is it not portable, dlopen() is used for Linux applications and needs not to be ported when building with Cygwin, it just works the same way as for Linux. Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Dave Korn wrote: -Original Message- From: Igor Pechtchanski Sent: 13 July 2004 16:41 On Tue, 13 Jul 2004, Dave Korn wrote: -Original Message- From: cygwin-owner On Behalf Of Corinna Vinschen Sent: 13 July 2004 16:20 David, since that doesn't look too good, I tried it on NT4 SP6 as well as on XP SP1. I can't reproduce the below problems in either system. Does that only happen on W2K perhaps? Depending on the SP? Corinna XP, SP1. But I haven't upgraded my .dll in a while: [EMAIL PROTECTED] /davek uname -a CYGWIN_NT-5.1 mace 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin I notice however that Reini is using 1.5.10, so it's not just a version thing. I'll try building cvs and see if it still happens. Umm, Dave, I think you may be confused. Nope, not really. Or not for that reason, anyway! Reini's issue was that cat /proc/registry/HKEY_PERFOMANCE_DATA (yes, I didn't notice the typo before, interesting) You also made a typo of your own there: he wasn't reading the key /proc/registry/HKEY_PERFOMANCE_DATA but the default *value* for that key, indicated by /proc/registry/HKEY_PERFOMANCE_DATA/@ Yep, I noticed this after I sent the message, but that didn't change the point of the comment, so I didn't bother to correct it. FWIW, another interesting fact is that on my system, ls HKEY_PERFOMANCE_DATA from /proc/registry prints @ @ (i.e., *two* default values), neither of which can be stat()ed. didn't terminate, which I, after reading MSDN, believe to be perfectly valid behavior. He wasn't getting any segfaults. I know. I didn't say he was (getting segfaults). I just pointed out a couple of interesting things I discovered while trying to reproduce his bug. I also explained why your interpretation of MSDN was incorrect. Right, I interpreted the key as a stream (which is actually what cat does), and you're right that at the low level keys aren't streams, so that paradigm shift happens somewhere in the /proc/registry fhandler. However... A registry key simply isn't something you can go on and on reading from. This is where you're wrong. Here's an excerpt from the MSDN documentation on RegQueryValueEx (http://msdn.microsoft.com/library/en-us/sysinfo/base/regqueryvalueex.asp): If hKey specifies HKEY_PERFORMANCE_DATA and the lpData buffer is not large enough to contain all of the returned data, RegQueryValueEx returns ERROR_MORE_DATA and the value returned through the lpcbData parameter is undefined. This is because the size of the performance data can change from one call to the next. In this case, you must increase the buffer size and call RegQueryValueEx again passing the updated buffer size in the lpcbData parameter. Repeat this until the function succeeds. You need to maintain a separate variable to keep track of the buffer size, because the value returned by lpcbData is unpredictable. So, in effect, you *do* need to treat HKEY_PERFORMANCE_DATA specially, and the /proc/registry fhandler in fact does. Also, I think I may have found the source of the bug. See below. There isn't a single key anywhere in the registry that has any kind of EOF whatsoever, so the lack of one on this particular key can't make the difference. True, I apologize for the wrong terminology. I didn't get around to trying the actual cat instruction he quoted. I'll try it now: [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA Segmentation fault (core dumped) [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ And then it hangs, as described. Takes (up to) 100%cpu, as well. However I find that unlike Reini, I can kill it easily enough: [Window 1] [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ [Hangs. Meanwhile in window 2:] [EMAIL PROTECTED] ~ ps PIDPPIDPGID WINPID TTY UIDSTIME COMMAND [snip] 259638842596 1672 con 11165 16:46:07 /usr/bin/cat 338040083380 2280 con 11165 16:46:26 /usr/bin/ps [EMAIL PROTECTED] ~ kill 2596 [EMAIL PROTECTED] ~ [And back in window 1:] [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ Terminated [EMAIL PROTECTED] ~ FWIW, I can't reproduce your segfaults either, on Win2k SP3, but I can reproduce the behavior Reini reported. Igor Well, I get the segfaults *and* Reini's bug. Guess I'm just lucky! You will have to debug the segfaults yourself. As for the source or the Reini bug, this piece of code from fhandler_registry.cc looks suspicious, in particular, the line marked with == (line 576): else { bufalloc = 0; do { == bufalloc += 1000; filebuf = (char *) realloc (filebuf, bufalloc); error = RegQueryValueEx (handle, value_name, NULL, type,
gcc: How does gcc look for foo.dll in `gcc ... -lfoo'?
I'm confused since the gcc documentation says that the only thing that `-lfoo' does, is that it allows gcc to look for `libfoo.a' while linking. But what about the shared libraries (DLLs)? It seems to me that gcc looks for `libfoo.dll', `cygfoo.dll', `foo.dll' and may be for all these plus `.a' suffix, doesn't it? But, for example, libfoo and cygfoo could be two _different_ libraries at all. Can anybody explain the -l feature for DLLs? I've tried the Cygwin's User Guide and gcc info, but did not find any answer. Thank you. Alexey Lyubimov --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.719 / Virus Database: 475 - Release Date: 12.07.04 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Where is libxml2.dll?
Richard wrote: I am running Windows 2003 server with on which I have installed cygwin within the last month. I found a terrific little utility (webdav client) at http://www.gohome.org/nd/ which I downloaded and compiled (with gcc) with cygwin. At the bash command prompt, it appears to work. However, it is intended to be run from emacs. When I create a shell with emacs, it starts up a bash shell as a sub process and I get the error: this application has failed to start because libxml2.dll was not found. Re-installing the application my fix this problem.. Well there is no libxml2.dll on my system but the command works from the bash command prompt! HOw could this be? It cannot. I notice there are libxml2.dll.a and libxml2.a and libxml2.la in my /usr/lib directory! This must be the one! Why cannot the bash shell find it when run under emacs? Do I need to put c:\cygwin\lib in my PATH environment variable? Nope, these are the imoprt library, the static library and the libtool file for this library. You linked against another libxml2, maybe in /usr/local/lib. Remove this old installation (/usr/local/bin: libxml2.dll, libxml2-config if present, /usr/local/lib/*xml2*, /usr/local/lib/pkgconfig/*xml2*, /usr/local/include/libxml2) and install the Cygwin libxml2 package again, then please try again to build the application. Non cygwin packages are usually not supported at this list. Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc: How does gcc look for foo.dll in `gcc ... -lfoo'?
Alexey wrote: I'm confused since the gcc documentation says that the only thing that `-lfoo' does, is that it allows gcc to look for `libfoo.a' while linking. But what about the shared libraries (DLLs)? It seems to me that gcc looks for `libfoo.dll', `cygfoo.dll', `foo.dll' and may be for all these plus `.a' suffix, doesn't it? But, for example, libfoo and cygfoo could be two _different_ libraries at all. Can anybody explain the -l feature for DLLs? I've tried the Cygwin's User Guide and gcc info, but did not find any answer. Given you have a library 'mfoo', then you should have a file libmfoo.a in /usr/lib which is the static archive in the default search path. you specify this archive at the gcc link command with -lmfoo, if this library is a shared library, you should have also an import library /usr/lib/libmfoo.dll.a and a DLL /usr/bin/cygmfoo-2.dll, the default search order is /usr/lib, /usr/bin and then libmfoo.dll.a, libmfoo.a, cygmfoo.dll. So if you have just a static archive, it is found, if you have an import library and a static archive at first the import library is used (if not -static is used at the link command). If the import library is used, ld knows how to find the correct DLL and links the application against the DLL using the import library. If there is no static archive and no import library, then also /usr/bin is searched and also the cygmfoo.dll would be found, but if its actual name is cygmfoo/2.dll you would need to specify -lmfoo-2 at the link line to succeed the direct linking with the DLL. Additionally you may specify the full name with path to link against: gcc -o myapp.exe main_object.o /usr/lib/libmfoo.dll.a or gcc -o myapp.exe main_object.o /usr/lib/libmfoo.a or gcc -o myapp.exe main_object.o /usr/bin/cygmfoo-2.dll Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: FAQ update suggestion for I'm having basic problems with find. Why?
At 07:54 AM 7/13/2004, you wrote: On 2004-07-08, Larry Hall wrote: At 10:02 AM 7/8/2004, you wrote: snip My point is this: Whilst this is not an issue with Cygwin per se, the nature of Cygwin means that this issue will tend to arise commonly with Cygwin, and tend not to arise under traditional unixes. Why's that? Traditional unixes have been around for longer. Cygwin contains more to do with joining together stuff which has origins in different paradigms, so you are likely to see more problems with edge cases. OK, so your reference to this issue was not the find/-noleaf stuff you found but rather the more general issue regarding functionality and stability of features in Cygwin, given the differences in maturity. Sure, I guess you could make that argument. I thought you were implying that the find/-noleaf problem you ran into was the norm for ISO/UDF media with Windows and Cygwin yet not for Linux/UNIX. snip I suppose even if it doesn't get into the FAQ, it's possible that this thread will be archived and be indexed by Google. Don't get me wrong. I'm not against getting this into the documentation somewhere, or even the FAQ. I just mentioned that the FAQ probably isn't the best spot given the current rate of inquiry about it. The User's Guide might be better or perhaps another kind of document all-together. But you're right. It is documented now in some form at least because it's in the email archives. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: need -mrtd to create Excel DLL?
Lester, It works! Thank you. Assuming these will be archived, maybe this can help someone else. Since I'm wondering if Excel was caching something, I decided to use C# and it works! Thanks, Siegfried Here is the example of calling cygwin C from C#: --begin here -- // Begin commands to execute this file using MS.NET with bash // cat EOF cdll.h // #ifndef cdll_h_included // #define cdll_h_included // // /* // * When building the DLL code, you should define BUILDING_DLL so that // * the variables/functions are exported correctly. When using the DLL, // * do NOT define BUILDING_DLL, and then the variables/functions will // * be imported correctly. // * // * You need to be using egcs-1.1.1 or newer. // * // * Building the DLL: // * - define BUILDING_DLL, which defines DLLIMPORT __attribute__((dllexport)) // * Building the client code: // * - DO NOT define BUILDING_DLL, which defines DLLIMPORT to be one // *__attribute__((dllimport)) // */ // // #if BUILDING_DLL // # define DLLIMPORT __declspec (dllexport) // #else /* Not BUILDING_DLL */ // # define DLLIMPORT __declspec (dllimport) // #endif /* Not BUILDING_DLL */ // // DLLIMPORT double dll_double_square (double); // #endif /* cdll_h_included */ // EOF // cat EOF cdll.c // #include cdll.h // DLLIMPORT double // dll_double_square (double d) // { //return d * d; // } // EOF // gcc cdll.c -DBUILDING_DLL=1 -mrtd -g -O2 -Wall -mno-cygwin -mrtd -shared -o cdll.dll -Wl,--out-implib=cdll.lib -Wl,--compat-implib -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup -Wl,--enable-auto-import -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--output-def=cdll.def -Wl,--no-whole-archive // c:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/csc /checked /incr /debug /out:test.exe test.cs // ./test 4 2 10 2.3 4.23 // rm test.exe // rm test.exe.incr // rm test.pdb // End commands to execute this file using MS.NET with bash class test { [System.Runtime.InteropServices.DllImport (cdll.dll, CallingConvention=System.Runtime.InteropServices.CallingConvention.Cdecl)] public static extern double dll_double_square(double d); static public void Main(string[] args){ System.Console.WriteLine(hello); for(int ii = 0; iiargs.Length; ii++) System.Console.WriteLine(args[+ii+]=+double.Parse(args[ii]) + Square = + dll_double_square(double.Parse(args[ii]))); } } - end of file - Here is an example of calling g77 from from C#: begin file here /** * Begin commands to execute this file using MS.NET with bash * cat EOF f77dll.f * function dll_double_square_f77 (value) * double precision dll_double_square_f77, value * print*, ' dll_double_square_f77 value=', value * dll_double_square_f77 = value**2 * return * end * EOF * g77 f77dll.f -DBUILDING_DLL=1 -mrtd -g -O2 -Wall -mno-cygwin -mrtd -shared -o f77dll.dll -Wl,--out-implib=f77dll.lib -Wl,--compat-implib -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup -Wl,--enable-auto-import -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--output-def=f77dll.def -Wl,--no-whole-archive * c:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/csc /checked /incr /debug /out:test.exe test.cs * ./test 4 2 10 2.3 4.23 * rm test.exe * rm test.exe.incr * rm test.pdb * End commands to execute this file using MS.NET with bash */ class test { [System.Runtime.InteropServices.DllImport (f77dll.dll, CallingConvention=System.Runtime.InteropServices.CallingConvention.Cdecl)] public static extern double dll_double_square_f77__(ref double d); static public void Main(string[] args){ System.Console.WriteLine(hello); for(int ii = 0; iiargs.Length; ii++) { double x = double.Parse(args[ii]); System.Console.WriteLine(args[+ii+]=+x + Square = + dll_double_square_f77__(ref x)); } } } end file here- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: need -mrtd to create Excel DLL?
Siegfried: Hi. I did not use any __declspec keywords, etc. -- just vanilla C code which runs as well under gcc or g++ under Cygwin, FreeBSD, or SPARC/Solaris, etc. Creating DLLs is another matter -- I've just tested this using Cygwin/gcc under XP Pro. As I said, I cannot get this to work under Cygwin/g++. I tested the application with Excel using the dlltest.xls file in http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ but without the other modifications in his cdll.[ch] files. To use his dlltest.xls, I named my DLL the same, and created double dll_double_square (double d) as one of my functions which called a series of other functions in other files before returning. I used the following lines in my Makefile. No other special code changes were required in any of my .c or .h files: CC = gcc MY_OBJS = \ [.o files] DLL_OPTION=-mrtd # needed for Excel DLL CYGWIN_OPTION=-mno-cygwin $(DLL_OPTION) CDEBUGFLAGS = -g -O2 -Wall CFLAGS = $(CDEBUGFLAGS) $(CYGWIN_OPTION) dllmodule = cdll obj_libs = $(MY_OBJS) dependency_libs = -lm # no need for run.exe when creating DLLs -- without a main() compile: $(MY_OBJS) @$(CC) -o run.exe $(MY_OBJS) ${dependency_libs} cdll: make -i compile $(CC) $(CFLAGS) -shared -o ${dllmodule}.dll \ -Wl,--out-implib=${dllmodule}.lib \ -Wl,--compat-implib \ -Wl,--add-stdcall-alias \ -Wl,--enable-stdcall-fixup \ -Wl,--enable-auto-import \ -Wl,--enable-auto-image-base \ -Wl,--whole-archive ${obj_libs} \ -Wl,--export-all-symbols \ -Wl,--output-def=${dllmodule}.def \ -Wl,--no-whole-archive ${dependency_libs} Lester : Lester, : It works! Thank you. Assuming these will be archived, maybe this can help : someone else. : : Since I'm wondering if Excel was caching something, I decided to use C# and : it works! : : Thanks, : Siegfried : : Here is the example of calling cygwin C from C#: :: I was able to create a dll from many C files, representing fairly complex :: calculations, using the following in my Makefile, without having to add :: any keywords like __declspec, using info from the Cygwin docs. :: ... :: Lester -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
How to update official cygwin documentation for g77 and gcc? (was: RE: need -mrtd to create Excel DLL?)
Lester, Yeah, I did the same (with regard to __declspec keywords). Odd, Excell won't read the DLL but C# will! I was just using Excell because it was handy to test with. Good thing I really don't need excel. My real concern is calling g77 from C# (which works). I got C# to call gcc too under cygwin. Too bad my email wrapped my carefully prepared sample source code. So our examples should go into the cygwin documentation! How can these be inserted into to the documentation? Can someone tell us? Surely there will be others who don't want to buy the Microsoft C++ or FORTRAN compilers but want their C/FORTRAN code to interact with other Microsoft languages like C#, VB.NET, Javascript.NET, J#. Incidentally, I did discover that Microsoft is giving away their C/C++ compiler these days. It is part of the .NET Framework SDK (go to http://search.microsoft.com to look for it). This free version of the compiler seems to be able to compile C++ but does not have the standard C++ header files, only the standard C header files. I assume folks would still prefer g77/gcc to Microsoft's, however. Oopss -- that is off topic. Sorry... Siegfried -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lester Ingber Sent: Tuesday, July 13, 2004 1:34 PM To: [EMAIL PROTECTED] Subject: Re: need -mrtd to create Excel DLL? Siegfried: Hi. I did not use any __declspec keywords, etc. -- just vanilla C code which runs as well under gcc or g++ under Cygwin, FreeBSD, or SPARC/Solaris, etc. Creating DLLs is another matter -- I've just tested this using Cygwin/gcc under XP Pro. As I said, I cannot get this to work under Cygwin/g++. I tested the application with Excel using the dlltest.xls file in http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ but without the other modifications in his cdll.[ch] files. To use his dlltest.xls, I named my DLL the same, and created double dll_double_square (double d) as one of my functions which called a series of other functions in other files before returning. I used the following lines in my Makefile. No other special code changes were required in any of my .c or .h files: CC = gcc MY_OBJS = \ [.o files] DLL_OPTION=-mrtd # needed for Excel DLL CYGWIN_OPTION=-mno-cygwin $(DLL_OPTION) CDEBUGFLAGS = -g -O2 -Wall CFLAGS = $(CDEBUGFLAGS) $(CYGWIN_OPTION) dllmodule = cdll obj_libs = $(MY_OBJS) dependency_libs = -lm # no need for run.exe when creating DLLs -- without a main() compile: $(MY_OBJS) @$(CC) -o run.exe $(MY_OBJS) ${dependency_libs} cdll: make -i compile $(CC) $(CFLAGS) -shared -o ${dllmodule}.dll \ -Wl,--out-implib=${dllmodule}.lib \ -Wl,--compat-implib \ -Wl,--add-stdcall-alias \ -Wl,--enable-stdcall-fixup \ -Wl,--enable-auto-import \ -Wl,--enable-auto-image-base \ -Wl,--whole-archive ${obj_libs} \ -Wl,--export-all-symbols \ -Wl,--output-def=${dllmodule}.def \ -Wl,--no-whole-archive ${dependency_libs} Lester : Lester, : It works! Thank you. Assuming these will be archived, maybe this can help : someone else. : : Since I'm wondering if Excel was caching something, I decided to use C# and : it works! : : Thanks, : Siegfried : : Here is the example of calling cygwin C from C#: :: I was able to create a dll from many C files, representing fairly complex :: calculations, using the following in my Makefile, without having to add :: any keywords like __declspec, using info from the Cygwin docs. :: ... :: Lester -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: need -mrtd to create Excel DLL?
On Tue, 13 Jul 2004, Lester Ingber wrote: Siegfried: Hi. I did not use any __declspec keywords, etc. -- just vanilla C code which runs as well under gcc or g++ under Cygwin, FreeBSD, or SPARC/Solaris, etc. Creating DLLs is another matter -- I've just tested this using Cygwin/gcc under XP Pro. As I said, I cannot get this to work under Cygwin/g++. [snip] Lester, It is unlikely you'll be able to get g++ to link with Microsoft's C++ object files -- they use different name mangling schemes. The common way of linking different flavors of C++ is to wrap C++ functions with 'extern C' declarations. This will start to get ugly once you decide to interface instance functions, etc. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
FYI: cygwin1.dll build 0701 fixed a file-permission-over-SMB problem I had
Just a thanks, y'all! We have what I believe is an oldish Snap! server here that we export some network shares from. My 1.5.10-3 dll was failing (specifically, vim 6.3 and perl 5.8 couldn't write files on it, although bash had no problem [echo foo foo.txt]). The 0701 build seems to have solved my problem. I decided to try it after reading an old article w/the following subject line: Re: Problem creating files on network drives with cygwin 1.5.10-3 and tar John. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, Jul 13, 2004 at 12:21:50PM -0400, Igor Pechtchanski wrote: bufalloc = 0; do { == bufalloc += 1000; I have a theory that the performance data may be added in chunks larger than 1000 bytes, so the fhandler just can't keep up with the amount of data, and loops indefinitely. Since you intend to build the DLL from CVS, you're probably in the best position to check whether this theory is true (by either just upping the increment amount to something like 5000, or even doubling the buffer size on each iteration). Perhaps bufalloc += max(bufalloc, 1000); -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Yitzchak Scott-Thoennes wrote: On Tue, Jul 13, 2004 at 12:21:50PM -0400, Igor Pechtchanski wrote: bufalloc = 0; do { == bufalloc += 1000; I have a theory that the performance data may be added in chunks larger than 1000 bytes, so the fhandler just can't keep up with the amount of data, and loops indefinitely. Since you intend to build the DLL from CVS, you're probably in the best position to check whether this theory is true (by either just upping the increment amount to something like 5000, or even doubling the buffer size on each iteration). Perhaps bufalloc += max(bufalloc, 1000); Sorry, but no. This will do nothing for the original problem. The idea was that at some point you need the rate of buffer size increase to overtake the rate of performance data generation. If performance data is generated faster than 1000 bytes per query, and adding 1000 bytes isn't enough, adding *at most* 1000 bytes (as you suggested) is strictly less effective. I suggested a linear function with a steeper slope (which may not be enough) or an exponential, which will definitely be enough, but may introduce huge buffers. I'm going to build the DLL from CVS now to test the theory. If it is confirmed, then we can talk about a good buffer size increment function (probably on cygwin-developers, though). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, Jul 13, 2004 at 06:20:19PM -0400, Igor Pechtchanski wrote: Perhaps bufalloc += max(bufalloc, 1000); Gack! I meant min() :) Sorry, but no. This will do nothing for the original problem. The idea was that at some point you need the rate of buffer size increase to overtake the rate of performance data generation. If performance data is generated faster than 1000 bytes per query, and adding 1000 bytes isn't enough, adding *at most* 1000 bytes (as you suggested) is strictly less effective. I suggested a linear function with a steeper slope (which may not be enough) or an exponential, which will definitely be enough, but may introduce huge buffers. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
malloc debug?
Is any malloc/free debug library available for cygwin? (something like dmalloc, memdebug, mprof c c) Thanks. -- Sam Steingold (http://www.podval.org/~sds) running w2k http://www.camera.org http://www.iris.org.il http://www.memri.org/ http://www.mideasttruth.com/ http://www.honestreporting.com Perl: all stupidities of UNIX in one. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Yitzchak Scott-Thoennes wrote: On Tue, Jul 13, 2004 at 06:20:19PM -0400, Igor Pechtchanski wrote: Perhaps bufalloc += max(bufalloc, 1000); Gack! I meant min() :) Ah, yes, that'd work (i.e., converge faster). We might want to eventually explore something in between linear and exponential, though. :-) Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: malloc debug?
I am unable to locate the package searching the cygwin packages (not that my being unable to find something means anything). I can tell you that dmalloc (on sourceforge) builds cleanly (requiring gcc and g++) and passes its self tests on my XP box. I am sure that someone better informed that I will come along and give you a definitive answer. regards, ken Sam Steingold wrote: Is any malloc/free debug library available for cygwin? (something like dmalloc, memdebug, mprof c c) Thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Firewall issue
I hope someone can help me. I'm using Cygwin on an old PC with 1.2gig hard drive and 24MB RAM (pathetic I know.) I'm using the PC as a holding area for backups so that I don't have to write the backups to CD every day. The network card in the PC is a Kingston Etherex card, and it's not very widely supported on a Linux that fits on 1.2 gig with so little RAM. Anyway, I've hooked it up to my network and installed Cygwin, though I don't think I have enough space for all of it. I want to be able to run sshd so that my server PC can copy its daily backups over to the Cygwin PC, but every time I try to ssh from the server PC over to Cygwin, I get a Connection refused. I'm not familiar with Cygwin's firewall; I'm used to using iptables and there doesn't seem to be an iptables package available on the Cygwin setup program. How do I fix this? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Problems building Cygwin CVS HEAD
Hi, I'm getting the following error building Cygwin CVS HEAD: c++ -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup/cygwin -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup/w32api/lib -isystem /usr/src/cygwin-cvs/src/winsup/include -isystem /usr/src/cygwin-cvs/src/winsup/cygwin/include -isystem /usr/src/cygwin-cvs/src/winsup/w32api/include -B/usr/src/cygwin-cvs/build/i686-pc-cygwin/newlib/ -isystem /usr/src/cygwin-cvs/build/i686-pc-cygwin/newlib/targ-include -isystem /usr/src/cygwin-cvs/src/newlib/libc/include -c -nostdinc++ -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -Wall -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -I. -I/usr/src/cygwin-cvs/src/winsup/cygwin -I/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include -fno-rtti -fno-exceptions -c -o parse_pe.o -I/usr/src/cygwin-cvs/build/bfd -I/usr/src/cygwin-cvs/src/include /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc: In function `void select_data_section(bfd*, asection*, void*)': /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc:67: error: `bfd_get_section_size' undeclared (first use this function) /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc:67: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [parse_pe.o] Error 1 I have binutils-20040312-1 installed, and its /usr/include/bfd.h doesn't define bfd_get_section_size (although it does define bfd_section_size and bfd_get_section_size_before_reloc). Looks like bfd_get_section_size was introduced on June 15th. Does Cygwin require a newer version of binutils to build? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problems building Cygwin CVS HEAD
Apologies to all, this got sent to the wrong list by mistake. Please ignore. Igor On Tue, 13 Jul 2004, Igor Pechtchanski wrote: Hi, I'm getting the following error building Cygwin CVS HEAD: c++ -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup/cygwin -L/usr/src/cygwin-cvs/build/i686-pc-cygwin/winsup/w32api/lib -isystem /usr/src/cygwin-cvs/src/winsup/include -isystem /usr/src/cygwin-cvs/src/winsup/cygwin/include -isystem /usr/src/cygwin-cvs/src/winsup/w32api/include -B/usr/src/cygwin-cvs/build/i686-pc-cygwin/newlib/ -isystem /usr/src/cygwin-cvs/build/i686-pc-cygwin/newlib/targ-include -isystem /usr/src/cygwin-cvs/src/newlib/libc/include -c -nostdinc++ -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -Wall -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -I. -I/usr/src/cygwin-cvs/src/winsup/cygwin -I/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include -fno-rtti -fno-exceptions -c -o parse_pe.o -I/usr/src/cygwin-cvs/build/bfd -I/usr/src/cygwin-cvs/src/include /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc: In function `void select_data_section(bfd*, asection*, void*)': /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc:67: error: `bfd_get_section_size' undeclared (first use this function) /usr/src/cygwin-cvs/src/winsup/utils/parse_pe.cc:67: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [parse_pe.o] Error 1 I have binutils-20040312-1 installed, and its /usr/include/bfd.h doesn't define bfd_get_section_size (although it does define bfd_section_size and bfd_get_section_size_before_reloc). Looks like bfd_get_section_size was introduced on June 15th. Does Cygwin require a newer version of binutils to build? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Firewall issue
Hello, I don't believe that Cygwin installs a firewall as default... Michael Uman On Tue, 2004-07-13 at 17:16, Michael Sullivan wrote: I hope someone can help me. I'm using Cygwin on an old PC with 1.2gig hard drive and 24MB RAM (pathetic I know.) I'm using the PC as a holding area for backups so that I don't have to write the backups to CD every day. The network card in the PC is a Kingston Etherex card, and it's not very widely supported on a Linux that fits on 1.2 gig with so little RAM. Anyway, I've hooked it up to my network and installed Cygwin, though I don't think I have enough space for all of it. I want to be able to run sshd so that my server PC can copy its daily backups over to the Cygwin PC, but every time I try to ssh from the server PC over to Cygwin, I get a Connection refused. I'm not familiar with Cygwin's firewall; I'm used to using iptables and there doesn't seem to be an iptables package available on the Cygwin setup program. How do I fix this? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sending email from Cygwin
On 1 Feb, Brian Dessent wrote: If you're just after 'sendmail compatibility' then both ssmtp and exim provide symbolic links to /usr/sbin/sendmail. So any script or other type of app that wants to just send out email by invoking the sendmail command should work fine. I appear to have both exim and ssmtp installed; but I see that /usr/sbin/sendmail is a symlink to /usr/bin/ssmtp. Fair enough, if interesting. I also see that my /etc/ssmtp directory is completely empty. Someone on the list mentioned /usr/local/exim/README.Cygwin, but there is no /usr/local/exim directory on my machine. What I was trying to do was simply to send mail into our local Unix mail system from a shell script in Cygwin. When I tried using exim like this: exim -oi luke /tmp/sample I got this error: set{u,g}id failed: 22 2004-07-14 10:48:44 unable to set gid=544 or uid=18 (euid=11021): privilege not needed (Which I assume means the opposite: that some privilege *is* needed.) When I tried using the ssmtp sendmail I got this error: sendmail: Cannot open mailhub:25 which I assumed was because there was no ssmtp.conf file. Is there a problem with Cygwin's install of ssmtp, in that it creates no config? Or is configuration simply expected to be done locally or manually? (From the man page, I see that there's supposed to be an ssmtp.conf and a revaliases files, but not what they should contain). BTW, I note that the man page for ssmtp mentions /usr/lib/sendmail, which doesn't exist under Cygwin: /usr/sbin/sendmail does (good!). I adapted Uwe Mayer's mail of Oct 6th last year, to produce an ssmtp.conf file for our site: root=admin mailhub=smtp rewriteDomain=cisra.canon.com.au FromLineOverride=YES The happy news to report is that following this, my simple mail delivery test worked. I don't know what the /etc/ssmtp/revaliases file is for, or what it should contain, but I thought I'd report these problems and results in case they're of interest. luke -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Firewall issue
At 08:16 PM 7/13/2004, you wrote: I hope someone can help me. I'm using Cygwin on an old PC with 1.2gig hard drive and 24MB RAM (pathetic I know.) I'm using the PC as a holding area for backups so that I don't have to write the backups to CD every day. The network card in the PC is a Kingston Etherex card, and it's not very widely supported on a Linux that fits on 1.2 gig with so little RAM. Anyway, I've hooked it up to my network and installed Cygwin, though I don't think I have enough space for all of it. I want to be able to run sshd so that my server PC can copy its daily backups over to the Cygwin PC, but every time I try to ssh from the server PC over to Cygwin, I get a Connection refused. I'm not familiar with Cygwin's firewall; I'm used to using iptables and there doesn't seem to be an iptables package available on the Cygwin setup program. How do I fix this? Cygwin has no firewall. Please follow /usr/share/doc/Cygwin/openssh.README. If that doesn't help, read and follow http://cygwin.com/problems.html when contacting the list again about this issue. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sending email from Cygwin
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I appear to have both exim and ssmtp installed; but I see that /usr/sbin/sendmail is a symlink to /usr/bin/ssmtp. Fair enough, if interesting. In fact, the ssmtp package does not create the sendmail symlink. As far as I can tell, no Cygwin package sets up such a symlink. I also see that my /etc/ssmtp directory is completely empty. Someone on the list mentioned /usr/local/exim/README.Cygwin, but there is no /usr/local/exim directory on my machine. You should have read /usr/share/doc/Cygwin/ssmtp-2.60.9.README. It tells you how to create the config file. It has to be done locally. Incidentally you don't need revaliases; it can be used if you want different users on your machine to send their mail via different mailhubs. Robert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Building shared mod_php on cygwin + undefined symbols and missing DSOs
Hello, I'm trying to build the shared php libraries on cygwin but no success so far. Here's the configure invocation: ./configure --with-pgsql --with-apxs=/usr/sbin/apxs \ enable-cgi --enable-fastcgi I get this warning when running make: libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries Since it's a warning, I just ignore it. However, I get this error when installing: $ make install Installing PHP SAPI module apxs:Error: file libs/libphp4.so is not a DSO make: *** [install-sapi] Error 1 There is no libphp4.so on the libs directory. Only these files. libphp4.a libphp4.la I've checked the cygwin archives regarding the issue and I saw these relevant posts: http://sources.redhat.com/ml/cygwin/2004-05/msg00212.html http://sources.redhat.com/ml/cygwin/2004-05/msg00269.html In the first post, the question was How to build php in cygwin. The responder pointed to a website. However, the several README.* files referred do not contain a reference to building php on cygwin (read: not even the string cygwin). I've searched the php site on relevant info regarding the problem. One link is: http://bugs.php.net/bug.php?id=21527 However, it still does not give us an idea on how to build php on cygwin. Further search on the net showed that there is an issue regarding using libtool with the -no-undefined option. I got the tip by entering the following string verbatim at google (except quotes): libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries Can anyone point out the way to build the latest php on cygwin? Thank you very much! Best Regards, Carlo -- Carlo Florendo Astra Philippines Inc. www.astra.ph -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Igor Pechtchanski wrote: On Tue, 13 Jul 2004, Yitzchak Scott-Thoennes wrote: On Tue, Jul 13, 2004 at 06:20:19PM -0400, Igor Pechtchanski wrote: Perhaps bufalloc += max(bufalloc, 1000); Gack! I meant min() :) Ah, yes, that'd work (i.e., converge faster). We might want to eventually explore something in between linear and exponential, though. :-) Igor Double gack! max() was right. I think we both reversed gears for a moment there. Move along folks, nothing to see here. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Ne.e..d m...or..e co...f..f. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, Jul 13, 2004 at 10:23:51PM -0400, Igor Pechtchanski wrote: On Tue, 13 Jul 2004, Igor Pechtchanski wrote: On Tue, 13 Jul 2004, Yitzchak Scott-Thoennes wrote: On Tue, Jul 13, 2004 at 06:20:19PM -0400, Igor Pechtchanski wrote: Perhaps bufalloc += max(bufalloc, 1000); Gack! I meant min() :) Ah, yes, that'd work (i.e., converge faster). We might want to eventually explore something in between linear and exponential, though. :-) Igor Double gack! max() was right. I think we both reversed gears for a moment there. Move along folks, nothing to see here. :) Apparently I'm a little too persuadable. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sending email from Cygwin
At 10:16 PM 7/13/2004, you wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I appear to have both exim and ssmtp installed; but I see that /usr/sbin/sendmail is a symlink to /usr/bin/ssmtp. Fair enough, if interesting. In fact, the ssmtp package does not create the sendmail symlink. As far as I can tell, no Cygwin package sets up such a symlink. Actually, I can vouch for exim setting up such a symlink. Also, it appears that the cron package will create a link to ssmtp if one doesn't exist, even if ssmtp is not installed. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: cygwin: /proc and /cygdrive insvisible
Mit freundlichen Grüssen, ? With friendly Grüssen. I knew that high school German would come in handy some day... ;-) -- Gary R. Van Sickle -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Undefined reference errors and libtool
Hello, Maybe someone from the list can help me out. I'm trying to build a project that contains a number of executables, static and shared libraries using cygwin/autotools, but I'm having trouble with libtool. At certain point during the build, the linker returns an undefined reference error: ../lib/.libs/libopenmodeller.a(libenv_io_la-raster_gdal.o)(.text+0xa59): In function `_ZN10RasterGdal6createEPcR6Header': /home/ricardo/wcs/modeller/src/lib/env_io/raster_gdal.cpp:217: undefined reference to `_GetGDALDriverManager' The command that generated this error is: /bin/bash ../../libtool --mode=link g++ -g -O2 -o om_console.exe om_console-om_console.o om_console-occurrences_file.o om_console-request_file.o -L/usr/local/lib -lgdal ../lib/libopenmodeller.la which in turn runs this: g++ -g -O2 -o om_console.exe om_console-om_console.o om_console-occurrences_file.o om_console-request_file.o -L/usr/local/lib /usr/local/lib/libgdal.dll.a /usr/lib/libjpeg.dll.a -ltiff -lpng -lz -L/usr/lib -lpq ../lib/.libs/libopenmodeller.a -L/usr/local/lib -L/usr/local/lib Not sure why gcc doesn't find the symbols in libgdal.dll.a. nm says the symbol is there: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~/wcs/modeller/src/console $ nm /usr/local/lib/libgdal.dll.a | grep _GetGDALDriverManager T _GetGDALDriverManager I __imp__GetGDALDriverManager If I replace the library /usr/local/lib/libgdal.dll.a in the command above by -lgdal, I get my executable compiled. The problem does not happen when I compile the application on a Linux box. Does anyone know what seems to be the problem in my setup? Any help would be greatly appreciated. Regards, Ricardo PS. Here is my system info: Cygwin DLL version info: DLL version: 1.5.10 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~/pkgs/gdal $ cygcheck --sysinfo | grep autoconf autoconf2.59-1 autoconf-devel 2.59-1 autoconf-stable 2.13-5 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~/pkgs/gdal $ cygcheck --sysinfo | grep automake automake1.7.9-1 automake-devel 1.8.5-1 automake-stable 1.4p6-2 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ~/pkgs/gdal $ cygcheck --sysinfo | grep libtool libtool 1.5b-1 libtool-devel 1.5.6-3 libtool-stable 1.4.3-2
RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
On Tue, 13 Jul 2004, Igor Pechtchanski wrote: On Tue, 13 Jul 2004, Dave Korn wrote: [snip] I didn't get around to trying the actual cat instruction he quoted. I'll try it now: [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA Segmentation fault (core dumped) [EMAIL PROTECTED] ~ cat /proc/registry/HKEY_PERFOMANCE_DATA/@ And then it hangs, as described. Takes (up to) 100%cpu, as well. However I find that unlike Reini, I can kill it easily enough: [snip] Well, I get the segfaults *and* Reini's bug. Guess I'm just lucky! You will have to debug the segfaults yourself. As for the source or the Reini bug, this piece of code from fhandler_registry.cc looks suspicious, in particular, the line marked with == (line 576): else { bufalloc = 0; do { == bufalloc += 1000; filebuf = (char *) realloc (filebuf, bufalloc); error = RegQueryValueEx (handle, value_name, NULL, type, (BYTE *) filebuf, size); if (error != ERROR_SUCCESS error != ERROR_MORE_DATA) { if (error != ERROR_FILE_NOT_FOUND) { seterrno_from_win_error (__FILE__, __LINE__, error); return true; } goto value_not_found; } } while (error == ERROR_MORE_DATA); filesize = size; } I have a theory that the performance data may be added in chunks larger than 1000 bytes, so the fhandler just can't keep up with the amount of data, and loops indefinitely. Since you intend to build the DLL from CVS, you're probably in the best position to check whether this theory is true (by either just upping the increment amount to something like 5000, or even doubling the buffer size on each iteration). If you can't do this, I'll get to building the DLL tonight and do the above check. Igor Ok, the theory washed out. The code above is actually simply buggy. When RegQueryValueEx is called (2 lines below the arrow), the size parameter is uninitialized, so, in effect, it keeps thinking that the buffer has some random size and reallocating (which, of course, doesn't change the size, hence the infinite loop). However, the fix is not as simple as inserting a size = bufalloc; just before the RegQueryValueEx. When I do that, I get a SIGSEGV in the guts of iasperf.dll, which I have yet to track down. This happens on the second iteration, FWIW, with buffer increment of 1000. I'm going to investigate some more, but I'd say that with the above bug, this key was never tested, so I have no idea what's going on. Hopefully Chris (January) can use this to help him track down the problem. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: dlopen under cygwin
Gerrit P. Haase wrote: Maarten wrote: Hi all, Is dlopen() friends supported under cygwin? If so, is the DLL that gets loaded using dlopen() a regular Win32 DLL, or a 'special' type of cygwin DLL? dlopen() works and one should use it. Reason I ask it that (while trying to get 'plugins' to work under cygwin) I had a look at the gmodule source code of glib, and it seems that gmodule uses regular Win32 LoadLibrary() calls to load the DLL, instead of calling dlopen(). I was wondering if that it actually correct. This seems to work too, but is it not portable, dlopen() is used for Linux applications and needs not to be ported when building with Cygwin, it just works the same way as for Linux. Except, as I mentioned before, cygwin's glib2 package is built in such a way that it, too, uses LoadLibrary directly and not dlopen. (IIRC, doing it right requires a patch to the gmodule stuff -- and I agree with the maintainer's decision to go ahead with the glib2 package rollout with LoadLibrary and delay the dlopen stuff until later, since I raised the flag on the issue so late in the game). I only mention this glib issue because the original poster had already indicated he downloaded and investigated glib...and I wanted to clarify why even the cygwin version currently uses LoadLibrary -- even tho Gerrit's statement that you should use it [dlopen] is correct. -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc: How does gcc look for foo.dll in `gcc ... -lfoo'?
Gerrit P. Haase wrote: Alexey wrote: I'm confused since the gcc documentation says that the only thing that `-lfoo' does, is that it allows gcc to look for `libfoo.a' while linking. But what about the shared libraries (DLLs)? It seems to me that gcc looks for `libfoo.dll', `cygfoo.dll', `foo.dll' and may be for all these plus `.a' suffix, doesn't it? But, for example, libfoo and cygfoo could be two _different_ libraries at all. Can anybody explain the -l feature for DLLs? I've tried the Cygwin's User Guide and gcc info, but did not find any answer. Given you have a library 'mfoo', then you should have a file libmfoo.a in /usr/lib which is the static archive in the default search path. you specify this archive at the gcc link command with -lmfoo, if this library is a shared library, you should have also an import library /usr/lib/libmfoo.dll.a and a DLL /usr/bin/cygmfoo-2.dll, the default search order is /usr/lib, /usr/bin and then libmfoo.dll.a, libmfoo.a, cygmfoo.dll. So if you have just a static archive, it is found, if you have an import library and a static archive at first the import library is used (if not -static is used at the link command). If the import library is used, ld knows how to find the correct DLL and links the application against the DLL using the import library. If there is no static archive and no import library, then also /usr/bin is searched and also the cygmfoo.dll would be found, but if its actual name is cygmfoo/2.dll you would need to specify -lmfoo-2 at the link line to succeed the direct linking with the DLL. Additionally you may specify the full name with path to link against: gcc -o myapp.exe main_object.o /usr/lib/libmfoo.dll.a or gcc -o myapp.exe main_object.o /usr/lib/libmfoo.a or gcc -o myapp.exe main_object.o /usr/bin/cygmfoo-2.dll Don't forget the -static option, which forces the compiler to ignore lib*.dll.a and cyg*.dll. All of this is documented in the linker's documentation. Do 'info ld' -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sending email from Cygwin
Larry Hall [EMAIL PROTECTED] wrote: At 10:16 PM 7/13/2004, you wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I appear to have both exim and ssmtp installed; but I see that /usr/sbin/sendmail is a symlink to /usr/bin/ssmtp. Fair enough, if interesting. In fact, the ssmtp package does not create the sendmail symlink. As far as I can tell, no Cygwin package sets up such a symlink. Actually, I can vouch for exim setting up such a symlink. But presumably not to ssmtp. Also, it appears that the cron package will create a link to ssmtp if one doesn't exist, even if ssmtp is not installed. Sorry for the misinformation. Maybe the cron package readme should mention how to configure ssmtp (or maybe it does already). Robert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc: How does gcc look for foo.dll in `gcc ... -lfoo'?
Thank you, Gerrit! It is almost clear now (thanks to Charles Wilson too!). But there are two things left: 1) Why does the linker searches not only for libmfoo... libraries, but for mfoo.dll itself (without any lib or cyg prefix) also? 2) What are the pros cons of using import library and linking against the shared library directly, I mean, what is the difference between gcc -o myapp.exe main_object.o /usr/lib/libmfoo.dll.a and gcc -o myapp.exe main_object.o /usr/bin/cygmfoo.dll Thank you, Alexey - Original Message - From: Gerrit P. Haase [EMAIL PROTECTED] To: Alexey Lyubimov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 9:00 PM Subject: Re: gcc: How does gcc look for foo.dll in `gcc ... -lfoo'? Alexey wrote: I'm confused since the gcc documentation says that the only thing that `-lfoo' does, is that it allows gcc to look for `libfoo.a' while linking. But what about the shared libraries (DLLs)? It seems to me that gcc looks for `libfoo.dll', `cygfoo.dll', `foo.dll' and may be for all these plus `.a' suffix, doesn't it? But, for example, libfoo and cygfoo could be two _different_ libraries at all. Can anybody explain the -l feature for DLLs? I've tried the Cygwin's User Guide and gcc info, but did not find any answer. Given you have a library 'mfoo', then you should have a file libmfoo.a in /usr/lib which is the static archive in the default search path. you specify this archive at the gcc link command with -lmfoo, if this library is a shared library, you should have also an import library /usr/lib/libmfoo.dll.a and a DLL /usr/bin/cygmfoo-2.dll, the default search order is /usr/lib, /usr/bin and then libmfoo.dll.a, libmfoo.a, cygmfoo.dll. So if you have just a static archive, it is found, if you have an import library and a static archive at first the import library is used (if not -static is used at the link command). If the import library is used, ld knows how to find the correct DLL and links the application against the DLL using the import library. If there is no static archive and no import library, then also /usr/bin is searched and also the cygmfoo.dll would be found, but if its actual name is cygmfoo/2.dll you would need to specify -lmfoo-2 at the link line to succeed the direct linking with the DLL. Additionally you may specify the full name with path to link against: gcc -o myapp.exe main_object.o /usr/lib/libmfoo.dll.a or gcc -o myapp.exe main_object.o /usr/lib/libmfoo.a or gcc -o myapp.exe main_object.o /usr/bin/cygmfoo-2.dll Gerrit -- =^..^= http://nyckelpiga.de/donate.html --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.719 / Virus Database: 475 - Release Date: 12.07.04 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/