From cateland@adersa.asso.fr Tue Sep 1 03:19:00 1998 From: cateland@adersa.asso.fr (Stephane Cateland) Date: Tue, 01 Sep 1998 03:19:00 -0000 Subject: compiling Mesa on egcs Mingw32 Message-ID: <430F482F096F@panoramix.adersa.asso.fr> Hi I am trying to get Mesa and GLUT up and running on mingw32 environment. I succeed compiling it (and linking) but the major problem glut steel net working. It compilrt OK but need attention: in glut.h in win32 ifdef case you should have something like this: ----------------------------------------------------------------------------------------------- #if defined(__CYGWIN32__) || defined(__MINGW32__) # define GLUTCALLBACK # define GLUTAPI extern #else # define GLUTCALLBACK __cdecl # if defined(BUILD_GLUT32) # define GLUTAPI __declspec(dllexport) # elif defined(_DLL) # define GLUTAPI __declspec(dllimport) # else # define GLUTAPI extern # endif # pragma warning (disable:4244) /* Disable bogus conversion warnings. */ # pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ #endif this because gnuwin32 behave as unix for declaring extern function. Now you should remove call to joystick stuff in glut_input.c and glut_joy.c singe gnuwin32 does not have the header files for this. similarly in glut_console.c there is a undefine constant ???FULLSCREEN i ended up doing as for joystick #ifdefining code. the makefile are quike out of date you should use similar make as cygnus one but includeing all c file enumerated in the last part of WIN32/MESAGLUT.DSP so then OK you get it compiling you generate a libglut.a then in demo when you compole every thing goes smooth (execp if in GL sources you let CopyMemory as win32 function, it should be defined as memcpy). Now running it. it does not blow up but as for mesa-2.6 it failed and cant get pixel with necessary capabilities message. on the other hand osmesa demo just work fine. thus gl library are OK . OK I took a look on that and invistigated the problem (although I didnot solved it I found a problem) take a look at thist test.c which does the initialisation stuff glut is doing (all GLUT data structure handling is removed I only keep call to relevant functions). THEN i found that ChoosePixelFormat failed sayin that module can't be loaded (GetLastError) Thus I assumed I got a problem may be my set up may be a more subtle thing If any one can have a look at this test program to see what happen ??? I tried it on visual C (on the same machine and it failed, with the same diagnostic) Please HELP. thank you. Stef. ////////////////////////////////////////////////// // // Stephane Cateland // // Adersa 10 rue de la croix Martre // 91873 Palaiseau cedex FRANCE // // Phone [switchboard] (33) 0 160 135 353 // Fax (33) 0 169 200 563 // ////////////////////////////////////////////////// -------------- next part -------------- A non-text attachment was scrubbed... Name: test.c Type: text/x-c Size: 9989 bytes Desc: not available URL: From kriegaex@ina.de Tue Sep 1 03:19:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Tue, 01 Sep 1998 03:19:00 -0000 Subject: Error when starting mc Message-ID: <35EBCAA0.4C59E475@ina.de> Hi all (especially Sergey Okhapkin)! I installed the port of mc-4.1.32 from Sergey, but it does not work. Everytime I try to start mc.exe I get an error message box like procedure entry point "truncate" could not be found in DLL cygwinb19.dll (translated from German, I do not know the exact English error text). I use cygwin beta 19.1 (yes, I have updated the DLL). Any ideas? -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kevq-ml@banana.demon.co.uk Tue Sep 1 06:20:00 1998 From: kevq-ml@banana.demon.co.uk (Kevin F. Quinn) Date: Tue, 01 Sep 1998 06:20:00 -0000 Subject: RESULTS: newsgroup creation straw poll. Message-ID: <35EBF574.5F7AEC4F@banana.demon.co.uk> Geoffrey Noer wrote: > Personally, I like making a distinction between the name of the > emulation layer "Cygwin32" and the name of the ported packages > "GNU-Win32". > Regardless of the location, how would the topics best be covered? I think it's generally considered A Good Idea, if the number of newsgroups is kept to a minimum initially, and split as the traffic dictates later. So how about comp.os.ms-windows.gnuwin32 (general discussion - could be .gnuwin32.misc) comp.os.ms-windows.gnuwin32.announce (moderated announcements) which could later (perhaps) evolve into: comp.os.ms-windows.gnuwin comp.os.ms-windows.gnuwin.announce comp.os.ms-windows.gnuwin.cygwin (issues related to the cygwin emulation layer) comp.os.ms-windows.gnuwin.cygwin.porting (issues related to porting using the cygwin dll) comp.os.ms-windows.gnuwin.mingw (issues related to the mingw development environment) comp.os.ms-windows.gnuwin.mingw.porting (issues related to ports not using cygwin.dll) and so on. It makes most sense to split the hierarchy along lines that minimise cross-posting (which would make the split ineffectual). This means watching the traffic and analysing the applicability of existing traffic to the various options on splitting. For example, in the above list it may happen that most porting discussion is relevant to both cygwin and mingw - in which case separate groups could be counter-productive, and comp.os.ms-windows.gnuwin.porting may be a better choice. However these decisions can only be taken usefully in light of the previous traffic. On a last note, I don't think the volume of traffic on this list warrants the creation of more than a discussion group and an announce group, at the present time. One more issue comes to me, and that is the "32" suffix. Perhaps it would be a good idea to drop the "32" from the newsgroup names? Note that comp.os.ms-windows doesn't specify 16 or 32. Perhaps it should be dropped for the "gnuwin" part, but kept for the "cygwin" part? Kev. -- Kevin F. Quinn Web: http://www.banana.demon.co.uk/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Patrick.Byrne@psygnosis.co.uk Tue Sep 1 06:20:00 1998 From: Patrick.Byrne@psygnosis.co.uk (Patrick.Byrne@psygnosis.co.uk) Date: Tue, 01 Sep 1998 06:20:00 -0000 Subject: Bug Report: B19: Use of touch on Unix VisionFS server Message-ID: <00256672.0043799C.00@mailgate.psygnosis.co.uk> I am using cygwin32 tools on a pc running windows 95. When I tried to use 'touch' on a network file, the file was 'killed' - by which I mean it's length was set to 0 bytes. The timestamp _was_ updated (small consolation) The network sever runs Unix, and the file service is called VisionFS. Pat Byrne - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ssh@cray.com Tue Sep 1 10:59:00 1998 From: ssh@cray.com (Steven Hein) Date: Tue, 01 Sep 1998 10:59:00 -0000 Subject: Search engine problem?? (was Re: GNU-Win32 DLL and MSVC++) References: <199808311920.PAA23936@jubilee.bbn.com> Message-ID: <35EC2964.468E6066@cray.com> Is it just me, or does the mail archive search engine seem to be not working very well (actually, not at all!). It "seems" like searches that I did just a couple of weeks ago (for example, I was looking for info on 'inetd') now turn up nothing, or entries that don't even contain my keywords! Is a new search engine being used? Or is it just me....... This is *very* frustrating!!! There's a ton of great knowledge in the archives, and it's driving me nuts not to be able to get at it!! Steve -- Steve Hein (ssh@cray.com) Silicon Graphics, Inc. Jim Van Sciver wrote: > > Thank you for the reply. I did a better search (the search engine > Cygnus uses on the GNU-Win32 doesn't work very well) and found the > following information regarding EGCS C++ DLLs and MSVC++. First, > Mark Becker asked my exact question: > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From msmart@chass.utoronto.ca Tue Sep 1 10:59:00 1998 From: msmart@chass.utoronto.ca (Michael Smart) Date: Tue, 01 Sep 1998 10:59:00 -0000 Subject: trouble with X11R6.3 precompiled binaries Message-ID: <199809011759.NAA17968@artemis.chass.utoronto.ca> I'm trying to use the X11R6 binaries from http://dao.gsfc.nasa.gov/software/grads/X11R6.3/ . The problem: running any X client in the distribution, except rxvt, results in a "STATUS ACCESS VIOLATION" and a core dump. rxvt works, apparently. Particulars: cygwin b19.1 with egcs-1.02 installed, and the MI/X free X server. I am quite unfamiliar with X windows, so any basic advice would be gratefully received. thanks, Michael Smart -- Michael Smart (416) 978-5119 (bus) University of Toronto Economics 978-5519 (fax) 140 St. George Street, 7th floor Toronto ON M5S 3G6 Canada http://www.chass.utoronto.ca/~msmart ========================================================================== - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 1 11:37:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 01 Sep 1998 11:37:00 -0000 Subject: B19: G++ Bug References: <35EBB0E2.E4612E45@debis.spb.ru> Message-ID: On Tue, 1 Sep 1998, Volker H. Simonis wrote: > it's 10 days ago that i submitted nearly the same bug report > to the mailing list, unfortunately nobody answerd. the subject > of the mail was : "B19: problem initialising global objects". > it seems to me that this is not only a problem of correctly > initialising stdio but a general problem of initialising global > objects, since it can happen in other objects like for example > maps too. fyi, this is not a problem with egcs, but rather has to do with the cygwin32 DLL (that's why it works for mingw32 and uwin and other egcs targets). I just submitted a patch to cygwin32 developers that fixes this. > i'm using b19 with egcs1.0.2 on NT4.0. > while porting a program which works fine with egcs1.02 under linux, > i encountered big problems under cygwin32. > it seems to me that global objects (such as for example static class > members) > don't get initialised properly before program start. That's not true. The problem is that the order of initialization isn't correct in the current cygwin DLL, so any dependencies cause problems. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michel@pythie.cepremap.cnrs.fr Tue Sep 1 14:02:00 1998 From: michel@pythie.cepremap.cnrs.fr (Michel Juillard) Date: Tue, 01 Sep 1998 14:02:00 -0000 Subject: Intel MKL Message-ID: Did anybody have success in using Intel's MKL dll (math kernel library) with gnu-win32 compiler? MKL is Intel version of the BLAS, optimized for the Pentium Pro, the binaries are free, see http://developer.intel.com/design/perftool/perflibst/mkl/index.htm If it's impossible, why? Thanks for your help, Michel - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 1 14:02:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 01 Sep 1998 14:02:00 -0000 Subject: Cannot run programs from bash shell Message-ID: <19980901165756.9183.rocketmail@send1c.yahoomail.com> ---Per Pedersen wrote: > > I installed B19 and updated to B19.1 (installed OK) > > When I try to run ANY program from the shell i.e. dbl_flatfile (sell script), Convertdata.exe (win32 console exe) > I get the message dbl_flat: not found or Convertdata: not found. > > I have tried to give full path, I have tried to run from the current directory. It seems as if bash cannot find the > Program??? bash is _CaSe_SeNsItIvE_ - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- To fix the most serious problems: Please, _READ_ the IMPORTANT UPGRADE NOTICE at the end of this note. Please, ensure that there is only _ONE_ cygwinb19.dll. Please, ensure that _ALL_ b18 binaries have been removed. Please, research your question via the Searchable Mail Archives first. http://www.cygnus.com/ml/gnu-win32 (Searchable Mail Archives) Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www-public.rz.uni-duesseldorf.de:1080 (Cygwin32 Porting Project) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - Mingw32) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) ftp://ftp.hksys.com/pub/mirrors/EGCS-Win32/ (Jeremy Bettis - mirror) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) http://www.downloadwizard.com/ak/gnu-win32/bash.html (GNU-Win32 Bash Configuration) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - package ports) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Package Porting Notes) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (German mirror) http://www.dol.ru/users/valtul (Valery Tulnikov - software ports) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David fox - RPM packages) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.kedemel.demon.co.uk/ (Darren's ports) http://www.multione.capgemini.fr/tools/pack_ipc/ ("Ludovic Lange" ) http://www.skydancer.demon.co.uk/gnu-win32/ (UK mirror and ports) http://www.i21.com/~tjump/files/index.html (Theodore Jump - emacs functions, cygwin32 ports, other info) Help for Win32 Beginners: http://www.relisoft.com http://www.program.com/resources/win32.html DISCLAIMER: These links or links from these pages to other sites do not constitute an endorsement of any entities, advertisers, products or services therein. I am not responsible for and do not control or monitor the content of these sites or the accuracy of information found therein. -------------------- IMPORTANT UPGRADE NOTICE ------------------------ You should get the following to update your cygwinb19 package: Sergey Okhapkin's coolview package which contains an updated cygwinb19.dll. (Yes, even if you've already downloaded the b19.1 update from the Cygnus Site). Mumit Khan's compilation of EGCS for the cygwinb19.dll; especially if you're using the C++ compiler. The current version of the compiler that comes with the tools has lots of problems that have been fixed with the EGCS version. This is a drop-in replacement for the GCC toolset. URL's are listed above. ----------------------------------------------------------------------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ssh@cray.com Tue Sep 1 14:02:00 1998 From: ssh@cray.com (Steven Hein) Date: Tue, 01 Sep 1998 14:02:00 -0000 Subject: Search engine problem?? (was Re: GNU-Win32 DLL and MSVC++) References: <199808311920.PAA23936@jubilee.bbn.com> Message-ID: <35EC54A4.939DEC65@cray.com> Is it just me, or does the mail archive search engine seem to be not working very well (actually, not at all!). It "seems" like searches that I did just a couple of weeks ago (for example, I was looking for info on 'inetd') now turn up nothing, or entries that don't even contain my keywords! Is a new search engine being used? Or is it just me....... This is *very* frustrating!!! There's a ton of great knowledge in the archives, and it's driving me nuts not to be able to get at it!! Steve -- Steve Hein (ssh@cray.com) Silicon Graphics, Inc. Jim Van Sciver wrote: > > Thank you for the reply. I did a better search (the search engine > Cygnus uses on the GNU-Win32 doesn't work very well) and found the > following information regarding EGCS C++ DLLs and MSVC++. First, > Mark Becker asked my exact question: > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 1 15:15:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 01 Sep 1998 15:15:00 -0000 Subject: EGCS-Mingw32 Win32 Message-ID: <199809012215.PAA19260@cygnus.com> Greetings, Just a quick question -- and may be a dumb one... Under EGCS-Mingw32, why is it necessary to add a -l reference for User32 for a command such as: gcc test.c -o test.exe in order to generate a successful link? Thanks for your time, folks. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From afc@teri.superlink.net Tue Sep 1 17:58:00 1998 From: afc@teri.superlink.net (A. F. Cano) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: Runtime error: Entry point not found Message-ID: <199809012049.QAA19360@speedy.teri.com> Hi, After finally solving all the compile and link problems, I now encounter the following error popup at runtime. The procedure entry point could not be located in the dynamic link library SMAPI.dll [ok] This minimal program was compiled with cygwin b19 and uses, as can be seen from above, the smapi.lib (explicitely included in the makefile) and SMAPI.dll from the IBM ViaVoice speech recognition product. There are many link warnigs like this /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: /ViaVoice/lib/smapi.lib\ (SMAPI.dll): warning: ignoring duplacate section `.idata$5' but no errors. Has anyone seen this before? Is someone aware of some parameter, option or magic incantation that could make this problem go away? Things to try? I've searched through the archives of this ML and the cygwin FAQ file with no luck. Thanks. I'll summarize responses not sent to the list. Augustine Cano - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 1 17:58:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980831155303.40141@cygnus.com> Message-ID: On Mon, 31 Aug 1998, Geoffrey Noer wrote: > > Perhaps -Dunix should be added to the define list whenever > __CYGWIN32__ is defined? Linux includes -Dunix and -Asystem(posix) in > CPP_PREDEFINES (looking at gcc/config/i386/linux.h). > I see no problem in cygwin32 specs defining "unix", but I have yet to see a good argument for getting rid of _WIN32 from x86-win32 targets, especially from mingw32. So far I've seen only a 2 or 3 posts suggesting we get rid of WIN32 (Earnie Boyd and someone else -- Larry Hall? Sorry, I can't remember), but all of these were low on details as to why. If I'm missing a few posts that you believe are pertinent, please feel free to shout. Granted that lots of code out there IMO incorrectly uses _WIN32 where it should be using _MSC_VER or BORLANDC or, better yet, autoconf style macros (or some other similar mechanism) to define capabilities of host/target system; I think over time we should be getting those packages fixed instead of getting rid of WIN32 and temporarily masking the problem. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dahms@ifk20.mach.uni-karlsruhe.de Tue Sep 1 17:58:00 1998 From: dahms@ifk20.mach.uni-karlsruhe.de (dahms@ifk20.mach.uni-karlsruhe.de) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: RESULTS: newsgroup creation straw poll. Message-ID: <009CB99F.657A12E0.15370@ifk20.mach.uni-karlsruhe.de> Hi Kevin, you wrote: : On a last note, I don't think the volume of traffic on this list : warrants the creation of more than a discussion group and an announce : group, at the present time. Yes. To keep the noise low, please avoid the ms-windows hierarchy and only post an announcement there every week/month. : One more issue comes to me, and that is the "32" suffix. Perhaps it : would be a good idea to drop the "32" from the newsgroup names? Note : that comp.os.ms-windows doesn't specify 16 or 32. Perhaps it should be : dropped for the "gnuwin" part, but kept for the "cygwin" part? IMHO, NT going 64bit is already overdue. I'll "soon" need to malloc >2GB... Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ALIR@STELNJ.COM Tue Sep 1 17:58:00 1998 From: ALIR@STELNJ.COM (ALI RON) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: Where to install gnu-win32... Message-ID: <117E611CDA2DD1118F38006097D2F7140A62BD@ntserver.stelnj.com> I set up my directory hierarchy as follows: d:/usr d:/usr/bin d:/usr/etc d:/usr/i386-cygwin32 d:/usr/include d:/usr/linexec d:/usr/local d:/usr/share The "man" & "info" directories are missing. Do you know where they can be found? After firing up regedit, the mount command returns: Device Directory Type Flags \\d\usr: /usr native text=binary \\.\tape1: /dev/st1 native text=binary \\.\tape0: /dev/st0 native text=binary \\.\b: /dev/fd1 native text=binary \\.\a: /dev/fd0 native text=binary c: /c native text=binary d: / native text=binary In the command, "mount -b //d/usr /usr", what is the significance of "//", is it necessary? The only file in the etc directory is termcap. Although mkpasswd.exe & mkgroup.exe, in /bin, display what appear to be valid info, the text files don't exist. How do I produce the /var/log & /var/run files. Should /var be directly under /usr, or in /etc? HOME is set to /usr, but the bash commands "cd", and "cd ../etc", and "ls ../etc" return ": permission denied". And. why is bash so slow? Thanks much for your help. Ronald Ali RonAli@WriteMe.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ramapes@earthlink.net Tue Sep 1 17:58:00 1998 From: ramapes@earthlink.net (Ryan A. Mapes) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: B19 - NT: bison not finding bison.simple Message-ID: <199809012254.PAA23460@scaup.prod.itd.earthlink.net> Intel, Windows NT 4 w/SP3 CYGWIN32_NT 4.0 19.0 i686 unknown Not using the default install location ... instead, Cygnus install is on drive 'D:' under '/usr/local/' Error: bash-2.01$ bison -d splay.y bison: /cygnus/b19/share/bison.simple: No such file or directory Work around: - copy bison.simple to expected location on c:\ drive (create directory /cygnus/b19/share/bison.simple) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jerryoh@pmf.snu.ac.kr Tue Sep 1 17:58:00 1998 From: jerryoh@pmf.snu.ac.kr (Jerry Oh) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: libglut.a : Where can I get it? Message-ID: <35EC970B.FE608BEA@pmf.snu.ac.kr> Hi! I am trying to build a program with openGL + glut + xforms under Win/NT with cygnus19.1. I tried to import libglut.a from glut32.dll using dlltool. But, I failed. Compiling and linking were good. But, execution error occurred. Does anyone have "libglut.a". Or let me know where I can get it. Thanks!!!!!!! Bye - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 1 17:58:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: egcs-1.1 binary release timeframe Message-ID: <9809012306.AA05995@modi.xraylith.wisc.edu> Now that egcs-1.1 is out, I expect to get a binary release for cygwin32 and mingw32 out within a few days. The time to the binary release mostly depends on how long the testsuite takes to run and then do the packaging. This is what you can expect: - egcs-1.1 binary release (stock egcs-1.1 + local patches) - binutils-980830 for mingw32, - updated mingw headers. Nothing major, mostly bug fixes - updated windows32api headers. Mostly from net contributions posted to the gnu-win32 list. If the testing goes well, expect the binary release this weekend. If it doesn't go well, or I get really busy with reality, then who knows ... Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Tue Sep 1 17:58:00 1998 From: lhall@rfk.com (Larry Hall (RFK Partners Inc)) Date: Tue, 01 Sep 1998 17:58:00 -0000 Subject: B19: G++ Bug References: <35EBB0E2.E4612E45@debis.spb.ru> Message-ID: <3.0.5.32.19980901151638.00afc4e0@pop.ma.ultranet.com> Mumit's looking at this now. I think a patch is in the works... Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com At 10:31 AM 9/1/98 +0200, Volker H. Simonis wrote: >it's 10 days ago that i submitted nearly the same bug report >to the mailing list, unfortunately nobody answerd. the subject >of the mail was : "B19: problem initialising global objects". >it seems to me that this is not only a problem of correctly >initialising stdio but a general problem of initialising global >objects, since it can happen in other objects like for example >maps too. > >following the text of my initial bug report : > >///////////////////////////////////////////////////////////// >///////////////////////////////////////////////////////////// > >i'm using b19 with egcs1.0.2 on NT4.0. >while porting a program which works fine with egcs1.02 under linux, >i encountered big problems under cygwin32. >it seems to me that global objects (such as for example static class >members) >don't get initialised properly before program start. > >take for example the following short program : >/////////////////////////////////////////////////////////////// > >#include >class Bug { >public: > Bug() { cout << "Bug() constructed" << endl; } >}; >int main() { >Bug BUG; >} >/////////////////////////////////////////////////////////////// > >it works perfectly fine and prints out : >> Bug() constructed > >But if we make BUG a globale variable by moving it outside >of main, like in the following example : >/////////////////////////////////////////////////////////////// > >#include >class Bug { >public: > Bug() { cout << "Bug() constructed" << endl; } >}; >Bug BUG; >int main() { >} >////////////////////////////////////////////////////////////////// > >we get a perfect segmentation fault, saying : > >> Exception: STATUS_ACCES_VIOLATION > >with gdb we can localize the error to happen in : >------------------------------------------------------------------ > >ostream::operator<< (this=0x41100c, s=0x401040 "Bug() constructed") >at libio/iostream.cc:784 >------------------------------------------------------------------- > >it seems to me that cout has not been initialized properly before >the initialisation of BUG where it is used. Is this true ? > >as i have a lot of static and global objects with complex >constructors, this is a big problem for me. > >does anybody know the exact reason of this error an possible >workarounds ? >any information appreciated. > >volker >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From setera@us.ibm.com Wed Sep 2 01:16:00 1998 From: setera@us.ibm.com (Craig Setera) Date: Wed, 02 Sep 1998 01:16:00 -0000 Subject: Thoughts on redistributing DLL's and such Message-ID: <5010400026492126000002L062*@MHS> I'm considering putting binaries out on my GIMP for Win32 web site. I have a few concerns about this, one of which is the redistribution of various prerequisites. In the short term, I'm probably just going to provide a zip or tar file with the binaries and some install instructions. In this case, I can just continue to point people to the appropriate precompiled required pieces. I could also provide local copies of only the required binaries (such as the 2 X11 client library DLL's required, as opposed to the entire X11 binary). When (if?) I ever get an installable version of this done, I would certainly want to include all of the prerequisites (except for the X-server itself). This leaves me with a licensing/acknowledgement concern. What is the usual policy for acknowledging these pieces and is it generally considered ok to bundle them? The following are the prerequisites that I could see potentially bundling: - The required X11 client libraries (R6.3 or R6.4) including X11.dll and X11ext.dll. - The X11 locale files - The GIF, PNG and JPEG library DLL's - A copy of cygwin32.dll?? (Would allow me to know which version people are using and that it works) Any thoughts/concerns would be greatly appreciated. Thanks, Craig Craig Setera AS/400 Enterprise Java Development IBM Rochester setera@us.ibm.com (507) 253-3387 - Tie: 553-3387 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Wed Sep 2 01:16:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Wed, 02 Sep 1998 01:16:00 -0000 Subject: Windows98 + inetutils Message-ID: Hello, I'm not sure if any of this has passed through the list before, for I did not see anything relative in any of the recent archives, but I have a few questions on the inetutils package running under Windows98. First things first, here's something that's really been annoying me, the ftp client in inetutils is not functioning, here's what I get when I do the following: ether [1]:~# ftp ftp.sampleftphost.com ftp: fdopen failed. ftp> Does anybody have any suggestions on how to fix this problem? I'm a heavy user of console ftp, and the one provided by Windows does not seem to enjoy running under bash too well. Also, a few questions regarding inetd under Windows98; I've succesfully compiled all of the required binaries (aka, inetd.exe, telnetd.exe, etc), and can run inetd fine, but where exactly is it looking for a configuration file? If i simply create an /etc/inetd.conf will it look here, or is it reading it from somewhere else? I'm only wondering, because running it stock, it loads all services, I'm wondering where it's reading these services from. Also, as far as remote logins are concerned (obviously it will be for mere personal use) how is this controlled? Can I simply just setup an /etc/passwd, and /etc/group file, and when inetd is setup it will accept logins using the passwd file? Any information on any of this will be greatly appreciated -- I haven't found any web resources for configuring inetd under Windows '98. Thanks, Ilsundal - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From WeiXiang@ubisoft.com.cn Wed Sep 2 01:16:00 1998 From: WeiXiang@ubisoft.com.cn (Wei Xiang) Date: Wed, 02 Sep 1998 01:16:00 -0000 Subject: How to make a shell script runnable? Message-ID: <50E89D0739DBD1119B5500A0C932C7E621593A@exchsrv.ubisoft.com.cn> I am using B19 in Windows 98 platform. But I can not use the chmod command to change a file's attributes. Why? Your suggestion will be very helpful to me. Here is a test: drwxr-xr-x 3 500 everyone 0 Sep 1 15:05 . drwxr-xr-x 0 500 everyone 0 Jan 1 1970 .. -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a BASH.EXE-2.01$ chmod +x a BASH.EXE-2.01$ ls -al a -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a BASH.EXE-2.01$ chmod 777 a BASH.EXE-2.01$ ls -al total 1 drwxr-xr-x 3 500 everyone 0 Sep 1 15:05 . drwxr-xr-x 0 500 everyone 0 Jan 1 1970 .. -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a BASH.EXE-2.01$ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From elric@cslab.uky.edu Wed Sep 2 01:16:00 1998 From: elric@cslab.uky.edu (Chris Dotson) Date: Wed, 02 Sep 1998 01:16:00 -0000 Subject: B19.1: fork bug? Message-ID: I have an application that I've compiled using gnu-win32. After a fork(), the new process always crashes immediately with a STATUS_ACCESS_VIOLATION (exception C0000005) -- the original process continues unharmed. Someone else had this exact problem a while back ( http://www.cygnus.com/ml/gnu-win32/1997-Feb/0603.html ), although a sleep() after the fork fixed the problem there. (I've tried that; no joy.) Is there a known bug with the handling of fork(), and if so, is there any resolution in sight? The application runs fine on many flavors of Unix, but I can't completely rule out that there's not a programming error somewhere. I'm running B19.1 with Sergey's latest COOLVIEW patch. (CYGWIN32 env var is set to "tty", also). The files are mounted binary. Thanks in advance for any help! One more thing -- I couldn't for the life of me find anything with the mailing list archive search. It would return messages that had none of my search terms in them when I searched for: exception fork. I finally used altavista with +url:"cygnus.com" and found the above article immediately. Am I doing something wrong, or is it broken? --- Elric _________________________________ Chris Dotson - elric@cslab.uky.edu / http://www.cslab.uky.edu/~elric / "If it ain't broke - mess with it until it is. Then fix it." -Me - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From andrewd@axonet.com.au Wed Sep 2 01:16:00 1998 From: andrewd@axonet.com.au (Andrew Dalgleish) Date: Wed, 02 Sep 1998 01:16:00 -0000 Subject: Cannot run programs from bash shell Message-ID: <91A8FD196436D1118EC2006008186C960CE676@server1.axonet.com.au> > -----Original Message----- > From: Earnie Boyd [SMTP:earnie_boyd@yahoo.com] > Sent: 1998 September 02, Wednesday 02:58 > To: Per Pedersen; gnu-win32@cygnus.com > Subject: Re: Cannot run programs from bash shell > > > > > > > ---Per Pedersen wrote: > > > > I installed B19 and updated to B19.1 (installed OK) > > > > When I try to run ANY program from the shell i.e. dbl_flatfile (sell > script), Convertdata.exe (win32 console exe) > > I get the message dbl_flat: not found or Convertdata: not found. > > > > I have tried to give full path, I have tried to run from the current > directory. It seems as if bash cannot find the > > Program??? > > bash is _CaSe_SeNsItIvE_ [Andrew Dalgleish] Not when specifying a command name, vis: bash.exe-2.01$ CmD.eXe Microsoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp. U:\home\AndrewD> Per, what do your path and mounts look like? Try "mount" and "echo $PATH" and send me the results. Regards, Andrew Dalgleish - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Wed Sep 2 03:57:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: Linking against a .lib file Message-ID: <5257-Wed02Sep1998125850+0200-vzell@de.oracle.com> Hi all Can anybody explain with some example command lines how to link against am MS .lib file ? I read the FAQ entry on the cygnus site but it's not clear to me how to do this. Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From roger8842@yahoo.com Wed Sep 2 03:57:00 1998 From: roger8842@yahoo.com (roger8842@yahoo.com) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: Web Site Analysis - FREE Message-ID: <199809020430.VAA10917@cygnus.com> ***** FREE WEB SITE ANALYSIS ***** *** Limited Time Offer *** If you're hopeful of ever making money from the internet, then its just plain smart to make sure that your web site is properly programmed and up to the task. That's where this Special FREE Offer comes in... World Wide Network Marketing, one of the net's most renown marketing firms, is pleased to once again make this Special FREE Offer to web site owners who truly want their sites to be successful. If you are lucky enough to be included in the first 1,000 respondents, then you will be able to speak directly with one of our professionals and receive a "one-on-one" "person-to-person" 100% FREE - NO STRINGS ATTACHED - web site analysis. No more just talking to computers or trying to understand complicated reports from software programs. You'll be speaking with an honest-to-goodness human being. Wow, what a concept. SPECIAL NOTE: Due to the HUGE response we have received from this offer in the past we must limit this Free Offer to the first 1,000 respondents. So you must act quickly. Also due to the enormous response WE MUST LIMIT EACH CALL TO NO MORE THAN 15 MINUTES. Therefore it is Extremely Important that you have pen and paper ready because you will be needing to take a lot of notes. DON'T MISS OUT ON THIS VALUABLE FREE OFFER CALL NOW - Remember You Must Be In The First 1,000 To Respond Or Else You'll Miss Out On This Great FREE Opportunity. Here are just a few of the VITAL AREAS that you'll be discussing with our team member; 1) Load Time - How long does your web site take to load? How long should it take? What about visitors who are using 14.4 or 28.8 baud modems? There are still millions of them in use. What can you do to help speed things up? 2) HTML Design - How well is your site programmed? Do you have any areas that are causing you critical problems of which you may not even be aware? What about META Tags? Do you know how vitally important they are with regard to search engines? Did you or your programmer include them? These are CRITICAL. 3) Search Engines, Directories and Indices - Are you ready for them? Is your web site programmed to take full advantage of their power? Where in the list of your competitors will you wind up? 4) How Browser Friendly Is Your Web Site - Did you know that various versions of browsers can't even show certain types of web pages? Is your site one of the thousands that can't even be seen by certain browsers that are being used this very day? 5) What About Dead Links - These are links in your site that point to other pages or web sites. Have you checked all your links to make certain that they are still functioning as planned? 6) How Popular Is Your Site - Are there other web sites that are linked to your site? This can help you in your web site positioning. 7) Spelling Accuracy - This is where you can really make yourself look unprofessional. Have you checked all your spelling? To schedule your FREE one-on-one call with one of our counselors call us today. Since we are providing this service to you for FREE, we only ask that you pay the price of the telephone call yourself by dialing direct to Sacramento, California USA at (916) 771-4739. Your long distance company will bill you at your regular rate for the call. There are NO hidden charges. Our offices are open 9am to 5pm PACIFIC TIME Monday through Friday. ==================================================== World Wide Network Marketing 5098 Foothills Blvd., #3136 Roseville, CA 95747 916-771-4739 Remove Instructions: Please return this message to us with the word "Remove" ( without the quote marks ) in the subject line. You will then be removed from future mailings. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From colin@fu.is.saga-u.ac.jp Wed Sep 2 03:57:00 1998 From: colin@fu.is.saga-u.ac.jp (Colin Peters) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: EGCS-Mingw32 Win32 Message-ID: <002d01bdd65c$b5392b80$fa173185@gbird0.fu.is.saga-u.ac.jp> Paul Garceau wrote: > Under EGCS-Mingw32, why is it necessary to add a -l reference for > User32 for a command such as: > > gcc test.c -o test.exe > > in order to generate a successful link? (Assuming test.c uses some functions from the user32 DLL.) This is because the only Win32 API library included by default in Mingw32 is kernel32 (it's needed by the startup code). If you are writing a program that uses other API functions then you need to link in the API libraries explicitly. Now, if you are writing a GUI program you can use -mwindows and you will automatically get user32 and a few other basic Win32 API libraries. It was done this way because GUI programs usually use the Win32 API, so it makes sense to do the extra library linking. (Note: you can't do "gcc -o test.exe test.c -mwindows" because the windows option will get sent to the compiler as well as the linker, and the compiler doesn't understand it, so you have to compile first and then link with -mwindows.) I suppose we could just include all those libraries by default all the time, though I don't think it makes much difference once you understand what's going on. Colin. - Colin Peters - colin at fu.is.saga-u.ac.jp - http://www.geocities.com/Tokyo/Towers/6162/index.html - Go not to usenet for counsel, for it will say both - 'yes' and 'no' and 'try another newsgroup'. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rabe@RWTH-Aachen.DE Wed Sep 2 03:57:00 1998 From: rabe@RWTH-Aachen.DE (Ralf G. R. Bergs) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: MD5Sum seriously broken in b19.1? (generates incorrect md5 hash values) Message-ID: <199809012227.AAA00477@Server.RZ.RWTH-Aachen.DE> Hi there, I'm running NT 4.0 SP3, and I have some strange problems with md5sum. >From a crypto class I know that it's practically impossible for two files to share the same MD5 hash, BUT I have lots of files with the same md5 sum. How come??? I'm attaching two picture files (of a well-known lady named Pam Anderson ;-) that produce the same md5 sum under NT: [m:\new\pix\pam anderson]md5sum -b pam1.jpg pam2.jpg fefe0c8ca9ff2a739ef0e0910c135a1d *pam1.jpg fefe0c8ca9ff2a739ef0e0910c135a1d *pam2.jpg Under Linux I get different MD5 values: Server:~$ md5sum -b pam1.jpg pam2.jpg d7d4d61579d749152a7903399f977dd1 *pam1.jpg 077362ac4360e94ad9e15cd622d84d7a *pam2.jpg Note that I DID use "-b" for binary mode! What's going on here? Could you *please* investigate this, since I need a solution ASAP. Thanks very much for your time, Ralf -- Ralf G. R. Bergs * Welkenrather Str. 100/102 * 52074 Aachen * Germany +49-241-876892, +49-241-877776 (fax) * rabe@rwth-aachen.de * PGP ok! From lo7@iol.ie Wed Sep 2 03:57:00 1998 From: lo7@iol.ie (LO) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: Windows application Message-ID: <35ECB4FC.69AB02CA@iol.ie> Hi, I saved the following code in a file called w.c.The code is supposed to create a Microsoft Windows applicaton. I am using Windows 95 and cygwinb19 on a Intel Pentium PC. //------------start-----------------// #include #include #include long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG lParam); int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; if (!hPrevInstance) { WndClass.cbClsExtra = 0; WndClass.cbWndExtra = 0; WndClass.hbrBackground = GetStockObject(WHITE_BRUSH); WndClass.hCursor = LoadCursor(NULL, IDC_ARROW); WndClass.hIcon = LoadIcon (NULL, "END"); WndClass.hInstance = hInstance; WndClass.lpfnWndProc = WndProc; WndClass.lpszClassName = "w"; WndClass.lpszMenuName = "MENU"; WndClass.style = CS_HREDRAW | CS_VREDRAW; RegisterClass (&WndClass); } hWnd = CreateWindow ("w", "Fundamental Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); ShowWindow (hWnd, nCmdShow); while (GetMessage (&Message, 0, 0, 0)) { TranslateMessage(&Message); DispatchMessage(&Message); } return Message.wParam; } long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG lParam) { switch(iMessage) { case WM_DESTROY: PostQuitMessage(0); return 0; default: return(DefWindowProc(hWnd, iMessage, wParam, lParam)); } } //-----------------end------------------------------------- w.c is in the dierctory C:\Cygnus\B19\ I then type GCC W.C at the prompt. Nothing appears on screen for about 5 seconds. Then the following text appears. What I typed is in bold text. BASH.EXE-2.01$ GCC W.C W.C: In function `int WinMain(void *, void *, char *, int)': W.C:22: assignment to `long int (*)(void *, unsigned int, unsigned int, long int )' from `long int (*)(void *, short unsigned int, short unsigned int, long int)' BASH.EXE-2.01$ Does anyone know whats wrong? The program is from the book "Windows 3.1 Programmers Reference" and is published by Que. Liam O'Keeffe. Web site: http://homepages.iol.ie/~lo7 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tomas@ccpa.puc-rio.br Wed Sep 2 03:57:00 1998 From: tomas@ccpa.puc-rio.br (tomas@ccpa.puc-rio.br) Date: Wed, 02 Sep 1998 03:57:00 -0000 Subject: GNU-Win32 DLL and MSVC++ Message-ID: <3.0.32.19980902072932.0091b300@10.72.21.1> >>> Mark Becker (Mark.Becker@neuroinformatik.ruhr-uni-bochum.de) writes: >>> How do I manage to link an egcs-(or gcc) built dll (here: libX11.dll) >>> to a C++-mainprog (compiled with MSVC++-5.0) with the MSVC linker ? > >> jeffdb (jeffdbREMOVETHIS@goodnet.com) writes: >> Bad news, this is impossible for several reasons. >> >> 1. binary incompatibility between MS/CYGNUS pei libraries (currently being worked on :) >> 2. name mangeling/abi incompatibility between MS/gnu C++ (according to the gnu G++ FAQ this is unresolvable >> since MS's abi is proprietary although I seem to recall having heard that it is being worked on) >> 3. dll startups for cygwin32 dlls need to initialize the cygwin32 posix layer, which >> means using the cygwin32 mainCRTStartup, which you can't with link.exe because AFAIK >> it can't manufacture the __data_start__ __text_start__ etc. symbols in the proper places. These problems remain the same if you load the DLL with LoadLibrary? Thanks in advance, Tomas PUC-Rio - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 3 02:56:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: EGCS-Mingw32 Win32 References: <199809012215.PAA19260@cygnus.com> Message-ID: On Tue, 1 Sep 1998, Paul Garceau wrote: > Greetings, > > Just a quick question -- and may be a dumb one... > > Under EGCS-Mingw32, why is it necessary to add a -l reference for > User32 for a command such as: > > gcc test.c -o test.exe > > in order to generate a successful link? Paul, Only if you refer to symbols defined in user32, otherwise no need. Since I don't know what's in test.c, I can't really provide an informative answer. Can you send me the following: 1. testcase source file 2. output of the build: % gcc -v test.c -o test.exe Thanks. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 3 02:56:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: Thoughts on redistributing DLL's and such References: <5010400026492126000002L062*@MHS> Message-ID: <19980902143809.38946@cygnus.com> On Tue, Sep 01, 1998 at 05:04:55PM -0400, Craig Setera wrote: > I'm considering putting binaries out on my GIMP for Win32 web site. Great! > This leaves me with a licensing/acknowledgement concern. What is the usual > policy for acknowledging these pieces and is it generally considered ok to > bundle them? The following are the prerequisites that I could see > potentially bundling: [...] > - A copy of cygwin32.dll?? (Would allow me to know which version people are > using and that it works) GIMP is GPL'd so using/redistributing cygwin.dll would not be an issue. Like all GPL'd software, you would need to be willing to provide sources to Cygwin32 on demand. (Or perhaps point them to the Cygnus project WWW site). I don't know what issues may exist with the X and graphics libraries... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 3 02:56:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <3.0.5.32.19980902163616.009d4ce0@pop.ma.ultranet.com> Message-ID: On Wed, 2 Sep 1998, Larry Hall (RFK Partners Inc) wrote: > > Below is documentation that comes with VC++ 5.0. See table 1.2 for > Microsoft specific predefined macros. > [ .... ] > > > Table 1.2 Microsoft-Specific Predefined Macros > > __cplusplus > > Defined for C++ programs only. > [ ... ] > > > _MSC_VER > > Defines the compiler version. Defined as 1100 for Microsoft Visual C++???? 5.0. Always defined. > > > _WIN32 > > > Defined for applications for Win32????. Always defined. > I think you are confusing the term "Microsoft specifc predefined macros" with "these macros are only defined for Microsoft compilers". I've plucked 3 out of the list, and 2 of those are defined by *every* C++ compiler for W95/NT. The only MS compiler specific macro among these 3 is _MSC_VER, which GNU does not and will not define. Regards Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 3 02:56:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: B19: G++ Bug References: <35EBB0E2.E4612E45@debis.spb.ru> Message-ID: <19980902142842.18519@cygnus.com> On Tue, Sep 01, 1998 at 01:36:55PM -0500, Mumit Khan wrote: [...] > fyi, this is not a problem with egcs, but rather has to do with > the cygwin32 DLL (that's why it works for mingw32 and uwin and > other egcs targets). > > I just submitted a patch to cygwin32 developers that fixes this. Yup, sometimes problems reported on the list do end up being our fault. :-) We're looking into it... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 3 02:56:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: B19 - NT: bison not finding bison.simple References: <199809012254.PAA23460@scaup.prod.itd.earthlink.net> Message-ID: <19980902143309.44441@cygnus.com> On Tue, Sep 01, 1998 at 03:56:23PM -0700, Ryan A. Mapes wrote: > > Not using the default install location ... instead, > Cygnus install is on drive 'D:' under '/usr/local/' > > Error: > bash-2.01$ bison -d splay.y > bison: /cygnus/b19/share/bison.simple: No such file or directory > > Work around: > - copy bison.simple to expected location on c:\ drive > (create directory /cygnus/b19/share/bison.simple) If someone wanted to volunteer and submit a patch to make bison look for the share directory via a relative path instead of the precompiled one, I'd appreciate it. :-) We've recently done a fair amount of work to make gcc work without GCC_EXEC_PREFIX. Something similar needs to happen for bison although I suspect it'll be much easier in this case... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bsv@svkt.trecom.tomsk.su Thu Sep 3 02:56:00 1998 From: bsv@svkt.trecom.tomsk.su (bsv) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: Use gcc DLLs with other sofware Message-ID: <16400.980903@svkt.trecom.tomsk.su> Hello All, I make DLL and want use it with other Windows software (such as Borland C). This DLL make trap when i try call any function from cygwin.dll (e.g. malloc). How i can initialize cygwin.dll? I use gnu-win32 beta 18. Best regards, Sergey Bezverhov mailto:bsv@svkt.trecom.tomsk.su - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From p_savdekar@mailcity.com Thu Sep 3 02:56:00 1998 From: p_savdekar@mailcity.com (Pankaj Savdekar) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: From Win-NT to Unix/Sun using G++ Message-ID: Hi friends...... I'm currently developing one Natural Language Parser in VC++5.0. But no Visual feature is used of VC++. My Code is in C++ & STL (Standard Template Library).... Now I want to test the same Parser on Unix / Linux & sun Machine........ I Know that G++ from ver 2.7.0 supports STL....... Can you pl. tell me what should I done for Testing ..... Tanx in Advance Pankaj Now MailCity offers forwarding so you can check your MailCity messages and other e-mail all in one place. Go to http://www.mailcity.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From paveltz@csoft.bg Thu Sep 3 02:56:00 1998 From: paveltz@csoft.bg (Pavel Tzekov) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: Error when starting mc References: <35EBCAA0.4C59E475@ina.de> Message-ID: <35EE4331.F7845B97@csoft.bg> Alexander Kriegisch wrote: > > Hi all (especially Sergey Okhapkin)! > > I installed the port of mc-4.1.32 from Sergey, but it does not work. > Everytime I try to start mc.exe I get an error message box like > > procedure entry point "truncate" could not be found in > DLL cygwinb19.dll > > (translated from German, I do not know the exact English error text). I > use cygwin beta 19.1 (yes, I have updated the DLL). > > Any ideas? Get the coolview stuff from Sergey Okhapkin's site Pavel Tzekov CSoft Ltd. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 3 02:56:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: can't find dlfcn.h References: <35E4C286.3D800D4A@accrue.com> <19980827135603.23245@cygnus.com> Message-ID: <19980902151020.31088@cygnus.com> On Thu, Aug 27, 1998 at 01:56:03PM -0700, Geoffrey Noer wrote: > > Hmmm. I see it in the sources in winsup/dlfcn.h. From a quick > glance, this looks like something that should be somewhere in the > include hierarchy Yup. Fixed in development sources. It'll be include/dlfcn.h in the next release. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Fredrik.Gustafson@cybercom.se Thu Sep 3 02:56:00 1998 From: Fredrik.Gustafson@cybercom.se (Fredrik Gustafson) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: CDK on Windows98? Message-ID: <001b01bdd71d$b57af6c0$421ea8c0@fredrik.gustafson.pc.cybercom.se> Hi! Is there a simple way (yet) to get CDK up and running on Windows98? Right now cdk.exe stops with the error message "Setup is nable to find installation languages in C:\TMP\SETUP.LID file. Error 105" Sincerely Fredrik Gustafson Email: fredrik.gustafson@cybercom.se - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jari.aalto@poboxes.com Thu Sep 3 02:56:00 1998 From: jari.aalto@poboxes.com (jari.aalto@poboxes.com) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: Where is whole CyWin FAQ as .ps or .html? Message-ID: Hi, I'm looking for full FAQ as one big file, so that I can print it to printer. Preferrable in .ps or .html format. The one that's on Cynus.com is awfull, because it has been divized into zillion parts. anybody? jari - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From raines@SLAC.Stanford.EDU Thu Sep 3 02:56:00 1998 From: raines@SLAC.Stanford.EDU (Paul E. Raines) Date: Thu, 03 Sep 1998 02:56:00 -0000 Subject: *.COM file execution Message-ID: <199809021745.KAA07190@helios.SLAC.Stanford.EDU> I just installed B19.1 and after playing around for a few minutes found that bash would not execute *.com files (e.g. more.com). Actually, if you try to execute them, bash treats them as scripts and reports a syntax error. Is this a known limitation? I have searched the FAQ and mail archives to no avail. pr - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Albert.Koelmans@newcastle.ac.uk Thu Sep 3 06:26:00 1998 From: Albert.Koelmans@newcastle.ac.uk (Albert Koelmans) Date: Thu, 03 Sep 1998 06:26:00 -0000 Subject: Is there a port of 'hostid'? Message-ID: I am trying to port a solaris program that uses the 'hostid' program ( and presumably the 'gethostid()' system call. Has this been ported or is there an alternative to it? It is not mentioned in the FAQ or the archive. Thanks Albert - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Rod.Bates@wichita.boeing.com Thu Sep 3 06:26:00 1998 From: Rod.Bates@wichita.boeing.com (Bates, Rod) Date: Thu, 03 Sep 1998 06:26:00 -0000 Subject: How to increase stack size Message-ID: <6C7E2A10BB01D111929500400B406DDEE63925@xch-wch-02.ks.boeing.com> How do I increase the stack size for a program built with cygwin b19, on NT? Rodney Bates - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bills@warwick.net Thu Sep 3 17:23:00 1998 From: bills@warwick.net (bills) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: cygwinb19.dll affects bash reading .bashrc Message-ID: <01BDD72E.31776E60.bills@warwick.net> I've got a strange one here that I can't seem to figure out. If I install the 19.3 version of cygwinb19.dll, bash 2.02 stops reading the .bashrc file. Works fine with either 19.0 or 19.1. Anyone have any idea what's going on? Bill Smithem PGP Fingerprints: RSA 4FEA 9A6A B83B A745 9FE6 104E E35D EB4C DH AB22 8E04 4E0D E8D0 0406 EC9C D20A BCAE 3035 4CD9 Lottery: A Tax On People Who Are Bad At Math - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gcg@legato.com Thu Sep 3 17:23:00 1998 From: gcg@legato.com (Glenn Gluszczak) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: B19.1: su doesn't change effective uid, gid Message-ID: <35EF328E.70E5CF49@legato.com> login in as a User (not Administrator) su Administrator echo hello > x exit ls -l x And it'll be owned by User and not Administrator. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From clarkj@auss.sop.dec.com Thu Sep 3 17:23:00 1998 From: clarkj@auss.sop.dec.com (Jim Clark) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: B19.1 Long pause occurs randomly in bash Message-ID: <35EDF1FA.D6CD6DA2@auss.sop.dec.com> >From the FAQ for 19.1: Long pause occurs randomly in bash ================================== It has been reported that bash will hang for several seconds upon occasion. We are looking into this problem. It does not seem to occur when bash is started under a command prompt. Reportedly, if you specify the 'Start in' directory in the shortcut, the problem goes away. Observation: If I set the 'Start in' directory in the shortcut for bash to either "C:\" or "/", I will get long pauses (not so randomly) in bash. If I set the 'Start in' directory in the shortcut properties to any other directory (eg, "/home"), the problem seems to go away. Setup: Windows NT 4.0 SR3, AMD K6 PC Jim. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 3 17:23:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: Bounced messages for michael@weiser.saale-net.de Message-ID: <199809031550.RAA27228@weiser.saale-net.de> Hello, sorry for any error messages you've eventually received since 98/08/31. I've been a little too paranoid in securing my server against relaying so that it refused *any* relaying (for my home domain, too) and bounced all messages. It's a shame and I'm really sorry about. :-( Could you please resend your returned message if you're waiting for a reply from me? Sorry for the inconvenience... -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Thu Sep 3 17:23:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: Error when starting mc References: <35EBCAA0.4C59E475@ina.de> <35EE4331.F7845B97@csoft.bg> Message-ID: <35EE4A37.AAB085C1@ina.de> Hi Pavel! > > I installed the port of mc-4.1.32 from Sergey, but it does not work. > > I use cygwin beta 19.1 (yes, I have updated the DLL). > Get the coolview stuff from Sergey Okhapkin's site Okay, I have it. It consists of the following files: 1) 2782 May 18 20:27 aboutme.html 2) 6144 Jun 7 19:40 cygpath.exe 3) 669150 Jul 15 19:51 cygwinb19.dll 4) 706620 Jul 10 13:18 libcygwin.a 5) 7168 Jun 23 20:05 ps.exe I copied #2, #3 and #5 to the cygwin 'bin' path (replacing the originals after backing them up) and #4 to the 'lib' path. The result: My 'bash' does not start anymore (or at least I do not get the prompt, and it hangs). 'mc' does not start either. What have I done wrong? -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Thu Sep 3 17:23:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: Q: X-Server Info Message-ID: <0EYP00723YP0PV@mail.hac.com> My setup on my NT4 SP3 system as provided by my company includes Lan Workplace Pro (Novell), which includes an X-server. Presumably, I can use this in support of all the X-client stuff available from dao.gsfc.nasa.gov. My questions are: (a) is this presumption true, and (b)if so, does anyone know how to go about setting things up so that the Novel xserver will use a windows manager from the dao distribution instead of from the Novell Distribution. (The Novell on line help for 'advanced users' has description of a set of mouse clicks in Novell dialog boxes.) I know little about X, but was able to set things up on my Linux system at home with the help of "Running Linux" and "How To"s spread out all over my desk and floor. Any help or pointers to sources of info will be appreciated. Thanks, John Velman jrvelman@mail.hac.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smallesan@hns.com Thu Sep 3 17:23:00 1998 From: smallesan@hns.com (Saravanan Mallesan) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: Bash startup time error message Message-ID: <980902093500.ZM5573@ins7.hns.com> Whenever I invoke bash, I get the following error message first, followed by the usual bash prompt: BASH.EXE: //.bashrc: Invalid argument I can proceed working with the bash without any problems, but this error message baffles me. This message started coming up only after I upgraded to Sergei's coolview package. What am I doing wrong? Thanks for any help. -Santosh -- Dain bramaged. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Thu Sep 3 17:23:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: EGCS-Mingw32 Win32 References: <199809012215.PAA19260@cygnus.com> Message-ID: <199809022051.NAA07249@cygnus.com> Hi folks, On 2 Sep 98, at 12:01, the Illustrious Mumit Khan wrote: Thanks for your reply, Mumit. > On Tue, 1 Sep 1998, Paul Garceau wrote: > > > Greetings, > > > > Just a quick question -- and may be a dumb one... > > > > Under EGCS-Mingw32, why is it necessary to add a -l reference for > > User32 for a command such as: > > > > gcc test.c -o test.exe > > > > in order to generate a successful link? > > Paul, > > Only if you refer to symbols defined in user32, otherwise no need. Since I > don't know what's in test.c, I can't really provide an informative answer. > > Can you send me the following: > > 1. testcase source file > 2. output of the build: > > % gcc -v test.c -o test.exe > > Thanks. My pleasure; I'll send that via email. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 3 17:23:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: Search engine problem?? (was Re: GNU-Win32 DLL and MSVC++) References: <199808311920.PAA23936@jubilee.bbn.com> <35EC2964.468E6066@cray.com> Message-ID: <19980903154033.03443@cygnus.com> On Tue, Sep 01, 1998 at 12:05:40PM -0500, Steven Hein wrote: > > Is it just me, or does the mail archive search engine seem to be not > working very well (actually, not at all!). Yep, it's pretty hosed. I'm looking into it... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From greg@ahpah.com Thu Sep 3 17:23:00 1998 From: greg@ahpah.com (Greg Humphreys) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: B19: gcc -r option broken? Message-ID: <001801bdd6af$98802e00$0501010a@flownode.ahpah.com> I'm trying to use the -r option for gcc to generate an executable with relocation information in it. It appears to be broken. When I run the resulting .exe, I get "This program cannot be run in DOS mode". Every PE viewer I have dies a miserable flaming death on the resulting .exe (I've tried three of them, including one I wrote myself). It looks to me that the section headers are messed up (they have very large values for the section sizes), which makes the file impossible to parse (this is my initial assessment after looking at my own PE parser in a debugger). The fact that the stub program is being run by Windows is even more confusing. I really need to be able to include relocation information in my executables, and I'd like to continue to use gcc. I'm running Windows 98. Any help on this matter would be greatly appreciated. --- And the wind cried... HUMPER. (greg@ahpah.com) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 3 17:23:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <3.0.5.32.19980902145002.00b1c2b0@pop.ma.ultranet.com> Message-ID: <9809022023.AA07080@modi.xraylith.wisc.edu> "Larry Hall (RFK Partners Inc)" writes: > The best argument I have for getting rid of _WIN32 from cygwin and mingw is > that MS docs claim _WIN32 is MS compiler specific. As far as I know, _MSC_VER, not _WIN32, is the microsoft-compiler specific macro. A quick look at some of the microsoft's headers, eg., pshpack1.h, suggests the same as well. My *rather old* on-line API docs here tell me that _WIN32 is specific to Microsoft Windows Operating System. Please cite the docs you mentiond so I can verify. > It says nothing about > WIN32 as far as I know. Since this statement has been made, it seems a > shame to make such a compiler specific define more generic, especially > since it can be used in code to determine whether compiler/platform > specific things need to be considered. Perhaps _MSC_VER can be used for > this too but then again, what's the advantage of making _WIN32 generic, > especially when WIN32, if needed, is available and even more intuitive? > Because _WIN32 is the commonly used one and suggested by OS API doc. Also, it doesn't pollute user namespace. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 3 17:23:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: How to make a shell script runnable? Message-ID: <19980902215310.989.rocketmail@send101.yahoomail.com> Extended attributes aren't supported on 9x. It can be done on NT if you `SET CYGWIN32=%CYGWIN32% ntea'. You should be able to execute the script if you include `#! /path/to/bash' as the first line of the script. ---Wei Xiang wrote: > > I am using B19 in Windows 98 platform. But I can not use the chmod command > to change a file's attributes. Why? Your suggestion will be very helpful > to me. > > Here is a test: > > drwxr-xr-x 3 500 everyone 0 Sep 1 15:05 . > drwxr-xr-x 0 500 everyone 0 Jan 1 1970 .. > -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a > BASH.EXE-2.01$ chmod +x a > BASH.EXE-2.01$ ls -al a > -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a > BASH.EXE-2.01$ chmod 777 a > BASH.EXE-2.01$ ls -al > total 1 > drwxr-xr-x 3 500 everyone 0 Sep 1 15:05 . > drwxr-xr-x 0 500 everyone 0 Jan 1 1970 .. > -rw-r--r-- 1 500 everyone 3 Sep 2 09:42 a > BASH.EXE-2.01$ > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Thu Sep 3 17:23:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Thu, 03 Sep 1998 17:23:00 -0000 Subject: MD5Sum seriously broken in b19.1? (generates incorrect md5 hash values) References: <199809012227.AAA00477@Server.RZ.RWTH-Aachen.DE> Message-ID: <4680-Thu03Sep1998172809+0200-vzell@de.oracle.com> Hi This is what I get: vzell:/tmp> md5sum pam* d7d4d61579d749152a7903399f977dd1 pam1.jpg 077362ac4360e94ad9e15cd622d84d7a pam2.jpg By the way nice pictures ...:_) Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From marcus@bighorn.dr.lucent.com Fri Sep 4 03:17:00 1998 From: marcus@bighorn.dr.lucent.com (139a80000-HallM(DR3132)37x10) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: Runtime error: Entry point not found Message-ID: <199809022055.OAA15147@chorus.dr.lucent.com> Augustine Cano writes: > After finally solving all the compile and link problems, I now encounter > the following error popup at runtime. > > The procedure entry point could not > be located in the dynamic link library SMAPI.dll This is, I am sure, because the import table for your process is not sane. The system is looking for garbage names (something that gives the thick vertical bar character) and they obviously cannout be found. > This minimal program was compiled with cygwin b19 and uses, as can be > seen from above, the smapi.lib (explicitely included in the makefile) > and SMAPI.dll from the IBM ViaVoice speech recognition product. > There are many link warnigs like this And the smapi.lib was produced by MSVC++ (or something else that works to that standard)? That is the problem. > /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: /ViaVoice/lib/smapi.lib\ > (SMAPI.dll): warning: ignoring duplacate section `.idata$5' This confirms it. The .idata$5 (and other .idata$* segments) perform a delicate dance to build the import table during linking. The conventions used by Microsoft and Gnuwin32 are different, and unfortunately, do not interoperate. It is possible to build a "smapi.a" file with dlltool that will work with gnuwin32, but I don't offhand recall how. Perhaps you can find it by searching the archive for this topic. marcus hall - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Fri Sep 4 03:17:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: EGCS-Mingw32 Win32 References: <002d01bdd65c$b5392b80$fa173185@gbird0.fu.is.saga-u.ac.jp> Message-ID: <199809022048.NAA07127@cygnus.com> Hi folks, On 2 Sep 98, at 19:30, the Illustrious Colin Peters wrote: Thanks for the quick reply Colin, it is appreciated. > Paul Garceau wrote: > > Under EGCS-Mingw32, why is it necessary to add a -l reference for > > User32 for a command such as: > > > > gcc test.c -o test.exe > > > > in order to generate a successful link? > > > (Assuming test.c uses some functions from the user32 DLL.) This is because > the only Win32 API library included by default in Mingw32 is kernel32 > (it's needed by the startup code). Ah hah! (a light dawns in an otherwise ding(e)y room...) > If you are writing a program that uses > other API functions then you need to link in the API libraries explicitly. Ok. > Now, if you are writing a GUI program you can use -mwindows and you will > automatically get user32 and a few other basic Win32 API libraries. > It was > done this way because GUI programs usually use the Win32 API, so it makes > sense to do the extra library linking. Agreed. > (Note: you can't do "gcc -o > test.exe test.c -mwindows" because the windows option will get sent to the > compiler as well as the linker, and the compiler doesn't understand it, so > you have to compile first and then link with -mwindows.) Ok, so in the linking phase is when -mwindows needs to be referenced, not during the compile itself. > > I suppose we could just include all those libraries by default all the > time, though I don't think it makes much difference once you understand > what's going on. I agree, it doesn't make sense if one knows what's going on...thanks again, Colin. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Fri Sep 4 03:17:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: libglut.a : Where can I get it? References: <35EC970B.FE608BEA@pmf.snu.ac.kr> Message-ID: <000701bdd752$63fd80d0$0c0aa8c0@harry.scoutsys.com> I have not yet tried this: http://reality.sgi.com/opengl/glut3/glut3.html What I have tried is the Mesa package: http://www.ssec.wisc.edu/~brianp/Mesa.html I have not been able to get the Mesa demos working under cygwin32. Has anyone else? Hugh Winkler Scout Systems, Inc. > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Jerry Oh > Sent: Tuesday, September 01, 1998 7:54 PM > To: gnu-win32@cygnus.com > Subject: libglut.a : Where can I get it? > > > Hi! > > I am trying to build a program with openGL + glut + xforms > under Win/NT with cygnus19.1. > > I tried to import libglut.a from glut32.dll using dlltool. > But, I failed. Compiling and linking were good. But, execution error > occurred. > > Does anyone have "libglut.a". Or let me know where I can get it. > > Thanks!!!!!!! > > Bye > - > For help on using this list (especially unsubscribing), send > a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Fri Sep 4 03:17:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: libglut.a : Where can I get it? References: <35EC970B.FE608BEA@pmf.snu.ac.kr> Message-ID: <000f01bdd7c4$0f1bbd80$0c0aa8c0@harry.scoutsys.com> I have just today compiled libglut and it works well, apparently, with the code I was porting. You link to the MS GL libraries, not Mesa. To build the three libs in the distribution at http://reality.sgi.com/opengl/glut3/glut3.html I had to do the following: 1. Create 3 custom Makefiles for cygwin32: for the glut, mui, and gle libs. The makefiles define and _WIN32, WIN32, and they build the libraries from different constituent .o files than the unix builds. I made these makefiles using imake, then modified the constituent files according to the ones in the Makefile.win files (the makefiles for NMAKE and CL). 2. Modify the file lib/glut/win32_util.c trivially: Old code : #if defined(__CYGWIN32__) typedef MINMAXINFO* LPMINMAXINFO; #else #include #endif New code : #if defined(__CYGWIN32__) typedef MINMAXINFO* LPMINMAXINFO; #endif #include I imagine some earlier distribution of cygwin32 did not contain ? Anyway, I am using b19 and this works for me. I have put the makefiles, and the libglut.a (for intel), at ftp://ftp.scoutsys.com/misc/glut-cygwin32 Hugh Winkler Scout Systems, Inc. > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Jerry Oh > ...snip... > Does anyone have "libglut.a". Or let me know where I can get it. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From stoller@micro.ti.com Fri Sep 4 03:17:00 1998 From: stoller@micro.ti.com (Adam Stoller) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: B19: [HELP] Can I link cygwinb19.dll statically? Message-ID: <35ED88B3.5487BE2A@micro.ti.com> I am not subscribed to this list (if such is even possible for mere mortals such as I :-) - so please direct responses to me directly (to/cc: stoller@micro.ti.com) Please respond ASAP (i.e. I'm getting dirty looks from my Manager ...) [Scenario]===================== We have the Cygnus B19 distribution installed on our winnt boxes. I used 'gcc' to build some tools that we want to ship to customers. In testing, we tried to run the tools on machines (winnt and win95) in which the Cygnus distribution had NOT been installed. This led to error messages about missing CYGWINB19.DLL I've tried linking with -static and/or -Bstatic - but have not managed to find anyway to get the cygwinb19.dll to instead be treated as a non-dynamic [i.e. static] library. (a) Is this possible to do? (b) How? (c) What kind of copy{right,left} problems would we be running into if we shipped the dll with the tools (the easy but least liked solution) Thanks in advance for any and all assistance provided. Other than this, the Cygnus distribution has saved me countless of hours!! --fish - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael.mauch@gmx.de Fri Sep 4 03:17:00 1998 From: michael.mauch@gmx.de (Michael Mauch) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: How to make a shell script runnable? References: <50E89D0739DBD1119B5500A0C932C7E621593A@exchsrv.ubisoft.com.cn> Message-ID: <199809031730.TAA28665@crimson.ihg.uni-duisburg.de> Hi Wei Xiang, on Wed, 2 Sep 1998 09:44:01 +0800 , you wrote: > I am using B19 in Windows 98 platform. But I can not use the chmod command > to change a file's attributes. Why? Your suggestion will be very helpful > to me. DOS/Windows file systems don't have "executable" attributes, and so Cygnus/bash has to guess whether a file is executable or not. `chmod???? doesn't set some magic (hidden in a file or so) executable attribute, it can only be used to set the "writable" bits ("not read-only" in DOS terms). Bash executes everything, whether it shows up as "executable" in `ls -l???? or not. It knows about popular file extensions like .exe or .com (not .bat, maybe some others, I don't know). And bash also knows about the so-called she-bang syntax: if you put a #! in the first line and first column of your script, bash will call the interpreter denoted after the "#!" (e.g. you could use "#!/bin/sh" or "#!/bin/perl"). For files with that "#!" in the first two bytes, `ls -l???? will display the executable flag. Note that on Unix (and therefore Cygnus), the search PATH for executables doesn't include the current directory automatically, like on DOS. So if you want to run a program "a" in the current directory, you have to explicitly say "./a", not just "a". Regards... Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Fri Sep 4 03:17:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: libglut.a : Where can I get it? References: <35EC970B.FE608BEA@pmf.snu.ac.kr> Message-ID: <199809022038.NAA06029@cygnus.com> Hi folks, On 2 Sep 98, at 9:53, the Illustrious Jerry Oh wrote: > Hi! > > I am trying to build a program with openGL + glut + xforms > under Win/NT with cygnus19.1. Is xforms a type of X-Window? If so, you probably already have an X- Server/Client setup. If you don't have X-Server/Client capability, you may have to create the Glut libs based on the Win32 version of the lib packages in question. > > I tried to import libglut.a from glut32.dll using dlltool. > But, I failed. Compiling and linking were good. But, execution error > occurred. This is likely due to the fact that the MS OpenGL .dlls are incompatible with the SGI .dlls, regardless of library origin. The OpenGL.org site has references to Glut for several different platforms (see http://www.opengl.org/Downloads/DevDownloads.html ). There is also beta source code available for the Glut (3.7) lib from http://reality.sgi.com/opengl/glut3/glut3.html . Bear in mind that Glut 3.7beta was primarily set up for Unix based platforms. There is a reference for Win95/NT machines. You may have to turn your platform into a UWIN platform to get the Glut lib to build properly under Cygnus. The Win95/NT version of Glut 3.7(beta) is MSVC specific and will probably not build properly under Cygwin32. Not because of Cygwin32, but because of heavy dependency on the MSVC specific calls which are included with the Win95/NT source, such as ftime(). Another option, and again, this is only a suggestion, you could download the latest Mesa 3-D Graphics Library release (version 2.6) and attempt to build only the glut lib (for Cygnus) from the source included with Mesa 3D Graphics Library. The beta version (3.08 -- Cygnus) of the Mesa 3D Graphics Library is available at: http://www.ssec.wisc.edu/~brianp/Mesa.html Caveat: The overhead of Mesa is huge, and according to some sources, the completed glut lib from Mesa may actually degrade your system during runtime. If you are only wanting the Glut lib, you may be better served to go with beta 3.7. Hope this helps. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jba@lfpt.RWTH-Aachen.DE Fri Sep 4 03:17:00 1998 From: jba@lfpt.RWTH-Aachen.DE (Juergen Bausa) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: accessing gnuwin dll's from other compiler Message-ID: <199809041016.MAA00690@lisa.rwth-aachen.de> I think this problem was reported earlier but I couldn't find any solution in the archives. I have dll created with the cygnus port of gvv (libx11.dll). I want to use it from my c-programm (I use the rsx-port of gcc). I got the headers for the function in that library, I got the cygwinb19.dll, and I created the import-library for libx11.dll. However, when I run my program I get a protection fault, if I call any routine from libx11.dll. I think the problem is, that cygwinb19.dll is not properly initialized, if I use it from a program not compiled with the cygnus-gcc. But I think there must be a way to do so. There maust be a procedure in cygwinb19.dll which I can call in order to initialize it. But what is the name of the procedure and how can I call it? Or is there any other way to use cygnus dll's with other compilers? Juergen - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jari.aalto@poboxes.com Fri Sep 4 03:17:00 1998 From: jari.aalto@poboxes.com (jari.aalto@poboxes.com) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: Where is PAGER like less? References: <01bdd2ee$1207ea80$0100007f@feng> <199808302215.AAA05313@weiser.saale-net.de> Message-ID: |Sun 1998-08-30 michael@weiser.saale-net.de (Michael Weiser) list.cyg | | Look at ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ for a port | of less and lots of other useful tools. http://ftp.franken.de/pub/win32/develop/gnuwin32/ Error 404: Not found Ein Fehler auf Client-Seite ist aufgetreten! Kommentar zum Fehler aus RFC 1945: "The server has not found anything matching the Request-URI." More pointers? jari - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Fri Sep 4 03:17:00 1998 From: lhall@rfk.com (Larry Hall (RFK Partners Inc)) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980831155303.40141@cygnus.com> Message-ID: <3.0.5.32.19980902145002.00b1c2b0@pop.ma.ultranet.com> At 07:18 PM 9/1/98 -0500, Mumit Khan wrote: >On Mon, 31 Aug 1998, Geoffrey Noer wrote: > >> >> Perhaps -Dunix should be added to the define list whenever >> __CYGWIN32__ is defined? Linux includes -Dunix and -Asystem(posix) in >> CPP_PREDEFINES (looking at gcc/config/i386/linux.h). >> > >I see no problem in cygwin32 specs defining "unix", but I have yet to >see a good argument for getting rid of _WIN32 from x86-win32 targets, >especially from mingw32. > >So far I've seen only a 2 or 3 posts suggesting we get rid of WIN32 >(Earnie Boyd and someone else -- Larry Hall? Sorry, I can't remember), >but all of these were low on details as to why. If I'm missing a few >posts that you believe are pertinent, please feel free to shout. > >Granted that lots of code out there IMO incorrectly uses _WIN32 where it >should be using _MSC_VER or BORLANDC or, better yet, autoconf style macros >(or some other similar mechanism) to define capabilities of host/target >system; I think over time we should be getting those packages fixed instead >of getting rid of WIN32 and temporarily masking the problem. > >Regards, >Mumit > The best argument I have for getting rid of _WIN32 from cygwin and mingw is that MS docs claim _WIN32 is MS compiler specific. It says nothing about WIN32 as far as I know. Since this statement has been made, it seems a shame to make such a compiler specific define more generic, especially since it can be used in code to determine whether compiler/platform specific things need to be considered. Perhaps _MSC_VER can be used for this too but then again, what's the advantage of making _WIN32 generic, especially when WIN32, if needed, is available and even more intuitive? Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sunef@hem.passagen.se Fri Sep 4 03:17:00 1998 From: sunef@hem.passagen.se (Sune Falck) Date: Fri, 04 Sep 1998 03:17:00 -0000 Subject: SV: Intel MKL Message-ID: <001401bdd69b$301ca320$0c00a8c0@suf-hempc> 6 months ago I tried to use the Intel library with the mingw32 version of the gnu gcc compiler. I have changed computer since then so I no longer have my tests available. (It was just out of curiosity - not for work - that I did the tests). If my memory serves me right, I had to use the object libraries built for the Intel compiler. I was also forced to modify the spec file that the linker (ld) reads to place the data segments in the image because the intel compiler had it's own names for the different segments. I did get it working with some small examples after a bit of tinkering. Sune Falck -----Original Message ----- Fr????n: Michel Juillard Till: gnu-win32@cygnus.com Datum: den 2 september 1998 10:05 ????mne: Intel MKL Did anybody have success in using Intel's MKL dll (math kernel library) with gnu-win32 compiler? MKL is Intel version of the BLAS, optimized for the Pentium Pro, the binaries are free, see http://developer.intel.com/design/perftool/perflibst/mkl/index.htm If it's impossible, why? Thanks for your help, Michel - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rrankin@primenet.com Fri Sep 4 05:17:00 1998 From: rrankin@primenet.com (Rick Rankin) Date: Fri, 04 Sep 1998 05:17:00 -0000 Subject: B19 - NT: bison not finding bison.simple References: <19980902143309.44441@cygnus.com> Message-ID: <000001bdd7b3$fcc30900$9a1e01aa@rankin-isdn-ws2.sat.mot.com> Is it not reasonable to set the envionment variables BISON_HAIRY and BISON_SIMPLE? That's what I did and it works fine. Is there a goal to minimize/eliminate the use of environment variables? -- Rick Rankin rrankin@primenet.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Geoffrey Noer > Sent: Wednesday, September 02, 1998 2:33 PM > To: Ryan A. Mapes > Cc: gnu-win32@cygnus.com > Subject: Re: B19 - NT: bison not finding bison.simple > > > On Tue, Sep 01, 1998 at 03:56:23PM -0700, Ryan A. Mapes wrote: > > > > Not using the default install location ... instead, > > Cygnus install is on drive 'D:' under '/usr/local/' > > > > Error: > > bash-2.01$ bison -d splay.y > > bison: /cygnus/b19/share/bison.simple: No such file or directory > > > > Work around: > > - copy bison.simple to expected location on c:\ drive > > (create directory /cygnus/b19/share/bison.simple) > > If someone wanted to volunteer and submit a patch to make bison look > for the share directory via a relative path instead of the precompiled > one, I'd appreciate it. :-) > > We've recently done a fair amount of work to make gcc work without > GCC_EXEC_PREFIX. Something similar needs to happen for bison although > I suspect it'll be much easier in this case... > > -- > Geoffrey Noer > noer@cygnus.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From andrewd@axonet.com.au Fri Sep 4 05:17:00 1998 From: andrewd@axonet.com.au (Andrew Dalgleish) Date: Fri, 04 Sep 1998 05:17:00 -0000 Subject: MD5Sum seriously broken in b19.1? (generates incorrect md5 hash values) Message-ID: <91A8FD196436D1118EC2006008186C960CE68E@server1.axonet.com.au> Quick work-around - use a "text=binary" mount. I get the same correct answer on a "text=binary" mount, and the same incorrect result on a "text!=binary" mount. The files are identical up to the first ^Z, hence they give the same hash. I've checked the source and md5sum is broken. Here's a patch to textutils-1.22 ----- cut here ----- --- src/md5sum.c.old Tue Dec 24 09:57:31 1996 +++ src/md5sum.c Thu Sep 03 11:28:54 1998 @@ -35,7 +35,12 @@ /* Most systems do not distinguish between external and internal text representations. */ #if UNIX || __UNIX__ || unix || __unix__ || _POSIX_VERSION -# define OPENOPTS(BINARY) "r" +# ifdef STDC_HEADERS +/* But that's no excuse for bad code. We will pass in the text/binary option even if it gets ignored. */ +# define OPENOPTS(BINARY) ((BINARY) != 0 ? "rb" : "r") +# else +# define OPENOPTS(BINARY) "r" +# endif #else # ifdef MSDOS # define TEXT1TO1 "rb" ----- cut here ----- Regards, Andrew Dalgleish > -----Original Message----- > From: Ralf G. R. Bergs [SMTP:rabe@RWTH-Aachen.DE] > Sent: 1998 September 02, Wednesday 09:30 > To: gnu-win32@cygnus.com > Subject: MD5Sum seriously broken in b19.1? (generates incorrect > md5 hash values) > > Hi there, > > I'm running NT 4.0 SP3, and I have some strange problems with md5sum. > > From a crypto class I know that it's practically impossible for two > files to > share the same MD5 hash, BUT I have lots of files with the same md5 > sum. How > come??? > > I'm attaching two picture files (of a well-known lady named Pam > Anderson ;-) > that produce the same md5 sum under NT: > > [m:\new\pix\pam anderson]md5sum -b pam1.jpg pam2.jpg > fefe0c8ca9ff2a739ef0e0910c135a1d *pam1.jpg > fefe0c8ca9ff2a739ef0e0910c135a1d *pam2.jpg > > Under Linux I get different MD5 values: > > Server:~$ md5sum -b pam1.jpg pam2.jpg > d7d4d61579d749152a7903399f977dd1 *pam1.jpg > 077362ac4360e94ad9e15cd622d84d7a *pam2.jpg > > Note that I DID use "-b" for binary mode! > > What's going on here? Could you *please* investigate this, since I > need a > solution ASAP. > > Thanks very much for your time, > > Ralf > > > -- > Ralf G. R. Bergs * Welkenrather Str. 100/102 * 52074 Aachen * Germany > +49-241-876892, +49-241-877776 (fax) * rabe@rwth-aachen.de * PGP ok! > << File: pam1.jpg >> << File: pam2.jpg >> - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From io@harlequin.co.uk Fri Sep 4 05:17:00 1998 From: io@harlequin.co.uk (Schzen Ooi) Date: Fri, 04 Sep 1998 05:17:00 -0000 Subject: b19.1: question about "wait for job" Message-ID: <35EFD8AE.856648C4@harlequin.co.uk> Suppose, you had a script in, say, "d:/usr/local/bin/which" is defined as: >#!/bin/sh >OFS=$IFS >IFS=: >for p in $PATH; do > if [ -f "$p/$1" ]; then > ls "$p/$1" > exit 0 > fi >done >IFS=$OIFS > >#type -p $1 to demonstrate the output below, and running it [might] give the following results: >bash2$ whereis ls >/usr/H-i386-cygwin32/bin/ls >//d/usr/local/bin/whereis: waitforjob: no children >bash2$ Changing the "#!/bin/sh" to "#!/usr/local/bin/bash" makes the message go away, I have the following in d:/bin/sh.exe, d:/usr/H-i386-cygwin32/bin/bash.exe and d:/usr/local/bin/bash.exe for convenience and they are just duplicates. and mount paths defined with "d:\usr\H-i386-cygwin32\bin" -> "/bin" "d:\usr" -> "/usr" if this detail is significant. What does the waitforjob mean? Schzen - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gilesm@metrics.com Fri Sep 4 09:56:00 1998 From: gilesm@metrics.com (Giles D. Malet) Date: Fri, 04 Sep 1998 09:56:00 -0000 Subject: B19 - NT: bison not finding bison.simple References: <199809012254.PAA23460@scaup.prod.itd.earthlink.net> Message-ID: <199809041656.MAA21865@omega.metrics.com> From: "Ryan A. Mapes" Error: bash-2.01$ bison -d splay.y bison: /cygnus/b19/share/bison.simple: No such file or directory I have noted a couple of programs making the assumption that the Cygnus stuff is located at /cygnus. So I made that true, by mounting it there. Something like: mount E:/usr/cygnus /cygnus That fixes everything that I've noticed. gdm - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Michael_Barillier@cyborg.com Fri Sep 4 12:17:00 1998 From: Michael_Barillier@cyborg.com (Michael_Barillier@cyborg.com) Date: Fri, 04 Sep 1998 12:17:00 -0000 Subject: cmd.exe subshell Message-ID: <87256675.0069DEE7.00@Domino1.cyborg.com> "Interactive non-cygwin command line programs (like cmd.exe) fail to run in beta 19 (they exit immediately). This problem was fixed as of the b19.1 update release." (from the FAQ) Never mind ... -- Michael J. Barillier - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Michael_Barillier@cyborg.com Fri Sep 4 12:20:00 1998 From: Michael_Barillier@cyborg.com (Michael_Barillier@cyborg.com) Date: Fri, 04 Sep 1998 12:20:00 -0000 Subject: cmd.exe subshell Message-ID: <87256675.0067275E.00@Domino1.cyborg.com> This may be in a FAQ somewhere, but I haven't fully researched the problem and am rather time-constrained ... I'm writing a makefile for GNU make that sets SHELL to /bin/sh, which ends up being the Bourne shell (sh.exe) from Cygwin32 Beta 19 (the makefile has to run under both Unix and NT). I've been unable to get some Windows apps to run under sh.exe, such as PVCS' get.exe - get.exe from the sh command line just returns. I thought I could run it under cmd.exe (to eliminate any possible problems with running the PVCS apps under sh), but running cmd.exe from sh prints a DOS prompt and quits. Anyone have an idea why those apps aren't running under sh.exe? -- Michael J. Barillier - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael.moeller@main-rheiner.de Fri Sep 4 12:20:00 1998 From: michael.moeller@main-rheiner.de (Michael Moeller) Date: Fri, 04 Sep 1998 12:20:00 -0000 Subject: Only errors Message-ID: <01bdd838$bfa3e780$LocalHost@default> Hi, I can't get even the simplest of my VC++ source code compiled. Everything is syntactically incorrect or undeclared. My code could've even been Fortran. Where can I get some simple source code and gcc options that will work? Thanks Michael michael.moeller@main-rheiner.de - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lro@technologist.com Fri Sep 4 12:20:00 1998 From: lro@technologist.com (lro@technologist.com) Date: Fri, 04 Sep 1998 12:20:00 -0000 Subject: ClearCase don't like files created in bash Message-ID: <199809041618.MAA26691@web01.iname.net> Hello, I have a problem while using ClearCase to control files created in BASH. If I create a file within a bash session (let say typing "touch polo.txt"). Then I can not copy the file to a ClearCase view (which is controled by ClearCase). I have got the following message: --------------------------- The system cannot find message for message number 0x13d in message file for System. 0 files copied. --------------------------- Does anyone have an idea what's wrong with it ? I suppose it is something in the way files are created in BASH but I can not figure out what ? Of course, I am investigating the problem myself, but any help is welcome. PS 1: Icould not search the archive the search fonctionality fails. PS 2: For those who don't know (lucky you), ClearCase is version control software (like SCCS, PVCS, ...) that runs on PC and Unix (and probably more OS). Thanks for your help, Laurent ROCHE -------------------------------------------------------------------------------- -------------------------------\r\nGet your free email from altavista.iname.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Fri Sep 4 12:20:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Fri, 04 Sep 1998 12:20:00 -0000 Subject: Windows application References: <35ECB4FC.69AB02CA@iol.ie> Message-ID: <199809041809.UAA22577@k9.dds.nl> > Date: Wed, 02 Sep 1998 04:01:17 +0100 > From: LO [snip] > int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR [snip] > WNDCLASS WndClass; [snip] > WndClass.lpfnWndProc = WndProc; This is the line causing troubles? > long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG > W.C:22: assignment to `long int (*)(void *, unsigned int, unsigned int, > long int > )' from `long int (*)(void *, short unsigned int, short unsigned int, > long int)' Looks like WORD is defined as short unsigned int. Replace them by unsigned int or (according to Petzold) the new types UINT and WPARAM That LONG at the end of WndProc should now be LPARAM - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From serge.torres@poste.cndp.fr Fri Sep 4 12:46:00 1998 From: serge.torres@poste.cndp.fr (Serge Torres) Date: Fri, 04 Sep 1998 12:46:00 -0000 Subject: Linking against .lib libraries Message-ID: <3.0.1.32.19980904215352.006931e0@mailhost.cndp.fr> Hi, I'm trying to build a dll wich has a code written and compiled with cygwin32 and at the last stage has to be linked it a .lib library from Microsoft. I need this combination to create a dll that implements new extended procedures in MS SQLSERVER. I have manged to link to the library but I get a lot of warnings ("ignoring duplicate section `.text`" as mentioned, in a not very different context by Berend Ozceri from Istanbul. The dll is definetly unworkable, it will not be loaded by SQL SERVER and when viewed under an hex editor will show a lot of source code included. I think I've understood that .lib file format is not compatible with .a format. Is it ture ? Is it really impossible to link cygwin (egcs 2.0.1) generated against .lib libraries ? Is it really hopeless ? I would not like to have to move back to VC. Thanks Serge Torres Centre National de Documentation Pedagogique - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From massey@surefirev.com Fri Sep 4 18:44:00 1998 From: massey@surefirev.com (Todd Massey) Date: Fri, 04 Sep 1998 18:44:00 -0000 Subject: B19 problem with fread() and buffering Message-ID: <3.0.3.32.19980904184440.00ba7d50@appr> I call fread with a sizeof of 4 and a count of 315 after reading 500 bytes out of a file and I only get back a count of 42 and then the FILE* fp->_flags == 1188, when I called fread() it fp_uflags was 1156, so for some reason it thinks it reached end of file. Now this is a binary file and I use fopen() to open it .. I would expect it to work just fine the routine that wrote out the file used fwrite in the B19 stuff.. So the real question is.. am I over running some buffer? Any ideas? Thanks, Todd /\ Todd Massey /\// SureFire Verification Inc. < http://www.surefirev.com > /\///\ 1671 Dell Ave, Campbell, CA 95008 -- 408-374-4100 x102 _\///\/ Formerly Silicon Sorcery \//\/ Check out the Scuba Divers Review Site \/ ----> www.scuba-divers.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Fri Sep 4 18:44:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Fri, 04 Sep 1998 18:44:00 -0000 Subject: Mailing list admin, please read this! Message-ID: <35F00A85.502D153A@ina.de> Hi! This week I got a mail (from this mailing list) with an attachment. It caused an error on our SMTP server (or, to be more exact, in the subsequent MIME parsing). The reason can be seen here (mail snippet): ================================================================ From: michael@weiser.saale-net.de (Michael Weiser) To: gnu-win32@cygnus.com Subject: FAQ: gnuwin32 mini FAQ - first draft Date: Tue, 01 Sep 1998 00:12:19 GMT (...) ----=_35eb3be341926316052e3279.MFSBCHJLHS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi folks, this is the first draft of the gnuwin32 mini FAQ (...) ----=_35eb3be341926316052e3279.MFSBCHJLHS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment gnuwin32 mini FAQ (...) ----=_35eb3be341926316052e3279.MFSBCHJLHS-- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". ================================================================ The last part (= the help hint) starts right below the MIME boundary, causing the MIME parser to think the first line was a MIME header field (which is not true, as "-" definitely is not valid). To fix this problem your mailer should - either precede the hint with one or more valid MIME header lines plus an empty line - or precede the hint with just one empty line (signalling that there are is no header and the body of the mail part starts). Would you please fix this problem in one or the other way? Thanks and regards :-) -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From joz@mentor-systems.com Fri Sep 4 18:44:00 1998 From: joz@mentor-systems.com (Jonathan Storey) Date: Fri, 04 Sep 1998 18:44:00 -0000 Subject: Coolview/cygwinb19.dll/Win98 probs Message-ID: <000001bdd818$361c7010$050120c0@menpc5> I have recently upgraded (?!) to Win98 and the installation of vanilla b19 works fine, however when I replace the cygwinb19.dll with any of the newer versions incl. Sergey's coolview, bash displays the following: bash -login :- //.bash_profile: invalid argument bash :- //.bash_rc: invalid argument and... //.bash_logout: invlalid argument when exiting (logging out) The tools etc. seem to still work fine but I'd rather not see these messages, I don't get this problem under Win95 Any Ideas? anyone, I've found no reference to such a problem in the archives/mailing-lists. Thanx In Advance ``)OZ`` > Jonathan Storey Esq. < Technical Systems Analyst/Programmer e-mail-personal: joz@thinktank.demon.co.uk e-mail-business: joz@mentor-systems.com e-fax-anytime: +44(0)870 1641756 http: www.thinktank.demon.co.uk icq#: 13848691 "A super-saturated solution is one that holds more than it can hold." ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Fri Sep 4 22:38:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: B19: gcc -r option broken? References: <001801bdd6af$98802e00$0501010a.cygnus.gnu-win32@flownode.ahpah.com> Message-ID: <6sqigi$f7f$1@cronkite.cygnus.com> In article <001801bdd6af$98802e00$0501010a.cygnus.gnu-win32@flownode.ahpah.com>, Greg Humphreys wrote: >I'm trying to use the -r option for gcc to generate an executable >with relocation information in it. It appears to be broken. > >When I run the resulting .exe, I get "This program cannot be run in >DOS mode". Every PE viewer I have dies a miserable flaming death on >the resulting .exe (I've tried three of them, including one I wrote >myself). > >It looks to me that the section headers are messed up (they have very >large values for the section sizes), which makes the file impossible >to parse (this is my initial assessment after looking at my own >PE parser in a debugger). The fact that the stub program is being >run by Windows is even more confusing. > >I really need to be able to include relocation information in my >executables, and I'd like to continue to use gcc. > >I'm running Windows 98. > >Any help on this matter would be greatly appreciated. Sorry. Your analysis is correct. This is broken. Patches to fix this problem would be welcome. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cqc@dolby.com Fri Sep 4 22:38:00 1998 From: cqc@dolby.com (Charles Cox) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: B19.1: Win NT 4.0 gawk bug Message-ID: <35F022B6.FC3BAE60@dolby.com> I am unable to get gawk to work with the following command line: diff binarydata/400bongsrdsr binarydata/hfbongsrtest | awk -f differ.fil | xargs error.exe differ.fil contains the following line: { if ( NF > 0 ) { print "binarydata/dolbytonesrdsr " $3 " " $5 } else { print "nul" } } error.exe is a gcc (cygnus) compiled executable. The two files being diffed are just binary data files. My problem arises in the else { print "nul" } branch of the differ.fil file command line. Cygnus returns the following error message: (C:\working\dsr\testfiles\error.exe 1034) Exception: STATUS_ACCESS_VIOLATION (C:\working\dsr\testfiles\error.exe 1034) Dumping stack trace to error.exe.core The contents of error.exe.core are: (C:\working\dsr\testfiles\error.exe 1034) Exception trapped! (C:\working\dsr\testfiles\error.exe 1034) exception C0000005 at 10046D64 (C:\working\dsr\testfiles\error.exe 1034) exception: ax 6C756E bx 0 cx 401040 dx 0 (C:\working\dsr\testfiles\error.exe 1034) exception: si 240FE30 di 2420BD8 bp 240C304 sp 240C300 (C:\working\dsr\testfiles\error.exe 1034) exception is: STATUS_ACCESS_VIOLATION (C:\working\dsr\testfiles\error.exe 1034) Stack trace: (C:\working\dsr\testfiles\error.exe 1034) frame 0: sp = 0x240C02C, pc = 0x1000A250 (C:\working\dsr\testfiles\error.exe 1034) frame 1: sp = 0x240C150, pc = 0x77F94512 (C:\working\dsr\testfiles\error.exe 1034) frame 2: sp = 0x240C174, pc = 0x77F88EEB (C:\working\dsr\testfiles\error.exe 1034) frame 3: sp = 0x240C200, pc = 0x77F76266 (C:\working\dsr\testfiles\error.exe 1034) frame 4: sp = 0x240C304, pc = 0x4012E3 (C:\working\dsr\testfiles\error.exe 1034) frame 5: sp = 0x240FE14, pc = 0x10006B89 (C:\working\dsr\testfiles\error.exe 1034) frame 6: sp = 0x240FF94, pc = 0x10006B9C (C:\working\dsr\testfiles\error.exe 1034) frame 7: sp = 0x240FFA0, pc = 0x4021A6 (C:\working\dsr\testfiles\error.exe 1034) frame 8: sp = 0x240FFB0, pc = 0x40103A (C:\working\dsr\testfiles\error.exe 1034) frame 9: sp = 0x240FFC0, pc = 0x77F1B304 (C:\working\dsr\testfiles\error.exe 1034) frame 10: sp = 0x240FFF0, pc = 0x0 (C:\working\dsr\testfiles\error.exe 1034) End of stack trace I have not looked at this bug, but it seems to be fairly significant. Thanks. Charles Cox cqc@dolby.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Fri Sep 4 22:38:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: Installshield Message-ID: <000701bdd85a$3e140e80$0c0aa8c0@harry.scoutsys.com> I would like to second, third, and fourth the sentiments others have expressed here, that Cygnus ought to dump Installshield in favor of a zip file, a .reg file, and a README describing changes to make to scripts in case you install somewhere besides the default. A. The Installshield setup is *very fragile*. I have *never* successfully run it to completion. The only time it ever has completed, I stepped it over a fault in my debugger. And I did in fact have a clean temp directory. And just now, testing the usertools distribution, some other crazy bug crashes it. B. When it crashes, you have no recourse. There's no way to get inside the Installshield compressed files without their tools. C. It's *painfully* slow on NT. Long mysterious pauses of no activity. Why use a 16-bit installer for Win32 machines, anyway? Everyone using cygwin32 is capable of understanding what is needed to get the cygwin tree installed, but we can't workaround the Installshield "shield". Here's how the install should work: 1. Unzip the directory tree files. Put it in C:\cygnus\b19 or somewhere else. 2. If you put it in the default place, run the .reg file that describes the setup of HKCU\Software\Cygnus solutions\Cygwin.DLL setup\b15.0\mounts\..., and same for HKLM. To run it, just double click it. If we installed elsewhere in step 1, need to edit this file first. The README tells us how to do it. 3. If you installed somewhere else, also modify the cygnus.bat file accordingly. Again the README can describe the changes in a sentence. 4. Make an explorer shortcut to cygnus.bat. Thanks to the Cygnus guys for their well-intentioned efforts, but this procedure would be a lot more stable and easier than the current procedure! Hugh Winkler Scout Systems, Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Fri Sep 4 22:38:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: EGCS-1.1 binary distribution for Cygwin32 b19 and mingw32 Message-ID: <9809040355.AA09467@modi.xraylith.wisc.edu> I've just uploaded (patche) egcs-1.1 binaries for cygwin32 b19 and mingw32. Note that I haven't had time to update the web pages, so you're better off nagivating the ftp site directly. The mirrors should be picking all of this up in a day or two. I'm rather short of time, and packaged everything rather hastily. Hopefully no major bugs sneaked past. EGCS 1.1 for i386-mingw32 and i386-cygwin32 -- Release information ================================================================== Release date: Sep 5, 1998. What's New? This is a major new release, with lots of generic fixes and lots of Win32 specific fixes. For EGCS fixes, visit the egcs home page at http://egcs.cygnus.com/ As of now, egcs-1.1 is the most conforming C++ compiler available for the Win32 world (I'm still waiting on Intel's next version). Tim Prince tells me that it's also one of the fastest FORTRAN compilers. Win32 specific changes: * DLL import/export supported. Support complete for C. Some issues remain regarding vtables and RTTI in C++. FORTRAN functions and subroutines supported, but not common block import/export from DLLs (due to lack of syntax, the functionality is there in the backend). * Faster code, espcially in conjuction with new binutils. * Lots of code generation fixes. Some known bugs remain (eg., the C++ inline bug mentioned in the mailing list when you don't use any optimization; it's a assembler/linker bug and not egcs bug however, if that's any consolation). Patches included that are not in the standard egcs-1.1 distribution: * #pragma pack(push/pop, ) supported. Thanks to Nick Clifton. * C++ parser doesn't choke on declarations with attributes (remember those troublesome OpenGL headers ;-). Thanks to Alastair Houghton. * libf2c etime, dtime, etc now work under Win95. Thanks to Tim Prince. * Misc. other fixes. What's in this package? egcs-1.1: The compilers for C, C++, ObjC and F77 plus runtime libraries. binutils-980830: The GNU binary utilities (assembler, linker, windres, etc). Also included are an enhanced version of windres (thanks to Anders Norlander) and dllwrap from dllhelpers v0.2.2. Mingw runtime: Colin Peters' latest Mingw 980701 snapshot + plus local changes. MINGW32 ONLY. Windows32api: Heavily modified windows32api 0.1.2. 50% of the patches are from Colin, and 40% extracted from Cygnus, 10% misc. It's now possible to build Tcl/Tk/Tix/BLT etc with mingw32. MINGW32 ONLY. libg++-2.8.2: I've included HJ Lu's libg++-2.8.2-980828 release. This is completely unsupported, but I'm including to avoid answering tons of email regarding why it's not there. Where? Web: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ For Cygwin32, FTP: ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/egcs-1.1/ For Mingw32, FTP: ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/egcs-1.1/ Please visit the web page before you attempt to download/install. It may address problems you might run into. Installation? Please the read the INSTALL and README before installing. Both are available for downloading from the URLs above. Disk space? About 34M for Mingw32 and 26M for Cygwin32, give or take a few. Where to report bugs? Report configuration and Win32 specific bugs to me, GCC specific bugs egcs-bugs, and always copy gnu-win32 mailing list so others can see it as well. If you send me email, please do have patience, since I usually do not have the time to respond to each email right away. Regards, Mumit -- khan@xraylith.wisc.edu http://www.xraylith.wisc.edu/~khan/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mhouyoux@mcnc.org Fri Sep 4 22:38:00 1998 From: mhouyoux@mcnc.org (Marc Houyoux) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: DLL load error: "not a 32-bit library" Message-ID: I have successfully created a DLL using the example makefile on Fergus Henderson's web pages that I found from previous posts to this list. I needed to add the library libf2c.a to the list of libraries because there is a Fortran program in the library, and this worked fine for compiling. I linked to the libfoo_dll.a (in my case, prntfor_dll.a) file created by the makefile, as the web page recommends. However, when I try to call the DLL from a Windows application (called Map Info), I get the following message: "Unable to load prntfor_dll.a because it is not a 32-bit library." Has anyone ever seen this before, or have any suggestions as to what might be wrong? Here are some more details that might be relevant... - I'm working on an NT PC - Using another set of instructions on the web for building DLLs with Gnu-Win32, I have previously gotten other messages about Map Info simply not being able to read the library at all. Using Fergus Henderson's Makefile, I got the "32-bit" message, which is at least a little more informative. - I've already tried the web page suggestions of setting RELOCATABLE to "yes" and `LDFLAGS-libfoo = --image-base=0x0800000 (within the makefile), and these did not change the error message. - The contents of the DLL, for testing purposes, is a simple fortran program that opens a file and writes to it. Thanks ******************************************************************* Marc Houyoux North Carolina Supercomputing Center - Environmental Programs 3021 Cornwallis Road Research Triangle Park, NC 27709 phone: (919) 248-4126 fax : (919) 248-9245 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dnewbold@ivs.com Fri Sep 4 22:38:00 1998 From: dnewbold@ivs.com (Dennis Newbold) Date: Fri, 04 Sep 1998 22:38:00 -0000 Subject: Windows application References: <35ECB4FC.69AB02CA@iol.ie> Message-ID: <35EED7C0.6EFCFCA1@ivs.com> Hi LO, The compiler doesn't like the following line: WndClass.lpfnWndProc = WndProc; This is because, if you look through the proper header files, WORD is defined as an unsigned short int, whereas WndClass.lpfnWndProc is defined as a pointer to a function which returns a long int and expects the following as parameters: 1st parameter: void * -- that hWnd 2nd parameter: unsigned int -- that's iMessage 3rd parameter: unsigned int -- that's wParam 4th parameter: long int -- that's lParam In other words the function prototypes don't match because the parameters don't match. The compiler wants you to specify the name of a function whose 2nd and 3rd parameters are unsigned ints, and you are specifying the name of a function whose 2nd and 3rd parameters are short unsigned ints, which is (at least to the mind of the fussy compiler) not the same thing. You can probably make the compiler happy by doing some casting. What I'm not sure about here, and I hope someone else on the list can help out is: I think casting is begging the larger issue. You may need to fix the definition of WndProc to expect the same thing as lpfnWndProc is pointing to. Specifically, I think that the WIN32 API defines iMessage and wParam to be 32-bit values rather than 16-bit values. This was one of the changes made in going from WINDOWS 3.1 to WINDOWS 95. And since you took the example code from a book called "Windows 3.1 Programmers Reference", you may be trying to compile WIN 3.1 code against WIN95 header files. Check out your windows.h header file. Also, try to find a book called something like WIN32 Programmers Reference, and use it for future programming efforts to avoid other subtle gotchas like this one. I may be wrong here, because I'm working with some rather dusty memories, as I mostly do embedded stuff, and haven't looked at the WINxx API docu- mentation for some time. Can anyone else on the list confirm / negate what I'm saying here. Thanks a lot, and have a nice day. LO wrote: > Hi, > > I saved the following code in a file called w.c.The code is supposed to > create a Microsoft Windows applicaton. > I am using Windows 95 and cygwinb19 on a Intel Pentium PC. > //------------start-----------------// > #include > #include > #include > > long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG > lParam); > int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR > lpszCmdParam, int nCmdShow) > > { > HWND hWnd; > MSG Message; > WNDCLASS WndClass; > > if (!hPrevInstance) > { > WndClass.cbClsExtra = 0; > WndClass.cbWndExtra = 0; > WndClass.hbrBackground = GetStockObject(WHITE_BRUSH); > WndClass.hCursor = LoadCursor(NULL, IDC_ARROW); > WndClass.hIcon = LoadIcon (NULL, "END"); > WndClass.hInstance = hInstance; > WndClass.lpfnWndProc = WndProc; > WndClass.lpszClassName = "w"; > WndClass.lpszMenuName = "MENU"; > WndClass.style = CS_HREDRAW | CS_VREDRAW; > > RegisterClass (&WndClass); > } > > hWnd = CreateWindow ("w", > "Fundamental Window", > WS_OVERLAPPEDWINDOW, > CW_USEDEFAULT, > 0, > CW_USEDEFAULT, > 0, > NULL, > NULL, > hInstance, > NULL); > > ShowWindow (hWnd, nCmdShow); > while (GetMessage (&Message, 0, 0, 0)) > { > TranslateMessage(&Message); > DispatchMessage(&Message); > } > return Message.wParam; > } > > long FAR PASCAL WndProc (HWND hWnd, WORD iMessage, WORD wParam, LONG > lParam) > { > switch(iMessage) > { > case WM_DESTROY: > PostQuitMessage(0); > return 0; > default: > return(DefWindowProc(hWnd, iMessage, wParam, lParam)); > } > } > //-----------------end------------------------------------- > w.c is in the dierctory C:\Cygnus\B19\ > I then type GCC W.C at the prompt. > Nothing appears on screen for about 5 seconds. > Then the following text appears. What I typed is in bold text. > > BASH.EXE-2.01$ GCC W.C > W.C: In function `int WinMain(void *, void *, char *, int)': > W.C:22: assignment to `long int (*)(void *, unsigned int, unsigned int, > long int > )' from `long int (*)(void *, short unsigned int, short unsigned int, > long int)' > > BASH.EXE-2.01$ > > Does anyone know whats wrong? The program is from the book "Windows 3.1 > Programmers Reference" and is published by Que. > > Liam O'Keeffe. > Web site: http://homepages.iol.ie/~lo7 > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- |----------------------------------------| | | | The way to be happy is to be good. | | | |----------------------------------------| - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bruno.patin@wanadoo.fr Sat Sep 5 00:23:00 1998 From: bruno.patin@wanadoo.fr (administrateur) Date: Sat, 05 Sep 1998 00:23:00 -0000 Subject: server X Message-ID: <35F0E622.D75AA9D1@wanadoo.fr> Hi, I'm asking myself a question. Don't we need to port the X server part under gnu win ? In fact, it's the only part we have to buy to make the Xclient stuff works. Is it an idea or do you consider that the free stuff is sufficient ? salutations bruno patin dassault aviation france - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sat Sep 5 00:23:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sat, 05 Sep 1998 00:23:00 -0000 Subject: B19.1 Long pause occurs randomly in bash References: <35EDF1FA.D6CD6DA2.cygnus.gnu-win32@auss.sop.dec.com> Message-ID: <6sqieb$f69$1@cronkite.cygnus.com> In article <35EDF1FA.D6CD6DA2.cygnus.gnu-win32@auss.sop.dec.com>, Jim Clark wrote: >From the FAQ for 19.1: > >Long pause occurs randomly in bash >================================== > > It has been reported that bash will hang for several seconds upon >occasion. We are looking into this problem. It does not seem to occur >when bash is started under a command prompt. Reportedly, if you >specify the 'Start in' directory in the shortcut, the problem goes away. > > > >Observation: > >If I set the 'Start in' directory in the shortcut for bash to either >"C:\" or "/", I will get long pauses (not so randomly) in bash. >If I set the 'Start in' directory in the shortcut properties to any >other directory (eg, "/home"), the problem seems to go away. It's a bug in bash. If you don't have a HOME environment variable set or if you don't have a /etc/passwd file, your HOME will be assumed to be the current directory ('/'). Bash prepends the HOME path to /.bashrc, making //.bashrc. Windows interprets that as a machine name which it attempts to resolve, hence the delay. Bash behaves similarly when trying to find any mail file. It constructs something like //username and attempts to stat it at MAIL_CHECK intervals. The solution is to rebuild bash with the patches I posted several days ago. Some workarounds are: 1) set the HOME environment variable, 2) set up a valid /etc/passwd file, 3) start in some directory besides the root, or 4) unset MAILCHECK. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Sat Sep 5 00:23:00 1998 From: lhall@rfk.com (Larry Hall (RFK Partners Inc)) Date: Sat, 05 Sep 1998 00:23:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <3.0.5.32.19980902145002.00b1c2b0@pop.ma.ultranet.com> <9809022023.AA07080@modi.xraylith.wisc.edu> Message-ID: <3.0.5.32.19980902163616.009d4ce0@pop.ma.ultranet.com> At 03:23 PM 9/2/98 -0500, Mumit Khan wrote: >"Larry Hall (RFK Partners Inc)" writes: >> The best argument I have for getting rid of _WIN32 from cygwin and mingw is >> that MS docs claim _WIN32 is MS compiler specific. > >As far as I know, _MSC_VER, not _WIN32, is the microsoft-compiler specific >macro. A quick look at some of the microsoft's headers, eg., pshpack1.h, >suggests the same as well. My *rather old* on-line API docs here tell me >that _WIN32 is specific to Microsoft Windows Operating System. Please cite >the docs you mentiond so I can verify. > Below is documentation that comes with VC++ 5.0. See table 1.2 for Microsoft specific predefined macros. -------------------------------------------------------------------------- Predefined Macros The compiler recognizes six predefined ANSI C macros (see Table 1.1), and the Microsoft C++ implementation provides several more (see Table 1.2). These macros take no arguments and cannot be redefined. Their value (except for __LINE__ and __FILE__) must be constant throughout compilation. Some of the predefined macros listed below are defined with multiple values. Their values can be set by selecting the corresponding menu option in Microsoft Developer Studio, or by using a command-line switch. See the tables below for more information. Table 1.1 ANSI Predefined Macros Macro Description __DATE__ The compilation date of the current source file. The date is a string literal of the form Mmm dd yyyy. The month name Mmm is the same as for dates generated by the library function asctime declared in TIME.H. __FILE__ The name of the current source file. __FILE__ expands to a string surrounded by double quotation marks. __LINE__ The line number in the current source file. The line number is a decimal integer constant. It can be altered with a #line directive. __STDC__ Indicates full conformance with the ANSI C standard. Defined as the integer constant 1 only if the /Za compiler option is given and you are not compiling C++ code; otherwise is undefined. __TIME__ The most recent compilation time of the current source file. The time is a string literal of the form hh:mm:ss. __TIMESTAMP__ The date and time of the last modification of the current source file, expressed as a string literal in the form Ddd Mmm Date hh:mm:ss yyyy, where Ddd is the abbreviated day of the week and Date is an integer from 1 to 31. Table 1.2 Microsoft-Specific Predefined Macros Macro Description _CHAR_UNSIGNED Default char type is unsigned. Defined when /J is specified. __cplusplus Defined for C++ programs only. _CPPRTTI Defined for code compiled with /GR (Enable Run-Time Type Information). _CPPUNWIND Defined for code compiled with /GX (Enable Exception Handling). _DLL Defined when /MD or /MDd (Multithread DLL) is specified. _M_ALPHA Defined for DEC ALPHA platforms. It is defined as 1 by the ALPHA compiler, and it is not defined if another compiler is used. _M_IX86 Defined for x86 processors. See Table 1.3 for more details. _M_MPPC Defined for Power Macintosh platforms. Default is 601 (/QP601). See Table 1.4 for more details. _M_MRX000 Defined for MIPS platforms. Default is 4000 (/QMR4000). See Table 1.5 for more details. _M_PPC Defined for PowerPC platforms. Default is 604 (/QP604). See Table 1.6 for more details. _MFC_VER Defines the MFC version. Defined as 0x0421 for Microsoft Foundation Class Library 4.21. Always defined. _MSC_VER Defines the compiler version. Defined as 1100 for Microsoft Visual C++???? 5.0. Always defined. _MT Defined when /MD or /MDd (Multithreaded DLL) or /MT or /MTd (Multithreaded) is specified. _WIN32 Defined for applications for Win32????. Always defined. As shown in following tables, the compiler generates a value for the preprocessor identifiers that reflect the processor option specified. Table 1.3 Values for _M_IX86 Option in Developer Studio Command-Line Option Resulting Value Blend /GB _M_IX86 = 500 (Default. Future compilers will emit a different value to reflect the dominant processor.) Pentium /G5 _M_IX86 = 500 Pentium Pro /G6 _M_IX86 = 600 80386 /G3 _M_IX86 = 300 80486 /G4 _M_IX86 = 400 Table 1.4 Values for _M_MPPC Option in development environment Command-Line Option Resulting Value PowerPC 601 /QP601 _M_MPPC = 601 (Default) PowerPC 603 /QP603 _M_MPPC = 603 PowerPC 604 /QP604 _M_MPPC = 604 PowerPC 620 /QP620 _M_MPPC = 620 Table 1.5 Values for _M_MRX000 Option in Developer Studio Command-Line Option Resulting Value R4000 /QMR4000 _M_MRX000 = 4000 (Default) R4100 /QMR4100 _M_MRX000 = 4100 R4200 /QMR4200 _M_MRX000 = 4200 R4400 /QMR4400 _M_MRX000 = 4400 R4600 /QMR4600 _M_MRX000 = 4600 R10000 /QMR10000 _M_MRX000 = 10000 Table 1.6 Values for _M_PPC Option in Developer Studio Command-Line Option Resulting Value PowerPC 601 /QP601 _M_PPC = 601 PowerPC 603 /QP603 _M_PPC = 603 PowerPC 604 /QP604 _M_PPC = 604 (Default) PowerPC 620 /QP620 _M_PPC = 620 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From oeysteij@online.no Sat Sep 5 07:10:00 1998 From: oeysteij@online.no (Øystein Johansen) Date: Sat, 05 Sep 1998 07:10:00 -0000 Subject: Bash startup time error message Message-ID: <199809051346.PAA00016@online.no> Hi! In the file C:\Cygnus\B19\Cygnus.bat (or whatever your startup batch file is called) add the line SET HOME=C:\mallesan\ (or whatever you call your home directory) In this directory you make a .bashrc file. This file will be read every time you start bash. You can have aliases, wellcome messages or any other stuff in this file. See: http://www.alank.net/ for examples. HTH, Oystein Johansen ---------- > From: Saravanan Mallesan > To: gnu-win32@cygnus.com > Subject: Bash startup time error message > Date: 2. september 1998 15:35 > > > Whenever I invoke bash, I get the following error message > first, followed by the usual bash prompt: > BASH.EXE: //.bashrc: Invalid argument > > I can proceed working with the bash without any problems, > but this error message baffles me. > > This message started coming up only after I upgraded to > Sergei's coolview package. What am I doing wrong? Thanks > for any help. > > -Santosh > > > > -- > Dain bramaged. > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sat Sep 5 07:10:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sat, 05 Sep 1998 07:10:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <01BDD8F8.964DEBE0@sos> Larry Hall (RFK Partners Inc) wrote: > The best argument I have for getting rid of _WIN32 from cygwin and mingw is > that MS docs claim _WIN32 is MS compiler specific. It says nothing about _WIN32 means an availability of Win32 macros/calls. MS reserved _WIN64 for upcoming versions of Windows. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sat Sep 5 08:17:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sat, 05 Sep 1998 08:17:00 -0000 Subject: DLL load error: "not a 32-bit library" References: Message-ID: On Fri, 4 Sep 1998, Marc Houyoux wrote: > > I have successfully created a DLL using the example makefile on Fergus > Henderson's web pages that I found from previous posts to this list. I > needed to add the library libf2c.a to the list of libraries because there > is a Fortran program in the library, and this worked fine for compiling. Try out my dllhelpers package which includes both f77 examples and some extra tools (dllwrap and enhanced dlltool) that makes creating DLLs rather trivial. If you're using cygwin32 b19.x, you should look at the dllinit.c in the examples mentioned above; it uses DECLARE_CYGWIN_DLL macro which is necessary in most cases for working DLLs. If you're using egcs-1.1 (released just a few days ago), the correct version of dllwrap and dlltool are included; if you're using egcs-1.0.2, then you need to download the dllhelpers package; if you're using the cygb19 supplied compilers and binary utilities (ie., as, ld, etc), then all bets are off -- these are too old and too buggy for anything ambitious. for egcs-1.1/cygwin32: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ or, ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/egcs-1.1/ for dllhelpers: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html or, ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/misc/ dllhelpers is a set of DLL examples in C, C++ and F77 and supplies a few programs to help create these DLLs. If you still have trouble, you can email me your testcase and I'll take a look. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sat Sep 5 09:29:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sat, 05 Sep 1998 09:29:00 -0000 Subject: How to increase stack size References: <6C7E2A10BB01D111929500400B406DDEE63925@xch-wch-02.ks.boeing.com> Message-ID: On Thu, 3 Sep 1998, Bates, Rod wrote: > How do I increase the stack size for a program built > with cygwin b19, on NT? > `ld --stack=' or `gcc -Wl,--stack=' should do the job, where STACK_SIZE is some number eg., 0x2300000. `ld --help' is a good place to look. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From nhv@laserplot.com Sat Sep 5 09:29:00 1998 From: nhv@laserplot.com (Norman Vine) Date: Sat, 05 Sep 1998 09:29:00 -0000 Subject: Fwd: Re: RE: libglut.a : Where can I get it? References: <000f01bdd7c4$0f1bbd80$0c0aa8c0@harry.scoutsys.com> Message-ID: <19980905160732.4704.qmail@findmail.com> FYI Norman Message http://www.findmail.com/list/gnu-win32/?start=6941 > > I have just today compiled libglut and it works well, apparently, with the > code I was porting. You link to the MS GL libraries, not Mesa. > > > To build the three libs in the distribution at > > http://reality.sgi.com/opengl/glut3/glut3.html > > I had to do the following: > > 1. Create 3 custom Makefiles for cygwin32: for the glut, mui, and gle libs. > The makefiles define and _WIN32, WIN32, and they build the libraries from > different constituent .o files than the unix builds. I made these makefiles > using imake, then modified the constituent files according to the ones in > the Makefile.win files (the makefiles for NMAKE and CL). > > 2. Modify the file lib/glut/win32_util.c trivially: > > Old code : > #if defined(__CYGWIN32__) > typedef MINMAXINFO* LPMINMAXINFO; > #else > #include > #endif > > New code : > #if defined(__CYGWIN32__) > typedef MINMAXINFO* LPMINMAXINFO; > #endif > #include > > I imagine some earlier distribution of cygwin32 did not contain > ? Anyway, I am using b19 and this works for me. > > I have put the makefiles, and the libglut.a (for intel), at > ftp://ftp.scoutsys.com/misc/glut-cygwin32 > > > Hugh Winkler > Scout Systems, Inc. > > > -----Original Message----- > > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > > Behalf Of Jerry Oh > > ...snip... > > Does anyone have "libglut.a". Or let me know where I can get it. > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > ----- Original Message: http://www.findmail.com/list/gnu-win32/?start=6941 Start a FREE email list at http://www.FindMail.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 5 14:08:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: Where is PAGER like less? Message-ID: <19980905210458.8738.rocketmail@send103.yahoomail.com> ---jari.aalto@poboxes.com wrote: > > |Sun 1998-08-30 michael@weiser.saale-net.de (Michael Weiser) list.cyg > | > | Look at ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ for a port > | of less and lots of other useful tools. > > > http://ftp.franken.de/pub/win32/develop/gnuwin32/ ftp://ftp.franken.de/pub/win32/develop/gnuwin32/ == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lo7@iol.ie Sat Sep 5 14:08:00 1998 From: lo7@iol.ie (LO) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: Where to install gnu-win32... References: <117E611CDA2DD1118F38006097D2F7140A62BD@ntserver.stelnj.com> Message-ID: <35F1954B.2D113068@iol.ie> Hi Ronald, This was in the FAQ at the the cygnus website. Where did the man/info pages go? In order to save space and download times, we have stopped providing the man/info files for the tools with the binary install since we are not yet providing a man page or info reader. Both types of documentation are available in a tar file available from the project ftp site. Or consult the online documentation over the WWW. Hope this helps. Liam O'Keeffe. --------------------- Please visit my website at http://homepages.iol.ie/~lo7 ALI RON wrote: > I set up my directory hierarchy as follows: > d:/usr > d:/usr/bin > d:/usr/etc > d:/usr/i386-cygwin32 > d:/usr/include > d:/usr/linexec > d:/usr/local > d:/usr/share > > The "man" & "info" directories are missing. > Do you know where they can be found? > > After firing up regedit, the mount command returns: > Device Directory Type Flags > \\d\usr: /usr native text=binary > \\.\tape1: /dev/st1 native text=binary > \\.\tape0: /dev/st0 native text=binary > \\.\b: /dev/fd1 native text=binary > \\.\a: /dev/fd0 native text=binary > c: /c native text=binary > d: / native text=binary > > In the command, "mount -b //d/usr /usr", > what is the significance of "//", is it necessary? > > The only file in the etc directory is termcap. Although > mkpasswd.exe & mkgroup.exe, in /bin, display what > appear to be valid info, the text files don't exist. > > How do I produce the /var/log & /var/run files. > Should /var be directly under /usr, or in /etc? > > HOME is set to /usr, but the bash commands "cd", and > "cd ../etc", and "ls ../etc" return ": permission denied". > > And. why is bash so slow? > > Thanks much for your help. > Ronald Ali > RonAli@WriteMe.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sat Sep 5 14:08:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: Linking against .lib libraries References: <3.0.1.32.19980904215352.006931e0@mailhost.cndp.fr> Message-ID: <199809051730.KAA12820@cygnus.com> Hi folks, On 4 Sep 98, at 21:53, the Illustrious Serge Torres wrote: > I'm trying to build a dll wich has a code written and compiled with > cygwin32 and at the last stage has to be linked it a .lib library from > Microsoft. > > I need this combination to create a dll that implements new extended > procedures > in MS SQLSERVER. I understand...I had to attempt to do something similar with DirectX3. Alas, it is the nature of MS to make it, or so it seems, as difficult as possible for anyone to link their .lib files without their compilers/linkers. It is sad but true. Here is something else you may want to try (I haven't been able to do it with my NT4 system due to the fact that I've not ever had MSVC/C++ on this system); compile and build the object code using Cygwin, or, better yet, convert to EGCS 1.1, and then attempt to link using the MS link program if you still have it available. Forgive the analogy, even so, this is a "shot-in-the- dark" sort of approach. Even so, if you "hit" something, at least you know you had your tool aimed properly and can work from there. (guns were tools before they became weapons...) > > I have manged to link to the library but I get a lot of warnings > ("ignoring duplicate section `.text`" as mentioned, in a not very > different context by Berend Ozceri from Istanbul. It sounds like linking errors. As another approach, impdef the MS SQL .dll files you need into .def files, then massage the files to have the right "@xx" postfixes so that they may become useable by something like Cygwin or EGCS, if they aren't already listed in the .def files with the "@xx" postfixes. [Colin Peters has an excellent tutorial on generating .dll files for, as far as I recall, that works for _both_ EGCS-1.1 and Cygwin32: http://www.geocities.com/Tokyo/Towers/6162/gcc.html (US Mirror) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Japanese Site)] From the .def files, generate .a files using something like dllwrap or dlltool using one of the .dll helper binutils that, I believe, were created Colin Peters for Mingw32. If you are using EGCS-1.1, then you probably won't have any problems using the SQL calls that you wish to use and everything will, at the very least, link. Runtime testing would become the next step. If you're not using EGCS-1.1, then I would encourage you to download EGCS-1.1-Mingw32. [See Mumit Khans Gnu-Win32 web site: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ ] EGCS-1.1 is slowly replacing the Cygwin32 branch of Gnu-Win32 and is very stable. This approach, for the most part, has always worked with very few exceptions... I hope that this helps. Peace, Paul G. > > The dll is definetly unworkable, it will not be loaded by SQL SERVER and > when viewed under an hex editor will show a lot of source code included. > > I think I've understood that .lib file format is not compatible with .a > format. > > Is it ture ? Is it really impossible to link cygwin (egcs 2.0.1) generated > against .lib libraries ? Is it really hopeless ? I would not like to have > to move back to VC. > > Thanks > > Serge Torres > Centre National de Documentation Pedagogique > > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dunkel@tocsy.chem.utah.edu Sat Sep 5 14:08:00 1998 From: dunkel@tocsy.chem.utah.edu (Reinhard Dunkel) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: How to increase stack size References: <6C7E2A10BB01D111929500400B406DDEE63925@xch-wch-02.ks.boeing.com> Message-ID: <199809051732.LAA34734@tocsy.chem.utah.edu> > From: "Bates, Rod" > Date: Thu, 3 Sep 1998 08:26:09 -0500 > Sender: owner-gnu-win32@cygnus.com > > How do I increase the stack size for a program built > with cygwin b19, on NT? I am using VC++ rather than cygwin b19 these days (for speed reasons and to be able to link with standard Windows libraries). But I tried cygwin before and a statement like: editbin /STACK:18874368 analyze.exe solved my stack problems. -- __ _ | ) o | | | \ | | | / _ |_ _ _ _| | | | _ | |/\ /_) | ^ ^ | | _) | / | | | | | ^ ^ |_) /_) | | \_/\___|_| | |_| |_(_|__|___\_| |_/__|_|_| | |_| \_/\___| Department of Chemistry Office: (801) 581-5894 2020 Henry Eyring Building b125 Home: (801) 582-7516 University of Utah FAX: (801) 581-8433 Salt Lake City, UT 84112 dunkel@chemistry.utah.edu - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sat Sep 5 14:08:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <6fe89c6e.35f17b52@aol.com> In a message dated 9/5/98 10:42:57 AM Pacific Daylight Time, lhall@rfk.com writes: > > _WIN32 > > > > Defined for applications for Win32????. Always defined. > Evidently, portable software must have an alternative in case _WIN32 isn't defined, but if we want to know if we're running on M$ OS, we certainly ought to be able to test it. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sat Sep 5 14:08:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: Installshield Message-ID: In a message dated 9/5/98 9:15:24 AM Pacific Daylight Time, hughw@scoutsys.com writes: > Cygnus ought to dump Installshield It's worked fine for me. I've run it both under NT4/SP[13] PPro, installing in a non-default directory, and W95OSR25 P II, both boxes having 64MB. I used the previous scheme of running tar and cygwinb18.dll under NT3.51, and that was OK too. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 5 14:08:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: *.COM file execution Message-ID: <19980905210700.1026.rocketmail@send101.yahoomail.com> ---"Paul E. Raines" wrote: > > > I just installed B19.1 and after playing around for a few minutes > found that bash would not execute *.com files (e.g. more.com). Win9x!! Don't expect to run any Win16 .com files via a 32bit command shell. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sat Sep 5 14:08:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: *.COM file execution Message-ID: <6e7195d4.35f175de@aol.com> In a message dated 9/5/98 9:21:52 AM Pacific Daylight Time, raines@SLAC.Stanford.EDU writes: > installed B19.1 and after playing around for a few minutes > found that bash would not execute *.com files (e.g. more.com). but, under NT, B19.1 works together with more under NT command prompt, if the Cygnus /bin directory is added to the NT Path. I suppose a W95 window could be set up to do the same, but I haven't figured it out. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Sat Sep 5 14:08:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Sat, 05 Sep 1998 14:08:00 -0000 Subject: gdb and stdin Message-ID: <000001bdd910$5905d320$0c0aa8c0@harry.scoutsys.com> I am running a program within the (great) windowed gdb, and trying to redirect the stdin to the program. The gdb command I use is (gdb) run < my_in_file I have had this working intermittently! But now the program is getting argc=3 and no input. Has anyone seen this, or got an idea how to persuade gdb to do the right thing? I'm using b19.1. Thanks, Hugh Winkler Scout Systems, Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sat Sep 5 14:18:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sat, 05 Sep 1998 14:18:00 -0000 Subject: B19 problem with fread() and buffering References: <3.0.3.32.19980904184440.00ba7d50.cygnus.gnu-win32@appr> Message-ID: <6ss9d8$l1t$1@cronkite.cygnus.com> In article <3.0.3.32.19980904184440.00ba7d50.cygnus.gnu-win32@appr>, Todd Massey wrote: > >I call fread with a sizeof of 4 and a count of 315 after reading >500 bytes out of a file and I only get back a count of 42 and then >the FILE* fp->_flags == 1188, when I called fread() it fp_uflags was 1156, so >for some reason it thinks it reached end of file. Now this is a binary >file and I use fopen() to open it .. I would expect it to work just fine >the routine that wrote out the file used fwrite in the B19 stuff.. > >So the real question is.. am I over running some buffer? You probably need to open your file as binary: FILE *fp = fopen("whatever", "rb"); Otherwise, cygwin, will attempt to translate \r\n to \n and it will treat a ^Z specially. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 5 15:53:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 05 Sep 1998 15:53:00 -0000 Subject: b19.1: question about "wait for job" References: <35EFD8AE.856648C4@harlequin.co.uk> Message-ID: <70N5pre4pfB@mike.franken.de> Hi, [...] >>//d/usr/local/bin/whereis: waitforjob: no children >>bash2$ > >Changing the "#!/bin/sh" to "#!/usr/local/bin/bash" makes the message go >away, You changed from ash to bash with this copy. [...] > >What does the waitforjob mean? That you are doing something, bash is supporting, but not ash. > >Schzen > Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 5 18:37:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 05 Sep 1998 18:37:00 -0000 Subject: B19 problem with fread() and buffering Message-ID: <19980906013835.19147.rocketmail@send103.yahoomail.com> ---Todd Massey wrote: > > > I call fread with a sizeof of 4 and a count of 315 after reading > 500 bytes out of a file and I only get back a count of 42 and then > the FILE* fp->_flags == 1188, when I called fread() it fp_uflags was 1156, so > for some reason it thinks it reached end of file. Now this is a binary > file and I use fopen() to open it .. I would expect it to work just fine > the routine that wrote out the file used fwrite in the B19 stuff.. > > So the real question is.. am I over running some buffer? The real question I have is are you opening the files specifically stating that it is to use binary file processing? == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sat Sep 5 18:37:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sat, 05 Sep 1998 18:37:00 -0000 Subject: b19.1: question about "wait for job" References: <35EFD8AE.856648C4.cygnus.gnu-win32@harlequin.co.uk> Message-ID: <6ss9ht$l5s$1@cronkite.cygnus.com> In article <35EFD8AE.856648C4.cygnus.gnu-win32@harlequin.co.uk>, Schzen Ooi wrote: >Suppose, you had a script in, say, "d:/usr/local/bin/which" is defined >as: > >>#!/bin/sh >>OFS=$IFS >>IFS=: >>for p in $PATH; do >> if [ -f "$p/$1" ]; then >> ls "$p/$1" >> exit 0 >> fi >>done >>IFS=$OIFS >> >>#type -p $1 > >to demonstrate the output below, and running it [might] give the >following results: > >>bash2$ whereis ls >>/usr/H-i386-cygwin32/bin/ls >>//d/usr/local/bin/whereis: waitforjob: no children >>bash2$ > >Changing the "#!/bin/sh" to "#!/usr/local/bin/bash" makes the message go >away, >I have the following in d:/bin/sh.exe, >d:/usr/H-i386-cygwin32/bin/bash.exe >and d:/usr/local/bin/bash.exe for convenience and they are just >duplicates. > >and mount paths defined with >"d:\usr\H-i386-cygwin32\bin" -> "/bin" >"d:\usr" -> "/usr" >if this detail is significant. > >What does the waitforjob mean? It usually means that ash is confused by pids > 32767. Try running a coolview version of the .dll: http://www.lexa.ru/sos . -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 5 18:37:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 05 Sep 1998 18:37:00 -0000 Subject: cmd.exe subshell Message-ID: <19980906010833.9080.rocketmail@send1c.yahoomail.com> mv sh.exe ash.exe cp bash.exe sh.exe ---Michael_Barillier@cyborg.com wrote: > > This may be in a FAQ somewhere, but I haven't fully researched the problem > and am rather time-constrained ... > > I'm writing a makefile for GNU make that sets SHELL to /bin/sh, which ends > up being the Bourne shell (sh.exe) from Cygwin32 Beta 19 (the makefile has > to run under both Unix and NT). I've been unable to get some Windows apps > to run under sh.exe, such as PVCS' get.exe - get.exe from the sh command > line just returns. I thought I could run it under cmd.exe (to eliminate > any possible problems with running the PVCS apps under sh), but running > cmd.exe from sh prints a DOS prompt and quits. Anyone have an idea why > those apps aren't running under sh.exe? > > -- Michael J. Barillier > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 5 18:37:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 05 Sep 1998 18:37:00 -0000 Subject: Only errors References: <01bdd838$bfa3e780$LocalHost@default> Message-ID: <70N5qdN4pfB@mike.franken.de> Hi Michael, >Hi, > >I can't get even the simplest of my VC++ source code >compiled. Everything is syntactically incorrect or >undeclared. My code could've even been Fortran. >Where can I get some simple source code and gcc >options that will work? Perhaps you have problems with non binary mounts and / or non Unix style line endings for text files like *.c files ? > >Thanks > >Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Sat Sep 5 23:07:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Sat, 05 Sep 1998 23:07:00 -0000 Subject: 1.1 c1.exe -- STATUS_ACCESS_VIOLATION Message-ID: <000101bdd95c$94e312d0$0c0aa8c0@harry.scoutsys.com> I have documented a reproducible bug at ftp://ftp.scoutsys.com/misc/bugrepts/egcs-1.1-c1/ It's easy to reproduce: from the /test directory, do gcc -I../include test.c It spews out lots of complaints (as it ought) then gets a STATUS_ACCESS_VIOLATION. I have b19.1 & the egcs 1.1 binaries. Hugh Winkler Scout Systems, Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Q: X-Server Info References: <0EYP00723YP0PV@mail.hac.com> Message-ID: <70N5pG4KpfB@mike.franken.de> Hi, >My setup on my NT4 SP3 system as provided by my company includes Lan >Workplace Pro (Novell), which includes an X-server. Presumably, I can use >this in support of all the X-client stuff available from dao.gsfc.nasa.gov. > >My questions are: (a) is this presumption true, and (b)if so, does anyone Jepp. >know how to go about setting things up so that the Novel xserver will use a >windows manager from the dao distribution instead of from the Novell >Distribution. (The Novell on line help for 'advanced users' has >description of a set of mouse clicks in Novell dialog boxes.) I know I strongly suspect, that you can't mix an X Server and a Window Manager from two different products as you can easily do on Unix systems. In many case X Server and Window Manager are in fact the same executable. [...] > >Thanks, > >John Velman Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sun Sep 6 00:42:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: How to increase stack size Message-ID: <01BDD98B.88950130@sos> Mumit Khan wrote: > > How do I increase the stack size for a program built > > with cygwin b19, on NT? > > > > `ld --stack=' or `gcc -Wl,--stack=' should do the > job, where STACK_SIZE is some number eg., 0x2300000. > > `ld --help' is a good place to look. > BTW, default stack size for cygwin or mingw compiled applications is 32M. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 6 00:42:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Where to install gnu-win32... Message-ID: <19980906014343.28781.rocketmail@send1d.yahoomail.com> ---LO wrote: > > Hi Ronald, > > This was in the FAQ at the the cygnus website. > > Where did the man/info pages go? > ftp://ftp.cygnus.com/pub/gnu-win32/gnu-win32-b19/cdk-man.tar.gz Note, the `man' and `info' executables are _NOT_ provided. You can find those at the various port sites. - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- To fix the most serious problems: Please, _READ_ the IMPORTANT UPGRADE NOTICE at the end of this note. Please, ensure that there is only _ONE_ cygwinb19.dll. Please, ensure that _ALL_ b18 binaries have been removed. Please, research your question via the Searchable Mail Archives first. http://www.cygnus.com/ml/gnu-win32 (Searchable Mail Archives) Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www-public.rz.uni-duesseldorf.de:1080 (Cygwin32 Porting Project) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - Mingw32) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) ftp://ftp.hksys.com/pub/mirrors/EGCS-Win32/ (Jeremy Bettis - mirror) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) http://www.downloadwizard.com/ak/gnu-win32/bash.html (GNU-Win32 Bash Configuration) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - package ports) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Package Porting Notes) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (German mirror) http://www.dol.ru/users/valtul (Valery Tulnikov - software ports) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David fox - RPM packages) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.kedemel.demon.co.uk/ (Darren's ports) http://www.multione.capgemini.fr/tools/pack_ipc/ ("Ludovic Lange" ) http://www.skydancer.demon.co.uk/gnu-win32/ (UK mirror and ports) http://www.i21.com/~tjump/files/index.html (Theodore Jump - emacs functions, cygwin32 ports, other info) Help for Win32 Beginners: http://www.relisoft.com http://www.program.com/resources/win32.html DISCLAIMER: These links or links from these pages to other sites do not constitute an endorsement of any entities, advertisers, products or services therein. I am not responsible for and do not control or monitor the content of these sites or the accuracy of information found therein. -------------------- IMPORTANT UPGRADE NOTICE ------------------------ You should get the following to update your cygwinb19 package: Sergey Okhapkin's coolview package which contains an updated cygwinb19.dll. (Yes, even if you've already downloaded the b19.1 update from the Cygnus Site). Mumit Khan's compilation of EGCS for the cygwinb19.dll; especially if you're using the C++ compiler. The current version of the compiler that comes with the tools has lots of problems that have been fixed with the EGCS version. This is a drop-in replacement for the GCC toolset. URL's are listed above. ----------------------------------------------------------------------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: cygwinb19.dll affects bash reading .bashrc References: <01BDD72E.31776E60.bills@warwick.net> Message-ID: <70N5ozV$pfB@mike.franken.de> Hi Bill, >I've got a strange one here that I can't seem to figure out. > >If I install the 19.3 version of cygwinb19.dll, bash 2.02 stops reading the >.bashrc file. Works fine with either 19.0 or 19.1. Anyone have any idea >what's going on? Problems with non binary mounts and / or non Unix style line endings for text files like bashrc ? > >Bill Smithem BYe. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Where to install gnu-win32... References: <117E611CDA2DD1118F38006097D2F7140A62BD@ntserver.stelnj.com> Message-ID: <70J5o6pppfB@mike.franken.de> ALI RON [ALIR@STELNJ.COM] wrote: [...] >The "man" & "info" directories are missing. >Do you know where they can be found? There are no man pages included in usertools and cdk.exe, so you have to get usertools-man.tar.gz or cdk-man.tar.gz - besides that, you also have to get man, ncurses, less, groff, ... from somewhere else. They are all missing in the standard packages. [...] >In the command, "mount -b //d/usr /usr", >what is the significance of "//", is it necessary? /// is the POSIX syntax for :/ - so it is really necessary for POSIX aware programs. > >The only file in the etc directory is termcap. Although >mkpasswd.exe & mkgroup.exe, in /bin, display what >appear to be valid info, the text files don't exist. You have to use mkpasswd and mkgroup to *create* /etc/passwd and /etc/group - they don't display the contents of these files, but information from the NT SAM ! > >How do I produce the /var/log & /var/run files. >Should /var be directly under /usr, or in /etc? It can be wherever you want, as long as you mount it to the correct place, which is indeed /var. > >HOME is set to /usr, but the bash commands "cd", and >"cd ../etc", and "ls ../etc" return ": permission denied". HOME should be, wherever your private files reside - perhaps in //z/ ? > >And. why is bash so slow? unset MAILCHECK export MAILCHECK > >Thanks much for your help. >Ronald Ali Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sun Sep 6 00:42:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> Message-ID: <6ss97p$ks5$1@cronkite.cygnus.com> In article <35F00A85.502D153A.cygnus.gnu-win32@ina.de>, Alexander Kriegisch wrote: >Hi! > >This week I got a mail (from this mailing list) with an attachment. It >caused an error on our SMTP server (or, to be more exact, in the >subsequent MIME parsing). The reason can be seen here (mail snippet): > >================================================================ > From: michael@weiser.saale-net.de (Michael Weiser) > To: gnu-win32@cygnus.com > Subject: FAQ: gnuwin32 mini FAQ - first draft > Date: Tue, 01 Sep 1998 00:12:19 GMT > (...) > > ----=_35eb3be341926316052e3279.MFSBCHJLHS > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Hi folks, > > this is the first draft of the gnuwin32 mini FAQ > (...) > > ----=_35eb3be341926316052e3279.MFSBCHJLHS > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > Content-Disposition: attachment > > gnuwin32 mini FAQ > (...) > > ----=_35eb3be341926316052e3279.MFSBCHJLHS-- > - > For help on using this list (especially unsubscribing), send a message >to > "gnu-win32-request@cygnus.com" with one line of text: "help". >================================================================ > >The last part (= the help hint) starts right below the MIME boundary, >causing the MIME parser to think the first line was a MIME header field >(which is not true, as "-" definitely is not valid). To fix this problem >your mailer should > > - either precede the hint with one or more valid MIME header lines > plus an empty line > - or precede the hint with just one empty line (signalling that there > are is no header and the body of the mail part starts). > >Would you please fix this problem in one or the other way? I have no idea how to "fix" this with majordomo. I'm not convinced that this is actually an error with the mailing list as much as an error in your mail software. If anyone knows how to fix this, please let me know. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Where is PAGER like less? References: Message-ID: <70N5pe14pfB@mike.franken.de> Hi Jari, >|Sun 1998-08-30 michael@weiser.saale-net.de (Michael Weiser) list.cyg >| >| Look at ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ for a port >| of less and lots of other useful tools. > > > http://ftp.franken.de/pub/win32/develop/gnuwin32/ No one said anything about http 8-/ Try ftp://ftp.franken.de/pub/win32/develop/gnuwin32/ as the name of the server should already have made clear. [...] > >More pointers? >jari Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 6 00:42:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Coolview/cygwinb19.dll/Win98 probs Message-ID: <19980906004541.20202.rocketmail@send104.yahoomail.com> What does the command mount give. Do you have \r\n line endings in the mentioned files? ---Jonathan Storey wrote: > > > I have recently upgraded (?!) to Win98 and > the installation of vanilla b19 works fine, however > when I replace the cygwinb19.dll with any of the > newer versions incl. Sergey's coolview, bash > displays the following: > > bash -login :- > //.bash_profile: invalid argument > > bash :- > //.bash_rc: invalid argument > > and... > > //.bash_logout: invlalid argument > when exiting (logging out) > > The tools etc. seem to still work fine > but I'd rather not see these messages, > I don't get this problem under Win95 > > Any Ideas? anyone, I've found no reference > to such a problem in the archives/mailing-lists. > > Thanx In Advance > > ``)OZ`` > Jonathan Storey Esq. < > Technical Systems Analyst/Programmer > e-mail-personal: joz@thinktank.demon.co.uk > e-mail-business: joz@mentor-systems.com > e-fax-anytime: +44(0)870 1641756 > http: www.thinktank.demon.co.uk > icq#: 13848691 > "A super-saturated solution is one that > holds more than it can hold." > > ------------------------------------------------------------------------ > > The views and opinions expressed in this e-mail message are the sender's > and do not necessarily represent the views of Mentor Systems plc. > > ------------------------------------------------------------------------ > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Bash startup time error message References: <980902093500.ZM5573@ins7.hns.com> Message-ID: <70N5pFFppfB@mike.franken.de> Hi, > >Whenever I invoke bash, I get the following error message >first, followed by the usual bash prompt: > BASH.EXE: //.bashrc: Invalid argument > [...] >This message started coming up only after I upgraded to >Sergei's coolview package. What am I doing wrong? Thanks >for any help. Problems with non binary mounts and / or non Unix style line endings for text files like bashrc ? > >-Santosh Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: B19 problem with fread() and buffering References: <3.0.3.32.19980904184440.00ba7d50@appr> Message-ID: <70N5qR14pfB@mike.franken.de> Hi Todd, > >I call fread with a sizeof of 4 and a count of 315 after reading >500 bytes out of a file and I only get back a count of 42 and then >the FILE* fp->_flags == 1188, when I called fread() it fp_uflags was 1156, so >for some reason it thinks it reached end of file. Now this is a binary >file and I use fopen() to open it .. I would expect it to work just fine >the routine that wrote out the file used fwrite in the B19 stuff.. > >So the real question is.. am I over running some buffer? I strongly suspect, that this also is a problem with non binary mounts and / or non Unix style line endings for text files ? > >Any ideas? > >Thanks, >Todd Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Coolview/cygwinb19.dll/Win98 probs References: <000001bdd818$361c7010$050120c0@menpc5> Message-ID: <70N5r0kKpfB@mike.franken.de> Hi Jonathan, [...] >when I replace the cygwinb19.dll with any of the >newer versions incl. Sergey's coolview, bash >displays the following: > >bash -login :- >//.bash_profile: invalid argument > [...] > >Any Ideas? anyone, I've found no reference >to such a problem in the archives/mailing-lists. You seem to have problems with non binary mounts and / or non Unix style line endings for text files like bashrc. There are many hints for this problem in the mailing list archives and even on Sergey's web page. > >Thanx In Advance > > ``)OZ`` > Jonathan Storey Esq. < Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Sun Sep 6 00:42:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: owner/group of files confused Message-ID: <35F2061E.2A6E22A4@erols.com> Greetings. I have a weird situation: The output of mkpasswd -l is this: Administrator::500:513:::/bin/sh donna::1001:513:Donna M. Persico::/bin/sh Guest::501:513:::/bin/sh matthew::1000:513:Matthew O. Persico::/bin/sh and is the contents of /etc/passwd The output of mkgroup -l is: None::513: Everyone::0: and is the contents of /etc/group The output of mkpasswd -g is this: Administrators::544:0::: Backup Operators::551:0::: Guests::546:0::: Power Users::547:0::: Replicator::552:0::: Users::545:0::: and is the contents of nothing. I am logged into NT 4.0 SP3 as matthew. When this account 'touch'es a new file and the account is set up under NT's administration tools as being in the Users group, the new file is owned by matthew. Unfortunately, because of some crufty piece of security software I need for remote loging into work, I must also put 'matthew' in the NT Administrators group, again using NT's user admin tools. After I do that, when the account 'matthew' 'touch'es a file, is it owned by user 544. Now, there is no 544 user, and no 544 group as defined by /etc/group BUT there is a 544 de-facto group snarfed from the NT view of things, as evidenced by the fact the mkpasswd -g output. It appears that the code that assigns ownership to filesystem objects is confused vis-a-vis the multiple groups that the user is in in the NT world, the user account itself and the /etc files. Any suggestions? -- #!/usr/bin/perl -- Matthew O. Persico print "Just Another Perl Neophyte\n"; ## Simplicity is a blessing when you're ## supporting the program at 2AM - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 6 00:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: Error when starting mc References: <35EBCAA0.4C59E475@ina.de> Message-ID: <70N5oK$$pfB@mike.franken.de> Alexander Kriegisch [kriegaex@ina.de] wrote: [...] > 1) 2782 May 18 20:27 aboutme.html > 2) 6144 Jun 7 19:40 cygpath.exe > 3) 669150 Jul 15 19:51 cygwinb19.dll > 4) 706620 Jul 10 13:18 libcygwin.a > 5) 7168 Jun 23 20:05 ps.exe > >I copied #2, #3 and #5 to the cygwin 'bin' path (replacing the originals >after backing them up) and #4 to the 'lib' path. The result: My 'bash' >does not start anymore (or at least I do not get the prompt, and it >hangs). 'mc' does not start either. > >What have I done wrong? Which version of coolview did you get ? File date ? What does your CYGWIN32 env var look like ? Try "CYGWIN32=tty binmode title strip_title glob". Do you use binary mounts ? I would suggest to switch to binary mounts and convert all text files to Unix style line endings. Did you stop all running cygwin32 programs, before replacing the .dll ? Otherwise it will stay in memory. >-- >Alexander Kriegisch Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 6 00:42:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 06 Sep 1998 00:42:00 -0000 Subject: ClearCase don't like files created in bash Message-ID: <19980906005123.29328.rocketmail@send101.yahoomail.com> Here's my guess. You have the cygwin mounts in binary mode and the ClearCase-PC tool is expecting to have \r\n and not just \n. If this is the case then clearly (no pun intended) ClearCase-PC has the bug. ---lro@technologist.com wrote: > > Hello, > > I have a problem while using ClearCase to control files created in BASH. > If I create a file within a bash session (let say typing "touch polo.txt"). Then I can not copy the file to a ClearCase view (which is controled by ClearCase). > I have got the following message: > --------------------------- > The system cannot find message for message number 0x13d > in message file for System. > 0 files copied. > --------------------------- > > Does anyone have an idea what's wrong with it ? > I suppose it is something in the way files are created in BASH but I can not figure out what ? > > Of course, I am investigating the problem myself, but any help is welcome. > > PS 1: Icould not search the archive the search fonctionality fails. > PS 2: For those who don't know (lucky you), ClearCase is version control software (like SCCS, PVCS, ...) that runs on PC and Unix (and probably more OS). > > Thanks for your help, > Laurent ROCHE > > -------------------------------------------------------------------------------- > -------------------------------\r\nGet your free email from altavista.iname.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From p.dalgaard@biostat.ku.dk Sun Sep 6 02:41:00 1998 From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA) Date: Sun, 06 Sep 1998 02:41:00 -0000 Subject: EGCS-1.1 binary distribution for Cygwin32 b19 and mingw32 References: <9809040355.AA09467@modi.xraylith.wisc.edu> Message-ID: Mumit Khan writes: > I've just uploaded (patche) egcs-1.1 binaries for cygwin32 b19 and > mingw32. Note that I haven't had time to update the web pages, so > you're better off nagivating the ftp site directly. > > The mirrors should be picking all of this up in a day or two. > > I'm rather short of time, and packaged everything rather hastily. > Hopefully no major bugs sneaked past. > .... > egcs-1.1: The compilers for C, C++, ObjC and F77 plus runtime > libraries. > > binutils-980830: The GNU binary utilities (assembler, linker, > windres, etc). Also included are an enhanced version of windres > (thanks to Anders Norlander) and dllwrap from dllhelpers v0.2.2. > > Mingw runtime: Colin Peters' latest Mingw 980701 snapshot + plus > local changes. MINGW32 ONLY. > > Windows32api: Heavily modified windows32api 0.1.2. 50% of the patches > are from Colin, and 40% extracted from Cygnus, 10% misc. It's now > possible to build Tcl/Tk/Tix/BLT etc with mingw32. MINGW32 ONLY. > > libg++-2.8.2: I've included HJ Lu's libg++-2.8.2-980828 release. This > is completely unsupported, but I'm including to avoid answering tons > of email regarding why it's not there. > ...but no cross-compiler build instructions yet, I suppose? Do you think that you could do us the favour to put a copy of each of all those snapshots somewhere in the FTP tree? (And of course: Thank you for your great work!) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 6 02:41:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 06 Sep 1998 02:41:00 -0000 Subject: Linking against .lib libraries Message-ID: <19980906012852.9096.rocketmail@send101.yahoomail.com> ---Serge Torres wrote: > > Hi, > > I'm trying to build a dll wich has a code written and compiled with cygwin32 > and at the last stage has to be linked it a .lib library from Microsoft. > > I need this combination to create a dll that implements new extended > procedures > in MS SQLSERVER. > > I have manged to link to the library but I get a lot of warnings ("ignoring > duplicate section `.text`" as mentioned, in a not very different context by > Berend Ozceri from Istanbul. > > The dll is definetly unworkable, it will not be loaded by SQL SERVER and > when viewed under an hex editor will show a lot of source code included. > > I think I've understood that .lib file format is not compatible with .a > format. > > Is it ture ? Yes it is true, at least for the moment. > Is it really impossible to link cygwin (egcs 2.0.1) generated against .lib libraries ? Yes it is impossible to link against the .lib files. > Is it really hopeless ? No it is not hopeless. You can use `nm' and `dlltool' to create a libsomelib.a from the somelib.lib file. I the exactly what to do. I did post it a while back. Basically you need to create a somelib.def file from the `nm --defined-only --demangle somelib.lib | grep ' [DCT] ' > somelib.def'. Then add `EXPORTS' as the first line to the file. Then use dlltool to create the libsomelib.a file. I hope my memory is serving me correctly. If this doesn't work take a look at the impdef tool on Colin Peters' page. It will create a def output based on the .dll but when I tried this it wasn't giving me the correct stuff. > I would not like to have to move back to VC. I haven't even been there yet. > > Thanks > > Serge Torres > Centre National de Documentation Pedagogique > == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 6 08:30:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 06 Sep 1998 08:30:00 -0000 Subject: EGCS-1.1 binary distribution for Cygwin32 b19 and mingw32 References: Message-ID: On 6 Sep 1998, Peter Dalgaard BSA wrote: > ...but no cross-compiler build instructions yet, I suppose? Do you > think that you could do us the favour to put a copy of each of all > those snapshots somewhere in the FTP tree? > Just a matter of having the time. I'm planning to upload the binutils diffs sometime over the weekend, and the rest you can get from the binary distribution (eg., the headers and such). Please let me know if what I need to make available other than the following (and that can't be trivially extracted from the binary distributions): - diffs to egcs-1.1 source tree. - diffs to binutils-980830 tree (binutils-2.9.1 will work as well). > (And of course: Thank you for your great work!) You're most welcome. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From p.dalgaard@biostat.ku.dk Sun Sep 6 10:57:00 1998 From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA) Date: Sun, 06 Sep 1998 10:57:00 -0000 Subject: EGCS-1.1 binary distribution for Cygwin32 b19 and mingw32 References: Message-ID: Mumit Khan writes: > On 6 Sep 1998, Peter Dalgaard BSA wrote: > > > ...but no cross-compiler build instructions yet, I suppose? Do you > > think that you could do us the favour to put a copy of each of all > > those snapshots somewhere in the FTP tree? > > > > Just a matter of having the time. I'm planning to upload the binutils > diffs sometime over the weekend, and the rest you can get from the binary > distribution (eg., the headers and such). Please let me know if what > I need to make available other than the following (and that can't be > trivially extracted from the binary distributions): > > - diffs to egcs-1.1 source tree. > - diffs to binutils-980830 tree (binutils-2.9.1 will work as well). The thing to consider is if you want the binutils-980830 tree *itself* somewhere on-site. Last time around you had a version based on a similar snapshot of Colins mingw32 files, but when I got around to trying the cross build, the snapshot had disappeared from Colins site... (no real harm done since one could just extract the headers and binaries from the native version) I.e. what I mean is that when you build on something that's not an official release, it may be a good idea to keep a copy of it around. Even when an improved version of it is subsequently released, it can be important to have a "known good" configuration which is supposed to patch cleanly and compile without error. On the other hand it obviously takes up space in your FTP area... In the present case, the new windres is the thing that I fear could get caught if the binutils tree should destabilise for some reason. The other things are, as you say extractable from the native binaries, so it's mainly of academic interest if one wants to be able to compile them from scratch. BTW: Is there an overview of new features in the new windres? The old one tended to fall a bit short on resources originating in Visual C. (The real trouble is that I don't really have time to play with it just now, unless I'm fairly sure there's a substantial gain in doing so.) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mil4484@yahoo.com Sun Sep 6 10:57:00 1998 From: mil4484@yahoo.com (mil4484@yahoo.com) Date: Sun, 06 Sep 1998 10:57:00 -0000 Subject: regarding your web site Message-ID: <199809061625.JAA27302@cygnus.com> ***** FREE WEB SITE ANALYSIS ***** *** Limited Time Offer *** If you're hopeful of ever making money from the internet, then its just plain smart to make sure that your web site is properly programmed and up to the task. That's where this Special FREE Offer comes in... World Wide Network Marketing, one of the net's most renown marketing firms, is pleased to once again make this Special FREE Offer to web site owners who truly want their sites to be successful. When you call you will be speaking directly with one of our professionals and receive a FREE "one-on-one" "person-to-person" 100% FREE - NO STRINGS ATTACHED - web site analysis. No more just talking to computers or trying to understand complicated reports from software programs. You'll be speaking with an honest-to-goodness human being. Wow, what a concept. SPECIAL NOTE: Due to the enormous response WE MUST LIMIT EACH CALL TO NO MORE THAN 15 MINUTES. Therefore it is Extremely Important that you have pen and paper ready because you will be needing to take a lot of notes. DON'T MISS OUT ON THIS VALUABLE FREE OFFER Here are just a few of the VITAL AREAS that you'll be discussing with our team member; 1) Load Time - How long does your web site take to load? How long should it take? What about visitors who are using 14.4 or 28.8 baud modems? There are still millions of them in use. What can be done to help speed things up? 2) HTML Design - How well is your site programmed? Do you have any areas that are causing critical problems of which you may not even be aware? What about META Tags? Do you know how vitally important they are with regard to search engines? Did you or your programmer include them? These are CRITICAL and should NEVER be left out or improperly used. 3) Search Engines, Directories and Indices - Are you ready for them? Is your web site programmed to take full advantage of their power? Where in the list of your competitors will you wind up? 4) How Browser Friendly Is Your Web Site - Did you know that various versions of browsers can't even show certain types of web pages? Is your site one of the thousands that can't even be seen by certain browsers that are being used this very day? 5) What About Dead Links - These are links in your site that point to other pages or web sites. Have you checked all your links to make certain that they are still functioning as planned? 6) How Popular Is Your Site - Are there other web sites that are linked to your site? This can help you in your web site positioning. 7) Spelling Accuracy - This is where you can really make yourself look unprofessional. Have you checked all your spelling? Once the repairs have been made to your web site, it is EXTREMLY IMPORTANT to resubmit your site to the search engines. There are a few firms on the net that provide this service. We also have a division that specializes in web site submissions where you can have your site submitted to over 800 search engines, directories, and indices for only $39.95. It's a great value. One you shouldn't miss. This is optional but is a step that will make a "Dramatic" difference in your overall results. Call us TOLL FREE 800-771-2003 if you are in the USA or Canada. If not, call direct at 916-771-4739. ==================================================== World Wide Network Marketing 5098 Foothills Blvd., #3136 Roseville, CA 95747 916-771-4739 Remove Instructions: Please return this message to us with the word "Remove" ( without the quote marks ) in the subject line. You will then be removed from future mailings. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 6 16:43:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 06 Sep 1998 16:43:00 -0000 Subject: Installshield References: <000701bdd85a$3e140e80$0c0aa8c0@harry.scoutsys.com> Message-ID: <36041ad3.6159486@mail> Hello Hugh, you wrote: >2. If you put it in the default place, run the .reg file that describes the >setup of HKCU\Software\Cygnus solutions\Cygwin.DLL setup\b15.0\mounts\..., >and same for HKLM. To run it, just double click it. If we installed >elsewhere in step 1, need to edit this file first. The README tells us how >to do it. AFAIK you wouldn't even need to edit the reg file because cygwinb19.dll creates the neccessary parts every time it starts up. A simple script for cmd.exe could do the mounting of / to the current directory or so. >3. If you installed somewhere else, also modify the cygnus.bat file >accordingly. Again the README can describe the changes in a sentence. If the above script succeded, awk and sed are ready to use and so cygnus.bat could be changes automatically. >4. Make an explorer shortcut to cygnus.bat. AFAIK there's some support for that in perl. But I don't know for sure... -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 6 16:43:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 06 Sep 1998 16:43:00 -0000 Subject: EGCS-1.1 binary distribution for Cygwin32 b19 and mingw32 References: Message-ID: On 6 Sep 1998, Peter Dalgaard BSA wrote: > The thing to consider is if you want the binutils-980830 tree *itself* > somewhere on-site. Last time around you had a version based on a > similar snapshot of Colins mingw32 files, but when I got around to > trying the cross build, the snapshot had disappeared from Colins > site... (no real harm done since one could just extract the headers > and binaries from the native version) The trouble is that I really can't upload binutils snapshots to a public site (Ian?). The only reason I bundled a snapshot instead of 2.9.1 is to avoid having to backport bunch of fixes for i386-pe. For 99% of the use however, you can use 2.9.1 just fine. How about I backport the changes to dlltool and windres relative to 2.9.1 and upload that instead? As for mingw headers/libs, I never saw the point of uploading them separately (no demand); I'll upload my copy of mingw headers and such when I get the time (don't hold your breadth! I'm going on the road for a few weeks, and have two conferences to prepare for). > > I.e. what I mean is that when you build on something that's not an > official release, it may be a good idea to keep a copy of it around. > Even when an improved version of it is subsequently released, it can > be important to have a "known good" configuration which is supposed to > patch cleanly and compile without error. On the other hand it > obviously takes up space in your FTP area... I have everything under CVS control, and it's usually quite simple to extract the changes relative to a particular release. Not that it's always advisable (since there could other dependent changes). I do understand what your point, and I'll need to figure out a way to get this settled without having to spend an inordinate amount of time, which I just don't have. > BTW: Is there an overview of new features in the new windres? The old > one tended to fall a bit short on resources originating in Visual C. > (The real trouble is that I don't really have time to play with it > just now, unless I'm fairly sure there's a substantial gain in doing > so.) > -- For my own work, I use .rc files that are trivial, so I can't tell how much better it is. The testimonials however from beta testers say that it's now as good as the one from Microsoft (I'm sure there are still rough edges, but we'll tackle those as we find them). I'll forward all bug reports to Anders Norlander, who's the author of the changes. Looking at the source changes, the for major features, other than bug fixes, are: - read/write .res files - handle CONTROLs. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeff@turing.dynip.com Sun Sep 6 21:26:00 1998 From: jeff@turing.dynip.com (Jeff) Date: Sun, 06 Sep 1998 21:26:00 -0000 Subject: This program cannot be run in DOS mode?!? References: <70N5pFFppfB@mike.franken.de> Message-ID: <00ca01bdda17$9e87e110$b60bc3d1@TURING> X:\c>dir usertools.exe Volume in drive X is Mainline Volume Serial Number is 14C7-1363 Directory of X:\c 09/06/98 06:18p 3,225,601 usertools.exe 1 File(s) 3,225,601 bytes 0 Dir(s) 4,523,196,416 bytes free X:\c>usertools.exe This program cannot be run in DOS mode. X:\c> --------------------------------------------------------- I'm running this program from NT5's command prompt. Is there something else I need to know? (It also does the same thing if I 'double-click' on the program from Explorer. It also happens with cdk.exe. Thanks, -Jeff - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Sun Sep 6 21:38:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Sun, 06 Sep 1998 21:38:00 -0000 Subject: Error when starting mc References: <70N5oK$$pfB@mike.franken.de> Message-ID: <35F36383.65E1C6@ina.de> Hi Michael! > > 1) 2782 May 18 20:27 aboutme.html > > 2) 6144 Jun 7 19:40 cygpath.exe > > 3) 669150 Jul 15 19:51 cygwinb19.dll > > 4) 706620 Jul 10 13:18 libcygwin.a > > 5) 7168 Jun 23 20:05 ps.exe > > > >I copied #2, #3 and #5 to the cygwin 'bin' path (replacing the originals > >after backing them up) and #4 to the 'lib' path. The result: My 'bash' > >does not start anymore (or at least I do not get the prompt, and it > >hangs). 'mc' does not start either. > > > >What have I done wrong? > Which version of coolview did you get ? File date ? See above, please. > What does your CYGWIN32 env var look like ? Was not set. > Try "CYGWIN32=tty binmode title strip_title glob". No change in behaviour. > Do you use binary mounts ? I do not mount anything so far. Do I have to? > Did you stop all running cygwin32 programs, before replacing the .dll Positive. Any more hints? Is there a "How-To" describing all the necessary steps for installing cygwin32 (and coolview)? Perhaps I missed something like setting system variables, mounts, paths or choosing a certain install directory or whatever. Greetings -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Sun Sep 6 21:38:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Sun, 06 Sep 1998 21:38:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> Message-ID: <35F3608B.F1C8077B@ina.de> Hi Christopher and others! I post this message to the list because I know the reason for the error, but not the cure, as I am not familiar with the use of majordomo. > I have no idea how to "fix" this with majordomo. I'm not convinced > that this is actually an error with the mailing list as much as an > error in your mail software. Here is an extract from RFC 822. It contains the core rules for building a compliant message: --- snip --- field = field-name ":" [ field-body ] CRLF fields = dates ; Creation time, source ; author id & one 1*destination ; address required *optional-field ; others optional message = fields *( CRLF *text ) ; Everything after ; first null line ; is message body --- snap --- "Everything after first null line is message body" - see? The null line definitely has to be there, which means your mail composer creates - well, sorry - trash (from the point of view of a RFC-compliant mail reader). Regards -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sun Sep 6 21:38:00 1998 From: cgf@cygnus.com (Christopher Faylor) Date: Sun, 06 Sep 1998 21:38:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> <35F3608B.F1C8077B@ina.de> Message-ID: <19980907003431.A7851@cygnus.com> On Mon, Sep 07, 1998 at 06:26:51AM +0200, Alexander Kriegisch wrote: >Hi Christopher and others! > >I post this message to the list because I know the reason for the error, >but not the cure, as I am not familiar with the use of majordomo. > >> I have no idea how to "fix" this with majordomo. I'm not convinced >> that this is actually an error with the mailing list as much as an >> error in your mail software. > >Here is an extract from RFC 822. It contains the core rules for building >a compliant message: > >--- snip --- >field = field-name ":" [ field-body ] CRLF >fields = dates ; Creation time, > source ; author id & one > 1*destination ; address required > *optional-field ; others optional >message = fields *( CRLF *text ) ; Everything after > ; first null line > ; is message body >--- snap --- > >"Everything after first null line is message body" - see? The null line >definitely has to be there, which means your mail composer creates - >well, sorry - trash (from the point of view of a RFC-compliant mail >reader). There is obviously a blank line following the mail header. If there wasn't then no one would be able to read mail from the mailing list. We're using a standard sendmail package which understands this requirement. Majordomo is adding a couple of lines at the end of the message. Unless I'm missing something, that's what the "problem" is. This was a mime error, as I recall, which is a completely different thing. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dubois_a@yahoo.com Mon Sep 7 01:30:00 1998 From: dubois_a@yahoo.com (Alice Dubois) Date: Mon, 07 Sep 1998 01:30:00 -0000 Subject: Problem with chmod on WINNT Message-ID: <19980907083042.15136.rocketmail@send201.yahoomail.com> Hi, I'm trying to use cygnus on WINNT but the chmod command doesn't work. I have certainly forgotten something but I don't know what. Help would be welcome. Thanks. Alice _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Mon Sep 7 03:00:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Mon, 07 Sep 1998 03:00:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> <35F3608B.F1C8077B@ina.de> <19980907003431.A7851@cygnus.com> Message-ID: <35F3AF33.1BDEB45A@ina.de> Hello Christopher! > There is obviously a blank line following the mail header. There seems to be a misunderstanding. I did not mean the top-level mail header (which is indeed okay), but the (missing) blank line after the (also missing) sub-part header (the mail has a MIME multipart type, and every part has a header of its own): 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS-- 2 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". Line #1 is the boundary separating the before-last sub-part from the last one. Line #2 ist the first line of the last sub-part. As it is not blank it is regarded as a header line, which is wrong. Just for comparison a valid sub-part from the same mail message: 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS 2 Content-Type: text/plain; charset=us-ascii 3 Content-Transfer-Encoding: 7bit 4 5 Hi folks, this is the first draft of the gnuwin32 mini FAQ (...) Here we also have our boundary (line #1). Now there is a header (lines #2, #3), the required blank line (#4) ans the actual beginning of the sub-part body (from #5 on). I hope I could make the issue clear this time: Not the whole mail is wrong, but the very last sub-part. Some mail clients may tolerate this RFC violation, but not ours. It is just a bit more stringent in this respect. Regards -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lro@technologist.com Mon Sep 7 04:10:00 1998 From: lro@technologist.com (lro@technologist.com) Date: Mon, 07 Sep 1998 04:10:00 -0000 Subject: Installshield Message-ID: <199809071110.HAA03366@web06.iname.net> Hi, I am new in using in CYGWIN32 and in the list. But for me the install shield just work fine. I am installing just the small package (I can't remember the name): this allows me to run schell scripts on Unix which is great (I don't do any compilation work). I have installed it on severall machines running NT4 and it just worked fine. I have added a .bat script (which runs a bash script) to install 19.1 version (copy the dll) and create the tmp and bin directory and add symbolic link in the bin directory to get sh and bash (as precised in the FAQ). I am pleased that I didn't have to do more works in modifying any script. I understand that I might not work on some machines. Maybe a good solution, will be to still provide ths install shield programm AND as well, a manual installation as you described. Good luck anyway, Laurent ---- you wrote: > I would like to second, third, and fourth the sentiments others have > expressed here, that Cygnus ought to dump Installshield in favor of a zip > file, a .reg file, and a README describing changes to make to scripts in > case you install somewhere besides the default. > > A. The Installshield setup is *very fragile*. I have *never* successfully > run it to completion. The only time it ever has completed, I stepped it over > a fault in my debugger. And I did in fact have a clean temp directory. And > just now, testing the usertools distribution, some other crazy bug crashes > it. > > B. When it crashes, you have no recourse. There's no way to get inside the > Installshield compressed files without their tools. > > C. It's *painfully* slow on NT. Long mysterious pauses of no activity. Why > use a 16-bit installer for Win32 machines, anyway? > > > Everyone using cygwin32 is capable of understanding what is needed to get > the cygwin tree installed, but we can't workaround the Installshield > "shield". > > Here's how the install should work: > > 1. Unzip the directory tree files. Put it in C:\cygnus\b19 or somewhere > else. > > 2. If you put it in the default place, run the .reg file that describes the > setup of HKCU\Software\Cygnus solutions\Cygwin.DLL setup\b15.0\mounts\..., > and same for HKLM. To run it, just double click it. If we installed > elsewhere in step 1, need to edit this file first. The README tells us how > to do it. > > 3. If you installed somewhere else, also modify the cygnus.bat file > accordingly. Again the README can describe the changes in a sentence. > > 4. Make an explorer shortcut to cygnus.bat. > > Thanks to the Cygnus guys for their well-intentioned efforts, but this > procedure would be a lot more stable and easier than the current procedure! > > Hugh Winkler > Scout Systems, Inc. > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -------------------------------------------------------------------------------- -------------------------------\r\nGet your free email from altavista.iname.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lro@technologist.com Mon Sep 7 05:24:00 1998 From: lro@technologist.com (lro@technologist.com) Date: Mon, 07 Sep 1998 05:24:00 -0000 Subject: ClearCase don't like files created in bash Message-ID: <199809071224.IAA29600@web04.iname.net> ---- Earnie Boyd wrote: > Here's my guess. You have the cygwin mounts in binary mode and the > ClearCase-PC tool is expecting to have \r\n and not just \n. If this > is the case then clearly (no pun intended) ClearCase-PC has the bug. > > ---lro@technologist.com wrote: > > > > Hello, > > > > I have a problem while using ClearCase to control files created in > BASH. > > If I create a file within a bash session (let say typing "touch >> polo.txt"). Then I can not copy the file to a ClearCase view (which is >> controled by ClearCase). > > I have got the following message: > > --------------------------- > > The system cannot find message for message number 0x13d > > in message file for System. > > 0 files copied. > > --------------------------- > > ... I don't think the problem comes from the \r\n compared to \n. Indeed, even if the files are empty (e.g. creating a file with touch), I still have the problem. But it might come from the end of file caracter : CTRL-Z (DOS) or CTRL-D (Unix). You told me that Cygwin is mounted in binary mode: I didn't mount anything. I only use my existing drives on NT. Should I mount something with some options to avoid these problems ? I am going to try the ClearCase Unix mode if you think that is a file format issue. BUT still I don't understand something, if the files were created with \r\n I should be able to see the difference in notepad. And I CAN NOT. Theses files ares editable in notepad and they have the genuine format. PS: Is there a way to look at the contents of my file in hexa mode. And more precisely at end of file caracter ? I used to use debug for that but I don't know how to use it anymore. Still looking, Laurent -------------------------------------------------------------------------------- -------------------------------\r\nGet your free email from altavista.iname.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From eldrik@logrus.com Mon Sep 7 09:29:00 1998 From: eldrik@logrus.com (Bruce Lysik) Date: Mon, 07 Sep 1998 09:29:00 -0000 Subject: "more" command Message-ID: <01BDDA51.5A6645A0@quicksilver> Has anyone put together a "more" command? I've been poking around, and can't find any source. -- Bruce Z. Lysik http://members.tripod.com/~eldrik/ "Invincible, abashed the devil stood, and felt how awful goodness is." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Mon Sep 7 09:29:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Mon, 07 Sep 1998 09:29:00 -0000 Subject: Installshield References: <000701bdd85a$3e140e80$0c0aa8c0@harry.scoutsys.com> Message-ID: <199809071629.MAA03724@venus.solidum.com> >>>>> "Hugh" == Hugh Winkler writes: Hugh> I would like to second, third, and fourth the sentiments others have Hugh> expressed here, that Cygnus ought to dump Installshield in favor of a zip Hugh> file, a .reg file, and a README describing changes to make to scripts in Hugh> case you install somewhere besides the default. I agree that the ZIP file and friends should be there. I suggest that if there is any desire to have InstallSheild available that it should simply install a program that knows how to run unzip, edit the above file and display the README... That way you get the best of both worlds. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From leonid@EE.Princeton.EDU Mon Sep 7 17:31:00 1998 From: leonid@EE.Princeton.EDU (Leonid Rokhinson) Date: Mon, 07 Sep 1998 17:31:00 -0000 Subject: configuring telnetd Message-ID: Hi, everyone, I have a few minor problems with telnetd: first, it does not echo the commands on my SUN telnet. Second, how I can set bash properly, so it would read .bashrc from the home directory (my passwd file has the following line: leonid::1000:513:Leonid Rokhinson://c/usr/leonid:/bin/bash but how I can add -rcfile option, for example? --Leonid - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dahms@ifk20.mach.uni-karlsruhe.de Mon Sep 7 17:31:00 1998 From: dahms@ifk20.mach.uni-karlsruhe.de (dahms@ifk20.mach.uni-karlsruhe.de) Date: Mon, 07 Sep 1998 17:31:00 -0000 Subject: Linking against .lib libraries Message-ID: <009CBE5C.04303840.15726@ifk20.mach.uni-karlsruhe.de> Hi Earnie, you wrote: : Basically you need to create a somelib.def file from the `nm : --defined-only --demangle somelib.lib | grep ' [DCT] ' > somelib.def'. : Then add `EXPORTS' as the first line to the file. Then use dlltool : to create the libsomelib.a file. To avoid manual editing, try (untested): nm --defined-only --demangle somelib.lib|\ (echo EXPORTS;grep ' [DCT] ')>somelib.def Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Mon Sep 7 18:17:00 1998 From: cgf@cygnus.com (Christopher Faylor) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> <35F3608B.F1C8077B@ina.de> <19980907003431.A7851@cygnus.com> <35F3AF33.1BDEB45A@ina.de> Message-ID: <19980907153734.B11287@cygnus.com> On Mon, Sep 07, 1998 at 12:02:27PM +0200, Alexander Kriegisch wrote: >Hello Christopher! > >> There is obviously a blank line following the mail header. > >There seems to be a misunderstanding. I did not mean the top-level mail >header (which is indeed okay), but the (missing) blank line after the >(also missing) sub-part header (the mail has a MIME multipart type, and >every part has a header of its own): Look, not to beat a dead horse, but the RFC you were quoting does not mention MIME in any way. It was written in 1982 and refers to the format of ARPA INTERNET TEXT MESSAGES. It is referenced in the appropriate MIME RFC but I'm not sure that it has any bearing on this problem. > 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS-- > 2 - > For help on using this list (especially unsubscribing), send a > message to "gnu-win32-request@cygnus.com" with one line of > text: "help". > >Line #1 is the boundary separating the before-last sub-part from the >last one. Line #2 ist the first line of the last sub-part. As it is not >blank it is regarded as a header line, which is wrong. > >Just for comparison a valid sub-part from the same mail message: > > 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS > 2 Content-Type: text/plain; charset=us-ascii > 3 Content-Transfer-Encoding: 7bit > 4 > 5 Hi folks, > > this is the first draft of the gnuwin32 mini FAQ > (...) > >Here we also have our boundary (line #1). Now there is a header (lines >#2, #3), the required blank line (#4) ans the actual beginning of the >sub-part body (from #5 on). > >I hope I could make the issue clear this time: Not the whole mail is >wrong, but the very last sub-part. Some mail clients may tolerate this >RFC violation, but not ours. It is just a bit more stringent in this >respect. I think the RFC in question here is RFC 1341. It says: There appears to be room for additional information prior to the first encapsulation boundary and following the final boundary. These areas should generally be left blank, and implementations should ignore anything that appears before the first boundary or after the last one. That would suggest that it is ok for us to put anything we want after the separator. -- cgf@cygnus.com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dbe@wgn.net Mon Sep 7 18:17:00 1998 From: dbe@wgn.net ($Bill Luebkert) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> <35F3608B.F1C8077B@ina.de> <19980907003431.A7851@cygnus.com> <35F3AF33.1BDEB45A@ina.de> Message-ID: <35F44D17.B3E897AE@wgn.net> Alexander Kriegisch wrote: > > Hello Christopher! > > > There is obviously a blank line following the mail header. > > There seems to be a misunderstanding. I did not mean the top-level mail > header (which is indeed okay), but the (missing) blank line after the > (also missing) sub-part header (the mail has a MIME multipart type, and > every part has a header of its own): > > 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS-- > 2 - > For help on using this list (especially unsubscribing), send a > message to "gnu-win32-request@cygnus.com" with one line of > text: "help". > > Line #1 is the boundary separating the before-last sub-part from the > last one. Line #2 ist the first line of the last sub-part. As it is not > blank it is regarded as a header line, which is wrong. > > Just for comparison a valid sub-part from the same mail message: > > 1 ----=_35eb3be341926316052e3279.MFSBCHJLHS > 2 Content-Type: text/plain; charset=us-ascii > 3 Content-Transfer-Encoding: 7bit > 4 > 5 Hi folks, > > this is the first draft of the gnuwin32 mini FAQ > (...) > > Here we also have our boundary (line #1). Now there is a header (lines > #2, #3), the required blank line (#4) ans the actual beginning of the > sub-part body (from #5 on). There is a difference between a sub-part and the last part which can have a trailing epilogue. See below. > I hope I could make the issue clear this time: Not the whole mail is > wrong, but the very last sub-part. Some mail clients may tolerate this > RFC violation, but not ours. It is just a bit more stringent in this > respect. I'm no expert, but it looks OK to me. The spec says: ------------------------------------------------------------- multipart-body := preamble 1*encapsulation close-delimiter epilogue encapsulation := delimiter body-part CRLF delimiter := "--" boundary CRLF ; taken from Content-Type field. ; There must be no space ; between "--" and boundary. close-delimiter := "--" boundary "--" CRLF ; Again, no space by "--", preamble := discard-text ; to be ignored upon receipt. epilogue := discard-text ; to be ignored upon receipt. discard-text := *(*text CRLF) body-part := <"message" as defined in RFC 822, with all header fields optional, and with the specified delimiter not occurring anywhere in the message body, either on a line by itself or as a substring anywhere. Note that the semantics of a part differ from the semantics of a message, as described in the text.> ------------------------------------------------------------- The part you are questioning would constitute the epilogue the way I read it. Therefore, my guess is that the problem is with your mail client, not the message. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles / ) /--< o // // Mailto:dbe@wgn.net -/-' /___/_<_ This is a win32-ism. When a user who is a member of the BUILT-IN Administrators group creates a file, ownership of the file is set to the BUILT-IN Administrators group. The Win32 API layer is doing this, not the NT kernel and not NTFS. Jason Zions Softway Systems Inc., http://www.interix.com Interix: makes an NT system look an awful lot like a UNIX system -----Original Message----- From: Matthew O. Persico [ mailto:mpersico@erols.com ] Sent: Saturday, September 05, 1998 9:49 PM To: gnu-win32@cygnus.com Subject: owner/group of files confused Greetings. I have a weird situation: The output of mkpasswd -l is this: Administrator::500:513:::/bin/sh donna::1001:513:Donna M. Persico::/bin/sh Guest::501:513:::/bin/sh matthew::1000:513:Matthew O. Persico::/bin/sh and is the contents of /etc/passwd The output of mkgroup -l is: None::513: Everyone::0: and is the contents of /etc/group The output of mkpasswd -g is this: Administrators::544:0::: Backup Operators::551:0::: Guests::546:0::: Power Users::547:0::: Replicator::552:0::: Users::545:0::: and is the contents of nothing. I am logged into NT 4.0 SP3 as matthew. When this account 'touch'es a new file and the account is set up under NT's administration tools as being in the Users group, the new file is owned by matthew. Unfortunately, because of some crufty piece of security software I need for remote loging into work, I must also put 'matthew' in the NT Administrators group, again using NT's user admin tools. After I do that, when the account 'matthew' 'touch'es a file, is it owned by user 544. Now, there is no 544 user, and no 544 group as defined by /etc/group BUT there is a 544 de-facto group snarfed from the NT view of things, as evidenced by the fact the mkpasswd -g output. It appears that the code that assigns ownership to filesystem objects is confused vis-a-vis the multiple groups that the user is in in the NT world, the user account itself and the /etc files. Any suggestions? -- #!/usr/bin/perl -- Matthew O. Persico print "Just Another Perl Neophyte\n"; ## Simplicity is a blessing when you're ## supporting the program at 2AM - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 7 18:17:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: owner/group of files confused References: <35F2061E.2A6E22A4@erols.com> Message-ID: <70RG$vJppfB@mike.franken.de> Hi Matthew, [...] >The output of mkpasswd -l is this: > [...] >and is the contents of /etc/passwd No, it isn't. The output of mkpasswd comes directly from the NT SAM. Maybe you redirected it to /etc/passwd some time, so both are equal. > >The output of mkgroup -l is: [...] >and is the contents of /etc/group Same here. > >The output of mkpasswd -g is this: [...] >and is the contents of nothing. It also comes from the NT SAM, not from some plain text file. [...] > >Any suggestions? No, no explanations and no hints - sorry. But a "same problem here". Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 7 18:17:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: This program cannot be run in DOS mode?!? References: <00ca01bdda17$9e87e110$b60bc3d1@TURING> Message-ID: <361b5b4d.13775708@mail.weiser.saale-net.de> Hello Jeff, you wrote: >X:\c>usertools.exe >This program cannot be run in DOS mode. Seems like binary mode of your ftp client wasn't enabled while downloading. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Mon Sep 7 18:17:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: Windows98 + inetutils Message-ID: Hello, I'm not sure if any of this has passed through the list before, for I did not see anything relative in any of the recent archives, but I have a few questions on the inetutils package running under Windows98. First things first, here's something that's really been annoying me, the ftp client in inetutils is not functioning, here's what I get when I do the following: ether [1]:~# ftp ftp.sampleftphost.com ftp: fdopen failed. ftp> Does anybody have any suggestions on how to fix this problem? I'm a heavy user of console ftp, and the one provided by Windows does not seem to enjoy running under bash too well. Also, a few questions regarding inetd under Windows98; I've succesfully compiled all of the required binaries (aka, inetd.exe, telnetd.exe, etc), and can run inetd fine, but where exactly is it looking for a configuration file? If i simply create an /etc/inetd.conf will it look here, or is it reading it from somewhere else? I'm only wondering, because running it stock, it loads all services, I'm wondering where it's reading these services from. Also, as far as remote logins are concerned (obviously it will be for mere personal use) how is this controlled? Can I simply just setup an /etc/passwd, and /etc/group file, and when inetd is setup it will accept logins using the passwd file? Any information on any of this will be greatly appreciated -- I haven't found any web resources for configuring inetd under Windows '98. Thanks, Ilsundal - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 7 18:17:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: This program cannot be run in DOS mode?!? References: <00ca01bdda17$9e87e110$b60bc3d1@TURING> Message-ID: <70RGahOKpfB@mike.franken.de> Hi Jeff, X:\c>>dir usertools.exe > Volume in drive X is Mainline > Volume Serial Number is 14C7-1363 > > Directory of X:\c > >09/06/98 06:18p 3,225,601 usertools.exe > 1 File(s) 3,225,601 bytes > 0 Dir(s) 4,523,196,416 bytes free ls -l usertools.exe -rw-r--r-- 1 mh IIa34 3213888 Apr 24 23:39 usertools.exe This is usertools.exe from B19 - so it seems, as if the file sizes are different. Perhaps you got it with some Windows ftp client and forgot to say "bin" before "get" ? Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hughw@scoutsys.com Mon Sep 7 18:17:00 1998 From: hughw@scoutsys.com (Hugh Winkler) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: cc1plus.exe: typo causes STATUS_ACCESS_VIOLATION Message-ID: <000001bddab0$f8ae1760$0c0aa8c0@harry.scoutsys.com> // this is file cc1bug.cpp (n.b. bug is for c++ program) // demonstrates a bug in // gcc version egcs-2.91.57 19980901 (egcs-1.1 release) // typo in function name causes STATUS_ACCESS_VIOLATION in cc1plus.exe // command line was gcc cc1bug.cpp int foo@(void) //typo { int hr = 0; hr = 0; //commenting out this line will cause no access violation } //Hugh Winkler //Scout Systems, Inc. //hughw@scoutsys.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Mon Sep 7 18:17:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: Window Managers + XFree under '98. Message-ID: Hello, I was wondering if it was possible to load an alternative window manager under windows after successfully getting XFree compiled, and already having a Windows XServer installed on the system. I already have a few window managers successfully compiled under cygwin32, but cannot run them because it says there is already a window manager running (Windows I'm assuming), has anybody ever here ever actually replaced the interface? (and no, litestep doesn't count.) :) Any input would be appreciated. :) Thanks, Ilsundal - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 7 18:17:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: Installshield References: <000701bdd85a$3e140e80$0c0aa8c0@harry.scoutsys.com> Message-ID: <70RGa6ippfB@mike.franken.de> Michael Weiser [michael@weiser.saale-net.de] wrote: [...] >>4. Make an explorer shortcut to cygnus.bat. >AFAIK there's some support for that in perl. But I don't know for >sure... It is, but I don't know, whether this module (Win32::Shortcut) is available for a cygwin32 aware version of Perl. At least you can't compile it with gcc 8-/ >-- >bye, Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dahms@ifk20.mach.uni-karlsruhe.de Mon Sep 7 18:17:00 1998 From: dahms@ifk20.mach.uni-karlsruhe.de (dahms@ifk20.mach.uni-karlsruhe.de) Date: Mon, 07 Sep 1998 18:17:00 -0000 Subject: calloc() more then 140MB under cygwin b19.1? Message-ID: <009CBE5F.6DB96720.15728@ifk20.mach.uni-karlsruhe.de> Hi, I finally was forced to test cygwin b19.1, because my prog runs for hours under Interix (formerly OpenNT), whereas it's extremely fast under Linux, using about 300 out of 512MB RAM. Under b19.1, I get NULL from calloc() after only about 140MB. Isn't HEAP_CHUNK_SIZE eliminated? At least I got no such messages... BTW, while I'm typing this, I'm also testing UWIN 1.51 with egcs. It's not yet finished and took already seven times the CPU of Linux! Could it be a general NT4.0SP3 alloc/free performance problem? Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Mon Sep 7 23:22:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Mon, 07 Sep 1998 23:22:00 -0000 Subject: Mailing list admin, please read this! References: <35F00A85.502D153A.cygnus.gnu-win32@ina.de> <6ss97p$ks5$1@cronkite.cygnus.com> <35F3608B.F1C8077B@ina.de> <19980907003431.A7851@cygnus.com> <35F3AF33.1BDEB45A@ina.de> <35F44D17.B3E897AE@wgn.net> Message-ID: <35F4C256.318E48FC@ina.de> Bill, Christopher! I just read you messageas concerning epilogues. You are right, *I have been wrong*. My MIME decoder (which I "inherited" from an ex-colleague some months ago) does not know anything about epilogues and thus treats all entities separated by MIME boundaries equally as body parts. #-) This is the end of this thread. I thank all of you for your comments and your patience. Best regards -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsab@thessal.singular.gr Mon Sep 7 23:22:00 1998 From: jsab@thessal.singular.gr (John Sabaziotis) Date: Mon, 07 Sep 1998 23:22:00 -0000 Subject: Does SZ exist in GNU32 ? Message-ID: ???? am looking for a compiled version of unix SZ (Z-modem transfer) to use on my telnetD for NT, is there a GNU32 SZ available ? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Mon Sep 7 23:26:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Mon, 07 Sep 1998 23:26:00 -0000 Subject: cc1plus.exe: typo causes STATUS_ACCESS_VIOLATION References: <000001bddab0$f8ae1760$0c0aa8c0@harry.scoutsys.com> Message-ID: On Mon, 7 Sep 1998, Hugh Winkler wrote: > // this is file cc1bug.cpp (n.b. bug is for c++ program) > // demonstrates a bug in > // gcc version egcs-2.91.57 19980901 (egcs-1.1 release) > // typo in function name causes STATUS_ACCESS_VIOLATION in cc1plus.exe > > // command line was gcc cc1bug.cpp > > int foo@(void) //typo > { > int hr = 0; > hr = 0; //commenting out this line will cause no access > violation > } The crash is due to change that I had made, and is fixed. I'll issue an update sometime soon with fixed cc1plus.exe. Here's what you get now (and will get with stock/vanilla egcs 1.1): cc1bug.cc:2: syntax error before `@' cc1bug.cc:5: warning: ANSI C++ forbids declaration `' with no type cc1bug.cc:5: abstract declarator `int' used as declaration cc1bug.cc:6: parse error before `}' Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Klaus.Nicklas@pcm.bosch.de Tue Sep 8 01:43:00 1998 From: Klaus.Nicklas@pcm.bosch.de (Nicklas Klaus (AT/ESP1)) Date: Tue, 08 Sep 1998 01:43:00 -0000 Subject: B19: As bug (NT) Message-ID: <01CDE14BF507D2119A0C00805FBBB7133BCD7C@ermail3.er.bosch.de> This simple C-Source file produces an access violation in As.exe C-Source: void AsError( void ); void (* const FuncTable[])() = { ( void (*)()) AsError }; void AsError( void ) { } Compiler Output: Using builtin specs. gcc version 2.7-B19 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Di386 -D_WIN32 -D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__i386__ -D_WIN32 -D__CYGWIN32__ -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -gcoff3 -Wall -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di486 -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i486__ AsError.C AsError.i GNU CPP version 2.7-B19 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: End of search list. cc1 AsError.i -quiet -dumpbase AsError.c -m486 -a -gcoff3 -O0 -Wall -version -o AsError.s GNU C version 2.7-B19 (i386-cygwin32) compiled by GNU C version 2.7-97r2aBeta. as -o AsError.O AsError.s (as.exe 1003) Exception: STATUS_ACCESS_VIOLATION (as.exe 1003) Dumping stack trace to as.exe.core GCC.EXE: Internal compiler error: program as got fatal signal 0 AsError.O: file not recognized: File truncated GNU ld version 2.8-B19 (with BFD 2.8-97r2aBeta) //LD.EXE: mode i386pe As.exe.core: (as.exe 1003) Exception trapped! (as.exe 1003) exception C0000005 at 43B2E6 (as.exe 1003) exception: ax 0 bx 4 cx 2AD16B4 dx 0 (as.exe 1003) exception: si 0 di 2AD1A00 bp 245F9E8 sp 245F9D4 (as.exe 1003) exception is: STATUS_ACCESS_VIOLATION (as.exe 1003) Stack trace: (as.exe 1003) frame 0: sp = 0x245F700, pc = 0x1000A26C (as.exe 1003) frame 1: sp = 0x245F824, pc = 0x77F94512 (as.exe 1003) frame 2: sp = 0x245F848, pc = 0x77F88EEB (as.exe 1003) frame 3: sp = 0x245F8D4, pc = 0x77F76266 (as.exe 1003) frame 4: sp = 0x245F9E8, pc = 0x42C568 (as.exe 1003) frame 5: sp = 0x245FD54, pc = 0x422DFC (as.exe 1003) frame 6: sp = 0x245FDAC, pc = 0x40C94A (as.exe 1003) frame 7: sp = 0x245FDBC, pc = 0x403F19 (as.exe 1003) frame 8: sp = 0x245FDD0, pc = 0x10006B59 (as.exe 1003) frame 9: sp = 0x245FF94, pc = 0x10006B6C (as.exe 1003) frame 10: sp = 0x245FFA0, pc = 0x4431C9 (as.exe 1003) frame 11: sp = 0x245FFB0, pc = 0x40103A (as.exe 1003) frame 12: sp = 0x245FFC0, pc = 0x77F1B304 (as.exe 1003) frame 13: sp = 0x245FFF0, pc = 0x0 (as.exe 1003) End of stack trace System: Windows NT 4.0 SP3 Build 1381 Sincerly Klaus Nicklas, Robert Bosch GmbH, 64711 Erbach Mit freundlichen Gr????????en Klaus W. Nicklas - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Tue Sep 8 03:19:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Tue, 08 Sep 1998 03:19:00 -0000 Subject: Window Managers under Windows Message-ID: Hello, Many people have ported XFree over to cygwin32, which include xterm, rxvt, xclock, etc., which all perform flawlessly with a Windows X Server, but I cannot seem to get another window manager running. I get a generic" Cannot load, another WM is running;" I'm assuming this other WM that is running is infact Windows itself, but I've noticed many people porting popular window managers over to windows using cygwin32, one of them being Afterstep. I'm assuming that considering people have taken time to port these window managers over to windows, that they do infact function -- any ideas on how to go about using one without getting that error message? If it helps any, I'm running cygwin32 b19, and Windows 98. Thanks, Ilsundal - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 8 04:09:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 08 Sep 1998 04:09:00 -0000 Subject: Problem with chmod on WINNT Message-ID: <19980908110924.19858.rocketmail@send102.yahoomail.com> ---Alice Dubois wrote: > > Hi, Hi Alice, > > I'm trying to use cygnus on WINNT but the chmod command doesn't work. > I have certainly forgotten something but I don't know what. > Help would be welcome. If you are on a NTFS then add `ntea' for extended attributes to the CYGWIN32 environment variable. If your on FAT then you could still do this but there is an extra file that will get created to store the extened attributes that gets huge with time; so, I suggest that you don't do it for FAT. If you are trying to execute a script then bash will execute it regardless of the execute bit set on in the `ls'. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 8 05:03:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 08 Sep 1998 05:03:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <19980908115632.9227.rocketmail@send104.yahoomail.com> ---Mumit Khan wrote: > > On Mon, 31 Aug 1998, Geoffrey Noer wrote: > > > > > Perhaps -Dunix should be added to the define list whenever > > __CYGWIN32__ is defined? Linux includes -Dunix and -Asystem(posix) in > > CPP_PREDEFINES (looking at gcc/config/i386/linux.h). > > > > I see no problem in cygwin32 specs defining "unix", but I have yet to > see a good argument for getting rid of _WIN32 from x86-win32 targets, > especially from mingw32. > The `argument' I have for removing the _WIN32 from cygwin32 (I'll live with mingw32) is that there exists code that already has some porting to WIN32 and it gets in the way of wanting to build the __UNIX__ version under WIN32. Since this is the goal of the Cygnus Project then it would be best served to remove the definitions of _WIN32. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From io@harlequin.co.uk Tue Sep 8 05:03:00 1998 From: io@harlequin.co.uk (io) Date: Tue, 08 Sep 1998 05:03:00 -0000 Subject: b19.1: question about "wait for job" Message-ID: <199809081202.NAA11554@woof.man.harlequin.co.uk> Thank you for your assistance. Your replies pointed me at ash as the culprit. [I wasnt sure how to submit this to the same thread in the mailing list but here goes] Although I used bash as d:/bin/sh.exe, I forgotten to change the main definition in d:/usr/H-i386-cygwin32/bin/sh.exe, which was still using ash. The setting in my mount path was "d:\usr\H-i386-cygwin32\bin" -> "/bin" which meant "#!/bin/sh" was really calling d:/usr/H-i386-cygwin32/bin/sh.exe, instead of d:/bin/sh.exe as expected. The problem was resolved by renaming bash.exe accordingly. However, I have since found another oddity where the above fix, showed up problems with bash instead and shows itself as a: "Broken pipe" when carrying out decompression. I'll submit it afresh with a relevent subject and example accordingly. Schzen - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 8 07:27:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 08 Sep 1998 07:27:00 -0000 Subject: egcs-1.1/mingw32 on W95? Message-ID: Anybody running egcs-1.1/mingw32 on W95? If so, are you having bizarre problems? One user using Japanese version of W95 Version 4.00.950 C is having an interesting problem where gcc can't find cpp, even with all the right settings. I'll be very interested in experience from W95 users. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From joz@mentor-systems.com Tue Sep 8 07:53:00 1998 From: joz@mentor-systems.com (Jonathan Storey) Date: Tue, 08 Sep 1998 07:53:00 -0000 Subject: Coolview/Win98/Assumptions! References: <3.0.5.32.19980907181746.00a15b60@pop.ma.ultranet.com> Message-ID: <000201bddb09$98312c70$050120c0@menpc5> > >I have recently upgraded (?!) to Win98 and > >the installation of vanilla b19 works fine, however > >when I replace the cygwinb19.dll with any of the > >newer versions incl. Sergey's coolview, bash > >displays the following: > > > >bash -login :- > >//.bash_profile: invalid argument > > > >bash :- > >//.bash_rc: invalid argument > > > >and... > > > >//.bash_logout: invlalid argument > >when exiting (logging out) > > > >The tools etc. seem to still work fine > >but I'd rather not see these messages, > >I don't get this problem under Win95 > > > >Any Ideas? anyone, I've found no reference > >to such a problem in the archives/mailing-lists. > > > >Thanx In Advance > > > < Larry Hall says: > Read Sergey's web page about his bash and text/binary mounts. You need to > convert your script files to binary to get rid of these messages... << WHAT SCRIPTS! > I do know about the mounts and how they work. Everyone who has (thankfully) replied or attempted to assist me has assumed that I actually *have* the .bash_profile.... etc. files, the fact is I *don't*, ie. thats why I think that this error message is unreasonable. It should be pointed out that binary mounts are required to be able to use the cygwinb19+ dll's. As I have hardly configured my win98 gnu environment, I shouldn't be given meaningless error messages like this when I haven't even got any .bash* files!!! Regards ___ __ ._) () )__ @thinktank.demon.co.uk ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cabrera@wrc.xerox.com Tue Sep 8 07:53:00 1998 From: cabrera@wrc.xerox.com (Jose I. Cabrera) Date: Tue, 08 Sep 1998 07:53:00 -0000 Subject: Colors..... References: <199809071110.HAA03366@web06.iname.net> Message-ID: <35F53DD1.E246F3C@wrc.xerox.com> Does anyone knows how to put colors on the bash screen? I have a nice utility called NTSh and it has great colors. Anyone? thanks. jose - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From io@harlequin.co.uk Tue Sep 8 07:53:00 1998 From: io@harlequin.co.uk (io) Date: Tue, 08 Sep 1998 07:53:00 -0000 Subject: b19.x coolview: question about "broken pipe" Message-ID: <199809081219.NAA11988@woof.man.harlequin.co.uk> The following example [may] fail [depending on the number of entries in it] >#!/bin/sh >gzip -c -d d:/users/io/work/build/archive/foo.tar.gz | tar tvf - Running this directly in a bash console: >bash2$ gzip -cd d:/users/io/work/build/archive/foo.tar.gz | tar tvf - >-rw-r--r-- 544/Domain Users 698756 1998-09-08 11:42 basis.img >-rw-r--r-- 544/Domain Users 3607012 1998-09-08 11:41 batch.img >-rw-r--r-- 544/Domain Users 822512 1998-09-08 11:43 foreign.img >Broken pipe Running this as a script in a bash console: >bash2$ foo >-rw-r--r-- 544/Domain Users 698756 1998-09-08 11:42 basis.img >-rw-r--r-- 544/Domain Users 3607012 1998-09-08 11:41 batch.img >-rw-r--r-- 544/Domain Users 822512 1998-09-08 11:43 foreign.img >foo: line 3: 30264 Broken pipe gzip -c -d d:/users/io/work/build/archive/foo.tar.gz > 30265 Done | tar tvf - The problem goes away if run using "#!/bin/ash" instead. What is the significance of the "Broken pipe" message? Schzen - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bills@warwick.net Tue Sep 8 08:03:00 1998 From: bills@warwick.net (bills) Date: Tue, 08 Sep 1998 08:03:00 -0000 Subject: cygwinb19.dll affects bash reading .bashrc Message-ID: <01BDDB10.C5E04190.bills@warwick.net> Hi Michael, >>>I've got a strange one here that I can't seem to figure out. > >If I install the 19.3 version of cygwinb19.dll, bash 2.02 stops reading the >.bashrc file. Works fine with either 19.0 or 19.1. Anyone have any idea >what's going on? Problems with non binary mounts and / or non Unix style line endings for text files like bashrc ?<< No, I've checked for that. I don't get error messages or any of the other strange behavior I've come to expect when I mess up the mounts or the line endings. As far as I can tell, bash just stops reading .bashrc. I've tried placing the file on the other drives also (/ is mounted to my D: drive) just in case bash had a funny of where home is, but to no avail. Bill Smithem PGP Fingerprints: RSA 4FEA 9A6A B83B A745 9FE6 104E E35D EB4C DH AB22 8E04 4E0D E8D0 0406 EC9C D20A BCAE 3035 4CD9 Lottery: A Tax On People Who Are Bad At Math - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 8 08:03:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 08 Sep 1998 08:03:00 -0000 Subject: egcs-1.1 C++ problems Message-ID: There are few cases of compiler crash using egcs-1.1 C++ that you may also run into. These are fixed in my private sources, and I'll do an update after running the testsuite. for example, the following crashes the compiler: extern "C" foo (); It still doesn't work with my changes, but at least it stops the crash and prints the following error message: cc1bug.cc:1: warning: ANSI C++ forbids declaration `' with no type cc1bug.cc:1: abstract declarator `int' used as declaration This is a bug in egcs-1.1 and I've reported this to the egcs folks. As a workaround, you need to do the following (and the right thing to do): extern "C" int foo (); This also means that folks using old X11 headers will tons of trouble since X11 leaves out the return type from lots of the prototypes. You can add "int" as a workaround, which is a good thing in the long term in any event. The other problem has to do getting multiple definition errors in some cases where you shouldn't (Thanks to Colin Peters for reporting the bug). I've fixed this and will be in the update. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Tue Sep 8 08:03:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Tue, 08 Sep 1998 08:03:00 -0000 Subject: ClearCase don't like files created in bash References: <199809071224.IAA29600@web04.iname.net> Message-ID: <199809081501.LAA09093@venus.solidum.com> Unlike in DOS with ^Z, ^D never actually appears in the file with Unix. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dnewbold@ivs.com Tue Sep 8 09:01:00 1998 From: dnewbold@ivs.com (Dennis Newbold) Date: Tue, 08 Sep 1998 09:01:00 -0000 Subject: server X References: <35F0E622.D75AA9D1@wanadoo.fr> Message-ID: <35F55297.F15C5A88@ivs.com> Hi administrateur, I'm not sure if its compatible with the Cygwin software package, but since they both run under NT/Win95, it might. What I'm referring to is the Free MI/X X Server for WIN32 platforms. http://tnt.microimages.com/www/html/freestuf/mix/ Its worth a look, and the price is right. Let us know if it works for you. Thanks, and have a nice day. |----------------------------------------| | | | The way to be happy is to be good. | | | |----------------------------------------| administrateur wrote: > Hi, > > I'm asking myself a question. Don't we need to port the X server part under > gnu win ? In fact, it's the only part we have to buy to make the Xclient > stuff works. Is it an idea or do you consider that the free stuff is > sufficient ? > > salutations > > bruno patin > dassault aviation > france > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From 0994cicc@s1.cise.it Tue Sep 8 09:01:00 1998 From: 0994cicc@s1.cise.it (Massimo CICCOTELLI) Date: Tue, 08 Sep 1998 09:01:00 -0000 Subject: Loading gnu made DLL with MSVC Message-ID: <9809081517.AA01105@dns.cise.it> Hi all!! We are looking with great interest at the debate on how to make DLL with gcc which can be loaded by MSVC. Picking up from different mails on the argument and after some trials, we managed to build up a simple DLL (with egcs-1.0.2- mingw32 by Mumit) which can correctly loaded in MSVC 5.0. Here is how: - buid test.dll and test.exe which uses it using the following makefile ---------------------------------- makefile ----------------------------------------------- default: test.exe # test.exe: test.o libtest.a gcc test.o -o test.exe -L./ -ltest # import: libtest.a libtest.a: test.dll test-exp.def dlltool --dllname test.dll --def test-exp.def --output-lib libtest.a # export: test.dll test.dll: testlib.o test-exp.def gcc -mdll -o junk.tmp -Wl,--base-file,test.tmp testlib.o rm junk.tmp dlltool --dllname test.dll --base-file test.tmp --output-exp test.exp --def test-exp.def rm test.tmp gcc -mdll -o test.dll testlib.o -Wl,test.exp rm test.exp testlib.o: testlib.c gcc -c testlib.c test.o: test.c gcc -c test.c ---------------------------------- End of makefile -------------------------------------- where test.c testlib.c and test-exp.def are: ---------------------------------- test.c ----------------------------------------------- #include int main(){ printf(" 2+7=%d\n",intsum(2,7)); printf(" 5+8=%d\n",intsum(5,8)); printf(" 1+4=%d\n",intsum(1,4)); return 0; } ------------------------------- end of test.c -------------------------------------- ------------------------------- testlib.c ---------------------------------------- int intsum(int arg1, int arg2) { return arg1+arg2; } ------------------------------ end of testlib.c ------------------------------ ----------------------------- test-exp.def ---------------------------------- EXPORTS intsum --------------------------- end of test-exp.def -------------------------- Now you can run test.exe. Its results should be obvious. Moreover, you can create an import library (.LIB) with MSVC with the following command: lib /DEF:test.def where test.def is the following file: --------------------------- test.def ----------------------------------- LIBRARY test EXPORTS intsum ------------------------- end of test.def --------------------------- obtaining test.lib. Finally you can create a new test.exe with MSVC with the following command: cl test.c /link test.lib Another way of using test.dll is by loading it directly from the source code, that is, by means of the following code: ---------------------------- loadlib.c ---------------------------------------- #include #include int main() { HINSTANCE dllHandle=NULL; typedef int (*INTSUM) (int,int); INTSUM intsum; dllHandle=LoadLibrary("test.dll"); intsum=(INTSUM)GetProcAddress(dllHandle,"intsum"); printf(" 2+7=%d\n",intsum(2,7)); printf(" 5+8=%d\n",intsum(5,8)); printf(" 1+4=%d\n",intsum(1,4)); return 0; } -------------------------- end of loadlib.c ---------------------------------- You can create loadtest.exe with gcc by means of the following makefile: --------------------------- makeload ------------------------------------ # default: loadlib.exe # loadlib.exe: loadlib.o gcc loadlib.o -o loadlib.exe # loadlib.o: loadlib.c gcc -c loadlib.c -------------------------- end of makeload --------------------------- or with MSVC with the following command: cl loadlib.c Hope this helps! Ciao, Massimo & Lorenzo - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From 0994cicc@s1.cise.it Tue Sep 8 09:01:00 1998 From: 0994cicc@s1.cise.it (Massimo CICCOTELLI) Date: Tue, 08 Sep 1998 09:01:00 -0000 Subject: Loading gnu made DLL with MSVC Message-ID: <9809081457.AA01063@dns.cise.it> Hi all!! We are looking with great interest at the debate on how to make DLL with gcc which can be loaded by MSVC. Picking up from different mails on the argument and after some trials, we managed to build up a simple DLL (with egcs-1.0.2- mingw32 by Mumit) which can correctly loaded in MSVC 5.0. Here is how: - buid test.dll and test.exe which uses it using the following makefile ---------------------------------- makefile ----------------------------------------------- default: test.exe # test.exe: test.o libtest.a gcc test.o -o test.exe -L./ -ltest # import: libtest.a libtest.a: test.dll test-exp.def dlltool --dllname test.dll --def test-exp.def --output-lib libtest.a # export: test.dll test.dll: testlib.o test-exp.def gcc -mdll -o junk.tmp -Wl,--base-file,test.tmp testlib.o rm junk.tmp dlltool --dllname test.dll --base-file test.tmp --output-exp test.exp --def test-exp.def rm test.tmp gcc -mdll -o test.dll testlib.o -Wl,test.exp rm test.exp testlib.o: testlib.c gcc -c testlib.c test.o: test.c gcc -c test.c ---------------------------------- End of makefile -------------------------------------- where test.c testlib.c and test-exp.def are: ---------------------------------- test.c ----------------------------------------------- #include int main(){ printf(" 2+7=%d\n",intsum(2,7)); printf(" 5+8=%d\n",intsum(5,8)); printf(" 1+4=%d\n",intsum(1,4)); return 0; } ------------------------------- end of test.c -------------------------------------- ------------------------------- testlib.c ---------------------------------------- int intsum(int arg1, int arg2) { return arg1+arg2; } ------------------------------ end of testlib.c ------------------------------ ----------------------------- test-exp.def ---------------------------------- EXPORTS intsum --------------------------- end of test-exp.def -------------------------- Now you can run test.exe. Its results should be obvious. Moreover, you can create an import library (.LIB) with MSVC with the following command: lib /DEF:test.def where test.def is the following file: --------------------------- test.def ----------------------------------- LIBRARY test EXPORTS intsum ------------------------- end of test.def --------------------------- obtaining test.lib. Finally you can create a new test.exe with MSVC with the following command: cl test.c /link test.lib Another way of using test.dll is by loading it directly from the source code, that is: ---------------------------- loadlib.c ---------------------------------------- #include #include int main() { HINSTANCE dllHandle=NULL; typedef int (*INTSUM) (int,int); INTSUM intsum; dllHandle=LoadLibrary("test.dll"); intsum=(INTSUM)GetProcAddress(dllHandle,"intsum"); printf(" 2+7=%d\n",intsum(2,7)); printf(" 5+8=%d\n",intsum(5,8)); printf(" 1+4=%d\n",intsum(1,4)); return 0; } -------------------------- end of loadlib.c ---------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From afc@teri.superlink.net Tue Sep 8 10:21:00 1998 From: afc@teri.superlink.net (A. F. Cano) Date: Tue, 08 Sep 1998 10:21:00 -0000 Subject: Summary/Solution Re: Runtime error: Entry point not found Message-ID: <199809081726.NAA24402@speedy.teri.com> Greetings (and thanks to Marcus Hall who provided the critical hint) I was trying to link an import library/DLL with a project compiled and linked with gnu-win32 b19. The smapi.lib (from the IBM Via-Voice speech recognition product) linked fine but caused a run-time error. The link map of the executable showed a garbage "^S" where the first member name of the SMAPI.dll was supposed to be. As correctly pointed out by Marcus, the LIB format is incompatible with the gnu-win32 linker. Dlltool to the rescue! Thanks to Marcus' hint and some further research, I tried using Dlltool to create the smapi.a library. Given the obfuscation of the dll this didn't work. All symbols showed up as undefined. I had to manually generate an smapi.def file (which for those unfamiliar with the Microsoft Way, can be just a list of the required functions, one per line below the following line: EXPORTS Then, passing the manually generated def file to Dlltool, I had a working smapi.a. After copying the smapi.dll to the current directory (so I wouldn't have to deal with config files and/or paths), everything worked. Using Dlltool to generate the def file didn't work, probably due to the format of this particular dll. I encourage everyone that comes from a Unix background (like me) not to fight the hopeless battles against Microsoft bugs and complexity, and instead use gnu-win32 in combination with wxWin/wxGTK to get similar functionality. Thanks again, Marcus. Augustine Cano - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Tue Sep 8 10:30:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Tue, 08 Sep 1998 10:30:00 -0000 Subject: "more" command References: <01BDDA51.5A6645A0@quicksilver> Message-ID: <70VJ6OzKpfB@mike.franken.de> Hi Bruce, >Has anyone put together a "more" command? I've been poking around, and can't >find any source. Would "less" be sufficient ? *less-321* -------- - what is it? - Less is a pager program similar to more (1), but allows backward as well as forward movement within a file. Also, less does not have to read the entire input file before starting. It is also possible to start an editor at any time from this program. - system - Windows NT4 German / SP3 - preliminaries - you first have to install *ncurses-4.1* - replace all "iprintf" in "output.c" with a different, but unique name, for example "less_iprintf" - configure - works without changes - make - works without changes - make install - works without changes - notes - works the same way for less-332 (according to noer@cygnus.com (Geoffrey Noer)) - package availability - on ftp.franken.de - in /pub/win32/develop/gnuwin32/cygwin32/porters/Hirmke_Michael - as less-321-win32-bin.tar.gz - or less-321-win32-bin.zip - contributed by - mh@mike.franken.de (Michael Hirmke) > >-- >Bruce Z. Lysik Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 8 14:37:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 08 Sep 1998 14:37:00 -0000 Subject: Where is whole CyWin FAQ as .ps or .html? References: Message-ID: <19980908143718.56329@cygnus.com> On Wed, Sep 02, 1998 at 07:02:34PM +0300, Jari Aalto+list.cyg wrote: > > I'm looking for full FAQ as one big file, so that I can > print it to printer. Preferrable in .ps or .html format. > The one that's on Cynus.com is awfull, because it has been > divized into zillion parts. The FAQ on the WWW site *is* one big file: http://www.cygnus.com/misc/gnu-win32/faq.html -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 8 14:49:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 08 Sep 1998 14:49:00 -0000 Subject: CDK on Windows98? References: <001b01bdd71d$b57af6c0$421ea8c0@fredrik.gustafson.pc.cybercom.se> Message-ID: <19980908144908.50474@cygnus.com> On Thu, Sep 03, 1998 at 11:32:03AM +0200, Fredrik Gustafson wrote: > > Hi! > Is there a simple way (yet) to get CDK up and running on Windows98? > Right now cdk.exe stops with the error message > "Setup is nable to find installation languages in C:\TMP\SETUP.LID file. > Error 105" This is generic install problem unrelated to Win98. Your download was corrupted, /tmp doesn't exist, or something else like that is confused. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Tue Sep 8 15:53:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Tue, 08 Sep 1998 15:53:00 -0000 Subject: calloc() more then 140MB under cygwin b19.1? References: <009CBE5F.6DB96720.15728@ifk20.mach.uni-karlsruhe.de> Message-ID: <35F5B4AA.357EC49@uni-duesseldorf.de> > I finally was forced to test cygwin b19.1, because my prog runs for hours > under Interix (formerly OpenNT), whereas it's extremely fast under Linux, > using about 300 out of 512MB RAM. > > Under b19.1, I get NULL from calloc() after only about 140MB. > Isn't HEAP_CHUNK_SIZE eliminated? At least I got no such messages... > > BTW, while I'm typing this, I'm also testing UWIN 1.51 with egcs. > It's not yet finished and took already seven times the CPU of Linux! > Could it be a general NT4.0SP3 alloc/free performance problem? So, if your are working on that big memory allocs I would consider to use Linux anyway. But try at least b19.2 patch from Sergey at http://www.lexu.ru/sos . Regards, Stipe. -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 8 17:06:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 08 Sep 1998 17:06:00 -0000 Subject: server X References: <35F0E622.D75AA9D1@wanadoo.fr> Message-ID: <19980908170534.07056@cygnus.com> On Sat, Sep 05, 1998 at 09:20:02AM +0200, administrateur wrote: > > I'm asking myself a question. Don't we need to port the X server part under > gnu win ? In fact, it's the only part we have to buy to make the Xclient > stuff works. Is it an idea or do you consider that the free stuff is > sufficient ? Quite a variety of native Win32 ports of X servers should work fine, be it a free or commercial one. You may want to try the free ones first and see how they work for you... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From eldrik@logrus.com Tue Sep 8 18:04:00 1998 From: eldrik@logrus.com (Bruce Lysik) Date: Tue, 08 Sep 1998 18:04:00 -0000 Subject: Trying to compile my own perl... Message-ID: <01BDDB6B.E0213C20@quicksilver> Howdy again, folks! Thanks for all the responses to my question concerning "more". Now I've got another one: After running a copy of ActiveState's win32 perl, I decided to try to compile my own. I noticed off the Ported Software section on the Cygnus site there was a url for perl, pointing to a person's patch. Unfortunately this patch appears fairly dated. Has anyone succeeded in compiling perl lately, and if so, did you have to do anything special? As always, any help is appreciated. -- Bruce Z. Lysik http://members.tripod.com/~eldrik/ "Invincible, abashed the devil stood, and felt how awful goodness is." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anmendes@splicenet.com.br Tue Sep 8 20:32:00 1998 From: anmendes@splicenet.com.br (Antonio Mendes de Oliveira Neto) Date: Tue, 08 Sep 1998 20:32:00 -0000 Subject: Site of distribution of the binary of EGCS 1.1 for mingw32 Message-ID: <35F46469.DF71321A@splicenet.com.br> Hello, I am placing in my pages the binary of the project for mingw32. Following the suggestion of the Martin von Loewis, I created an attribute calling "comobject" that together with the option "-fvtable-thunks" will allow the use of COM objects of Windows (DirectX, ActiveX etc) in the gcc. I placed properly in my distribution files of headers of DirectX adapted for they work with the DirectX5 and C++. It would like that somebody helped me supplying a mirror place for my distribution. Regards Antonio Mendes de Oliveira Neto (new e-mail address: anmendes@splicenet.com.br) Home page in http://www.geocities.com/SiliconValley/Sector/6364/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 8 20:32:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 08 Sep 1998 20:32:00 -0000 Subject: EGCS-1.0.2-Mingw32 Message-ID: <199809090332.UAA11911@cygnus.com> Hi folks, Is there a way to disable mangling for EGCS-Mingw32? I am not sure which switch to set. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 8 23:28:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 08 Sep 1998 23:28:00 -0000 Subject: B19: As bug (NT) References: <01CDE14BF507D2119A0C00805FBBB7133BCD7C@ermail3.er.bosch.de> Message-ID: On Tue, 8 Sep 1998, Nicklas Klaus (AT/ESP1) wrote: > This simple C-Source file produces an access violation in As.exe > > C-Source: > void AsError( void ); > > void (* const FuncTable[])() = > { > ( void (*)()) AsError > }; > > void AsError( void ) > { > } Please upgrade to egcs compilers. B19 compiler is quite old by now. See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for more info. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tomas@ccpa.puc-rio.br Tue Sep 8 23:37:00 1998 From: tomas@ccpa.puc-rio.br (tomas@ccpa.puc-rio.br) Date: Tue, 08 Sep 1998 23:37:00 -0000 Subject: DLL load error: "not a 32-bit library" Message-ID: <3.0.32.19980908190704.00912940@10.72.21.1> >Try out my dllhelpers package which includes both f77 examples and some >extra tools (dllwrap and enhanced dlltool) that makes creating DLLs rather >trivial. I've successfully used your dllhelpers package with egcs 1.1 and cygwin32 in a NT 4.0, SP 3 machine to build dll's, but there are some inexplicable things. My problem involve some dll's not just one and there are dependecy relations between them. These relations are like this: c.dll depends on b.dll and a.dll b.dll depends on a.dll a.dll no dependecy (depends only on cygwin32.dll) so I first build all the static ones and then used it as the source for the dinamic ones. I also had to include the .a versions of the same libraries generated with dlltool to avoid problems of dependencies. Is this the correct procedure? But my original problem was to load the dll (say c.dll) with LoadLibrary. Is that possible? And if my application was compiled with MSVC++? Thanks in advance, Tomas - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmamer@anderson.ucla.edu Tue Sep 8 23:37:00 1998 From: jmamer@anderson.ucla.edu (John W. Mamer) Date: Tue, 08 Sep 1998 23:37:00 -0000 Subject: newbie win95 bash crash problem Message-ID: <35F62131.A6FFE65A@anderson.ucla.edu> Hi! I've read through the FAQ's and the mail archives. I've seen several people mention this problem, but no solutions offered. I installed B19.1 which contains the latest bash. Everything seems to run fine, I've compiled a bunch of code using gcc, the commands seem to work predictably. However, if I type garbage at bash, after a few tries it hangs. For example if I type "dc" at the comand prompt instead of "cd" it will comeback "command not found" and give me a new prompt maybe 3 times in a row, and on the fourth time it hangs win95. Sometimes it hangs on the first try, sometimes on the third, but always before the 6th...... Any help would be appreciated. John Mamer jmamer@anderson.ucla.edu - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 8 23:37:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 08 Sep 1998 23:37:00 -0000 Subject: *.COM file execution References: <199809021745.KAA07190@helios.SLAC.Stanford.EDU> Message-ID: <19980908144022.65259@cygnus.com> On Wed, Sep 02, 1998 at 10:45:11AM -0700, Paul E. Raines wrote: > > I just installed B19.1 and after playing around for a few minutes > found that bash would not execute *.com files (e.g. more.com). > Actually, if you try to execute them, bash treats them as scripts > and reports a syntax error. Is this a known limitation? I have > searched the FAQ and mail archives to no avail. The necessary support in Cygwin32 is fixed in the development sources / next major release: * spawn.cc (perhaps_suffix): If report_failure_p is non-zero this function will search for (PROG is the pathname to the executable file) PROG.exe, PROG, PROG.com, PROG.bat, and PROG.cmd and return either the full path name if found or NULL if not. (spawn_guts): If the file name of the executable end in either .exe, .com, .bat, or .cmd we assume that it is not a script file and therefore do not open the file to determine if it is. I'm not sure whether bash will need modification to deal with them or not. (Probably not?) -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Wed Sep 9 01:19:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Wed, 09 Sep 1998 01:19:00 -0000 Subject: (Fwd) parse error in CS Message-ID: <199809090819.BAA24543@cygnus.com> ------- Forwarded Message Follows ------- From: Self To: gnu-win32@cygnus.com Subject: parse error in CS Send reply to: pgarceau@teleport.com Date sent: Wed, 9 Sep 1998 01:06:41 -0700 Sorry about that folks...got my mailing lists mixed up... Nothing real can be threatened. Nothing unreal exists. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kevq-ml@banana.demon.co.uk Wed Sep 9 02:55:00 1998 From: kevq-ml@banana.demon.co.uk (Kevin F. Quinn) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: Colors..... Message-ID: <35F6513A.F9AD1EE6@banana.demon.co.uk> "ls --color" displays colour in bash screens for me, so presumably colour works fine in bash. Here's the termcap entry I use (from the Berkeley stuff): # Copyright (c) 1980 Regents of the University of California. # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # AT386|at386|at/386 console:\ :am:bw:eo:xo:xt:bs:\ :co#80:li#25:kn#4:\ :ae=^P:al=\E[1L:cd=\E[0J:ce=\E[0K:cl=\E[2J\E[H:\ :cm=\E[%i%2;%2H:ct=\E[3g:dc=\E[1P:dl=\E[1M:ho=\E[H:\ :ic=\E[1@:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\ :k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:kb=\b:kd=\E[B:\ :kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:nd=\E[C:se=\E[m:\ :so=\E[7m:st=\EH:ue=\E[m:up=\E[A:us=\E[4m:nl=\E[B:\ :ko=do,nd,up,ho: -- Kevin F. Quinn Web: http://www.banana.demon.co.uk/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Wed Sep 9 02:55:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: parse error in CS Message-ID: <199809090803.BAA24000@cygnus.com> Greetings, I've attempted to compile CS a couple of different ways for Gnu-Win32 port. Both compiles aborted (make mz) with the following error: render/graph3d.cpp in method 'csGraphics3d::csGraphics3d(int, char **): render/graph3d.cpp:91:parse error before '(' After checking the line here is what I found: line 89 follows: csGraphics3D::csGraphics3D (int argc, char* argv[]) { (line 91: the next line has parse error) CHK (Graph2D = new SysGraphics2D(argc, argv)); z_buffer = NULL; z_buf_mode = ZBuf_None; SetDimensions (FRAME_WIDTH, FRAME_HEIGHT); cache = NULL; } Not sure what CHK is, but it appears to check the memory; added an if defined to #include "utiil/memory.h", but error didn't go away. CHK appears to be causing the error. I am forcing software rendering by using an #if defined(__MINGW32__) to ignore #include "win32/win32.h" in "system/system.h" since the current implementation of Win32 assumes that if "OS_WIN32" is enabled then so is D3D; D3D doesn't work under Gnu-Win32(egcs-mingw32). Can someone enlighten me on what the CHK function is? Thanks for your replies. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 9 02:55:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: B19: [HELP] Can I link cygwinb19.dll statically? References: <35ED88B3.5487BE2A@micro.ti.com> Message-ID: <19980908164347.24771@cygnus.com> On Wed, Sep 02, 1998 at 02:04:36PM -0400, Adam Stoller wrote: > > In testing, we tried to run the tools on machines (winnt and win95) in > which the Cygnus distribution had NOT been installed. > This led to error messages about missing CYGWINB19.DLL Right, makes sense since you didn't also include the runtime DLL. > I've tried linking with -static and/or -Bstatic - but have not managed > to find anyway to get the cygwinb19.dll to instead be treated as a > non-dynamic [i.e. static] library. > > (a) Is this possible to do? > (b) How? Well, most things are possible if you have the right knowledge/try hard enough. :-) That said, it certainly isn't set up to be possible and I've never done it or heard of anyone doing it. > (c) What kind of copy{right,left} problems would we be running into if > we shipped the dll with the tools (the easy but least liked solution) The same issues as if you were able to statically link the code into your DLL. Namely, your code would have to be GPL'd. So you'd have to be willing to ship sources for your application and Cygwin32 on demand. Cygnus sells a commercial license that doesn't require shipping sources for either the application linked against it or the DLL. This comes with support contracts for the native Win32 compiler. You may want to contact info@cygnus.com about this option if you're interested. Alternatively, if you aren't trying to port Unix code to Win32, try the Mingw32 configuration. (See the Cygwin32 web site for details). That way, you could avoid the GPL issue but that'll only work if your app is a native Windows application... > Thanks in advance for any and all assistance provided. Other than this, > the Cygnus distribution has saved me countless of hours!! You're most welcome! -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From astockdale@computer.org Wed Sep 9 02:55:00 1998 From: astockdale@computer.org (Alexander Stockdale) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: Window Managers under Windows References: Message-ID: <19980909053827.14898.qmail@findmail.com> > Many people have ported XFree over to cygwin32, which include xterm, rxvt, > xclock, etc., which all perform flawlessly with a Windows X Server, but I > cannot seem to get another window manager running. I get a generic" > Cannot load, another WM is running;" I'm assuming this other WM that is > running is infact Windows itself, but I've noticed many people porting > popular window managers over to windows using cygwin32, one of them being > Afterstep. I'm assuming that considering people have taken time to port > these window managers over to windows, that they do infact function -- any > ideas on how to go about using one without getting that error message? If > it helps any, I'm running cygwin32 b19, and Windows 98. > I guess the first question would be, what XServer are you running? I think both the StarNet and M/IX servers start a window manager by default, so you would have to kill them before you ran your manager. From your earlier message I'm wondering if you ported XFree86 (or think you ported it) to cygwin32. If so, please share the information as to how you ported it. ----- Original Message: http://www.findmail.com/list/gnu-win32/?start=7033 Start a FREE email list at http://www.FindMail.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gnu@httptech.com Wed Sep 9 02:55:00 1998 From: gnu@httptech.com (Joe Stewart) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: Window Managers + XFree under '98. References: Message-ID: <35f5c6d8.6660703@mail.httptech.com> On Mon, 7 Sep 1998 14:43:26 -0500 (CDT), you wrote: >Hello, > >I was wondering if it was possible to load an alternative window manager >under windows after successfully getting XFree compiled, and already >having a Windows XServer installed on the system. I already have a few >window managers successfully compiled under cygwin32, but cannot run them >because it says there is already a window manager running (Windows I'm >assuming), has anybody ever here ever actually replaced the interface? You didn't say which X-server you are using, but if it's the MicroImages X server, you can just go to the Mix_95 directory (or wherever you installed it) and run Xs.exe and it will run window manager-less. The start menu shortcut for MIX points to Tntstart.exe which starts the defaulr Window Manager, twm. I have been able to run fvwm2 under MIX, but I'm getting more ambitious now... Has anyone been able to compile and run any other non-standard window managers on gnu-win32 like KDE, Gnome or Afterstep? I've made an attempt at KDE but I'm running into problems before I even get there, trying to compile the Qt library it requires. Any other experiences out there? -Joe - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Wed Sep 9 02:55:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: configuring telnetd References: Message-ID: <35F5B3D6.713232C4@uni-duesseldorf.de> > I have a few minor problems with telnetd: first, it does not echo the > commands on my SUN telnet. Second, how I can set bash properly, so it > would read .bashrc from the home directory (my passwd file has the > following line: I'm using B19.2 & remote on a P166 Windows98 box.I don't have any problems in telneting from several Sun Server1000 and Ultra 2 machines. Is telnetd echoing on the Windows own telnet client?! I had the same problem about bash to read the user specific .bashrc file. You can't add any options to the passwd entry. So what I did was to patch the login.c file a bit. One on the diffs is this one (this ain't the most elegant way): [...] (void)signal(SIGALRM, SIG_DFL); (void)signal(SIGQUIT, SIG_DFL); (void)signal(SIGINT, SIG_DFL); (void)signal(SIGTSTP, SIG_IGN); tbuf[0] = '-'; tbuf[1] = 'i'; #ifndef __CYGWIN32__ strcpy(tbuf + 1, (p = rindex(pwd->pw_shell, '/')) ? p + 1 : pwd->pw_shell); sexeclp(hToken,pwd->pw_shell, tbuf, 0); #else execl(pwd->pw_shell, NULL); #endif fprintf(stderr, "login: no shell: "); perror(pwd->pw_shell); exit(0); [...] So actualy I'm adding the -i option (inderactive ~/.bashrc reading from specific login user) to the exec call. This works. If there is anyone out there having a more elegant way for Win95 and Win98 let me know. A remote FAQ should be started anyway, since there are a lot of posting concerning the remote package of Sergey. > leonid::1000:513:Leonid Rokhinson://c/usr/leonid:/bin/bash I recommend to change the //c/... entry to UNIX style, i.e. mount drive C: to root / and use /usr/leonid. Regards, Stipe. -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Wed Sep 9 02:55:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Wed, 09 Sep 1998 02:55:00 -0000 Subject: Problems with Mercury Message-ID: <0EYZ0040CHXFEP@mail.hac.com> Has anyone successfully compiled and installed Mercury lately? I'm using B19.3 (coolview) and last weeks egcs and bintools from Mumit Kahn's ftp site, on an NT4.0 SP3. I'm trying to compile and install Mercury 0.7, which I also downloaded last week. Also, I have installed a few other odds and ends, such as Andy Piper's autoconfig, Ernie Boyd's install script, and /bin/sh is a copy of /bin/bash.- Tried out the system on some other things first. (Well, I tried out some of it before installing egcs...) From the FSF-GNU archives, Hello, genscript, gdbm, pretty much compile, install, and run, (almost) out of the box. Here is my Mercury history : 1. I followed directions in the README.MSwin32 file. (run 'sh configure,' add a patch to Mmakefile, run make, run make install). 2. The first time I tried the 'make', the whole machine hung at some point in the rather long process. I had to simply turn it off to get it back. No mouse response, no keybord response at all. 3. After I restarted (the next day, as it turns out), and checking that things seemed to be working pretty well, I reran make. Unfortunately, I forgot to save 'make-all.log' first. This time, the make apparently succeded. 4. After running 'make install,' tried to compile some of the samples with mmake (and then with plain mmc). Found that nothing worked because the files mmc and mmake are shell scripts, and the configure and make process had generated them with ^Ms at the newline. Used vim to :%s/^M// from all of the shell scripts. 5. Now the shell scripts run, but they eventually call .../mercury_compile (which I changed to mercury_compile.exe - but that didn't make any difference in what follows). Now I get the result: ---Quote: bash-2.01$ mmc cat.m (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m ercury_compile.exe 1017) Exception: STATUS_ACCESS_VIOLATION (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m ercury_compile.exe 1017) Dumping stack trace to mercury_compile.exe.core bash-2.01$ ---End Quote. The error messages come after some time, not instantly. Any suggestions? Thanks, John Velman jrvelman@mail.hac.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From martin@exchange.Scotland.NCR.COM Wed Sep 9 03:25:00 1998 From: martin@exchange.Scotland.NCR.COM (Smith, Martin) Date: Wed, 09 Sep 1998 03:25:00 -0000 Subject: Window Managers under Windows Message-ID: <286215C2CA1AD211A13500A024535B58129E26@eukscpo3.Dundee.NCR.COM> I had the same problem - in my case it was due to the fact that I had not changed my X-Server configuration settings to "single window mode". You may want to try that - for my X-Server, changing this gives me a single X window which contains my new desktop (and the other window manager) Regards, Martin > -----Original Message----- > From: Ilsundal [SMTP:listmail@alfheim.net] > Sent: Tuesday, September 08, 1998 5:45 AM > To: gnu-win32@cygnus.com > Subject: Window Managers under Windows > > Hello, > > Many people have ported XFree over to cygwin32, which include xterm, rxvt, > xclock, etc., which all perform flawlessly with a Windows X Server, but I > cannot seem to get another window manager running. I get a generic" > Cannot load, another WM is running;" I'm assuming this other WM that is > running is infact Windows itself, but I've noticed many people porting > popular window managers over to windows using cygwin32, one of them being > Afterstep. I'm assuming that considering people have taken time to port > these window managers over to windows, that they do infact function -- any > ideas on how to go about using one without getting that error message? If > it helps any, I'm running cygwin32 b19, and Windows 98. > > Thanks, > > Ilsundal > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From nakata@ccm.cl.nec.co.jp Wed Sep 9 03:25:00 1998 From: nakata@ccm.cl.nec.co.jp (Toshiyuki Nakata) Date: Wed, 09 Sep 1998 03:25:00 -0000 Subject: Support for malign-double? Message-ID: <199809091023.TAA08268@csls3.csl.cl.nec.co.jp> Hello: I had written: ; ; I have one question on performance related issue. ; ; ; ; Do you support -malign-double in mingwin-32 and gnuwin-32 (egcs-1.0.2)? ; ; ; ; ; The reason is that I have been comparing the performance of a user's ; ; application on linux and Winnt and the interesting thing to note is that ; ; ; ; They are comparable for integer performance but linux performance is ; ; about 20% better for floating point intensive application. ; ; Sorry, it seems that this has been fixed for the egcs1.0.2 for gnuwin32 b19 ; but not for egcs1.0.2 on ming32. ; With the newest version of egcs1.1.0 released quite recently by Mumit (Thank you very much Mumit), common blocks are aligned on an 8byte boundary for Mingw32 as well. I got a 20% performance gain on some floating point programs. Best Regards Toshiyuki Nakata - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Hemsing@atecom.com Wed Sep 9 04:31:00 1998 From: Hemsing@atecom.com (Chris Hemsing) Date: Wed, 09 Sep 1998 04:31:00 -0000 Subject: B19.1/bash2.01.1: strange behaviour (NT) Message-ID: <35F666F3.B9673D31@ATecoM.com> To whom it may concern, 1) My home is //Z/Myname; a simple cd takes me there. If I type cd .., then pwd says //Z, BUT an ls shows me that I'm still in my home directory. Z is mapped on some share. 2) If I'm on //Z/Myname a cd /etc says : No such file or directory, BUT cd /;cd /etc works. 3) My historyfile is correctly ~/.bash_history; every time I leave bash the commands are correctly appended to .bash_history, BUT when starting a bash it does not know any hiostory command. Regards, Chris Hemsing - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Wed Sep 9 05:57:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Wed, 09 Sep 1998 05:57:00 -0000 Subject: Window Managers + XFree under '98. References: Message-ID: <35F67B25.CEA9EF68@crocodial.de> Hi Ilsundal, Ilsundal wrote: > ... I already have a few > window managers successfully compiled under cygwin32, but cannot run them > because it says there is already a window manager running (Windows I'm > assuming) > .... > has anybody ever here ever actually replaced the interface? All commercial X servers for MS Windows that I have seen can cooperate with an external window manager. You usually need to enable that kind of operation in some configuration in the X server. so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From raf@comdyn.com.au Wed Sep 9 06:59:00 1998 From: raf@comdyn.com.au (raf) Date: Wed, 09 Sep 1998 06:59:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <199809090733.RAA02314@mali.comdyn.com.au> Earnie wrote: >---Mumit Khan wrote: >> >> On Mon, 31 Aug 1998, Geoffrey Noer wrote: >> >> > >> > Perhaps -Dunix should be added to the define list whenever >> > __CYGWIN32__ is defined? Linux includes -Dunix and >-Asystem(posix) in >> > CPP_PREDEFINES (looking at gcc/config/i386/linux.h). >> > >> >> I see no problem in cygwin32 specs defining "unix", but I have yet to >> see a good argument for getting rid of _WIN32 from x86-win32 targets, >> especially from mingw32. >> >The `argument' I have for removing the _WIN32 from cygwin32 (I'll live >with mingw32) is that there exists code that already has some porting >to WIN32 and it gets in the way of wanting to build the __UNIX__ >version under WIN32. Since this is the goal of the Cygnus Project >then it would be best served to remove the definitions of _WIN32. but what if someone *wants* to compile the win32 version with gcc? what's wrong with that? the problem is that these applications of which you speak can't tell the difference between win32-only, unix-only and unix-plus-win32. they really should (sooner or later). so a better plan is to make the appropriate changes to each of these applications and send patches back to their authors. what you suggest condones/supports ignorance of the cygwin32 platform on the part of software developers. who does that serve? raf - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From craig@reversion.ca Wed Sep 9 06:59:00 1998 From: craig@reversion.ca (Craig Nelson) Date: Wed, 09 Sep 1998 06:59:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <199809091359.HAA13004@tuffy.reversion.ca> > The `argument' I have for removing the _WIN32 from cygwin32 (I'll live > with mingw32) is that there exists code that already has some porting > to WIN32 and it gets in the way of wanting to build the __UNIX__ > version under WIN32. Since this is the goal of the Cygnus Project > then it would be best served to remove the definitions of _WIN32. YES! that has also been my position.. Craig Nelson, Cameo Systems Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jccho@dmc.htc.hanwha.co.kr Wed Sep 9 06:59:00 1998 From: jccho@dmc.htc.hanwha.co.kr (=?euc-kr?B?wbbA58O2?=) Date: Wed, 09 Sep 1998 06:59:00 -0000 Subject: Colors..... Message-ID: <009201bddbf4$2e2dd260$aac91fac@htcpc260.htc.hanwha.co.kr> alias ls='ls --color' -----???????????????? ????????????????????????----- ???????????????? ????????????????: Jose I. Cabrera ???????????????? ????????????????: gnu-win32@cygnus.com ????????????????: 1998???????? 9???????? 9???????? ???????????????????????? ???????????????? 9:26 ????????????????: Colors..... >Does anyone knows how to put colors on the bash screen? I have a nice >utility called NTSh and it has great colors. Anyone? > >thanks. >jose >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From miphon@geocities.com Wed Sep 9 08:43:00 1998 From: miphon@geocities.com (Miphon) Date: Wed, 09 Sep 1998 08:43:00 -0000 Subject: ftell fseek problem Message-ID: <35F68701.5706@geocities.com> In using a mkindx kinda file it doesn't seem to grab the correct start spots so the out putfrom the text file is started in an incorrect spot (am I making any sense yet?). I'm not an acual programmer just someone who occasionally can do some debugging and a little compiling here and there and this problem is above me. The mkindx file I am refering to comes with the PENNmush mush package available at http://www.pennmush.org/ . One of the programmers sent this to me if it helps. I guess what I'm asking is there a way to get ftell (and fseek) to work correctly? could this problem be because in Win32, we get the mkindx bigpos using ftell, but we store the entry's length (bigpos - pos)? According to my unix man page for ftell, on some non-Unix systems, the ftell return value can't really be used arithmetically like that because it's not measured in bytes but in something else meaningful only to fseek. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jdeifik@weasel.com Wed Sep 9 08:43:00 1998 From: jdeifik@weasel.com (Jeff Deifik) Date: Wed, 09 Sep 1998 08:43:00 -0000 Subject: make calls 'time' program bug Message-ID: <3.0.5.32.19980909084257.00a289d0@pop.ni.net> I have a makefile that calls the time command. for example: time my_program The way it used to work with an early copy of beta-19 was to time how long it took to run my_program. I have now downloaded the latest coolview, and uname -a reports: WEASEL_IN_A_BOX:/d/j/util/test:510: uname -a CYGWIN32_NT WEASEL_IN_A_BOX 4.0 19.3 i586 unknown Now when I execute my makefile I get the following: (note sim is the real name of the program that I want to time, and WEASEL_IN_A_BOX is the name of my machine.) WEASEL_IN_A_BOX:/d/j/util/test:513: make test_simx rm -f simx*.out simx*.log time //d/j/bin/sim -g -p -m=90 simx0.in simx0.out simx0.log The system cannot accept the time entered. Enter the new time: I would assume that the time command being run is the windows-nt version, which tries to modify the system time, which isn't the unix-like time command. When I run the command line from bash, it times the command my_program. How do I fix this behavior? I have copied sh.exe to /usr . All my files are mounted in binary-mode. Thanks in advance, Jeff Deifik jdeifik@weasel.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Wed Sep 9 13:15:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Wed, 09 Sep 1998 13:15:00 -0000 Subject: Coolview/Win98/Assumptions! References: <000201bddb09$98312c70$050120c0@menpc5> Message-ID: > I do know about the mounts and how they work. Everyone who has > (thankfully) replied or attempted to assist me has assumed that > I actually *have* the .bash_profile.... etc. files, the fact is I *don't*, > ie. thats why I think that this error message is unreasonable. It should > be pointed out that binary mounts are required to be able to use the > cygwinb19+ dll's. As I have hardly configured my win98 gnu environment, > I shouldn't be given meaningless error messages like this when I haven't > even got any .bash* files!!! That's pretty strange, I'm presently running Windows 98, and just today updated to coolview. I current;y have an /etc/profile, and a ~/.bashrc; I haven't seen anything like this, and am not mounting anything. :) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dhf@interport.net Wed Sep 9 13:15:00 1998 From: dhf@interport.net (David H. Friedman) Date: Wed, 09 Sep 1998 13:15:00 -0000 Subject: Window Managers under Windows References: Message-ID: On Mon, 7 Sep 1998, Ilsundal wrote: > I cannot seem to get another window manager running. I get a generic" > Cannot load, another WM is running;" I'm assuming this other WM that is > running is infact Windows itself Which X server are you using? I use Exceed, a commercial X server that has two modes. In one mode, X apps appear as native windows. In this mode Exceed acts as the WM, so trying to start another results in an error. In the other mode, Exceed does not provide WM functions. In this mode you can run another WM, but X apps can only appear as child windows inside the Exceed parent window. David H. Friedman dhf@interport.net - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 9 13:15:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 09 Sep 1998 13:15:00 -0000 Subject: cygwin32 egcs-1.1 W95 collect2 failures? Message-ID: I have one report of collect2 dying with spawnvp failures on W95, but dozens of success reports. If you're one of the unlucky ones that has this problem, here's a workaround until someone with W95 machine can figure this out: (basically rename the collect2 to something else) % x=`gcc -print-prog-name=collect2` % mv $x ${x}.bak now, you're back to working condition. The person reporting the error was using the following setup: - coolview (don't know which one) - W95 Rev B Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeffdbREMOVETHIS@goodnet.com Wed Sep 9 13:15:00 1998 From: jeffdbREMOVETHIS@goodnet.com (jeffdb) Date: Wed, 09 Sep 1998 13:15:00 -0000 Subject: ClearCase don't like files created in bash References: <199809081501.LAA09093@venus.solidum.com> Message-ID: <35f7bf67.9440776@mail.goodnet.com> Um I hate to disagree, but ^D appears in lots of files, the ^D EOF convention is only for consoles, and can be changed with stty, on a normal linux/unix console. ^D has no other significance, certainly not for disk files. the whole concept of an inline EOF in disk files, is a stupid DOS holdover from CPM, even microsoft has realized this as witness NO windows tools TIKO write ^Z as an EOF. On Tue, 08 Sep 1998 11:01:10 -0300, you wrote: > > Unlike in DOS with ^Z, ^D never actually appears in the file with Unix. > > :!mcr!: | Solidum Systems Corporation, http://www.solidum.com > Michael Richardson |For a better connected world,where data flows faster > Personal: mcr@sandelman.ottawa.on.ca. PGP key available. > Corporate: mcr@solidum.com. > > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Wed Sep 9 16:05:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Wed, 09 Sep 1998 16:05:00 -0000 Subject: calloc() more then 140MB under cygwin b19.1? References: <009CBE5F.6DB96720.15728@ifk20.mach.uni-karlsruhe.de> Message-ID: <35F69BD7.21C8D40@sigma6.com> With B19.3, I can easily calloc() memory until my paging space is exhausted, over 300MB. It works exactly as expected. I'd suggest watching your paging and CPU activity in Performance Monitor. It sure sounds like a memory-starved program. Unless your program makes a lot of system calls, I doubt you'll see a big performance difference between Interix, U/WIN and cygwin32. dahms@ifk20.mach.uni-karlsruhe.de wrote: > > Hi, > > I finally was forced to test cygwin b19.1, because my prog runs for hours > under Interix (formerly OpenNT), whereas it's extremely fast under Linux, > using about 300 out of 512MB RAM. > > Under b19.1, I get NULL from calloc() after only about 140MB. > Isn't HEAP_CHUNK_SIZE eliminated? At least I got no such messages... > > BTW, while I'm typing this, I'm also testing UWIN 1.51 with egcs. > It's not yet finished and took already seven times the CPU of Linux! > Could it be a general NT4.0SP3 alloc/free performance problem? > > Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de) > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dpd@vality.com Wed Sep 9 16:05:00 1998 From: dpd@vality.com (dpd@vality.com) Date: Wed, 09 Sep 1998 16:05:00 -0000 Subject: Cygwin (usertool) sources for Alpha NT Message-ID: <8525667A.007E2FFE.00@vality.com> Hi, I've been trying to get a version of the Cygwin tools - at least the usertools, to start with - built for Alpha NT platforms. So far, I've found a set of prebuilt binaries at ftp://dutlbcz.lr.tudelft.nl/alphant/Shells/bash-alpha-nt-1.01.tar.gz and another set, with some compiler parts, at ftp://guiduck.com/gcc-alpha.zip . Unfortunately, I've been running into some problems with both prebuilt sets. I'd like to try fixing these problems, but haven't been able to find any sources/source diffs. Can anyone point me at alpha patched sources for any gnu-win32 stuff? Thanks, -Denis - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 9 17:15:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 09 Sep 1998 17:15:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980908115632.9227.rocketmail@send104.yahoomail.com> Message-ID: <19980909155904.56836@cygnus.com> On Tue, Sep 08, 1998 at 04:56:32AM -0700, Earnie Boyd wrote: [...] > The `argument' I have for removing the _WIN32 from cygwin32 (I'll live > with mingw32) is that there exists code that already has some porting > to WIN32 and it gets in the way of wanting to build the __UNIX__ > version under WIN32. Since this is the goal of the Cygnus Project > then it would be best served to remove the definitions of _WIN32. Cygwin32 wants to allow both Unix and Win32 API calls. Although I see the appeal in making it possible to express a preference for one or the other, I don't think overloading "_WIN32" is the right solution. "_WIN32" means "access to the Win32 API" to me, something that the Cygwin32 configuration permits. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From astockdale@computer.org Wed Sep 9 17:15:00 1998 From: astockdale@computer.org (Alexander Stockdale) Date: Wed, 09 Sep 1998 17:15:00 -0000 Subject: Trying to compile my own perl... References: <01BDDB6B.E0213C20@quicksilver> Message-ID: <19980910001812.31310.qmail@findmail.com> > > Has anyone succeeded in compiling perl lately, and if so, did you have to > do anything special? > perl 5.005.51 (available from CPAN) includes instructions for building in either cygwin or mingw32 environments. ----- See the original message at http://www.findmail.com/list/gnu-win32/?start=7052 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Wed Sep 9 17:27:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Wed, 09 Sep 1998 17:27:00 -0000 Subject: B19.2: fork() causing STATUS_ACCESS_VIOLATION Message-ID: <35F71A92.A7A93A63@uni-duesseldorf.de> Hello, I have been working the last couple of days on cygwin32 ports of the "gn" gopher server and the "wn" HTTP server. I have experienced serious STATUS_ACCESS_VIOLATIONs caused by the fork() function. Using the spawnl() function seems not to work too, since it returns the pid -1. Has anyone experienced such problems on Win98 using b19.2. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 9 19:41:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: Colors..... References: <199809071110.HAA03366@web06.iname.net> <35F53DD1.E246F3C@wrc.xerox.com> Message-ID: <36062957.14467963@mail.weiser.saale-net.de> Hello Jose, you wrote: >Does anyone knows how to put colors on the bash screen? I have a nice >utility called NTSh and it has great colors. Anyone? Don't know if that is what want but try to run 'ls --color' and/or put it as an alias like 'alias ls='ls --color'' in some rcfile. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 9 19:41:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <3.0.5.32.19980902163616.009d4ce0@pop.ma.ultranet.com> Message-ID: <19980909155615.49408@cygnus.com> On Wed, Sep 02, 1998 at 04:28:19PM -0500, Mumit Khan wrote: [...] > I think you are confusing the term "Microsoft specifc predefined macros" > with "these macros are only defined for Microsoft compilers". I've plucked > 3 out of the list, and 2 of those are defined by *every* C++ compiler > for W95/NT. > > The only MS compiler specific macro among these 3 is _MSC_VER, which GNU > does not and will not define. This is (and was) my interpretation as well. Since both Cygwin32 and Mingw32 configs have access to the Win32 API, I believe both should define _WIN32. I would be ok with adding "-Dunix" when the Cygwin32 config is being used if that would help people. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From relliott@hobbit.eng.hou.compaq.com Wed Sep 9 19:41:00 1998 From: relliott@hobbit.eng.hou.compaq.com (Robert Elliott) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: perl-tk and cygwin32 Message-ID: Has anyone compiled perl-TK for Windows NT using Cygwin32 and the X11 client libraries? I'd like to create a version of perl-TK that displays via X protocol instead of via Windows graphics. -- Rob Elliott UNIX mailto:relliott@hobbit.eng.hou.compaq.com Houston, TX PC mailto:Robert.Elliott@compaq.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 9 19:41:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <199809090332.UAA11911@cygnus.com> Message-ID: On Tue, 8 Sep 1998, Paul Garceau wrote: > Hi folks, > > Is there a way to disable mangling for EGCS-Mingw32? > > I am not sure which switch to set. > Paul, Which mangling are referring to? Win32 mangling related to various calling conventions (eg., __stdcall) or C++ mangling? Could you describe why you want the mangling disabled? In all but some very special cases, mangling is required to produce correct code linkage. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Wed Sep 9 19:41:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: remote: file system controll Message-ID: <35F71B6F.145CF792@uni-duesseldorf.de> Hello, I'm using Sergei's remote package on an Win98 with b19.2 setup. I have patched the login.c file to fit the login sequence, but I can't set write/access permissions for other userids than the one logged into windows. I know that Windows doesn't support native write/acess permission control for various users, but is there an other way to restrict remote telnet users of deleting un-owned files?! Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From astockdale@computer.org Wed Sep 9 19:41:00 1998 From: astockdale@computer.org (Alexander Stockdale) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: server X References: <19980908170534.07056@cygnus.com> Message-ID: <19980910001327.30985.qmail@findmail.com> > > I'm asking myself a question. Don't we need to port the X server part under > > gnu win ? In fact, it's the only part we have to buy to make the Xclient > > stuff works. Is it an idea or do you consider that the free stuff is > > sufficient ? > > Quite a variety of native Win32 ports of X servers should work fine, > be it a free or commercial one. You may want to try the free ones > first and see how they work for you... > The two free x-servers for Win32 that I'm aware of are the M/IX server (mentioned elsewhere in this thread) and the StarNet server. The M/IX server is fair (does not support Athena widgets properly). The StarNet server is quite good, but the downloadable version will only run for 2 hours at a time. I think we really need to port XFree86 to the cygwin environment. I've started looking into this, but it looks like it may be a big job (just look at the size of the diff file for the OS/2 port). ----- See the original message at http://www.findmail.com/list/gnu-win32/?start=7051 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From alexr@aurora.sps.mot.com Wed Sep 9 19:41:00 1998 From: alexr@aurora.sps.mot.com (Alex Rezinsky) Date: Wed, 09 Sep 1998 19:41:00 -0000 Subject: Colors..... References: <199809071110.HAA03366@web06.iname.net> <35F53DD1.E246F3C@wrc.xerox.com> Message-ID: <35F68310.9630D97D@aurora.sps.mot.com> Hi, This is fragment from my .bashrc file where I set colors for each prompt depending on exit status of the previous command. Hope this will help. Alex Rezinsky Motorola Semiconductor Israel alexr@msil.sps.mot.com ------------------------------- # Colors export fg_black="" export fg_red="" export fg_green="" export fg_yellow="" export fg_blue="" export fg_magenta="" export fg_cyan="" export fg_white="" export bg_black="" export bg_red="" export bg_green="" export bg_yellow="" export bg_blue="" export bg_magenta="" export bg_cyan="" export bg_white="" export normal="" set_promtp_colors() { if (( $? )) then prompt_beg=${bg_red}${fg_yellow} prompt_end=${normal} else prompt_beg=${bg_blue}${fg_yellow} prompt_end=${normal} fi } PROMPT_COMMAND=set_promtp_colors PS1=' \[${prompt_beg}\]<\!>\[${prompt_end}\] ' Jose I. Cabrera wrote: > Does anyone knows how to put colors on the bash screen? I have a nice > utility called NTSh and it has great colors. Anyone? > > thanks. > jose > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Wed Sep 9 23:10:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Wed, 09 Sep 1998 23:10:00 -0000 Subject: newbie win95 bash crash problem Message-ID: <6e814f68.35f76d1c@aol.com> In a message dated 9/9/98 9:35:54 PM Pacific Daylight Time, jmamer@anderson.ucla.edu writes: > For example if I type "dc" at the > comand prompt instead of "cd" it will comeback "command not found" and give > me > a new prompt maybe 3 times in a row, and on the fourth time it hangs win95. > Sometimes it hangs on the first try, sometimes on the third, The FAQ points out that installing USB, if possible, greatly improves on this situation. I find also that this enables bash to replace ash, the same as under NT. Hard to believe, but one of the components, the NT kernel driver, apparently gives a small but needed boost in NT compatibility. The down side is having to remove USB before refreshing the OS, and to replace USB afterwards before getting all the drivers back. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jba@lfpt.RWTH-Aachen.DE Thu Sep 10 00:08:00 1998 From: jba@lfpt.RWTH-Aachen.DE (Juergen Bausa) Date: Thu, 10 Sep 1998 00:08:00 -0000 Subject: Loading gnu made DLL with MSVC Message-ID: <199809100707.JAA00470@lisa.rwth-aachen.de> This example may run, since the dll uses no functions from 'cygwinb19.dll'. However, if you need to use for example 'malloc' it will crash. This is the problem. And there seems to be no solution yet. Thus, the cygnus gcc can only create trivial or proprietary dll's. Juergen > From: Massimo CICCOTELLI <0994cicc@s1.cise.it> > Subject: Loading gnu made DLL with MSVC > To: gnu-win32@cygnus.com > > Hi all!! > > We are looking with great interest at the debate on how to make > DLL with gcc which can be loaded by MSVC. > > Picking up from different mails on the argument and after some > trials, we managed to build up a simple DLL (with egcs-1.0.2- > mingw32 by Mumit) which can correctly loaded in MSVC 5.0. > Here is how: > >------------------------------- testlib.c ---------------------------------------- >int intsum(int arg1, int arg2) { > return arg1+arg2; >} >------------------------------ end of testlib.c ------------------------------ > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Thu Sep 10 00:08:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Thu, 10 Sep 1998 00:08:00 -0000 Subject: adding to libc (snprintf, vsnprintf) References: <199807292033.QAA07091@venus.solidum.com> Message-ID: <199809092343.TAA21869@venus.solidum.com> -----BEGIN PGP SIGNED MESSAGE----- Awhile ago I wrote about having problems adding things to the cygwin19.dll. This was Message-Id: <199807292033.QAA07091@venus.solidum.com>, and is at: http://www.cygnus.com/ml/gnu-win32/1998-Jul/0652.html . Having received no response on how to do this myself, I will just hope that the CygWin people kill kindly accept the code that I put together, it is at: http://www.sandelman.ottawa.on.ca/SSW/snp/cygwinsnp.tar.gz Thanks. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface iQCVAwUBNfcQf25vCG0TOZrRAQEmIwP/V5YOhKCepjhu16LmPZ0I+f0ph4S6AtI5 GG4sVeHfn1SBz/4n6UyahVvPaPBFR7o6MrYlPOOh3VM/kWN+RbSGVQfSzGToRWy5 +EOw60tmCmLFLEGg5F+qGrmfSlobcUPmWXxVVI/5hrdVi+ttTo/6u0nJ+Xb3486T hNeDY/WWGdI= =PDl0 -----END PGP SIGNATURE----- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cabrera@wrc.xerox.com Thu Sep 10 02:15:00 1998 From: cabrera@wrc.xerox.com (Jose I. Cabrera) Date: Thu, 10 Sep 1998 02:15:00 -0000 Subject: Colors..... References: <199809071110.HAA03366@web06.iname.net> <35F53DD1.E246F3C@wrc.xerox.com> <35F68310.9630D97D@aurora.sps.mot.com> Message-ID: <35F6FEB8.70DEF69C@wrc.xerox.com> thank you very much.... Alex Rezinsky wrote: > > Hi, > > This is fragment from my .bashrc file where I set colors for each prompt > depending on exit status of the previous command. > Hope this will help. > > Alex Rezinsky > Motorola Semiconductor Israel > alexr@msil.sps.mot.com > > ------------------------------- > > # Colors > export fg_black="" > export fg_red="" > export fg_green="" > export fg_yellow="" > export fg_blue="" > export fg_magenta="" > export fg_cyan="" > export fg_white="" > export bg_black="" > export bg_red="" > export bg_green="" > export bg_yellow="" > export bg_blue="" > export bg_magenta="" > export bg_cyan="" > export bg_white="" > export normal="" > > set_promtp_colors() > { > if (( $? )) > then > prompt_beg=${bg_red}${fg_yellow} > prompt_end=${normal} > else > prompt_beg=${bg_blue}${fg_yellow} > prompt_end=${normal} > fi > } > > PROMPT_COMMAND=set_promtp_colors > PS1=' \[${prompt_beg}\]<\!>\[${prompt_end}\] ' > > Jose I. Cabrera wrote: > > > Does anyone knows how to put colors on the bash screen? I have a nice > > utility called NTSh and it has great colors. Anyone? > > > > thanks. > > jose > > - > > For help on using this list (especially unsubscribing), send a message to > > "gnu-win32-request@cygnus.com" with one line of text: "help". > > -- Hasta pronto.....!!! Y como dice mi pa'i, "Mecedora!!" (((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))) !! jose.....El Dominicano Americano Ausente. !! !! These are my opinions and not my employer's. !! (((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Thu Sep 10 02:15:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Thu, 10 Sep 1998 02:15:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <199809090332.UAA11911@cygnus.com> Message-ID: <199809100501.WAA06391@cygnus.com> On 9 Sep 98, at 21:41, the Illustrious Mumit Khan wrote: > On Tue, 8 Sep 1998, Paul Garceau wrote: > > > Hi folks, > > > > Is there a way to disable mangling for EGCS-Mingw32? > > > > I am not sure which switch to set. > > > > Paul, > > Which mangling are referring to? Win32 mangling related to various calling > conventions (eg., __stdcall) or C++ mangling? The latter, C++ mangling. EGCS-1.0.2-Mingw32 is looking for IDirectDraw::SetCooperativeLevel. Headers can only understand IDirectDraw->SetCooperativeLevel. > Could you describe why you want the mangling disabled? If I could disable C++ mangling, then I am inclined to believe that I can enable the needed C calls instead. > In all but some > very special cases, mangling is required to produce correct code linkage. I understand, I'm open to suggestions. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kuku@gilberto.physik.RWTH-Aachen.DE Thu Sep 10 02:15:00 1998 From: kuku@gilberto.physik.RWTH-Aachen.DE (Christoph Kukulies) Date: Thu, 10 Sep 1998 02:15:00 -0000 Subject: rsh? Message-ID: <199809100914.LAA20369@gilberto.physik.RWTH-Aachen.DE> I'm seeking for a rsh (remote shell client) for Win95 (under cygwin32B19.1) Does anyone know of a port? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 10 02:57:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 10 Sep 1998 02:57:00 -0000 Subject: b19.x coolview: question about "broken pipe" References: <199809081219.NAA11988@woof.man.harlequin.co.uk> Message-ID: <360528da.14343354@mail.weiser.saale-net.de> Hello io, you wrote: >>bash2$ gzip -cd d:/users/io/work/build/archive/foo.tar.gz | tar tvf - >>-rw-r--r-- 544/Domain Users 698756 1998-09-08 11:42 basis.img >>-rw-r--r-- 544/Domain Users 3607012 1998-09-08 11:41 batch.img >>-rw-r--r-- 544/Domain Users 822512 1998-09-08 11:43 foreign.img >>Broken pipe >The problem goes away if run using "#!/bin/ash" instead. >What is the significance of the "Broken pipe" message? This seems to be the bash-text-mode-pipes-problem again: Inside bash all pipes run in text mode where \n gets converted to \r\n so that your binary (tar) files get corrupted. Perhaps its something completely different [;)], but anyway you should be able to solve it using 'tar -xzvf ' or 'tar --use-compress-program=gzip -xvf '. At least it works for me. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lro@technologist.com Thu Sep 10 02:57:00 1998 From: lro@technologist.com (lro@technologist.com) Date: Thu, 10 Sep 1998 02:57:00 -0000 Subject: Colors.... Message-ID: <199809100957.FAA02289@web02.iname.net> Hi, If all you want is to display colors go to the menu system for the window(click on the upper left corner icon of the window). Chose properties and the color tab. In the pop-up window, you will be abel to define background and text colors. BTW, defining the properties, you can do nice things like cut and paste with the mouse (using right click). You can define as well a buffer for the window, so you can have a scroll bar in your window command (as with an xterm) Good luck, Laurent ROCHE ---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Thu Sep 10 02:57:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Thu, 10 Sep 1998 02:57:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980908115632.9227.rocketmail@send104.yahoomail.com> Message-ID: <35F714A1.EB18757F@uni-duesseldorf.de> > ---Mumit Khan wrote: > > > > On Mon, 31 Aug 1998, Geoffrey Noer wrote: > > > > > > > > Perhaps -Dunix should be added to the define list whenever > > > __CYGWIN32__ is defined? Linux includes -Dunix and > -Asystem(posix) in > > > CPP_PREDEFINES (looking at gcc/config/i386/linux.h). > > > > > > > I see no problem in cygwin32 specs defining "unix", but I have yet to > > see a good argument for getting rid of _WIN32 from x86-win32 targets, > > especially from mingw32. > > > > The `argument' I have for removing the _WIN32 from cygwin32 (I'll live > with mingw32) is that there exists code that already has some porting > to WIN32 and it gets in the way of wanting to build the __UNIX__ > version under WIN32. Since this is the goal of the Cygnus Project > then it would be best served to remove the definitions of _WIN32. I support this opinion, since I had many confusing #define structures to do while poring the apache-1.3.1 server and the php-3.0.3 pre-processor to cygwin32. Regards, Stipe. -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Thu Sep 10 03:40:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Thu, 10 Sep 1998 03:40:00 -0000 Subject: Windows98 + inetutils References: Message-ID: <35F71674.D0372DE7@uni-duesseldorf.de> > Also, a few questions regarding inetd under Windows98; I've succesfully > compiled all of the required binaries (aka, inetd.exe, telnetd.exe, etc), > and can run inetd fine, but where exactly is it looking for a > configuration file? If i simply create an /etc/inetd.conf will it look > here, or is it reading it from somewhere else? I'm only wondering, > because running it stock, it loads all services, I'm wondering where > it's reading these services from. Sergei's remote package puts the config file to /usr/local/etc/inetd.conf. > Also, as far as remote logins are concerned (obviously it will be for mere > personal use) how is this controlled? Can I simply just setup an > /etc/passwd, and /etc/group file, and when inetd is setup it will accept > logins using the passwd file? Yep. The login program called by in.telnetd look up valid users in the /etc/passwd file. > Any information on any of this will be greatly appreciated -- I haven't > found any web resources for configuring inetd under Windows '98. hmm, I'm using Win98 with Sergei's remote package and have not experienced any problems in running inetd. You just have to patch the login.c file to do a bit of security controling, like looking up the users from /etc/passwd. Regards, Stipe. -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeffdbREMOVETHIS@goodnet.com Thu Sep 10 03:40:00 1998 From: jeffdbREMOVETHIS@goodnet.com (jeffdb) Date: Thu, 10 Sep 1998 03:40:00 -0000 Subject: newbie win95 bash crash problem References: <35F62131.A6FFE65A@anderson.ucla.edu> Message-ID: <35f7715c.2863030@mail.goodnet.com> Do set CYGWIN32=tty before starting bash (in autoexec.bat) do set HOME=some:\valid\dir (in autoexec.bat) do not cp /bin/bash.exe /bin/sh.exe do not use the cygwin32.bat shortcut always start bash directly, not from a batch file do not have any unmounted dirs in your $PATH do not have any spaces in your path. if you are running win95b do install usbsupp, then you can use notty, and start from batch files, or the command prompt. On Tue, 08 Sep 1998 23:33:21 -0700, you wrote: >Hi! > I've read through the FAQ's and the mail archives. I've seen several people >mention this problem, but no solutions offered. I installed B19.1 which >contains the latest bash. Everything seems to run fine, I've compiled a bunch >of code using gcc, the commands seem to work predictably. However, if I type >garbage at bash, after a few tries it hangs. For example if I type "dc" at the >comand prompt instead of "cd" it will comeback "command not found" and give me >a new prompt maybe 3 times in a row, and on the fourth time it hangs win95. >Sometimes it hangs on the first try, sometimes on the third, but always before >the 6th...... > >Any help would be appreciated. >John Mamer >jmamer@anderson.ucla.edu > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Thu Sep 10 03:40:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Thu, 10 Sep 1998 03:40:00 -0000 Subject: Where to get 19.3? Message-ID: <35F7AC88.DBCBD48F@ina.de> Hi! I read some messages mentioning version 19.3. The newest version I could find was 19.1 (at ftp://ftp.cygnus.com/pub/gnu-win32/latest/ ). Is there another source for downloading the package? I want to try the latest version because I have problems starting bash when coolview is installed. Thanks. -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ddw@miscrit.be Thu Sep 10 03:40:00 1998 From: ddw@miscrit.be (Dominique de Waleffe) Date: Thu, 10 Sep 1998 03:40:00 -0000 Subject: Problems with Mercury References: <0EYZ0040CHXFEP@mail.hac.com> Message-ID: <000301bddc99$66b7a3e0$ca354ec2@herbrand.miscrit.be> Mercury cannot in its current state be compiled with b19. Fergus Henderson found a problem in the gcc generated code and there might also be problems with the GC. There should be a new release of Mercury this month (so says te Melbourne page) but I don't know whether the incompatibility with b19 will be resolved. The latest cygwin known to work with Mercury is b18. D. PS 1: For Mercury related questions, the mercury-users list is a better place than here.... PS 2: We are starting to work on a win32 version of Mercury which will not need cygwin. -- !!! NEW PHONE # !!! Dominique de Waleffe Email: ddw@miscrit.be, ddw@acm.org Mission Critical Tel: +32 2 757 10 15 Fax: +32 2 759 27 60 > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of john_r_velman@mail.hac.com > Sent: Tuesday, September 08, 1998 11:21 PM > To: gnu-win32@cygnus.com > Subject: Problems with Mercury > > > Has anyone successfully compiled and installed Mercury lately? > > I'm using B19.3 (coolview) and last weeks egcs and bintools from Mumit > Kahn's ftp site, on an NT4.0 SP3. I'm trying to compile and install > Mercury 0.7, which I also downloaded last week. > > Also, I have installed a few other odds and ends, such as Andy Piper's > autoconfig, Ernie Boyd's install script, and /bin/sh is a copy of > /bin/bash.- > > Tried out the system on some other things first. (Well, I tried out > some of it before installing egcs...) From the FSF-GNU archives, > Hello, genscript, gdbm, pretty much compile, install, and run, > (almost) out of > the box. > > Here is my Mercury history : > > 1. I followed directions in the README.MSwin32 file. > (run 'sh configure,' add a patch to Mmakefile, run make, run > make install). > > > 2. The first time I tried the 'make', the whole machine hung at some > point in the rather long process. I had to simply turn it off to get > it back. No mouse response, no keybord response at all. > > 3. After I restarted (the next day, as it turns out), and checking > that things seemed to be working pretty well, I reran make. > Unfortunately, I forgot to save 'make-all.log' first. This time, > the make apparently succeded. > > 4. After running 'make install,' tried to compile some of the samples > with mmake (and then with plain mmc). Found that nothing worked > because the files mmc and mmake are shell scripts, and the configure > and make process had generated them with ^Ms at the newline. Used vim > to :%s/^M// from all of the shell scripts. > > 5. Now the shell scripts run, but they eventually call > .../mercury_compile (which I changed to mercury_compile.exe - but that > didn't make any difference in what follows). Now I get the result: > > ---Quote: > bash-2.01$ mmc cat.m > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386 > -pc-cygwin32\m > ercury_compile.exe 1017) Exception: STATUS_ACCESS_VIOLATION > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386 > -pc-cygwin32\m > ercury_compile.exe 1017) Dumping stack trace to mercury_compile.exe.core > bash-2.01$ > ---End Quote. > > The error messages come after some time, not instantly. > > > Any suggestions? > > Thanks, > > John Velman > jrvelman@mail.hac.com > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Robert.Buick@racalinst.co.uk Thu Sep 10 03:40:00 1998 From: Robert.Buick@racalinst.co.uk (Buick, Robert) Date: Thu, 10 Sep 1998 03:40:00 -0000 Subject: Snacc Message-ID: <199809100950.CAA17886@cygnus.com> > -----Original Message----- > From: Buick, Robert > Sent: Wednesday, September 09, 1998 7:13 AM > To: 'snacc@cs.ubc.ca' > Subject: RE: archive > > Has anyone managed to run the Snacc checks on Cygwin on NT 4.0? > > Thanks for your time, > > Rob Buick. > > -----Original Message----- > From: Buick, Robert [SMTP:Robert.Buick@racalinst.co.uk] > Sent: Tuesday, September 08, 1998 3:22 PM > To: 'snacc@cs.ubc.ca' > Subject: archive > > is there a snacc archive that I can download? > > Thanks, > > Rob Buick -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2194 bytes Desc: not available URL: From viking@cit.org.by Thu Sep 10 03:50:00 1998 From: viking@cit.org.by (Eugene Zaikonnikov) Date: Thu, 10 Sep 1998 03:50:00 -0000 Subject: newbie win95 bash crash problem Message-ID: <01bddca9$1e671de0$1b0211ac@dmitry.CIT> I had the same problem with B19 until I migrated to NT. It's definitely Win95 related, because under NT shell seems to work fine. Cheers, Eugene -----Original Message----- From: John W. Mamer To: gnu-win32@cygnus.com Date: 10 ???????????????????????????????? 1998 ????. 9:03 Subject: newbie win95 bash crash problem >Hi! > I've read through the FAQ's and the mail archives. I've seen several people >mention this problem, but no solutions offered. I installed B19.1 which >contains the latest bash. Everything seems to run fine, I've compiled a bunch >of code using gcc, the commands seem to work predictably. However, if I type >garbage at bash, after a few tries it hangs. For example if I type "dc" at the >comand prompt instead of "cd" it will comeback "command not found" and give me >a new prompt maybe 3 times in a row, and on the fourth time it hangs win95. >Sometimes it hangs on the first try, sometimes on the third, but always before >the 6th...... > >Any help would be appreciated. >John Mamer >jmamer@anderson.ucla.edu > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gvaughan@oranda.demon.co.uk Thu Sep 10 05:21:00 1998 From: gvaughan@oranda.demon.co.uk (Gary V. Vaughan) Date: Thu, 10 Sep 1998 05:21:00 -0000 Subject: Window Managers for cygwin32 [WAS: Window Managers + XFree under '98.] References: <35f5c6d8.6660703@mail.httptech.com> Message-ID: <35F7C3D5.66972FB5@oranda.demon.co.uk> Joe Stewart wrote: > [[snip]] > > Has anyone been able to compile and run any other non-standard window managers > on gnu-win32 like KDE, Gnome or Afterstep? > I've made an attempt at KDE but I'm running into problems before I even get > there, trying to compile the Qt library it requires. > > Any other experiences out there? Yup. I have to work on an M$ OS at work, but have been trying to recreate the L&F of my linux box from home which is Debian 2.0, w/ enlightenment && gnome. Having burned several weeks of free time on this, things are starting to come together... I now have an E-0.15 snapshot from 19980904 running quite well (albeit v. slowly!) with cygwin32 on NT4.0SP3. Before that I got WindowMaker 0.19 working... it has no where near as many library dependencies as E, so was easier to port, but it seemed to crash every 4 or 5 hours. Before that, I was using someone elses port of AfterStep which I found on the web. I can post some details if anyone is interested. Cheers, Gary V. Vaughan - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 05:51:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 05:51:00 -0000 Subject: Problems with Mercury Message-ID: <19980910115354.21759.rocketmail@send103.yahoomail.com> ---john_r_velman@mail.hac.com wrote: > > Has anyone successfully compiled and installed Mercury lately? > > 5. Now the shell scripts run, but they eventually call > .../mercury_compile (which I changed to mercury_compile.exe - but that > didn't make any difference in what follows). Now I get the result: > > ---Quote: > bash-2.01$ mmc cat.m > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m > ercury_compile.exe 1017) Exception: STATUS_ACCESS_VIOLATION > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m > ercury_compile.exe 1017) Dumping stack trace to mercury_compile.exe.core > bash-2.01$ > ---End Quote. > > The error messages come after some time, not instantly. > > > Any suggestions? STATUS_ACCESS_VIOLATION relates to SIGSEGV, meaning that you've stepped outside the memory bounds of the program. 1) If the package has it's own memory allocation routines remove them and use the mmalloc.a library supplied by the cygwin product. 2) If the compilations gave you warnings concerning pointers and non-pointers, consider them errors and fix them. 3) If you pointer who has a value of NULL or zero is used as a reference to a memory location you will get this error. Good Luck, == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 05:51:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 05:51:00 -0000 Subject: B19.1/bash2.01.1: strange behaviour (NT) Message-ID: <19980910125054.4496.rocketmail@send101.yahoomail.com> ---Chris Hemsing wrote: > > To whom it may concern, > > 1) My home is //Z/Myname; a simple cd takes me there. If I type cd .., > then pwd says //Z, BUT an ls shows me that I'm still in my home > directory. Z is mapped on some share. This is a emulation bug. Here is the `why' behind this bug. The //Z is the cygwin replacement for DOS Z:. Under dos if you are at Z:/Myname and type Z: you remain in Z:/Myname. This then is the problem with the cygwin cd. Cygwin is stripping the path name removing right most basename including the / and when it calls chdir it will do the same as typing Z: under dos. The fix would be to leave the right most /. > 2) If I'm on //Z/Myname a cd /etc says : No such file or directory, > BUT cd /;cd /etc works. What does you mount table look like? I don't have that problem. > 3) My historyfile is correctly ~/.bash_history; every time I leave bash > the commands are correctly appended to .bash_history, > BUT when starting a bash it does not know any hiostory command. Don't have an answer for this. Maybe bashes readline library wasn't set to load it. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From chunsj@chollian.net Thu Sep 10 09:06:00 1998 From: chunsj@chollian.net (Ninja) Date: Thu, 10 Sep 1998 09:06:00 -0000 Subject: [Q] egcs-1.1 for mingw32 can build dll correctly in Windows 95/98 ? Message-ID: <35F7FA1E.2EC3E269@chollian.net> In mingw32 version of gcc-2.8.1 I cannot create dll especially ObjC dll properly in Windows95. Only in Windows NT, I can make valid dll. In egcs-1.1 for mingw32 can build dll correctly in Win95/98 ? Thanks in advance and Please reply me via e-mail. ninja@chollian.net ninja@aerohel.snu.ac.kr - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 10 14:21:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <9809100501.AA26126@thor.xraylith.wisc.edu> Message-ID: On Wed, 9 Sep 1998, Paul Garceau wrote: > > The latter, C++ mangling. EGCS-1.0.2-Mingw32 is looking for > IDirectDraw::SetCooperativeLevel. Headers can only understand > IDirectDraw->SetCooperativeLevel. Hmmm ... the two are completely incompatible in C++, so I don't what it's trying to do. Also, note that MS provides a mechanism for accessing all their C++ APIs using C only. I don't know much about it, but I know others have used it (and I thought you are one of those people). Anyway, please send me a snippet of code so I know what you're asking. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 14:21:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <19980910155429.26532.rocketmail@send104.yahoomail.com> ---Geoffrey Noer wrote: > > On Tue, Sep 08, 1998 at 04:56:32AM -0700, Earnie Boyd wrote: > [...] > > The `argument' I have for removing the _WIN32 from cygwin32 (I'll live > > with mingw32) is that there exists code that already has some porting > > to WIN32 and it gets in the way of wanting to build the __UNIX__ > > version under WIN32. Since this is the goal of the Cygnus Project > > then it would be best served to remove the definitions of _WIN32. > > Cygwin32 wants to allow both Unix and Win32 API calls. Although I > see the appeal in making it possible to express a preference for one > or the other, I don't think overloading "_WIN32" is the right > solution. "_WIN32" means "access to the Win32 API" to me, something > that the Cygwin32 configuration permits. > Geoffrey, __CYGWIN32__ means "access to both Win32 API calls and Unix/Posix API calls". _WIN32 means "access to only Win32 API calls". __MINGW32__ means "access to only Win32 API calls" (Actually could be dropped in favor of _WIN32). == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Thu Sep 10 14:21:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980908115632.9227.rocketmail@send104.yahoomail.com> Message-ID: <821-Thu10Sep1998121143+0200-vzell@de.oracle.com> Hi >> The `argument' I have for removing the _WIN32 from cygwin32 >> (I'll live with mingw32) is that there exists code that already >> has some porting to WIN32 and it gets in the way of wanting to >> build the __UNIX__ version under WIN32. Since this is the goal >> of the Cygnus Project then it would be best served to remove >> the definitions of _WIN32. I agree with Earnie, I ported a couple of programs and the only changes I had to make to the sources was commenting out the _WIN32 stuff because I like to make the Unix versions. Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Robert.Humphris@uk.origin-it.com Thu Sep 10 14:21:00 1998 From: Robert.Humphris@uk.origin-it.com (Humphris, Robert) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: Introduction and request Message-ID: Hello, I have just started using the Mingw distribution of GNU-C/C++, having gotten fed up with MS's Visual C++. My question is this: In so much that I have used Cygnus's C/C++ compiler within Tornado on NT for vxWorks, I want to build a cross compiler for various different chips so that I can create do my embedded system work. Is there an FAQ or readme that will give me the necessary information on how to do this? Rob Humphris Software Engineer Origin-UK Technical Automation Robert.Humphris@uk.origin-it.com +44 (0)1223 394452 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 10 14:21:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: B19.1/bash2.01.1: strange behaviour (NT) References: <35F666F3.B9673D31@ATecoM.com> Message-ID: <360c0a04.21110985@mail.weiser.saale-net.de> Hello Chris, you wrote: >1) My home is //Z/Myname; a simple cd takes me there. If I type cd .., >then pwd says //Z, BUT an ls shows me that I'm still in my home >directory. Z is mapped on some share. This is a known problem with cygwin32 at this time. But I don't know whether and how it's fixed in the latest development snapshot. >3) My historyfile is correctly ~/.bash_history; every time I leave bash >the commands are correctly appended to .bash_history, >BUT when starting a bash it does not know any hiostory command. This issue went away for me as I changed to binary mounts. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From symons@citr.com.au Thu Sep 10 14:21:00 1998 From: symons@citr.com.au (Anthony Symons) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: Tracing a core dump with gdb Message-ID: <199809101014.UAA26148@guava.citr.com.au> Hi all, I am trying to compile some X and Motif applications with cyg-gcc b19 My application fails with a seg violation. However, the stack trace core file which is left is just a text file of the stack frame with addresses in hex. gdb cannot read this in. My problem is that I do not know how to relate these addresses back to actual function calls. As well, when I run the application under gdb, when I hit the seg violation, I cannot do a where - gdb says that it cannot access memory at xxxxxx. As this error seems to be hidden ~ 15 levels into a large loop I have not even been able to get near to determining where the problem is. Is it possible to either 1. get a core file that gdb can under stand 2. set a break point on some system call which is invoked when the seg violation occurs 3. set strace to a useful value which will help Any help will be greatly appreciated Cheers Anthony -- -------------------------------------------------------- Dr Anthony Symons | Phone: +61-73-259-2365 CiTR Pty Ltd | Fax: +61-73-259-2259 John Oxley Centre | 339 Coronation Drive | Email: a.symons@citr.com.au MILTON | QLD 4064 AUSTRALIA | Postal: PO Box 1643 -------------------------------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From joey@rolaren.space.swri.edu Thu Sep 10 14:21:00 1998 From: joey@rolaren.space.swri.edu (Joey Mukherjee) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: Hmmm, no make or imake? Message-ID: <199809101759.MAA13676@rolaren.space.swri.edu.space.swri.edu> I just installed egcs v1.1 and CygWin32 vb19.1 and I think all the libs I needed; however, I seem to be missing make. Is this available on a seperate archive? Also, is Imake and all the associated rules for Windows available somewhere? Lastly, I was under the impression that if I compiled a Motif program (with Lesstif), I would get a native windows program which would use Windows as the window manager. Is this the case or do I need to install Xservers and the like? As you can tell, I'm a newbie. We just want to port our Unix program to Windows... Joey +--------------------------------------------------------------------------+ + Joey Mukherjee - joey@swri.org - http://www.space.swri.edu/~joey + + + + "Here is a test to see if your mission on earth is finished. + + If you are alive, it isn't." -- Francis Bacon (1561-1626) + +--------------------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Thu Sep 10 14:21:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: *.COM file execution References: <19980908144022.65259@cygnus.com> Message-ID: <3801-Thu10Sep1998164708+0200-vzell@de.oracle.com> Hi >> The necessary support in Cygwin32 is fixed in the development >> sources / next major release: >> * spawn.cc (perhaps_suffix): If report_failure_p is >> non-zero this function will search for (PROG is the pathname to >> the executable file) PROG.exe, PROG, PROG.com, PROG.bat, and >> PROG.cmd and return either the full path name if found or NULL >> if not. (spawn_guts): If the file name of the executable end >> in either .exe, .com, .bat, or .cmd we assume that it is not a >> script file and therefore do not open the file to determine if >> it is. Is it possible to include the .btm extension for the 4NT command interpreter fans. Here the description of a btm file from the online-help of the 4NT command interpreter: BTM File: A special type of 4NT batch file which is loaded into memory to speed up execution. Thanks and Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 14:21:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: ftell fseek problem Message-ID: <19980910183026.21368.rocketmail@send104.yahoomail.com> Get rid of the \r in the line endings and open the file in binary processing mode. ftell will work the same as on unix this way. ---Miphon wrote: > > In using a mkindx kinda file it doesn't seem to grab the correct start > spots so the out putfrom the text file is started in an incorrect spot > (am I making any sense yet?). > I'm not an acual programmer just someone who occasionally can do some > debugging and a little compiling here and there and this problem is > above me. The mkindx file I am refering to comes with the PENNmush mush > package available at http://www.pennmush.org/ . > One of the programmers sent this to me if it helps. I guess what I'm > asking is there a way to get ftell (and fseek) to work correctly? > > > > could this problem be because in Win32, we get the > mkindx bigpos using ftell, but we store the entry's length > (bigpos - pos)? According to my unix man page for ftell, on > some non-Unix systems, the ftell return value can't really be > used arithmetically like that because it's not measured in > bytes but in something else meaningful only to fseek. > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 14:21:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 14:21:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <19980910153917.27619.rocketmail@send1c.yahoomail.com> ---raf wrote: > > Earnie wrote: > > > >The `argument' I have for removing the _WIN32 from cygwin32 (I'll live > >with mingw32) is that there exists code that already has some porting > >to WIN32 and it gets in the way of wanting to build the __UNIX__ > >version under WIN32. Since this is the goal of the Cygnus Project > >then it would be best served to remove the definitions of _WIN32. > > > but what if someone *wants* to compile the win32 version with gcc? > what's wrong with that? > > the problem is that these applications of which you speak can't > tell the difference between win32-only, unix-only and unix-plus-win32. > they really should (sooner or later). > > so a better plan is to make the appropriate changes to each of these > applications and send patches back to their authors. > > what you suggest condones/supports ignorance of the cygwin32 platform > on the part of software developers. who does that serve? > > Your opinion is certainly valid. However, I can always add -D_WIN32 in that case. The original poster to this thread had a problem where the cygwin supplied header was dependent upon _WIN32 being defined and couldn't easily do the reverse; I.E.: -U_WIN32. Since the main reason for cygnus is to provide a `UNIX' flavor to WIN32 providing the necessary POSIX routines to allow me to build a `UNIX' created package without having to do a lot of recoding then I should not be forced to turn off or undefine macros that are WIN32 specific. And I definitely shouldn't be concerned with errors in product supplied headers caused by undefining such a macro when that product is to be used to easily build non-WIN32 code. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Thu Sep 10 18:54:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Thu, 10 Sep 1998 18:54:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980910155429.26532.rocketmail@send104.yahoomail.com> Message-ID: <19980910185418.60014@cygnus.com> On Thu, Sep 10, 1998 at 08:54:29AM -0700, Earnie Boyd wrote: [...] > Geoffrey, __CYGWIN32__ means "access to both Win32 API calls and > Unix/Posix API calls". _WIN32 means "access to only Win32 API calls". > __MINGW32__ means "access to only Win32 API calls" (Actually could be > dropped in favor of _WIN32). Although I understand why people might argue for your definitions, this is *not* how we've been using them in any of the tools shipped as part of the gnu-win32 releases. We've always used __CYGWIN32__ to conditionalize code inclusion on access to the Cygwin32 API (checking for the existance of Unixy calls). We've used _WIN32 to check for accessibility of the Win32 API calls. And finally, we've used _MSC_VER to identify code that's only intended for VC++. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Thu Sep 10 20:10:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Thu, 10 Sep 1998 20:10:00 -0000 Subject: Trying to compile my own perl... References: <01BDDB6B.E0213C20@quicksilver> Message-ID: <35F8948F.133AE468@erols.com> Not really. Unless you count the $99 bucks I spend for MS VC++ 5.0, student edition. I downloaded 5.005_02 from www.perl.com. Compiled nicely first shot. Bruce Lysik wrote: [snip] > Has anyone succeeded in compiling perl lately, and if so, did you have to > do anything special? > -- #!/usr/bin/perl -- Matthew O. Persico print "Just Another Perl Neophyte\n"; ## Simplicity is a blessing when you're ## supporting the program at 2AM - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 10 21:27:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: Fwd: RE: Win 95 Freeze Fix Confirmed Message-ID: <19980910121726.21894.rocketmail@send102.yahoomail.com> ---Joe Soroka wrote: > > At 11:26 AM 5/18/98 -0700, you wrote: > >> From: Geoffrey Noer [ mailto:noer@cygnus.com ] > >> I can confirm that installing the USB update patch from Microsoft > >> fixes the Win 95 freeze problem visible when control-C-ing in B19 > >> bash. (I think you need to be running OSR2 to install the patch). > > > >Forgive my newness... I am running Cygwin32 b19.1 on Win95, and > >experience a good solid freeze (I can move the mousepointer and press > >Ctl-Alt-Del repeatedly to reboot, but that's all) after 3 to 30 commands > >when running bash. This prevents me from compiling XEmacs, or anything > >else for that matter. Does this sound like the freeze problem of which > >you speak? > > That's exactly the type of problem I was having. I've been looking around > a lot since posting my findings last week. It seems that there are quite a > few versions of the file USBSUPP.EXE floating around the net. I used one > from MSDN dated Friday, April 11, 1997 1:21:52 AM, size 964,960 bytes, > version 4.03.1214... I could not any files matching these exact specs > anywhere on the internet, but.. > > Supposedly this patch is not directly available from Microsoft, for > endusers anyways. One can find similar files by using archie or > http://ftpsearch.ntnu.no and searching for USBSUPP.EXE.. A good genealogy > of all the versions of Windows 95 and what patches apply to which versions > is available at http://www.walbeehm.com/win95upd.html and it has links to > places where one could download a USB patch. > > As always, your mileage may vary. I can't find the exact file that I used > anywhere on the internet, but I'm guessing that the best approximation can > be found in the links at walbeehm.com. Perhaps Geoffrey Noer could give us > some detail on which version(s) he used to confirm the solution. > > Also everyone should note that I don't have any USB ports or devices, so > obviously the USB patch does more than add USB support. :) Just in case > anyone is thinking "USB patch? That doesn't apply to me." > > joe soroka. > jsoroka@unixg.ubc.ca > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jon@net.lut.ac.uk Thu Sep 10 21:27:00 1998 From: jon@net.lut.ac.uk (Jon Knight) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: Trying to compile my own perl... References: <01BDDB6B.E0213C20@quicksilver> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- On Tue, 8 Sep 1998, Bruce Lysik wrote: > Has anyone succeeded in compiling perl lately, and if so, did you have to > do anything special? I've been having a go with Perl 5.005_51. On my win95 box at home with cygwin B19.1, the build of Perl bombs out complaining about a lack of va_start and va_end routines. Bummer. On a WinNT 4.0 workstation machine at work I got further and got Perl to build. It passed quite a lot, but not all, of its tests. I think that's to be expected because some of the tests are for UNIX specific features of Perl. The installation didn't work too well even after following the Cygwin specific instructions and I ended up having to install it by hand. Still, simple scripts seem to work OK. Unfortunately my reason for wanting to build Perl from scratch on a Win32 platform was to then build the latest Perl Tk module. This flopped big time; despite Tk itself going cross platform and also older versions of the Tk module being available with some of the binary Win32 Perl ports, the latest Tk module's configuration started to complain early on about not having X11 libraries handy. When I hardcoded the Win32 detection flag in Makefile.PL to true, the configuration got a bit further and then the Perl interpreter dumped core. Pooh. Looks like I've got a bit more hacking to do if I want to be on the bleeding edge... :-( Tatty bye, Jim'll #!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s= IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>) {next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y =$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{ print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBNfe+K4GEIhRfyt1ZAQEH3AP9FSEnSRkKsXVjYJihtZBDjvN2iVZioRrC HshwMwuU5Na9dCJLW0FQ4bHg1fRjgW/tGPnpweLl4+A+nRJuQXplRF3sdTlSMckI fO34ozdA2YArEPQx+nQRJ6GNDJVBq1zwsmt32fDnlxukjifMb8qMB6O0QJqcR8z4 qI8ZML24RHA= =bVRk -----END PGP SIGNATURE----- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Thu Sep 10 21:27:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: Colors..... References: <009201bddbf4$2e2dd260$aac91fac@htcpc260.htc.hanwha.co.kr> Message-ID: <70cazge4pfB@mike.franken.de> >alias ls='ls --color' That gives colors for ls only, but ... [...] >>Does anyone knows how to put colors on the bash screen? I have a nice >>utility called NTSh and it has great colors. Anyone? ... he wanted colors for something called NTSh. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Thu Sep 10 21:27:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: CRLF in cat output breaks scripts. Message-ID: <0EZ200216XWU8W@mail.hac.com> I must be missing something! cat and other commands that use > to write files, put in CR's so that we end up with CRLF at the end of every line. This means that shell scripts that are generated by make, configure, or other shell scripts end up with CRLF line endings, and don't run under bash (or ash). In addition, autoconfig turns a perfectly good template into a configure script full of ^Ms. The only way I've found to get rid of these is editing with vim. Probably a perl script will work as well, but haven't tried this yet. The major cygwin porters must have a way around this ...? Here is my mount output: ______________________ bash-2.01$ mount Device Directory Type Flags C:\DATA\0058744\non-cyg /non-cyg native text!=binary \\.\tape1: /dev/st1 native text!=binary \\.\tape0: /dev/st0 native text!=binary \\.\b: /dev/fd1 native text!=binary \\.\a: /dev/fd0 native text!=binary C:\\DATA\\0058744\\cygnus / native text=binary bash-2.01$ ____________________ (non-cyg is where I've kept some applications that were not cygwin, like MikTeX, NTemacs. Probably I didn't need to do that, but when I was starting out with cygwin ....) I'm using B19.3 (coolview), the bash and tools that came with the cygwin full distribution, egcs - last weeks version -- on NT4.0SP3. I just retested GNU's 'hello' to see if I'd messed up something fundamental since things worked - It still configures, compiles, and installs out of the box. Of course it doesn't try to write any shell scripts that are essential to its own process, like some programs do. Thanks, John Velman jrvelman@mail.hac.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Thu Sep 10 21:27:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: ClearCase don't like files created in bash References: <35f7bf67.9440776@mail.goodnet.com> Message-ID: <199809102029.QAA03808@venus.solidum.com> >>>>> "jeffdb" == jeffdb writes: jeffdb> Um I hate to disagree, but ^D appears in lots of files, jeffdb> the ^D EOF convention is only for consoles, and can be jeffdb> changed with stty, on a normal linux/unix console. ^D has no jeffdb> other significance, certainly not for disk files. We are actually agreeing. When you type ^Z on DOS/CPM on the console it is actually copied to the file. As you say, when you type the EOF on the console under Unix, it produces a zero-length read, which signals EOF in POSIX systems. No ^D in the file. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From listmail@alfheim.net Thu Sep 10 21:27:00 1998 From: listmail@alfheim.net (Ilsundal) Date: Thu, 10 Sep 1998 21:27:00 -0000 Subject: XTerm issues. Message-ID: Hello, here are a few things I've run into with XTerm, and am wondering if there are any solutions. This is what's been bothering me the most -- when I am in an XTerm, if I run any text application such as pico, edit.com, etc., the display for the program goes to whatever cygnus bash session window I invoked the Xterm from, or the cygnus bash session window I invoked my window manager from. This is very annoying, and makes the use of XTerms quite useless. Another thing I was wondering was, is there any way to tell xterm which type of shell to use? I know that's a bit confusing, but here's what I'm trying to do. I made a copy of the cygnus.bat file, and called it xterm.bat. I replaced the last line "bash" with "xterm" and set my display variables within the batch file. XTerm pops up fine, although there's nothing within it. It's basically just a blank screen. The reason I want to do this, is so I can make an "xterm" icon on my desktop, which gives me the ability to run xterms, without having to invoke a text dos window, load cygnus, and then run an xterm. That's just too much work to be doing. :) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Fri Sep 11 00:15:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: MazEd (2) References: <199809100957.LAA10944@kirk.linux.it> <14F3E012CF6@aton.inf.ufrgs.br> Message-ID: <199809101919.MAA25846@cygnus.com> Hi folks, On 10 Sep 98, at 12:05, the Illustrious Leandro Bernsmuller wrote: Paul G. wrote: > Just compiled and linked the Maze Editor under Gnu-Win32 using > Software Rendering (forced). When I run the 576k .exe, I receive an > error stating that "program is too big for memory". > > Any suggestions or ideas? > > Thanks. > Leandro replied: > > I have some little experience in CygWin beta 19 and DirectX 5. > > On beta 19 I receive this error when compiling programs, too. > But I don????t remember exactty in what case: > > or when I try to compile using Mingw (I do DirectX tests only > using GnuWin32 without Mingw) > > or when I compile using DirectX A libs for b18. > > MazEd use resources? I have problems compiling windows > programs using some trypes of resources. (skip) Ok, this may be a problem with the gnu-win32 runtime. Not sure, but am wanting to break it down so I can address what needs to be addressed. Other info: Maze Editor is a large (>100000 lines) C++ Application and is compiled (EGCS-1.0.2-Mingw32 & Cygwin32-b18 & b19) and sucessfully linked. Runtime generates the error. I can't speak for the amount of memory on Leandro's system, but on this one, ram is >40M. I also can not address which system Leandro is using, the OS I am using is WinNT4. Anyone have any ideas or suggestions? Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Fri Sep 11 00:15:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: make calls 'time' program bug References: <3.0.5.32.19980909084257.00a289d0@pop.ni.net> Message-ID: <35F83FAF.6017E308@sigma6.com> Are you using MAKE_MODE=unix? If not, make will spawn CMD.EXE (which has a builtin time command) instead of /bin/sh. Jeff Deifik wrote: > > I have a makefile that calls the time command. > for example: > time my_program > > The way it used to work with an early copy of beta-19 was to > time how long it took to run my_program. > > I have now downloaded the latest coolview, and uname -a reports: > WEASEL_IN_A_BOX:/d/j/util/test:510: uname -a > CYGWIN32_NT WEASEL_IN_A_BOX 4.0 19.3 i586 unknown > > Now when I execute my makefile I get the following: > (note sim is the real name of the program that I want to time, > and WEASEL_IN_A_BOX is the name of my machine.) > > WEASEL_IN_A_BOX:/d/j/util/test:513: make test_simx > rm -f simx*.out simx*.log > time //d/j/bin/sim -g -p -m=90 simx0.in simx0.out simx0.log > The system cannot accept the time entered. > Enter the new time: > > I would assume that the time command being run is the windows-nt version, > which tries to modify the system time, which isn't the unix-like time > command. > > When I run the command line from bash, it times the command my_program. > > How do I fix this behavior? > > I have copied sh.exe to /usr . All my files are mounted in binary-mode. > > Thanks in advance, > Jeff Deifik > jdeifik@weasel.com > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From MCzapski@openplus.com.au Fri Sep 11 00:15:00 1998 From: MCzapski@openplus.com.au (Michael Czapski) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <01BDDD7A.D12B33E0.MCzapski@openplus.com.au> Hello People, I am the silly b* who started this thread. I am, sort of, sorry I did :-) To brig it back to the original intent or kill it, rather than start another, I wish to remind what the original problem was: IF one uses 'stat' call, AND one undefines _WIN32, AND one includes unistd.h THEN one may get into stack corruption issues, subtle 'bugs' and such like, totally unexpected and uncalled for, problems in a, otherwise perfectly fine, piece of C code. I experienced this personally and traced it down to the __MS_types__ being defined when _WIN32 is defined and not beng defined otherwise. Here is the extract from the original post: ---- begin extract --- It turned out, after further investigation, that '__MS_types__' is defined in unistd.h and that this is what makes all the difference. Now I code that as: #if defined(__CYGWIN32__) && !defined(_WIN32) # define __MS_types__ /* this breaks stat function if not defined */ # define _MS_types_DEFINED /* at the time unistd.h is included */ #endif #include #if defined(__CYGWIN32__) && defined(_MS_types_DEFINED) # undef __MS_types__ # undef _MS_types_DEFINED #endif This way I avoid defining _WIN32, can safely (?) undefine _WIN32 and code on the basis of 'if _WIN32 is not defined than it must be Unix or VMS' :-). Since I found that workaround I stopped poking around to see what exactly breaks the 'stat'. If anyone knows or finds out please let me know :-). This message may, perhaps, save somebody a great deal of hassle in the future :-) --- end extract --- It would, in my opinion, be more beneficial to 'fix' the stat-related issue and allow people to use or not use _WIN32 as they see fit rather than discuss the merits of its being or not being there :-) Sorry for unintentionally causing the prolonged discussion :-) ------------------ Cheers ... Michael Czapski - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 00:15:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: make calls 'time' program bug References: <3.0.5.32.19980909084257.00a289d0@pop.ni.net> Message-ID: <70cazmnKpfB@mike.franken.de> Hi Jeff, [...] >The system cannot accept the time entered. >Enter the new time: > >I would assume that the time command being run is the windows-nt version, >which tries to modify the system time, which isn't the unix-like time >command. > >When I run the command line from bash, it times the command my_program. > >How do I fix this behavior? Because "time" and "date" are commands, which are builtin into cmd.exe, the only thing you can do is to redefine them with doskey. I have a small batch, which contains the following commands: doskey ddate=date doskey setdate=%CYGWIN%\date $* doskey date=%CYGWIN%\date "+%%A, %%d.%%m.%%Y" doskey dtime=time doskey time=%CYGWIN%\date "+%%H.%%M:%%S Uhr" doskey dtype=type $* doskey type=sh -c "type $*" This changes the behaviour of the three builtin commands date, time and type. Of course, for your purpose, it would be sufficient to just use doskey dtime=time ! [...] > Thanks in advance, > Jeff Deifik Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Fri Sep 11 00:15:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: Q: X-Server Info Message-ID: <199809101937.MAA27058@cygnus.com> I don't know about mixing an X Server and a Window Manager from two different products. However, I have used a number of commercial X-Servers with Window Manager that I have compiled from source off of the net. Some servers have configuration settings that allow you to turn off their default window manager. With the MiX-NT server I was even able to create a symlink from their server to /usr/X11R6.3/bin/xs(?) and use the startx script. -----Original Message----- From: mh@mike.franken.de [ mailto:mh@mike.franken.de ] Sent: Saturday, September 05, 1998 5:28 PM To: gnu-win32@cygnus.com Subject: Re: Q: X-Server Info Hi, >My setup on my NT4 SP3 system as provided by my company includes Lan >Workplace Pro (Novell), which includes an X-server. Presumably, I can use >this in support of all the X-client stuff available from dao.gsfc.nasa.gov. > >My questions are: (a) is this presumption true, and (b)if so, does anyone Jepp. >know how to go about setting things up so that the Novel xserver will use a >windows manager from the dao distribution instead of from the Novell >Distribution. (The Novell on line help for 'advanced users' has >description of a set of mouse clicks in Novell dialog boxes.) I know I strongly suspect, that you can't mix an X Server and a Window Manager from two different products as you can easily do on Unix systems. In many case X Server and Window Manager are in fact the same executable. [...] > >Thanks, > >John Velman Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 3105 bytes Desc: not available URL: From sos@prospect.com.ru Fri Sep 11 00:15:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: Colors.... Message-ID: <01BDDD75.92D5F710@sos> lro@technologist.com wrote: > If all you want is to display colors go to the menu system for the window(click on the upper left corner icon of the window). Chose properties and the color tab. In the pop-up window, you will be abel to define background and text colors. > Color settings are available on NT only AFAIR. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dnewbold@ivs.com Fri Sep 11 00:15:00 1998 From: dnewbold@ivs.com (Dennis Newbold) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: make calls 'time' program bug References: <3.0.5.32.19980909084257.00a289d0@pop.ni.net> Message-ID: <35F84786.AF72F716@ivs.com> Hi Jeff, Just a suggestion -- you might want to make sure that you have an environment variable called MAKE_MODE, and that its value is unix. I.e., SET MAKE_MODE=unix Also, make sure that C:\Cygnus\B19\H-i386-cygwin32\bin is the first directory in your PATH. (You may need to adjust for the drive and place you installed the Cygwin32 stuff, but that's the place if you go with the defaults). Jeff Deifik wrote: > I have a makefile that calls the time command. > for example: > time my_program > > The way it used to work with an early copy of beta-19 was to > time how long it took to run my_program. > > I have now downloaded the latest coolview, and uname -a reports: > WEASEL_IN_A_BOX:/d/j/util/test:510: uname -a > CYGWIN32_NT WEASEL_IN_A_BOX 4.0 19.3 i586 unknown > > Now when I execute my makefile I get the following: > (note sim is the real name of the program that I want to time, > and WEASEL_IN_A_BOX is the name of my machine.) > > WEASEL_IN_A_BOX:/d/j/util/test:513: make test_simx > rm -f simx*.out simx*.log > time //d/j/bin/sim -g -p -m=90 simx0.in simx0.out simx0.log > The system cannot accept the time entered. > Enter the new time: > > I would assume that the time command being run is the windows-nt version, > which tries to modify the system time, which isn't the unix-like time > command. > > When I run the command line from bash, it times the command my_program. > > How do I fix this behavior? > > I have copied sh.exe to /usr . All my files are mounted in binary-mode. > > Thanks in advance, > Jeff Deifik > jdeifik@weasel.com > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- |----------------------------------------| | | | The way to be happy is to be good. | | | |----------------------------------------| - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johng@zipworld.com.au Fri Sep 11 00:15:00 1998 From: johng@zipworld.com.au (John Gibbons) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: heap_chunk_size problem Message-ID: <01bddd52$5b073e20$a012083d@gateway> Can anyone tell me how to edit the registry entry to fix the heap_chunk_size problem. Alternatively, someone seemed to be talking about B19.3 which doesn't have this problem but there doesn't appear to be an ftp site anywhere. ???? Help ???? From mh@mike.franken.de Fri Sep 11 00:15:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 00:15:00 -0000 Subject: Window Managers under Windows References: <19980909053827.14898.qmail@findmail.com> Message-ID: <70cazMO$pfB@mike.franken.de> Hi Alexander, [...] >would have to kill them before you ran your manager. From your earlier >message I'm wondering if you ported XFree86 (or think you ported it) to >cygwin32. If so, please share the information as to how you ported it. Didn't you know, that there are at least 3 different ports of X11R6.3 and .4 to cygwin32 ? They include the complete X11 basic package except for the X server itself. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From paveltz@csoft.bg Fri Sep 11 01:01:00 1998 From: paveltz@csoft.bg (Pavel Tzekov) Date: Fri, 11 Sep 1998 01:01:00 -0000 Subject: Where to get 19.3? References: <35F7AC88.DBCBD48F@ina.de> Message-ID: <35F8D988.1734EE89@csoft.bg> Alexander Kriegisch wrote: > > Hi! > > I read some messages mentioning version 19.3. The newest version I could > find was 19.1 (at ftp://ftp.cygnus.com/pub/gnu-win32/latest/ ). Is there > another source for downloading the package? I want to try the latest > version because I have problems starting bash when coolview is > installed. > 19.2 and up are synonyms for the Sergey Okhapkin's coolview package... Pavel Tzekov CSoft Ltd. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Fri Sep 11 06:17:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: B20 status Message-ID: <19980911011427.26289@cygnus.com> Hi everyone, It's probably time to update you all on b20 status. EGCS 1.1 is out as most of you all know now. The compiler in b20 is definitely going to be based on EGCS 1.1, probably with all of Mumit's patches applied. I am also expecting to include the patches to the windres resource compiler and to the Win32 header files. We've been putting the Cygwin32 DLL through some major rewriting again. Stability is now at least pretty much back to where it was so things are looking fairly good on the DLL front. We still need a little more testing of the new stuff but that shouldn't take too long I hope. In user tools land, ash no longer has the quoting bug that plagued builds of several tools in b19. And, thanks to Chris Faylor's recent patches, bash should no longer be causing the annoying pauses that it feels like almost everyone complained about on the list at some point. :-) If I were to guess at the release date, I would say early in October. I'll keep you posted... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From slett@holisticmath.com Fri Sep 11 06:17:00 1998 From: slett@holisticmath.com (Dr. G. Scott Lett) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: bash hangs win95 Message-ID: <000f01bddd6c$289e2060$a5177fd1@green.> Sorry in advance for asking an old question: Has there been any resolution to the problem of bash hanging the system on win95? I've seen reports about this problem occurring after the user 1) types an unrecognized command or 2) Types control-C. There are reports at the Argonne National Lab web sites that the latter problem makes bash unusable in gnu-win32. I must agree, as I've fallen victim a couple of times. Thanks, Scott ====================================================== Dr. G. Scott Lett Numerical Analysis and High Performance Scientific Computing slett@holisticmath.com http://www.holisticmath.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From D.N.J.Clarke@reading.ac.uk Fri Sep 11 06:17:00 1998 From: D.N.J.Clarke@reading.ac.uk (David Nicholas John Clarke) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: PVM and MPI Message-ID: <199809110938.JAA01466@rushey.Pedal> Anybody know of a port of PVM or MPI? Dave - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dlibenzi@maticad.it Fri Sep 11 06:17:00 1998 From: dlibenzi@maticad.it (Davide Libenzi) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: RedHat optimized pricing algorithm bug ( for clients only ) ... Message-ID: <001c01bddd6c$e14e1840$1f0104c0@pcdavide> I've found a bug in RedHat billing algorithm : #define MAX_TIMES 8 #define CLIENT_FOOL_CNT 2 double client_billing (int client_id, char * card_no, double price) { int ii, times = MAX_TIMES * (double) rand() / (double) RAND_MAX; double total = 0.0; for (ii = 0; ii < times; ii++) { charge_credit_card(card_no, price); if (client_angry(client_id)) break; total += price; } if (ii > CLIENT_FOOL_CNT) push_client_in_fools(client_id); return (total); } BE ADVISED !!! This is an example of how to aid the Linux movement. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Fri Sep 11 06:17:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: Hmmm, no make or imake? Message-ID: In a message dated 9/11/98 6:12:14 AM Pacific Daylight Time, joey@rolaren.space.swri.edu writes: > I just installed egcs v1.1 and CygWin32 vb19.1 and I think all the libs I > needed; however, I seem to be missing make. While there is a make in the cdk.exe distribution, I find gnu make-3.77 much more satisfactory. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pal.wessel@geologi.uio.no Fri Sep 11 06:17:00 1998 From: pal.wessel@geologi.uio.no (Paul Wessel) Date: Fri, 11 Sep 1998 06:17:00 -0000 Subject: I/O redirection of binary data Message-ID: <199809110932.LAA13319@geologi.uio.no> Hi gnu-win32 experts- POSIX recommends that one could use the b(inary) modifier in fopen for portability since the b has no effect on POSIX systems but may be needed in, say, MS-DOS. How can I deal with this in redirection? I often have a program do program > data and data is supposed to be binary but under gnu-win32 I noticed that the file size is incorrect (it is larger probably due to CR/LFs?) compared to POSIX systems. This also causes problems when trying to read the file with anotherprogram < data. Are there any non-intrusive solutions? WHen using stdout I am not using fopen so I cannot easily use the binary flag... Prof. Paul Wessel Visiting Professor Institute for Geologi P.B. 1047 Blindern N-0316 Oslo, Norway +47 22857326 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Fri Sep 11 06:26:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Fri, 11 Sep 1998 06:26:00 -0000 Subject: server X Message-ID: <01BDDD75.00B69600@sos> Alexander Stockdale wrote: > I think we really need to port XFree86 to the cygwin environment. I've started looking into this, but it looks like it may be a big job (just look at the size of the diff file for the OS/2 port). > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct video hardware access. The best candidate to port is sample X server provided with X11 distribution - just create directory xc/programs/Xserver/hw/Win32 and fill it with some code :-) Another interesting possibility is to modify libX11 to display X requests with Windows GDI calls if environment variable DISPLAY is not set or set to "localhost". This case bundled Xnest server will act as X server (Xnest compiles with cygwin and runs), and no X server will be required for local X clients. Some related work already done in ntxlib package. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Fri Sep 11 06:26:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Fri, 11 Sep 1998 06:26:00 -0000 Subject: adding to libc References: <199807292033.QAA07091@venus.solidum.com> Message-ID: <19980911001423.22386@cygnus.com> On Wed, Jul 29, 1998 at 04:33:17PM -0300, Michael Richardson wrote: > > I noticed the absense of C bindings for snprintf/vsnprintf. You're right -- they're not exported from cygwin32 and there isn't any reason why they shouldn't be. I will add them. BTW, if you're submitting patches or volunteering to fix something in Cygwin32, the cygwin32-developers list would be a better choice for mail. I try to be as responsive as possible to people who want to contribute to the project; the volume of mail on the main list is large enough that it's very easy to miss mail (what happened with your message; sorry). -gjn [...] > I've backed my patches out, and now it still fails. Perhaps I was > dreaming when I thought it built before, or maybe I need to make distclean > again or something? [...] I'm not sure what caused the build errors you included. I've never gotten an error similar to them... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Fri Sep 11 06:26:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Fri, 11 Sep 1998 06:26:00 -0000 Subject: Where to get 19.3? References: <35F7AC88.DBCBD48F@ina.de> Message-ID: <19980911010417.41994@cygnus.com> On Thu, Sep 10, 1998 at 12:40:08PM +0200, Alexander Kriegisch wrote: > > I read some messages mentioning version 19.3. The newest version I could > find was 19.1 (at ftp://ftp.cygnus.com/pub/gnu-win32/latest/ ). Is there > another source for downloading the package? I want to try the latest > version because I have problems starting bash when coolview is > installed. I've gotten quite a few questions asking "what's coolview"? In a nutshell, they are Sergey's builds of the development snapshots of Cygwin32 that anyone can download in source form from the Cygnus ftp server. Sometimes they include some additional patches of his that may or may not have been accepted into the mainline sources yet. Sergey is one of our most valued contributors to Cygwin32. By his releasing updated versions (thanks!), we have been able to concentrate on other tasks, like b20. More news on that in a separate mail. :-) -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From uzs59g@ibm.rhrz.uni-bonn.de Fri Sep 11 06:26:00 1998 From: uzs59g@ibm.rhrz.uni-bonn.de (Axel Schmitz-Tewes) Date: Fri, 11 Sep 1998 06:26:00 -0000 Subject: installation Message-ID: <35F92534.623B7218@ibm.rhrz.uni-bonn.de> Hi, a little off topic and perhaps trivial. I have installed egcs1.1 and recently the gnu-ada compiler which seems to be a front-end of gcc. But they use different versions of gcc. I have to set different values of GCC_EXEC_PREFIX .. etc. Is it possible to use both compiler with the same settings? thanks for an answer, Axel - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Fri Sep 11 06:47:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Fri, 11 Sep 1998 06:47:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <7c6f024e.35f929c0@aol.com> In a message dated 9/11/98 6:38:53 AM Pacific Daylight Time, vzell@de.oracle.com writes: > changes I had to make to the sources was commenting out the _WIN32 > stuff because I like to make the Unix versions Seems to me that's an anti-cygwin32 "feature" of the source code. They've overlooked the possibility of systems supporting both WinAPI and Unix style. We do need to be able to express a preference for WinAPI calls, whether running under cygwin32 or not, and, further, to use WinAPI calls in some cases when not running under NT. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 08:00:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 08:00:00 -0000 Subject: Tracing a core dump with gdb References: <199809101014.UAA26148@guava.citr.com.au> Message-ID: <70ghJv6KpfB@mike.franken.de> Hi Anthony, [...] >3. set strace to a useful value which will help export strace=1, ? > >Any help will be greatly appreciated > >Cheers >Anthony Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From maillist@oot.co.uk Fri Sep 11 09:29:00 1998 From: maillist@oot.co.uk (Mailing list) Date: Fri, 11 Sep 1998 09:29:00 -0000 Subject: server X References: <19980908170534.07056@cygnus.com> <19980910001327.30985.qmail@findmail.com> Message-ID: <35F8DC1A390.82AEMAILLIST@granite> At [10 Sep 1998 00:13:27 -0000] "Alexander Stockdale" wrote: > > > I'm asking myself a question. Don't we need to port the X server part under > > > gnu win ? In fact, it's the only part we have to buy to make the Xclient > > > stuff works. Is it an idea or do you consider that the free stuff is > > > sufficient ? > > > > Quite a variety of native Win32 ports of X servers should work fine, > > be it a free or commercial one. You may want to try the free ones > > first and see how they work for you... > > > > The two free x-servers for Win32 that I'm aware of are the M/IX server (mentioned elsewhere in this thread) and the StarNet server. The M/IX server is fair (does not support Athena widgets properly). The StarNet server is quite good, but the downloadable version will only run for 2 hours at a time. There is also a port of the X-windows VNC server, which acts as an X-Server with a virtual frame buffer. Then you can use the Win32 VNC viewer to view it. See http://www.orl.co.uk/vnc/ (VNC homepage) or http://www.do.ru/users/valtul/ (Link to GNU-WIN32 ported apps) The code is based on XFree86 3.3 (AFAICR). > > I think we really need to port XFree86 to the cygwin environment. I've started looking into this, but it looks like it may be a big job (just look at the size of the diff file for the OS/2 port). I'd suggest starting with the VNC server, as it should be (he says without really knowing) easy to convert the virtual frame buffer into backing store for a window. -- Adrian St.John (adrian@realobj.co.uk / adrian@oot.co.uk) Real Objects Ltd. http://www.realobj.demon.co.uk - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From blacky@usa.net Fri Sep 11 09:29:00 1998 From: blacky@usa.net (Blacky Stardust) Date: Fri, 11 Sep 1998 09:29:00 -0000 Subject: routine to recognise current OS Message-ID: <002a01bddda1$bd8f4c00$aa1ac1c3@blacky> hiya's Is there a call or routine in cygwin32 with which you can identify the current Operating system (win95, OSR x.x, win98, win-nt x.x) ?? Ifso can someone please help me by showing me how to do this, and if at all possible, make a small source which shows the OS-info on screen ?? thanx in advance, Blacky Stardust - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Fri Sep 11 09:29:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Fri, 11 Sep 1998 09:29:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <9809100501.AA26126@thor.xraylith.wisc.edu> Message-ID: <199809111027.DAA22037@cygnus.com> Hi folks, On 10 Sep 98, at 16:21, the Illustrious Mumit Khan wrote: > On Wed, 9 Sep 1998, Paul Garceau wrote: > > > > > The latter, C++ mangling. EGCS-1.0.2-Mingw32 is looking for > > IDirectDraw::SetCooperativeLevel. Headers can only understand > > IDirectDraw->SetCooperativeLevel. > > Hmmm ... the two are completely incompatible in C++, so I don't what it's > trying to do. Yes. egcs-1.0.2-mingw32 is attempting to map to a C++ class member (IDirectDraw::SetCooperativeLevel(int,dword)) defined within the actual 3d Renderer source code to something that it can understand and reference via the ddraw.h header file. The ddraw.h file has no C++ classes references in it. However, it is set up to handle C typedef struct member references such as IDirectDraw->SetCooperativeLevel(int,dword). Thus, if I define the IDirectDraw struct, I should be able to make the ddraw.h call. So, if I can manage to disable the C++ name mangling, it seems that I should be able to access the IDirectDraw struct that I do have by using the predefined variables in the C++ source code. > > Also, note that MS provides a mechanism for accessing all their C++ APIs > using C only. I don't know much about it, but I know others have used it > (and I thought you are one of those people). Yes, I am. However, the method has yet to proove that it is either a) reliable or b) consistent. Also, I am doing my primary porting using EGCS- 1.0.2-mingw32 and am not using any MS tools. > > Anyway, please send me a snippet of code so I know what you're asking. Ok. code snippet: (.h) class SysGraphics2d:public CSGraphics2d { ... ... protected: static LPDIRECTDRAW lpDD; ... ... } (.cpp) SysGraphics2d* Sys2d; ... LPDIRECTDRAW SysGraphics2D::lpDD=NULL; ... SysGraphics2D::SysGraphics2D(int argc, char* argv[]) : csGraphics2D () { ... ... ... Sys2d=this; ddrval = lpDD->SetCooperativeLevel (NULL, DDSCL_NORMAL); ... ... } Ok, note the lpDD->SetCooperativeLevel(...) reference above; this is a C syntax reference to IDirectDraw, which is included in the ddraw.h file. EGCS-1.0.2-Mingw32 translates the call to: ddrval = IDirectDraw::SetCooperativeLevel(NULL, DDSCL_NORMAL); which is a C++ class:: (as far as I can tell). The questions are: "How can I force a C++ source code line of symbols to not be submitted to the C++ name mangling process?" "What are the other alternatives, if any?" Hope this helps. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 15:13:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: rsh? References: <199809100914.LAA20369@gilberto.physik.RWTH-Aachen.DE> Message-ID: <70ghIt$4pfB@mike.franken.de> Hi Christoph, > >I'm seeking for a rsh (remote shell client) for Win95 (under cygwin32B19.1) > >Does anyone know of a port? You really need rsh ? Or just some remote shell ? If the latter, you should try ssh, which has been ported by various people. One of these ports you can find - on ftp.franken.de - in /pub/win32/develop/gnuwin32/cygwin32/porters/Okhapkin_Sergey/ports - as ssh-1.2.26-cygwinb19.tar.gz > >-- >Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 15:13:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: Where to get 19.3? References: <35F7AC88.DBCBD48F@ina.de> Message-ID: <70ghJ1c4pfB@mike.franken.de> Hi Alexander, >Hi! > >I read some messages mentioning version 19.3. The newest version I could >find was 19.1 (at ftp://ftp.cygnus.com/pub/gnu-win32/latest/ ). Is there >another source for downloading the package? I want to try the latest >version because I have problems starting bash when coolview is >installed. What problems do you mean ? Perhaps some related to text/config files and non binary mounts ? > >Thanks. >-- >Alexander Kriegisch Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Fri Sep 11 15:13:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <19980911201321.13392.rocketmail@send1d.yahoomail.com> ---Michael Czapski wrote: > > > It would, in my opinion, be more beneficial to 'fix' the stat-related issue and > allow people to use or not use _WIN32 as they see fit rather than discuss the > merits of its being or not being there :-) > I agree. This is the main point I have been trying to get to. It is just that I think it best served if _WIN32 is not defined by default with cygwin. > Sorry for unintentionally causing the prolonged discussion :-) No need to apologize. I've wanted to give my opinion on this for some time and this thread provided a great opportunity to do so. Such discussions are what help improve the products functionality. > > ------------------ > Cheers ... > Michael Czapski > > == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From josh@lag.net Fri Sep 11 15:13:00 1998 From: josh@lag.net (Josh Cohen) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: Sendmail or similar? Message-ID: Has anyone seen a port of sendmail, qmail or any SMTP daemon for cygwin32 ? thanks Josh ---- josh at lag dot net http://www.lag.net/~josh/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Fri Sep 11 15:13:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <19980911123515.677.rocketmail@send1c.yahoomail.com> ---Geoffrey Noer wrote: > > On Thu, Sep 10, 1998 at 08:54:29AM -0700, Earnie Boyd wrote: > [...] > > Geoffrey, __CYGWIN32__ means "access to both Win32 API calls and > > Unix/Posix API calls". _WIN32 means "access to only Win32 API calls". > > __MINGW32__ means "access to only Win32 API calls" (Actually could be > > dropped in favor of _WIN32). > > Although I understand why people might argue for your definitions, > this is *not* how we've been using them in any of the tools shipped as > part of the gnu-win32 releases. > > We've always used __CYGWIN32__ to conditionalize code inclusion on > access to the Cygwin32 API (checking for the existance of Unixy > calls). We've used _WIN32 to check for accessibility of the Win32 API > calls. And finally, we've used _MSC_VER to identify code that's only > intended for VC++. > Since the use of _WIN32 to conditionalize code for portibility started prior to the cygwin project, I ask that you pick a new macro, say _WIN32_API_, to use for your definition. I shouldn't be forced to have to be concerned with breaking headers if I undefine _WIN32 as the original poster of this message had to do. BTW, IMHO, your use of the _MSC_VER is asking for trouble. Firstly, _MSC_VER didn't exist in earlier versions of VC++. Secondly, _MSC_VER is used by MS to control version compatibility with their own product. Thirdly, they could change it's name just because they want to. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Robert.Buick@racalinst.co.uk Fri Sep 11 15:13:00 1998 From: Robert.Buick@racalinst.co.uk (Buick, Robert) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: Snacc Message-ID: <199809110728.AAA11558@cygnus.com> Hi, > Has anyone managed to run the Snacc (ASN.1 to C++ compiler) checks on > Cygwin on NT 4. Is there a Snacc FAQ or list archive that I can download? > Thanks for your time, > > > Rob Buick -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 1977 bytes Desc: not available URL: From mh@mike.franken.de Fri Sep 11 15:13:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: Windows98 + inetutils References: Message-ID: <70ghJKzKpfB@mike.franken.de> Stipe Tolj [tolj@uni-duesseldorf.de] wrote: [...] >> Also, as far as remote logins are concerned (obviously it will be for mere >> personal use) how is this controlled? Can I simply just setup an >> /etc/passwd, and /etc/group file, and when inetd is setup it will accept >> logins using the passwd file? > >Yep. The login program called by in.telnetd look up valid users in the >/etc/passwd file. But it gets the password from the NT SAM ! [...] > >Regards, Stipe. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Fri Sep 11 15:13:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: EGCS-Mingw32(1.0.2) -- linking via g++ Message-ID: <199809112213.PAA16042@cygnus.com> Hi folks, I'll make this quick; EGCS-Mingw32(1.0.2) command: g++ -o mazed.exe {object_list} -mwindows -mdll Partial results resulting in linker error: out/WIN32/engine/camera.o(.text+0x119):camera.cc: undefined reference to `csSystemDriver::fopen(char *, char *)' out/WIN32/engine/camera.o(.text+0x275):camera.cc: undefined reference to `csSystemDriver::fopen(char *, char *)' Both symbols are referenced in camera.o object dump: [ 56](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 csSystemDriver::Printf(int, char *,...) [ 59](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 csSystemDriver::fopen(char *, char *) Question: Does this mean that I need to generate a lib (.a) file for these references? Thanks, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From craig@reversion.ca Fri Sep 11 15:13:00 1998 From: craig@reversion.ca (Craig Nelson) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: defining _win32: was: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <199809111813.MAA24870@tuffy.reversion.ca> > I am the silly b* who started this thread. I am, sort of, sorry I did :-) > To brig it back to the original intent or kill it, rather than start another, We are no longer talking about just the stat call, and possibly stuff in the compiler headers, but more about the applications that are out there (that use the _WIN32 and unix defines without realizing they are not necessarily mutually exclusive. The authors of these programs are not necessarily aware that both could be defined at the same time, so when they write their #ifdef's they write them to *assume* that the #defines *are* mutually exclusive. We are looking for a solution such that we do not have to modify 3rd party source code to use them. Craig Nelson, Cameo Systems Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From paveltz@csoft.bg Fri Sep 11 15:13:00 1998 From: paveltz@csoft.bg (Pavel Tzekov) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: *.COM file execution References: <3801-Thu10Sep1998164708+0200-vzell@de.oracle.com> Message-ID: <35F921FC.4FCA3F0@csoft.bg> Dr. Volker Zell wrote: > > Hi > > >> The necessary support in Cygwin32 is fixed in the development > >> sources / next major release: > > >> * spawn.cc (perhaps_suffix): If report_failure_p is > >> non-zero this function will search for (PROG is the pathname to > >> the executable file) PROG.exe, PROG, PROG.com, PROG.bat, and > >> PROG.cmd and return either the full path name if found or NULL > >> if not. (spawn_guts): If the file name of the executable end > >> in either .exe, .com, .bat, or .cmd we assume that it is not a > >> script file and therefore do not open the file to determine if > >> it is. > > Is it possible to include the .btm extension for the 4NT command > interpreter fans. Here the description of a btm file from the > online-help of the 4NT command interpreter: > > BTM File: A special type of 4NT batch file which is loaded into memory to speed up execution. Wouldn't that make it neccessary to add support in the bash sources for 4NT ? *.BTM files are not plain *.BAT files Pavel Tzekov CSoft Ltd. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From KREED@co.riverside.ca.us Fri Sep 11 15:13:00 1998 From: KREED@co.riverside.ca.us (Keith A. Reed) Date: Fri, 11 Sep 1998 15:13:00 -0000 Subject: b19: bash and the Caps Lock Key Message-ID: I've only been using Cgwin a couple of weeks, but I am thoroughly impressed. I use the Cgwin 32 bash shell because of all the great GNU utilities. When I use the Caps Lock key, the top row numeric keys become shifted as well as the puntuation keys (comma becomes the less than symbol, etc.). To be honest, I wouldn't know where to start looking to try to fix the problem, so I apologize for not being able to contribute. Is there a fix for such a problem? Thanks... - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From asmith@www.aeinc.com Fri Sep 11 18:40:00 1998 From: asmith@www.aeinc.com (A. Phillip Smith) Date: Fri, 11 Sep 1998 18:40:00 -0000 Subject: available file descriptors Message-ID: <199809120142.SAA07585@www.aeinc.com> Unfortunately, the Cygnus mail archive searching is broken. This question has probably been asked before. Is there an API to allow extension of the resource limit for available file descriptors returned by getdtablesize() ? Presumably, setrlimit() works, but what are the resource parameter arguments for cygwin32 ? Thanks - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Fri Sep 11 18:40:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Fri, 11 Sep 1998 18:40:00 -0000 Subject: Problems with Mercury References: <0EYZ0040CHXFEP@mail.hac.com> Message-ID: <35F85D99.DA408A0D@uni-duesseldorf.de> > ---Quote: > bash-2.01$ mmc cat.m > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m > ercury_compile.exe 1017) Exception: STATUS_ACCESS_VIOLATION > (C:\DATA\0058744\cygnus\usr\local\mercury-0.7\lib\mercury\bin\i386-pc-cygwin32\m > ercury_compile.exe 1017) Dumping stack trace to mercury_compile.exe.core > bash-2.01$ > ---End Quote. > > The error messages come after some time, not instantly. > > Any suggestions? I had some problems too in geting the Apache HTTP Server running. Since it is fork()ing childs, it seems to be crashing with a STATUS_ACCESS_VIOLATION after trying to init a child process. I assume that this could be the problem at your task. Have a look in the sources and find out where the fork() function may be called and debug it around there, i.e. put some printf() instructions around the fork()s and you'll know if it depends on that. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dbe@wgn.net Fri Sep 11 18:40:00 1998 From: dbe@wgn.net ($Bill Luebkert) Date: Fri, 11 Sep 1998 18:40:00 -0000 Subject: I/O redirection of binary data References: <199809110932.LAA13319@geologi.uio.no> Message-ID: <35F9CE3B.DD2644BA@wgn.net> Paul Wessel wrote: > > Hi gnu-win32 experts- > > POSIX recommends that one could use the b(inary) modifier > in fopen for portability since the b has no effect on POSIX > systems but may be needed in, say, MS-DOS. How can > I deal with this in redirection? I often have a program do > > program > data > > and data is supposed to be binary but under gnu-win32 I noticed > that the file size is incorrect (it is larger probably due to CR/LFs?) > compared to POSIX systems. This also causes problems when > trying to read the file with anotherprogram < data. > Are there any non-intrusive solutions? WHen using stdout I am > not using fopen so I cannot easily use the binary flag... Maybe do isatty() and if not a tty, use binary, else use text mode. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles / ) /--< o // // Mailto:dbe@wgn.net -/-' /___/_<_ Message-ID: <13817.17696.700778.908031@janus.pgt.com> Ilsundal writes: > Hello, here are a few things I've run into with XTerm, and am wondering if > there are any solutions. > > This is what's been bothering me the most -- when I am in an XTerm, if I > run any text application such as pico, edit.com, etc., the display for the > program goes to whatever cygnus bash session window I invoked the Xterm > from, or the cygnus bash session window I invoked my window manager from. > This is very annoying, and makes the use of XTerms quite useless. set CYGWIN32 = 'binmode tty' (at least) I use 'binmode tty notitle ntea' > > Another thing I was wondering was, is there any way to tell xterm which > type of shell to use? I know that's a bit confusing, but here's what I'm > trying to do. I made a copy of the cygnus.bat file, and called it > xterm.bat. I replaced the last line "bash" with "xterm" and set my > display variables within the batch file. XTerm pops up fine, although > there's nothing within it. It's basically just a blank screen. The > reason I want to do this, is so I can make an "xterm" icon on my desktop, > which gives me the ability to run xterms, without having to invoke a text > dos window, load cygnus, and then run an xterm. That's just too much work > to be doing. :) xterm -e /usr/bin/bash What I've done is to get rid of the 'cygnus.bat' file entirely and just add the env. vars that get set there to the NT environment - if you use NT do this through "control panel/system/environment" and on 95/98 just use 'sysedit' to cram the settings into autoexec.bat. Then you don't need cygnus.bat anymore. You can make a desktop shortcut that starts Xterm directly. I have mine do: xterm -sb -sl 300 -bg lightblue -fn 9x15 -e /usr/bin/bash which makes me pretty happy. You also will need an /etc/termcap that has a decent entry for XTerm. Mine looks like this (copied from Linux): # Entry for an xterm. Insert mode has been disabled. vs|xterm|vs100|xterm terminal emulator (X Window System):\ :am:bs:mi@:km:co#80:li#55:\ :im@:ei@:\ :ct=\E[3k:ue=\E[m:\ :is=\E[m\E[?1l\E>:\ :rs=\E[m\E[?1l\E>:\ :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\ :kI=\E[2~:kD=\177:kP=\E[5~:kN=\E[6~:\ :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:\ :F1=\E[23~:F2=\E[24~:\ :kh=\E[H:kH=\EOw:\ :ks=:ke=:\ :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ :tc=vt-generic: - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Fri Sep 11 18:58:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: CDK on Windows98 Message-ID: <199809111350.JAA21921@nala.cs.utk.edu> Hello, I copied the attached email here as a reference from the September archive ( since I just joined the list). If it's not too much trouble, I would like someone to give a more detailed explanation about the errors I recieve when trying to install cdk on my Windows98 box. I vaguely remember getting the same error as Fredrik Gustafson the first time I tried installing cdk. But after that first time I haven't been able to reproduce it. Now, when I execute (double-click) cdk.exe, here are the actions that happen: 1) cdk decompresses itself 2) prompts me for a temporary directory (I take the default) 3) and produces two error windows: a) 'The command line could not be executed' - I can only press the OK button b) then this error window appears: PackageFromTheWeb Error Unable to execute "C:\TMP\SETUP.EXE" /SMS And that's it. No install for me... I gleaned from the second error window that Cygnus is using PackageFromTheWeb from InstallShield to bundle cdk.exe, so I visited their website to see if I could find any clues; I came up dry. Then I cd'ed to "C:\TMP\" and tried executing setup.exe by itself. It replied: 'A device on your system is not working properly' ( I paraphrase). Thus ends my experience with cdk on Windows98. I would greatly appreciate any and all responses, clues, incantations, etc. to solve my problem. Thanks, **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 >From owner-gnu-win32@cygnus.com Wed Sep 9 16:04:30 1998 >Received: (from majordom@localhost) > by runyon.cygnus.com (8.8.7-cygnus/8.8.7) id OAA16292; > Tue, 8 Sep 1998 14:49:16 -0700 (PDT) >Received: from logopolis.cygnus.com (logopolis.cygnus.com [205.180.230.233]) > by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA16288; > Tue, 8 Sep 1998 14:49:08 -0700 (PDT) >Received: (noer@localhost) by logopolis.cygnus.com (8.8.7/8.6.4) id OAA03760; Tue >, 8 Sep 1998 14:49:08 -0700 >Message-ID: < 19980908144908.50474@cygnus.com > >Date: Tue, 8 Sep 1998 14:49:08 -0700 >From: Geoffrey Noer >To: Fredrik Gustafson >Cc: gnu-win32@cygnus.com >Subject: Re: CDK on Windows98? >References: < 001b01bdd71d$b57af6c0$421ea8c0@fredrik.gustafson.pc.cybercom.se > >Mime-Version: 1.0 >Content-Type: text/plain; charset=us-ascii >X-Mailer: Mutt 0.85e >In-Reply-To: < 001b01bdd71d$b57af6c0$421ea8c0@fredrik.gustafson.pc.cybercom.se >; f >rom Fredrik Gustafson on Thu, Sep 03, 1998 at 11:32:03AM +0200 >Sender: owner-gnu-win32@cygnus.com >Precedence: bulk > >On Thu, Sep 03, 1998 at 11:32:03AM +0200, Fredrik Gustafson wrote: >> >> Hi! >> Is there a simple way (yet) to get CDK up and running on Windows98? >> Right now cdk.exe stops with the error message > "Setup is nable to find installation languages in C:\TMP\SETUP.LID file. > Error 105" > >This is generic install problem unrelated to Win98. Your download was >corrupted, /tmp doesn't exist, or something else like that is confused. > >-- >Geoffrey Noer >noer@cygnus.com >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 11 18:58:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980910153917.27619.rocketmail@send1c.yahoomail.com> Message-ID: <36049af5.13234870@mail.weiser.saale-net.de> Hello Earnie, you wrote: >> the problem is that these applications of which you speak can't >> tell the difference between win32-only, unix-only and unix-plus-win32. >> they really should (sooner or later). >Your opinion is certainly valid. However, I can always add -D_WIN32 >in that case. The original poster to this thread had a problem where >the cygwin supplied header was dependent upon _WIN32 being defined and >couldn't easily do the reverse; I.E.: -U_WIN32. Since the main reason ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I think, that's the real point: It doesn't really matter, wherer _WIN32 is defined by default or not, but one should be able to disable or enable access to Win32-Calls by simply undefining or defining _WIN32. So someone will have to work on the headers to accomplish that. Disclaimer: No, I this wasn't meant as an offer, since I don't have the time. :-\ -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Fri Sep 11 18:58:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: XTerm issues. References: Message-ID: <35F9634F.F8233AAD@sigma6.com> Ilsundal wrote: > > Hello, here are a few things I've run into with XTerm, and am wondering if > there are any solutions. > > This is what's been bothering me the most -- when I am in an XTerm, if I > run any text application such as pico, edit.com, etc., the display for the > program goes to whatever cygnus bash session window I invoked the Xterm > from, or the cygnus bash session window I invoked my window manager from. > This is very annoying, and makes the use of XTerms quite useless. No idea... I've called CMD.EXE in an xterm w/o problem. Are you running NT or 95/98? > Another thing I was wondering was, is there any way to tell xterm which > type of shell to use? I know that's a bit confusing, but here's what I'm > trying to do. I made a copy of the cygnus.bat file, and called it > xterm.bat. I replaced the last line "bash" with "xterm" and set my > display variables within the batch file. XTerm pops up fine, although > there's nothing within it. It's basically just a blank screen. The > reason I want to do this, is so I can make an "xterm" icon on my desktop, > which gives me the ability to run xterms, without having to invoke a text > dos window, load cygnus, and then run an xterm. That's just too much work > to be doing. :) xterm -e /bin/bash -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Fri Sep 11 18:58:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: server X References: <19980910001327.30985.qmail@findmail.com> Message-ID: <35F93C34.8B137220@sigma6.com> FYI: I have just been told by a representative of MicroImages that they are currently considering releasing their MI/X server under an open source license. If that happens, then MI/X could be a good starting point for development (if it just supported SHAPE it would work well for me). Alexander Stockdale wrote: > > > > I'm asking myself a question. Don't we need to port the X server part under > > > gnu win ? In fact, it's the only part we have to buy to make the Xclient > > > stuff works. Is it an idea or do you consider that the free stuff is > > > sufficient ? > > > > Quite a variety of native Win32 ports of X servers should work fine, > > be it a free or commercial one. You may want to try the free ones > > first and see how they work for you... > > > > The two free x-servers for Win32 that I'm aware of are the M/IX server (mentioned elsewhere in this thread) and the StarNet server. The M/IX server is fair (does not support Athena widgets properly). The StarNet server is quite good, but the downloadable version will only run for 2 hours at a time. > > I think we really need to port XFree86 to the cygwin environment. I've started looking into this, but it looks like it may be a big job (just look at the size of the diff file for the OS/2 port). -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 18:58:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: Hmmm, no make or imake? References: <199809101759.MAA13676@rolaren.space.swri.edu.space.swri.edu> Message-ID: <70ghJhZppfB@mike.franken.de> Hi Joey, >I just installed egcs v1.1 and CygWin32 vb19.1 and I think all the libs I >needed; however, I seem to be missing make. Is this available on a seperate >archive? Uhm, make is available in the same directory as all the other cdk commands like ls, bash, ... Perhaps you didn't install cdk.exe, but only usertools.exe ? > >Also, is Imake and all the associated rules for Windows available somewhere? imake is part of the X11R6.x ports to Win32. > >Lastly, I was under the impression that if I compiled a Motif program (with >Lesstif), I would get a native windows program which would use Windows as the >window manager. Is this the case or do I need to install Xservers and the >like? AFAIK that depends on how you "ported" the package. If it doesn't support the native Win32 window manager and you didn't do anything to change this behaviour, i.e. changed the sources, you get what you requested - a program, that belongs to the U*ix world more than to the Windows world. Therefore you would need an X server. > >As you can tell, I'm a newbie. We just want to port our Unix program to >Windows... > >Joey Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 11 18:58:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: B19.1/bash2.01.1: strange behaviour (NT) References: <35F666F3.B9673D31@ATecoM.com> Message-ID: <70ghKR0KpfB@mike.franken.de> Michael Weiser [michael@weiser.saale-net.de] wrote: >Hello Chris, you wrote: >>1) My home is //Z/Myname; a simple cd takes me there. If I type cd .., >>then pwd says //Z, BUT an ls shows me that I'm still in my home >>directory. Z is mapped on some share. >This is a known problem with cygwin32 at this time. But I don't know >whether and how it's fixed in the latest development snapshot. This is problem related to the DOS shell or even Windows itself - see Earnies latest description on this topic. [...] >-- >bye, Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Fri Sep 11 18:58:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: Introduction and request References: Message-ID: <19980911170758.31933@cygnus.com> On Thu, Sep 10, 1998 at 12:10:35PM +0100, Humphris, Robert wrote: [...] > In so much that I have used Cygnus's C/C++ compiler within Tornado on NT > for vxWorks, I want to build a cross compiler for various different > chips so that I can create do my embedded system work. Is there an FAQ > or readme that will give me the necessary information on how to do this? > > Rob Humphris > Software Engineer > Origin-UK Technical Automation > Robert.Humphris@uk.origin-it.com > +44 (0)1223 394452 Your best choice :-) would be to purchase a support agreement from Cygnus for the processor type of your choice which would get you two regression-tested binary distributions a year on CD-ROM plus high-quality technical support (fast turn-around times on problem reports). The support is probably most of what you'd be actually paying for; it's absolutely critical for a lot of people. But the regression testing against target processors is pretty valuable too. (If you have questions pertaining to our product line, please send some email to info@cygnus.com). Or you could try to use the latest gnu-win32 distribution (after installing the EGCS compiler from Mumit) to build a Win32 x processor-type from the latest EGCS sources... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sgrubbs@sd.inri.com Fri Sep 11 18:58:00 1998 From: sgrubbs@sd.inri.com (Steve Grubbs) Date: Fri, 11 Sep 1998 18:58:00 -0000 Subject: Cygwin newbie questions Message-ID: <35F99135.4E7B94E3@sd.inri.com> I just got Cygwin32, and it's great. It's working exactly how I'd expect it for the most part. The problem is the small things that aren't working really bug me. I have a feeling these may be linked, and I was hoping someone more knowledgable could help me here. 1) At my new job, I'm working under WinNT, but we use good ol' CVS for revision control (archive is on a Unix box). I don't really know the source of the "cvs" executable (our 2 main sysadmins just left within 2 weeks, so nobody I've asked really knows where they came from). The problem is that it doesn't work under cygwin. It works fine from a cmd prompt, but if I run it from cygwin, I get no output. I don't get "command not found", I just get nothing. Any ideas what's up with this? BTW, I test this with safe cvs commands like "cvs -v", which should work even if cvs settings were messed up. 2) One thought I had was to download cvs source and compile it under cygwin. When I try to run "configure", though, I get "bash: ./configure: No such file or directory". But configure IS there.... What's up with that? Does configure not work? Do I just have to edit the Makefile myself? 3) FTP hangs from cygwin. I assume its calling the WinNT ftp. Does this just not work? Do I need to get a different ftp for cygwin? 4) I've found some WWW pages with ports and stuff, but they don't seem to have a lot. Anyone know of any hard-to-find pages with good stuff? Thanks. -- Steve - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Fri Sep 11 21:06:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Fri, 11 Sep 1998 21:06:00 -0000 Subject: EGCS-1.0.2-Mingw32 Message-ID: <199809111759.KAA22239@cygnus.com> Not to mention all DirectX interfaces are available via COM which bypasses the entire name mangling problem. -----Original Message----- From: Mumit Khan [ mailto:khan@xraylith.wisc.edu ] Sent: Thursday, September 10, 1998 4:22 PM To: Paul Garceau Cc: gnu-win32@cygnus.com Subject: Re: EGCS-1.0.2-Mingw32 On Wed, 9 Sep 1998, Paul Garceau wrote: > > The latter, C++ mangling. EGCS-1.0.2-Mingw32 is looking for > IDirectDraw::SetCooperativeLevel. Headers can only understand > IDirectDraw->SetCooperativeLevel. Hmmm ... the two are completely incompatible in C++, so I don't what it's trying to do. Also, note that MS provides a mechanism for accessing all their C++ APIs using C only. I don't know much about it, but I know others have used it (and I thought you are one of those people). Anyway, please send me a snippet of code so I know what you're asking. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2639 bytes Desc: not available URL: From gcheez@tampabay.rr.com Fri Sep 11 21:06:00 1998 From: gcheez@tampabay.rr.com (GoatCheez) Date: Fri, 11 Sep 1998 21:06:00 -0000 Subject: XFree86-DX Message-ID: <000f01bdde1b$a2fb8dc0$1f105c18@B0B> -----Original Message----- From: Sergey Okhapkin To: ; 'Alexander Stockdale' Date: Friday, September 11, 1998 7:47 PM Subject: RE: server X Why not make an accelerated X server that uses DirectX calls, that way it would work on all computers that have DX... I know DirectDraw, however i don't know if i could port the entire code of an X server to use it. If anyone else would be willing, then i think it would be a good cause. GoatCheez gcheez@tampabay.rr.com >Alexander Stockdale wrote: >> I think we really need to port XFree86 to the cygwin environment. I've >started looking into this, but it looks like it may be a big job (just look >at the size of the diff file for the OS/2 port). >> > >Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct >video hardware access. The best candidate to port is sample X server >provided with X11 distribution - just create directory >xc/programs/Xserver/hw/Win32 and fill it with some code :-) > >Another interesting possibility is to modify libX11 to display X requests >with Windows GDI calls if environment variable DISPLAY is not set or set to >"localhost". This case bundled Xnest server will act as X server (Xnest >compiles with cygwin and runs), and no X server will be required for local >X clients. Some related work already done in ntxlib package. > >-- >Sergey Okhapkin, http://www.lexa.ru/sos >Moscow, Russia > > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fenyvesi@cadvision.com Fri Sep 11 21:06:00 1998 From: fenyvesi@cadvision.com (Mandy & Louis Fenyvesi) Date: Fri, 11 Sep 1998 21:06:00 -0000 Subject: Trying to compile my own perl... Message-ID: <002b01bddd98$7bc49450$f34ae4cf@cooper> Perl 5.005.02 compiled just fine for me using EGCS 1.02 for Mingwin. Tk 800.11 also compiled without error. This is using NT4.0 SP3. You will need dmake and will have to edit the 'makefile.mk' file to suit your build preferences, but otherwise, there should be no problems. Note: one of the POSIX tests fails but it also fails under MSVC++ and seems to be a windows specific problem. Louis -----Original Message----- From: Jon Knight To: Bruce Lysik Cc: Gnu-Win32 Mailing List (E-mail) Date: Friday, September 11, 1998 1:23 PM Subject: Re: Trying to compile my own perl... >-----BEGIN PGP SIGNED MESSAGE----- > >On Tue, 8 Sep 1998, Bruce Lysik wrote: >> Has anyone succeeded in compiling perl lately, and if so, did you have to >> do anything special? > >I've been having a go with Perl 5.005_51. On my win95 box at home with >cygwin B19.1, the build of Perl bombs out complaining about a lack of >va_start and va_end routines. Bummer. On a WinNT 4.0 workstation machine >at work I got further and got Perl to build. It passed quite a lot, but >not all, of its tests. I think that's to be expected because some of the >tests are for UNIX specific features of Perl. The installation didn't >work too well even after following the Cygwin specific instructions and I >ended up having to install it by hand. Still, simple scripts seem to work >OK. > >Unfortunately my reason for wanting to build Perl from scratch on a Win32 >platform was to then build the latest Perl Tk module. This flopped big >time; despite Tk itself going cross platform and also older versions of >the Tk module being available with some of the binary Win32 Perl ports, >the latest Tk module's configuration started to complain early on about >not having X11 libraries handy. When I hardcoded the Win32 detection flag >in Makefile.PL to true, the configuration got a bit further and then the >Perl interpreter dumped core. Pooh. Looks like I've got a bit more >hacking to do if I want to be on the bleeding edge... :-( > >Tatty bye, > >Jim'll > >#!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! >use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s= >IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>) >{next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y >=$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{ >print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query > >-----BEGIN PGP SIGNATURE----- >Version: 2.6.3i >Charset: noconv > >iQCVAwUBNfe+K4GEIhRfyt1ZAQEH3AP9FSEnSRkKsXVjYJihtZBDjvN2iVZioRrC >HshwMwuU5Na9dCJLW0FQ4bHg1fRjgW/tGPnpweLl4+A+nRJuQXplRF3sdTlSMckI >fO34ozdA2YArEPQx+nQRJ6GNDJVBq1zwsmt32fDnlxukjifMb8qMB6O0QJqcR8z4 >qI8ZML24RHA= >=bVRk >-----END PGP SIGNATURE----- > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 07:11:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 07:11:00 -0000 Subject: Where to get 19.3? References: <35F7AC88.DBCBD48F@ina.de> Message-ID: <35fb7cb8.519086@mail.weiser.saale-net.de> Hello Alexander, you wrote >I read some messages mentioning version 19.3. The newest version I could >find was 19.1 (at ftp://ftp.cygnus.com/pub/gnu-win32/latest/ ). Is there >another source for downloading the package? I want to try the latest >version because I have problems starting bash when coolview is >installed. The internal version number of the development tree has been increased several times since the b19.1 update. As Sergey's coolview reflects that, you can get 19.3 by downloading the latest coolview from http://miracle.geol.msu.ru/sos/ . -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 07:11:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 07:11:00 -0000 Subject: Hmmm, no make or imake? References: <199809101759.MAA13676@rolaren.space.swri.edu.space.swri.edu> Message-ID: <35fd7dee.828691@mail.weiser.saale-net.de> Hello Joey Mukherjee, you wrote: >I just installed egcs v1.1 and CygWin32 vb19.1 and I think all the libs I >needed; however, I seem to be missing make. Is this available on a seperate >archive? There's a make included with cygwin32. If you want a NT-native make you can download the one from Jan-Jaap's gcc-2.8.1-mingw32 distribution on http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/ . >Also, is Imake and all the associated rules for Windows available somewhere? Sorry, don't know. >Lastly, I was under the impression that if I compiled a Motif program (with >Lesstif), I would get a native windows program which would use Windows as the >window manager. Is this the case or do I need to install Xservers and the like? Yes, you will need to install an XServer. There are two free implementations, but I unfortunately don't have the URLs handy. These XServers usually include a window manager that uses normal Windows windows. -- tschuess, Michael Pampig muss es sein, pampig! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Sat Sep 12 07:11:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Sat, 12 Sep 1998 07:11:00 -0000 Subject: libkernel32a.lib (fwd) Message-ID: I've just made a discovery tonight about the libkernel32.a stub library that comes with Mingw32. (At least the version I have, which is based on EGCS 1.1). It seems that this library may have been generated from a kernel32 DLL on a non-Windows NT machine. The reason I say this is that my user-space library, libpthread32, uses the Win32 API function ``TryEnterCriticalSection''. It's well documented that the ``TryEnterCriticalSection'' API function is not available on Win32s and Win95/98. I don't know if that means that the function doesn't exist in any library, or if the function should exist in a library, but be implemented to return some error code at runtime. I believe it is the latter. In which case, can anyone explain why this function is missing from the kernel32 stub library? Thanks, Ben --- Ben Elliston bje@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 07:11:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 07:11:00 -0000 Subject: CRLF in cat output breaks scripts. References: <0EZ200216XWU8W@mail.hac.com> Message-ID: <35fc7cf7.582157@mail.weiser.saale-net.de> Hello john, you wrote: >I must be missing something! Jep. ;) >cat and other commands that use > to write files, put in CR's so that >we end up with CRLF at the end of every line. Just change to binary mounts (e.g. by setting fbinary under HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL Setup\b15.0\mounts\ to 1 for all your mounts). -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Sat Sep 12 09:38:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Sat, 12 Sep 1998 09:38:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <9809100501.AA26126@thor.xraylith.wisc.edu> <199809111027.DAA22037@cygnus.com> Message-ID: <35FAA395.300C61B3@crocodial.de> Hi Paul, Paul Garceau wrote: > Yes. egcs-1.0.2-mingw32 is attempting to map to a C++ class member > (IDirectDraw::SetCooperativeLevel(int,dword)) defined within the actual 3d > Renderer source code to something that it can understand and reference via > the ddraw.h header file. The ddraw.h file has no C++ classes references in it. Hm, I don't understand. It looks like those DirectDraw classes are regular COM objects, right? The problems with COM and gcc as I understand it are these: g++ does not currently support C++-style COM. COM objects are defined by a specific vtable layout and g++ does not generate a compatible vtable. OTOH all of the COM machinery is completely dynamic. I.e. there are no name resolution issues at all, because methods are not actually called by name but through the vtable instead. The vtable is nothing else but a table of function pointers. So the vtable layout can be re-declared as a C structure. There are code generators for this C-style access to COM objects, but one can also write the code manually. For a generic IUnknown it would be somewhat like: /* * Some general preparations. */ typedef unsigned long HRESULT; #define COM_STDCALL __stdcall struct GUIID; /* * Declare the types of the individual methods. * * Do this in a separate step, because the placment of the * __stdcall modifier in function pointer declarations is * non-portable across compilers. In a direct function * declaration/typedef this is rather unambiguous though. */ struct IUnknown; /*forward declaration*/ typedef HESULT COM_STDCALL IUnknown_QueryInterface_t( struct IUnknown * obj, struct GUID * newiface_id void ** newiface_result ); typedef unsigned long COM_STDCALL IUnknown_AddRef_t( struct IUnknown * obj ); typedef unsigned long COM_STDCALL IUnknown_Release_t( struct IUnknown * obj ); /* * The function pointer interface. */ struct IUnknown_vtable { IUnknown_QueryInterface_t * QueryInterface; IUnknown_AddRef_t * AddRef; IUnknown_Release_t * Release; }; /* * The object itself. */ struct IUnknown { struct IUnknown_vtable * lpVtbl; /* the rest is private */ }; The important points in this code are the structs IUnknown and IUnknown_vtable. The rest just completes the picture. If you have a pointer to an IUnknown object you use it like this struct IUnknown * iface = some_function(); /* usually some_function() will have done the next step already */ /*iface->lpVtbl->AddRef(iface);*/ ... use iface .... iface->lpVtbl->Release(iface); Paul Garceau wrote: > code snippet: > ... > static LPDIRECTDRAW lpDD; > ... > ddrval = lpDD->SetCooperativeLevel (NULL, DDSCL_NORMAL); Provided you have declared an IDirectDraw interface similar to the IUnknown interface above, this is transformed to static struct IDirectDraw * lpDD; ... ddrval = lpDD->lpVtbl->SetCooperativeLevel( lpDD, NULL, DDSCL_NORMAL ); so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Sat Sep 12 11:58:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Sat, 12 Sep 1998 11:58:00 -0000 Subject: Cygwin newbie questions References: <35F99135.4E7B94E3@sd.inri.com> Message-ID: <35FABBCF.B11C2BFA@sigma6.com> Steve Grubbs wrote: > 1) At my new job, I'm working under WinNT, but we use good ol' CVS for revision > control (archive is on a Unix box). I don't really know the source of the "cvs" > executable (our 2 main sysadmins just left within 2 weeks, so nobody I've asked > really knows where they came from). The problem is that it doesn't work under > cygwin. It works fine from a cmd prompt, but if I run it from cygwin, I get no > output. I don't get "command not found", I just get nothing. Any ideas what's up > with this? > BTW, I test this with safe cvs commands like "cvs -v", which should work even if > cvs settings were messed up. Hi Steve, We use CVS over NT extensively. After trying the several command-line tools available from www.cyclic.com (and pulling out much hair dealing with buggy CRLF translations) I found that compiling CVS from scratch under cygwin32 is by far the best option. For CVS use alone I have installed a subset of cygwin32 on over a dozen workstations at our site. You can get the same at ftp://ftp.sigma6.com/pub/cvs/cygcvs.zip if you happen to need a scaled-down cygwin32 package for CVS use. > 2) One thought I had was to download cvs source and compile it under cygwin. > When I try to run "configure", though, I get "bash: ./configure: No such file or > directory". But configure IS there.... What's up with that? Does configure not > work? Do I just have to edit the Makefile myself? CVS *does* compile out-of-the-box on gnu-win32. Chances are the configure script is looking for /bin/sh. Do you have a mount under /bin? I use: mount -b C:/Cygnus/B19/bin /bin so that tools hardwired for /bin/sh will work. Also, CVS *requires* binary mounts. All of my mounts are in binary mode, plus I use binmode in my CYGWIN32 variable. > 3) FTP hangs from cygwin. I assume its calling the WinNT ftp. Does this just not > work? Do I need to get a different ftp for cygwin? This is a known problem; I think it was solved with on of the updates. I'd suggest getting Sergey's coolview package from ftp://www.lexa.ru/pub/domestic/sos/coolview.tar.gz (it has an updated cygwinb19.dll) and enabling binmode and tty in your CYGWIN32 variable. Also on Sergey's site is an inetutils package with cygwin32-native ftp and telnet clients, among other things. (Note that the cygcvs package on my site already has a recently-patched cygwinb19.dll, plus CVS binaries and installation suggestions.) -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Sat Sep 12 11:58:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Sat, 12 Sep 1998 11:58:00 -0000 Subject: server X References: <01BDDD75.00B69600@sos> Message-ID: <35FAACDA.E993D7D5@sigma6.com> Sergey Okhapkin wrote: > > Alexander Stockdale wrote: > > I think we really need to port XFree86 to the cygwin environment. I've > started looking into this, but it looks like it may be a big job (just look > at the size of the diff file for the OS/2 port). > > > > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct > video hardware access. The best candidate to port is sample X server > provided with X11 distribution - just create directory > xc/programs/Xserver/hw/Win32 and fill it with some code :-) The X11R6.4 sample server is no better-- it's a *very* old version of XFree86. To do a Win32 server from scratch, yes, all the video framebuffer code in XFree86 would have to be replaced with Win32 USER/GDI calls. I don't really know how much of the overall server code would be invalidated by this approach. > Another interesting possibility is to modify libX11 to display X requests > with Windows GDI calls if environment variable DISPLAY is not set or set to > "localhost". This case bundled Xnest server will act as X server (Xnest > compiles with cygwin and runs), and no X server will be required for local > X clients. Some related work already done in ntxlib package. I know Xlib better than Win32 (i.e., I know very little about Win32), but this sounds difficult to me. Does Win32 have functions to iterate child windows? If so, how would you tell ordinary windows apart from Xlib-controlled windows? What about inter-client communications? You could probably manage it with shared memory segments and Win32 IPC, but it would probably be far more straightforward with a real X server. -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sarnold@coyote.rain.org Sat Sep 12 11:58:00 1998 From: sarnold@coyote.rain.org (Stephen L Arnold) Date: Sat, 12 Sep 1998 11:58:00 -0000 Subject: bash hangs win95 References: <000f01bddd6c$289e2060$a5177fd1@green.> Message-ID: <199809121856.LAA14566@coyote.rain.org> On 11 Sep 98,, Dr. G. Scott Lett had questions about bash hangs win95: > Has there been any resolution to the problem of bash hanging the system on > win95? I've seen reports about this problem occurring after the user 1) > types an unrecognized command or 2) Types control-C. There are reports at > the Argonne National Lab web sites that the latter problem makes bash > unusable in gnu-win32. I must agree, as I've fallen victim a couple of > times. It doesn't hang on my OSR2 install (Cyrix 200L, 75 MHz bus). It did initially, but I installed the coolview .DLL and Mumit's EGCS replacement. I also created a HOME environment variable, and borrowed someone's .bashrc (and modified it). Everything seems to work fine now (if windoze can ever be called "fine"). At least, it works great for my cheesy little homework problems (but we haven't had to code anything substantial yet either :-) Have you done all of the above? If memory serves me, it *did* hang right after I first installed it, but if you just wait (rather than trying to kill the task) it should come back after a minute or two. Hope this helps, Steve ************************************************************* Steve Arnold sarnold@earthling.net This message composed of 100% recycled electrons. You should also recycle yourself. Become an organ donor (8-)@ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From slett@holisticmath.com Sat Sep 12 12:51:00 1998 From: slett@holisticmath.com (Dr. G. Scott Lett) Date: Sat, 12 Sep 1998 12:51:00 -0000 Subject: bash hangs win95 Message-ID: <000a01bdde86$919b4d20$a9177fd1@green.> Thanks for the reply. There have been many posts on the topic, with many suggestions for changes. Many of them had no effect on the problem, but one suggestion did help. Because this problem is so pervasive and most of the suggestions seem to have nothing to do with the problem, I am reporting my experiences. First, the problem statement. I experienced system hangs in the bash shell under a variety of conditions. (When I entered an unrecognized command, typed control-C, or somehow broke a pipe.) I found no way to get out of the hang other than rebooting. I looked at a number of suggestions, but only number 6 below has made a difference. 1. I am using version 19 beta of gnu-win32. I have also installed egcs 1.1 for cygwin. The bash-hang problem occurs with and without the egcs upgrade. 2. I am using version 4.00.950a of win95. If you need more details about my system or the version numbers of various components, please write me. 3. I have spaces in my path. Since the bash-hang problem has gone away and I don't have other problems, I don't think this is a problem either. I DID have to modify cygnus.bat to enclose %PATH% in double quotes: SET PATH=C:\CYGNUS\B19\H-I386~1\bin;"%PATH%" After this change, spaces in PATH caused me no further problems. The directory containing bash.exe is in my path. 4. Using ash instead of bash as a replacement for sh has made no difference. Changing didn't fix the bash-hang problem, and now that I have fixed it, changing doesn't create the problem, either. 5. I invoke bash by running cygnus.bat. I invoke this with a shortcut from the desktop. I had to increase the initial environment memory size to 4096 to get cygnus.bat to run. Starting bash manually from the command line has no effect on the bash-hang problem. 5. The one suggestion that made the bash-hang problem disappear is to add SET CYGWIN32=tty to cygnus.bat before invoking bash. I haven't been able to cause the hang since making this change. I hope this helps others with this problem. I hope this also gives clues to developers. Regards and thanks, Scott -----Original Message----- From: Stephen L Arnold To: Dr. G. Scott Lett ; gnu-win32@cygnus.com Date: Saturday, September 12, 1998 1:55 PM Subject: Re: bash hangs win95 On 11 Sep 98,, Dr. G. Scott Lett had questions about bash hangs win95: > Has there been any resolution to the problem of bash hanging the system on > win95? I've seen reports about this problem occurring after the user 1) > types an unrecognized command or 2) Types control-C. There are reports at > the Argonne National Lab web sites that the latter problem makes bash > unusable in gnu-win32. I must agree, as I've fallen victim a couple of > times. It doesn't hang on my OSR2 install (Cyrix 200L, 75 MHz bus). It did initially, but I installed the coolview .DLL and Mumit's EGCS replacement. I also created a HOME environment variable, and borrowed someone's .bashrc (and modified it). Everything seems to work fine now (if windoze can ever be called "fine"). At least, it works great for my cheesy little homework problems (but we haven't had to code anything substantial yet either :-) Have you done all of the above? If memory serves me, it *did* hang right after I first installed it, but if you just wait (rather than trying to kill the task) it should come back after a minute or two. Hope this helps, Steve ************************************************************* Steve Arnold sarnold@earthling.net This message composed of 100% recycled electrons. You should also recycle yourself. Become an organ donor (8-)@ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Sat Sep 12 18:31:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Sat, 12 Sep 1998 18:31:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems References: <19980909155615.49408@cygnus.com> Message-ID: <9802-Fri11Sep1998145836+0200-vzell@de.oracle.com> Hi >> I would be ok with adding "-Dunix" when the Cygwin32 config is >> being used if that would help people. Okidoki, this would help me. Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Sat Sep 12 19:06:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Sat, 12 Sep 1998 19:06:00 -0000 Subject: C_INCLUDE_PATH ??? Message-ID: <7672-Sun13Sep1998043041+0200-vzell@de.oracle.com> Hi How can I put /usr/local/include as a default search path for include statements like #include when I do a configure or a make ?? I'm using the latest egcs 1.1 Sometimes configure scripts are checking for include files like zlib.h and I know that I have it in /usr/local/include but configure cannot find it. Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From TYann@vet.com.au Sat Sep 12 19:06:00 1998 From: TYann@vet.com.au (Trevor Yann) Date: Sat, 12 Sep 1998 19:06:00 -0000 Subject: [ANN] optimised bash for cygwin Message-ID: <3.0.5.32.19980913091527.00824aa0@mail.mel.cybec.com.au> There is now a modified bash executable available from Sergey's web page: http://www.lexa.ru/sos This is a modified bash 2.02.1 that includes optimisations to increase performance (by doing a spawn instead of a fork/exec under some conditions). It also contains modifications by Chris Faylor that prevent bash pausing to look for mail, and address other problems related to the HOME environment variable not being set. Diffs for the changes are also available from the above Web page. Thanks to Sergey for hosting these files for me. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 19:06:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 19:06:00 -0000 Subject: Sendmail or similar? References: Message-ID: <35fd0b28.511735@mail.weiser.saale-net.de> Hello Josh, youwrote: >Has anyone seen a port of sendmail, qmail or any SMTP daemon >for cygwin32 ? There's one done by Sergey, but I don't know if and how well it works. You can find it on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Okhapkin_Sergey/ports/ . -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 19:39:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 19:39:00 -0000 Subject: bash hangs win95 References: <000f01bddd6c$289e2060$a5177fd1@green.> Message-ID: <3600813a.1671553@mail.weiser.saale-net.de> Hello Scott, you wrote: >Has there been any resolution to the problem of bash hanging the system >on win95? I've seen reports about this problem occurring after the user 1) >types an unrecognized command or 2) Types control-C. There are reports at >the Argonne National Lab web sites that the latter problem makes bash >unusable in gnu-win32. I must agree, as I've fallen victim a couple of >times. Just search the list archives on that problem, it has been discussed comprehensively. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 19:39:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 19:39:00 -0000 Subject: defining _win32: was: I: gcc ... -U_WIN32 ... may cause problems References: <199809111813.MAA24870@tuffy.reversion.ca> Message-ID: <35fb09a7.127443@mail.weiser.saale-net.de> Hello Craig, you wrote: >> I am the silly b* who started this thread. I am, sort of, sorry I did :-) >> To brig it back to the original intent or kill it, rather than start another, >We are no longer talking about just the stat call, and possibly stuff in the >compiler headers, but more about the applications that are out there (that use >the _WIN32 and unix defines without realizing they are not necessarily mutually >exclusive. > >We are looking for a solution such that we do not have to modify 3rd party >source code to use them. As I already wrote (and Michael IMHO meant in his posting) it doesn't matter how and why and where _WIN32 is defined. The headers just have to be changed to allow that one who doesn't need the Win32 API can undefine _WIN32 without any hassles. Using this, one could simply add -U_WIN32 or -D_WIN32 if he or she wants an unix-like or a native win32 application respectively. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 19:39:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 19:39:00 -0000 Subject: heap_chunk_size problem References: <01bddd52$5b073e20$a012083d@gateway> Message-ID: <35ff80bd.1546643@mail.weiser.saale-net.de> Hello John, you wrote: >Can anyone tell me how to edit the registry entry to fix the heap_chunk_size problem. Alternatively, someone >seemed to be talking about B19.3 which doesn't have this problem but there doesn't appear to be >an ftp site anywhere. The internal version number of the development tree has been increased several times since the b19.1 update. As Sergey's coolview reflects that, you can get 19.3 by downloading the latest coolview from http://miracle.geol.msu.ru/sos/ . -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 12 19:39:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 12 Sep 1998 19:39:00 -0000 Subject: I/O redirection of binary data References: <199809110932.LAA13319@geologi.uio.no> Message-ID: <3603a207.10090369@mail.weiser.saale-net.de> Hello Paul, you wrote: >POSIX recommends that one could use the b(inary) modifier >in fopen for portability since the b has no effect on POSIX >systems but may be needed in, say, MS-DOS. How can >I deal with this in redirection? I often have a program do > >program > data > >and data is supposed to be binary but under gnu-win32 I noticed >that the file size is incorrect (it is larger probably due to CR/LFs?) >compared to POSIX systems. This also causes problems when >trying to read the file with anotherprogram < data. This happens because by default mount points in cygwin32 are nonbinary. This means that any LF written to disk gets converted to CRLF if the application didn't specify the b flag when opening the file. As bash doesn't do so and redirection is handled by bash, your problem arises. >Are there any non-intrusive solutions? WHen using stdout I am >not using fopen so I cannot easily use the binary flag... The binary flag in this context is the type of your mount point. Simply remount it in binary mode or set fbinary for each mount point in HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL Setup\b15.0\mounts\ to 1. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sat Sep 12 19:39:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sat, 12 Sep 1998 19:39:00 -0000 Subject: available file descriptors References: <199809120142.SAA07585.cygnus.gnu-win32@www.aeinc.com> Message-ID: <6tf1gb$k48$1@cronkite.cygnus.com> In article <199809120142.SAA07585.cygnus.gnu-win32@www.aeinc.com>, A. Phillip Smith wrote: > >Unfortunately, the Cygnus mail archive searching is broken. This >question has probably been asked before. Is there an API to allow >extension of the resource limit for available file descriptors >returned by getdtablesize() ? Presumably, setrlimit() works, but >what are the resource parameter arguments for cygwin32 ? There should be no fixed limit on fds in recent versions of cygwin, thanks to Sergey. Try using a recent coolview release: http://www.lexa.ru/sos -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 12 19:56:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 12 Sep 1998 19:56:00 -0000 Subject: Cygwin newbie questions Message-ID: <19980913020340.20738.rocketmail@send1b.yahoomail.com> ---Steve Grubbs wrote: > > I just got Cygwin32, and it's great. It's working exactly how I'd expect it for > the most part. The problem is the small things that aren't working really bug > me. I have a feeling these may be linked, and I was hoping someone more > knowledgable could help me here. > > 1) At my new job, I'm working under WinNT, but we use good ol' CVS for revision > control (archive is on a Unix box). I don't really know the source of the "cvs" > executable (our 2 main sysadmins just left within 2 weeks, so nobody I've asked > really knows where they came from). The problem is that it doesn't work under > cygwin. It works fine from a cmd prompt, but if I run it from cygwin, I get no > output. I don't get "command not found", I just get nothing. Any ideas what's up > with this? > BTW, I test this with safe cvs commands like "cvs -v", which should work even if > cvs settings were messed up. Your problem with this is that the CYGWIN32 environment variable is set with a value of tty. With this you cannot communicate with non-cygwin programs. You must remove this or change in to notty. NOTE: You must do this before starting bash. Changing it after you start bash will confuse the issue as the parent will be one mode and the children will be the other. > > 2) One thought I had was to download cvs source and compile it under cygwin. > When I try to run "configure", though, I get "bash: ./configure: No such file or > directory". But configure IS there.... What's up with that? Does configure not > work? Do I just have to edit the Makefile myself? This should work. It probably has to do with what is known as text!=binary or text mode processing. In MSDOS land, \r\n line endings are normal and is processed with a file processing mode known as text mode which is the default. We suggest that you modify the mounts to text=binary; you can search the archives for this. This should take care of the problem. CAUTION!! If you build cvs from the source, modify all opens to process with binary mode. This includes stdin and stdout. If you don't you are asking for real trouble. > > 3) FTP hangs from cygwin. I assume its calling the WinNT ftp. Does this just not > work? Do I need to get a different ftp for cygwin? > Same problem as #1 > 4) I've found some WWW pages with ports and stuff, but they don't seem to have a > lot. Anyone know of any hard-to-find pages with good stuff? > See the post signature. > Thanks. > > -- > Steve > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- To fix the most serious problems: Please, _READ_ the IMPORTANT UPGRADE NOTICE at the end of this note. Please, ensure that there is only _ONE_ cygwinb19.dll. Please, ensure that _ALL_ b18 binaries have been removed. Please, research your question via the Searchable Mail Archives first. http://www.cygnus.com/ml/gnu-win32 (Searchable Mail Archives) http://www.findmail.com/list/gnu-win32 (Alternate search engine) Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www-public.rz.uni-duesseldorf.de:1080 (Cygwin32 Porting Project) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - Mingw32) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) ftp://ftp.hksys.com/pub/mirrors/EGCS-Win32/ (Jeremy Bettis - mirror) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) http://www.downloadwizard.com/ak/gnu-win32/bash.html (GNU-Win32 Bash Configuration) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - package ports) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Package Porting Notes) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (German mirror) http://www.dol.ru/users/valtul (Valery Tulnikov - software ports) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David fox - RPM packages) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.kedemel.demon.co.uk/ (Darren's ports) http://www.multione.capgemini.fr/tools/pack_ipc/ ("Ludovic Lange" ) http://www.skydancer.demon.co.uk/gnu-win32/ (UK mirror and ports) http://www.i21.com/~tjump/files/index.html (Theodore Jump - emacs functions, cygwin32 ports, other info) Help for Win32 Beginners: http://www.relisoft.com http://www.program.com/resources/win32.html DISCLAIMER: These links or links from these pages to other sites do not constitute an endorsement of any entities, advertisers, products or services therein. I am not responsible for and do not control or monitor the content of these sites or the accuracy of information found therein. -------------------- IMPORTANT UPGRADE NOTICE ------------------------ You should get the following to update your cygwinb19 package: Sergey Okhapkin's coolview package which contains an updated cygwinb19.dll. (Yes, even if you've already downloaded the b19.1 update from the Cygnus Site). Mumit Khan's compilation of EGCS for the cygwinb19.dll; especially if you're using the C++ compiler. The current version of the compiler that comes with the tools has lots of problems that have been fixed with the EGCS version. This is a drop-in replacement for the GCC toolset. URL's are listed above. ----------------------------------------------------------------------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From MCzapski@openplus.com.au Sat Sep 12 19:56:00 1998 From: MCzapski@openplus.com.au (Michael Czapski) Date: Sat, 12 Sep 1998 19:56:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <01BDDF16.1DB7C7E0.MCzapski@openplus.com.au> > > Since the use of _WIN32 to conditionalize code for portibility started > prior to the cygwin project, I ask that you pick a new macro, say > _WIN32_API_, to use for your definition. I shouldn't be forced to > have to be concerned with breaking headers if I undefine _WIN32 as the > original poster of this message had to do. > Hello People, My biggest issue with the consequences of -U_WIN32 was the fact that the code compiled cleanly whether or not _WIN32 was defined. It was at execution time that the trouble started. Code compiled with _WIN32 defined worked just fine. The same code compiled with -U_WIN32 did not, access violated and provided no clues as to what went on that I with my limited experience could use to diagnose and correct the problem. I would have, most likely, been looking at what I did wrong in my code, which would have been a wrong place to look :-) Fortunately for me I had the code working on all 4 platforms I built for, I was fiddling with the GNUmakefile at the time, I remembered what I did AND I remembered that the code worked before I did -U_WIN32. Just luck all the way ... In less favourable circumstances I would have likely wasted a great deal of time trying to fix my code, which was not broken, and eventually given up on building for Cygwin32 environment :-(. That would not have been bad, merely inconvenient for me. Others, which is why I posted the issue and the 'workaround', may not be so lucky. ------------------ Cheers ... Michael Czapski - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From salumax@entelchile.net Sat Sep 12 19:56:00 1998 From: salumax@entelchile.net (Salumax S.A.) Date: Sat, 12 Sep 1998 19:56:00 -0000 Subject: B19: fread bug (NT and 95) Message-ID: <35FB1C33.A3E966F4@entelchile.net> Hi... I found a bug with the fread instruction... In the C codes that I wrote, the fread instruction, not reads all the bytes of the image that I try to read... For example, when I execute the program "hola.c" that I include with this e-mail, and I try to read the image "lenna.dat" (64 kb), hola.exe only reads 28 bytes of lenna.dat. What's the matter ?... best regards... Gonzalo Rojas C Image Processing Group Department of Physics University of Santiago-Chile -------------- next part -------------- A non-text attachment was scrubbed... Name: hola.c Type: text/x-c Size: 1269 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lenna.dat Type: application/octet-stream Size: 65536 bytes Desc: not available URL: From michael@weiser.saale-net.de Sun Sep 13 07:48:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 13 Sep 1998 07:48:00 -0000 Subject: X Message-ID: <3601ccc8.2178412@mail.weiser.saale-net.de> Hello folks, I'm just wondering why there are three ports of X11 to cygwin32. There's X11R6.3 ported by Andy Piper and Arlindo da Silva and X11R6.4 ported by Sergey Okhapkin. As I want to include something about that in the mini FAQ: Could someone (especially the porters of course :) explain me, why they exist and which one is going to be the 'standard' X11 package for cygwin32. Also I would like to know, which one is the most advanced and/or newbie-friendly. I would also be interested in pages where configuration information for cygwin32 can be found. Thanks in advance. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 13 07:48:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 13 Sep 1998 07:48:00 -0000 Subject: Cygwin newbie questions References: <35F99135.4E7B94E3@sd.inri.com> Message-ID: <35fbc70c.709750@mail.weiser.saale-net.de> Hello Steve, you wrote: >I just got Cygwin32, and it's great. It's working exactly how I'd expect it for >the most part. The problem is the small things that aren't working really bug >me. I have a feeling these may be linked, and I was hoping someone more >knowledgable could help me here. I can try. :) >1) At my new job, I'm working under WinNT, but we use good ol' CVS for revision >control (archive is on a Unix box). I don't really know the source of the "cvs" >executable (our 2 main sysadmins just left within 2 weeks, so nobody I've asked >really knows where they came from). The problem is that it doesn't work under >cygwin. It works fine from a cmd prompt, but if I run it from cygwin, I get no >output. I don't get "command not found", I just get nothing. Any ideas what's up >with this? >BTW, I test this with safe cvs commands like "cvs -v", which should work even if >cvs settings were messed up. My version of cvs-1.9 downloaded from www.cyclic.com works perfectly under cygwin32. But compiling a 'native' cygwin32 cvs would certainly the cleanest solution. >2) One thought I had was to download cvs source and compile it under cygwin. >When I try to run "configure", though, I get "bash: ./configure: No such file or >directory". But configure IS there.... What's up with that? Does configure not >work? Do I just have to edit the Makefile myself? Have you tried 'sh ./configure' or 'bash ./configure'? Perhaps the file permissions are messed up and you have to set them with chmod. But normally this should give an 'permission denied' error... >3) FTP hangs from cygwin. I assume its calling the WinNT ftp. Does this just not >work? Do I need to get a different ftp for cygwin? You could try the one from Sergey's remote.tgz found on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Okhapkin_Sergey >4) I've found some WWW pages with ports and stuff, but they don't seem to have a >lot. Anyone know of any hard-to-find pages with good stuff? ftp://dao.gsfc.nasa.gov/pub/uwm_coads/X11R6.3 (Arlindo da Silva - X11R6 binaries for cygwin32) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David Fox - RPM for cygwin32) ftp://ftp.franken.de/pub/win32/develop/gnuwin32 (Michael Hirmke - German mirror and ports collection) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey Okhapkin - fixes and ports) ftp://ftp.parallax.co.uk/pub/andyp (Andy Piper - fixes and ports) ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32 (Mumit Khan - egcs binaries for cygwin32 and mingw32) (Hello Earnie, the mini-FAQ is coming! ;-)))) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sun Sep 13 07:48:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sun, 13 Sep 1998 07:48:00 -0000 Subject: heap_chunk_size problem Message-ID: <26f81634.35fbdb20@aol.com> In a message dated 9/13/98 7:21:19 AM Pacific Daylight Time, michael@weiser.saale-net.de writes: > downloading the latest coolview from > http://miracle.geol.msu.ru/sos/ . This has allowed the build of egcs to proceed on W95/USB without any of the spurious wait interruptions or compare failures. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Sun Sep 13 10:09:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Sun, 13 Sep 1998 10:09:00 -0000 Subject: less and [D Message-ID: <35FBEC7E.D9393164@fel.cvut.cz> Hi all, I'm new to this list. I'm student of Faculty of Electrical Engenering on Czech Technical University. I'm autor of the SemTel telnet client for Windows 3.11/95+/NT with support for SSL. It can be downloaded from my page. That will be enought as introducing myself, I think. Here're my questions: 1. I've installed cygwin package with bash GNU bash, version 2.01.1(2)-release (i386-pc-cygwin32) and less from site ftp://ftp.franken.de less version 321 my OS is MS-Windows 95 OSR2. And when I type ls -l /bin | less I receive this message and less is working as on hardcopy terminal WARNING: terminal is not fully functional - (press RETURN) 2. Is chance to make bash faster? I unset MAILCHECK but it's still slow. When I press right arrow key bash will print [D, (it's esc sequention for right key). It's problem for all functions key but not for normal keys, like 'a'. Thanks for any help -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From covici@ccs.covici.com Sun Sep 13 13:00:00 1998 From: covici@ccs.covici.com (John Covici) Date: Sun, 13 Sep 1998 13:00:00 -0000 Subject: cannot do make install on source Message-ID: <35fc2321.ccs@ccs.covici.com> Hi. I am running a Pentium 200mhz using Windows 95 and I cannot do a make install on the source of cygwin32. When I tried it, it had trouble assembling libiberty.a, but I don't have the exact error message because the bash redirection is not working properly. Any assistance would be appreciated. The bash command I tried to use for the make was make install 2>&1 >cyg.err but the error output was not redirected. I have bash 2.01 which is what came with the package. -- John Covici covici@ccs.covici.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From etxchon@ks.ericsson.se Sun Sep 13 13:14:00 1998 From: etxchon@ks.ericsson.se (Christer Olsson) Date: Sun, 13 Sep 1998 13:14:00 -0000 Subject: Down-load of 'cdk.exe' B18 stops Message-ID: <35FC27B4.93B98346@ks.ericsson.se> I'm having problems to down-load the B18 version of 'cdk.exe' (both the split version and the complete version). The same problem occured on all mirrors I've tried. The file transfer stops (hangs?) when only a few bytes remains. Is it a known problem? Any known work-around? Best regards Christer Olsson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Sun Sep 13 14:00:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Sun, 13 Sep 1998 14:00:00 -0000 Subject: [ANN] optimised bash for cygwin References: <3.0.5.32.19980913091527.00824aa0@mail.mel.cybec.com.au> Message-ID: <4931-Sun13Sep1998141538+0200-vzell@de.oracle.com> Hi >> There is now a modified bash executable available from Sergey's >> web page: >> http://www.lexa.ru/sos >> This is a modified bash 2.02.1 that includes optimisations to >> increase performance (by doing a spawn instead of a fork/exec >> under some conditions). It also contains modifications by Chris >> Faylor that prevent bash pausing to look for mail, and address >> other problems related to the HOME environment variable not >> being set. Will these changes show up in upcoming releases of bash ??? Or is it a one time only modification ?? For example will these modifications show up in the upcoming cygnus b20 release ? Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 13 14:13:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 13 Sep 1998 14:13:00 -0000 Subject: C_INCLUDE_PATH ??? References: <7672-Sun13Sep1998043041+0200-vzell@de.oracle.com> Message-ID: <36012372.24375079@mail.weiser.saale-net.de> Hello Volker, you wrote: >How can I put /usr/local/include as a default search path for include >statements like > >#include > >when I do a configure or a make ?? I'm using the latest egcs 1.1 Just try 'gcc -I/usr/local/include ' or 'make CFLAGS="-I/usr/local/include "' or even 'CFLAGS="-I/usr/local/include Message-ID: <35fe5111.36061453@mail.weiser.saale-net.de> Hello Salumax, you wrote: > I found a bug with the fread instruction... In the C codes that I >wrote, the fread instruction, not reads all the bytes of the image that >I try to read... For example, when I execute the program "hola.c" that I >include with this e-mail, and I try to read the image "lenna.dat" (64 >kb), hola.exe only reads 28 bytes of lenna.dat. What's the matter ?... Just try to open the file in binary mode ("rb"). Perhaps there's a ^Z at byte 29 of your file which causes fread to stop. Alternatively you can mount all your drives in binary mode which causes cygwin32 to assume "b" if no mode is given explicitly. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Sun Sep 13 18:50:00 1998 From: lhall@rfk.com (Larry Hall) Date: Sun, 13 Sep 1998 18:50:00 -0000 Subject: CRLF in cat output breaks scripts. References: <0EZ200216XWU8W@mail.hac.com> <35fc7cf7.582157@mail.weiser.saale-net.de> Message-ID: <3.0.5.32.19980913200920.00966560@pop.ma.ultranet.com> At 01:57 PM 9/12/98 GMT, Michael Weiser wrote: >Hello john, you wrote: >>I must be missing something! >Jep. ;) > >>cat and other commands that use > to write files, put in CR's so that >>we end up with CRLF at the end of every line. >Just change to binary mounts (e.g. by setting fbinary under >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >Setup\b15.0\mounts\ to 1 for all your mounts). >-- >bye, Michael Actually, this isn't going to fix this problem. The bash that comes with the distribution is set so that stdin, stdout, and pipes write in text mode. If you really want these to work as they should, you need to either get the original bash source from a GNU archive or modify execute_cmd.c in the bash source provided by Cygnus and remove the _setmode() statements... Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gnu@httptech.com Sun Sep 13 18:50:00 1998 From: gnu@httptech.com (Joe Stewart) Date: Sun, 13 Sep 1998 18:50:00 -0000 Subject: Anyone compiled Qt? References: Message-ID: <35fd7575.1326598@runyon.cygnus.com> Has anybody been successful at compiling the Qt library from Troll Tech under Cygwin32? I could sure use some guidance from someone who has been down this road before... -Joe - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From andrewd@axonet.com.au Sun Sep 13 18:50:00 1998 From: andrewd@axonet.com.au (Andrew Dalgleish) Date: Sun, 13 Sep 1998 18:50:00 -0000 Subject: *.COM file execution Message-ID: <91A8FD196436D1118EC2006008186C960D2A4A@server1.axonet.com.au> > -----Original Message----- > From: Dr. Volker Zell [SMTP:vzell@de.oracle.com] > Sent: 1998 September 11, Friday 00:47 > To: noer@cygnus.com > Cc: gnu-win32@cygnus.com > Subject: Re: *.COM file execution > > Hi > > > >> The necessary support in Cygwin32 is fixed in the development > >> sources / next major release: > > >> * spawn.cc (perhaps_suffix): If report_failure_p is > >> non-zero this function will search for (PROG is the pathname to > >> the executable file) PROG.exe, PROG, PROG.com, PROG.bat, and > >> PROG.cmd and return either the full path name if found or NULL > >> if not. (spawn_guts): If the file name of the executable end > >> in either .exe, .com, .bat, or .cmd we assume that it is not a > >> script file and therefore do not open the file to determine if > >> it is. > > Is it possible to include the .btm extension for the 4NT command > interpreter fans. Here the description of a btm file from the > online-help of the 4NT command interpreter: > > BTM File: A special type of 4NT batch file which is loaded into > memory to speed up execution. [Andrew Dalgleish] I've got a patch to spawn.cc which uses NT's PATHEXT variable. I'm still testing it, but I'll post it later this week if nothing breaks. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sun Sep 13 18:50:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sun, 13 Sep 1998 18:50:00 -0000 Subject: defining _win32: was: I: gcc ... -U_WIN32 ... may cause problems References: <199809111813.MAA24870@tuffy.reversion.ca> <35fb09a7.127443.cygnus.gnu-win32@mail.weiser.saale-net.de> Message-ID: <6thkrm$296$1@cronkite.cygnus.com> In article <35fb09a7.127443.cygnus.gnu-win32@mail.weiser.saale-net.de>, Michael Weiser wrote: >Hello Craig, you wrote: >>> I am the silly b* who started this thread. I am, sort of, sorry I did :-) >>> To brig it back to the original intent or kill it, rather than start another, >>We are no longer talking about just the stat call, and possibly stuff in the >>compiler headers, but more about the applications that are out there (that use >>the _WIN32 and unix defines without realizing they are not necessarily mutually >>exclusive. >> >>We are looking for a solution such that we do not have to modify 3rd party >>source code to use them. >As I already wrote (and Michael IMHO meant in his posting) it doesn't >matter how and why and where _WIN32 is defined. The headers just have >to be changed to allow that one who doesn't need the Win32 API can >undefine _WIN32 without any hassles. Using this, one could simply add >-U_WIN32 or -D_WIN32 if he or she wants an unix-like or a native win32 >application respectively. If anyone has patches to the headers to accomplish this, I'll be happy to look at them. As usual, actual code is always preferred to endless discussion and rehashing of the same point(s) over and over and... -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From raf@comdyn.com.au Mon Sep 14 00:03:00 1998 From: raf@comdyn.com.au (raf) Date: Mon, 14 Sep 1998 00:03:00 -0000 Subject: Window Managers under Windows Message-ID: <199809140021.KAA25209@mali.comdyn.com.au> David H. Friedman wrote: >On Mon, 7 Sep 1998, Ilsundal wrote: >> I cannot seem to get another window manager running. I get a generic" >> Cannot load, another WM is running;" I'm assuming this other WM that is >> running is infact Windows itself >Which X server are you using? >I use Exceed, a commercial X server that has two modes. In one mode, X >apps appear as native windows. In this mode Exceed acts as the WM, so >trying to start another results in an error. In the other mode, Exceed >does not provide WM functions. In this mode you can run another WM, but X >apps can only appear as child windows inside the Exceed parent window. that's not correct. the single/multiple window mode to which you refer does not control which window manager runs. exceed has three window management options: Native (MS manages windows) X (WM of your choice) Default to Native (MS manages windows until you start WM of your choice). the last option is the most useful. to turn this option on, look in: Exceed Toolbar -> Configuration -> Screen Definition -> Window Manager -> Native, X, Default to Native (<- the good one) raf - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Mon Sep 14 00:03:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Mon, 14 Sep 1998 00:03:00 -0000 Subject: less and [D Message-ID: <01BDDFCF.7A51D6D0@sos> Jan Tomasek wrote: > 1. I've installed cygwin package with bash > GNU bash, version 2.01.1(2)-release (i386-pc-cygwin32) > and less from site ftp://ftp.franken.de > less version 321 > my OS is MS-Windows 95 OSR2. And when I type > ls -l /bin | less > I receive this message and less is working as on hardcopy terminal > WARNING: terminal is not fully functional > - (press RETURN) Set environment variable TERM to "linux", be sure you have /etc/termcap file. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From raf@comdyn.com.au Mon Sep 14 00:09:00 1998 From: raf@comdyn.com.au (raf) Date: Mon, 14 Sep 1998 00:09:00 -0000 Subject: I: gcc ... -U_WIN32 ... may cause problems Message-ID: <199809140009.KAA24863@mali.comdyn.com.au> Earnie wrote: >---raf wrote: >> >> Earnie wrote: >> > >> >> >The `argument' I have for removing the _WIN32 from cygwin32 (I'll >live >> >with mingw32) is that there exists code that already has some porting >> >to WIN32 and it gets in the way of wanting to build the __UNIX__ >> >version under WIN32. Since this is the goal of the Cygnus Project >> >then it would be best served to remove the definitions of _WIN32. >> >> >> but what if someone *wants* to compile the win32 version with gcc? >> what's wrong with that? >> >> the problem is that these applications of which you speak can't >> tell the difference between win32-only, unix-only and unix-plus-win32. >> they really should (sooner or later). >> >> so a better plan is to make the appropriate changes to each of these >> applications and send patches back to their authors. >> >> what you suggest condones/supports ignorance of the cygwin32 platform >> on the part of software developers. who does that serve? >> >> >Your opinion is certainly valid. However, I can always add -D_WIN32 >in that case. The original poster to this thread had a problem where >the cygwin supplied header was dependent upon _WIN32 being defined and >couldn't easily do the reverse; I.E.: -U_WIN32. Since the main reason >for cygnus is to provide a `UNIX' flavor to WIN32 providing the >necessary POSIX routines to allow me to build a `UNIX' created package >without having to do a lot of recoding then I should not be forced to >turn off or undefine macros that are WIN32 specific. And I definitely >shouldn't be concerned with errors in product supplied headers caused >by undefining such a macro when that product is to be used to easily >build non-WIN32 code. true. both options should be equally simple to perform. i didn't realise this was about internal dependencies. raf - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Mon Sep 14 00:09:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Mon, 14 Sep 1998 00:09:00 -0000 Subject: X Message-ID: <01BDDFCE.CE0A7210@sos> Michael Weiser wrote: > I'm just wondering why there are three ports of X11 to cygwin32. > There's X11R6.3 ported by Andy Piper and Arlindo da Silva and X11R6.4 > ported by Sergey Okhapkin. As I want to include something about that > in the mini FAQ: Could someone (especially the porters of course :) > explain me, why they exist and which one is going to be the 'standard' > X11 package for cygwin32. Also I would like to know, which one is the "Core" X libraries in all three packages are the same and are based on my X11 patch. The package(s) on my web site are pure X11R6.X distributions, but the ones on Andy's and Arlindo's sites includes some additional X libraries (lesstiff and libXpm, for example) and prorams. My R6.4 patch includes some additional changes not found in R6.3 patch. > most advanced and/or newbie-friendly. I would also be interested in > pages where configuration information for cygwin32 can be found. > One may find build instructions at the beginning of diff files available on my site. Arlindo has an excellent setup hints on his site. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Mon Sep 14 00:09:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Mon, 14 Sep 1998 00:09:00 -0000 Subject: cannot do make install on source Message-ID: <01BDDFD0.37ED1D80@sos> John Covici wrote: > Hi. I am running a Pentium 200mhz using Windows 95 and I cannot do a > make install on the source of cygwin32. > > When I tried it, it had trouble assembling libiberty.a, but I don't > have the exact error message because the bash redirection is not > working properly. Ignore the error (run "make install -i"). Installation script cd to lib directory and fails to start new cygwin processes because newly built cygwinb19.dll is in lib derectory already (two dlls conflict). The problem fixed already in current winsup sources. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From TYann@vet.com.au Mon Sep 14 00:09:00 1998 From: TYann@vet.com.au (Trevor Yann) Date: Mon, 14 Sep 1998 00:09:00 -0000 Subject: [ANN] optimised bash for cygwin References: <4931-Sun13Sep1998141538+0200-vzell@de.oracle.com> Message-ID: <35FC692B.BDB88DC5@vet.com.au> I would like the changes to be tested a bit before they suggesting that they get folded into the version of bash that Cygnus has. In particular it would be great to find out how well the modified bash works under Windows NT and Windows 95 (with and without the USB patch). Most of my testing was under Windows 98, where I found no problems. Feedback on differences in performance would be most welcome too. For my testing I would install bash as /bin/sh.exe, and do a configure. I tried this with both the B19 bash, and with my modified bash. When doing a configure of Patch on my Pentium 120 I found that using the b19 bash took about 186 seconds, and with my modified bash it took 178 seconds. Only a modest improvement, but it all helps. Note that the modified bash uses spawn instead on fork/exec only some of the time. There are some other situations where spawn could be used (instead of fork/exec), but I need to do further testing to see whether the extra complexity is worthwhile. If there is favourable feedback I will work toward getting the changes incorporated into both the Cygnus bash and the mainline bash. Dr. Volker Zell wrote: > > Hi > > >> There is now a modified bash executable available from Sergey's > >> web page: > > >> http://www.lexa.ru/sos > > >> This is a modified bash 2.02.1 that includes optimisations to > >> increase performance (by doing a spawn instead of a fork/exec > >> under some conditions). It also contains modifications by Chris > >> Faylor that prevent bash pausing to look for mail, and address > >> other problems related to the HOME environment variable not > >> being set. > > Will these changes show up in upcoming releases of bash ??? Or is it a > one time only modification ?? For example will these modifications > show up in the upcoming cygnus b20 release ? > > Ciao > Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From D.N.J.Clarke@reading.ac.uk Mon Sep 14 02:26:00 1998 From: D.N.J.Clarke@reading.ac.uk (David Nicholas John Clarke) Date: Mon, 14 Sep 1998 02:26:00 -0000 Subject: cannot do make install on source Message-ID: <199809141026.KAA03595@rushey.Pedal> > > The bash command I tried to use for the make was > > make install 2>&1 >cyg.err > > but the error output was not redirected. I have bash 2.01 which is > what came with the package. > >From Bash man page (Redirecting output): Note that the order of redirections is significant. For example, the command ls > dirlist 2>&1 directs both standard output and standard error to the file dirlist, while the command ls 2>&1 > dirlist directs only the standard output to file dirlist, because the standard error was duplicated as standard output before the standard output was redirected to dirlist. Dave - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dj@delorie.com Mon Sep 14 03:39:00 1998 From: dj@delorie.com (DJ Delorie) Date: Mon, 14 Sep 1998 03:39:00 -0000 Subject: cannot do make install on source References: <35fc2321.ccs.cygnus.gnu-win32@ccs.covici.com> Message-ID: <35FC80D1.41C6@delorie.com> > make install 2>&1 >cyg.err Try it this way: make install >cyg.err 2>&1 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Mon Sep 14 04:58:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Mon, 14 Sep 1998 04:58:00 -0000 Subject: less and [D References: <01BDDFCF.7A51D6D0@sos> Message-ID: <35FCEA88.66543732@fel.cvut.cz> Sergey thanks for reply. Execuse me please, in last mail forget say that I've set TERM to linux ~$ echo $TERM linux and my mount table is: ~$ mount Device Directory Type Flags C:\temp /tmp native text!=binary I: /home native text!=binary L:\GNU\B19\H-i386-cygwin32\etc /etc native text!=binary \\.\tape1: /dev/st1 native text!=binary \\.\tape0: /dev/st0 native text!=binary \\.\b: /dev/fd1 native text!=binary \\.\a: /dev/fd0 native text!=binary M: / native text!=binary 'mc' is working correctly (after I set TERM). On drive M: (compressed) is structure like on Linux: ~$ ls -l / total 0 drwxr-xr-x 5 500 everyone 0 Sep 14 11:56 RECYCLED drwxr-xr-x 155 500 everyone 0 Sep 13 15:09 bin drwxr-xr-x 2 500 everyone 0 Sep 13 19:41 cd-rom drwxr-xr-x 3 500 everyone 0 Jan 1 1970 etc drwxr-xr-x 0 500 everyone 0 Jan 1 1970 home drwxr-xr-x 134 500 everyone 0 Jan 1 1970 tmp drwxr-xr-x 3 500 everyone 0 Sep 13 14:52 usr I try to copy termcap to /etc instead mouting but result is still same. In bin folder is links to executables from L:\GNU\B19\H-i386-cygwin32\bin to L:\GNU\B19\H-i386-cygwin32\bin isn't set path (I hate .exe extension) and dlls are in L:\GNU\B19\H-i386-cygwin32\bin\dll there is set path. At this night I update to 'GNU bash, version 2.02.1(1)-release (i386-pc-cygwin32)'. And I'm using Sergeys cygwinb19.dll Where is problem? Any ideas? Thanks Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From covici@ccs.covici.com Mon Sep 14 04:58:00 1998 From: covici@ccs.covici.com (John Covici) Date: Mon, 14 Sep 1998 04:58:00 -0000 Subject: cannot do make install on source References: <199809141026.KAA03595@rushey.Pedal> Message-ID: <35fd0480.ccs@ccs.covici.com> Thanks for reminding me I usually use a pipe and there the 2>&1 comes first. on Mon, 14 Sep 1998 10:26:23 GMT D.N.J.Clarke@reading.ac.uk (David Nicholas John Clarke) in < 199809141026.KAA03595@rushey.Pedal > wrote: >> >> The bash command I tried to use for the make was >> >> make install 2>&1 >cyg.err >> >> but the error output was not redirected. I have bash 2.01 which is >> what came with the package. >> > >>From Bash man page (Redirecting output): > > Note that the order of redirections is significant. For > example, the command > > ls > dirlist 2>&1 > > directs both standard output and standard error to the > file dirlist, while the command > > ls 2>&1 > dirlist > > directs only the standard output to file dirlist, because > the standard error was duplicated as standard output > before the standard output was redirected to dirlist. > > >Dave -- John Covici covici@ccs.covici.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Mon Sep 14 05:44:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Mon, 14 Sep 1998 05:44:00 -0000 Subject: Down-load of 'cdk.exe' B18 stops Message-ID: <19980914112906.1928.rocketmail@send1e.yahoomail.com> Why b18 and not b19?! Check the URL's post signature, some of them are mirrors for the latest version. ---Christer Olsson wrote: > > I'm having problems to down-load the B18 version of > 'cdk.exe' (both the split version and the complete > version). The same problem occured on all mirrors > I've tried. The file transfer stops (hangs?) when > only a few bytes remains. Is it a known problem? > Any known work-around? > > Best regards > Christer Olsson > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- To fix the most serious problems: Please, _READ_ the IMPORTANT UPGRADE NOTICE at the end of this note. Please, ensure that there is only _ONE_ cygwinb19.dll. Please, ensure that _ALL_ b18 binaries have been removed. Please, research your question via the Searchable Mail Archives first. http://www.cygnus.com/ml/gnu-win32 (Searchable Mail Archives) Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www-public.rz.uni-duesseldorf.de:1080 (Cygwin32 Porting Project) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - Mingw32) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) ftp://ftp.hksys.com/pub/mirrors/EGCS-Win32/ (Jeremy Bettis - mirror) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) http://www.downloadwizard.com/ak/gnu-win32/bash.html (GNU-Win32 Bash Configuration) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - package ports) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Package Porting Notes) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (German mirror) http://www.dol.ru/users/valtul (Valery Tulnikov - software ports) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David fox - RPM packages) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.kedemel.demon.co.uk/ (Darren's ports) http://www.multione.capgemini.fr/tools/pack_ipc/ ("Ludovic Lange" ) http://www.skydancer.demon.co.uk/gnu-win32/ (UK mirror and ports) http://www.i21.com/~tjump/files/index.html (Theodore Jump - emacs functions, cygwin32 ports, other info) Help for Win32 Beginners: http://www.relisoft.com http://www.program.com/resources/win32.html DISCLAIMER: These links or links from these pages to other sites do not constitute an endorsement of any entities, advertisers, products or services therein. I am not responsible for and do not control or monitor the content of these sites or the accuracy of information found therein. -------------------- IMPORTANT UPGRADE NOTICE ------------------------ You should get the following to update your cygwinb19 package: Sergey Okhapkin's coolview package which contains an updated cygwinb19.dll. (Yes, even if you've already downloaded the b19.1 update from the Cygnus Site). Mumit Khan's compilation of EGCS for the cygwinb19.dll; especially if you're using the C++ compiler. The current version of the compiler that comes with the tools has lots of problems that have been fixed with the EGCS version. This is a drop-in replacement for the GCC toolset. URL's are listed above. ----------------------------------------------------------------------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Rick.Hellicar@eml.ericsson.se Mon Sep 14 05:44:00 1998 From: Rick.Hellicar@eml.ericsson.se (Richard Hellicar (EML)) Date: Mon, 14 Sep 1998 05:44:00 -0000 Subject: library ll could not be found Message-ID: <5F052F2A01FBD11184F00008C7A4A8005D56CF@eukbant101.ericsson.se> I'm trying to compile hp2xx using gcc egcs-1.0.2. Compilation goes fine, but at run-time, I get an NT error message saying "The dynamic link library ll could not be found in the specified path". However, I do not reference a library called "libll" at link time: gcc *.o -L/usr/X11R6.3/lib -lX11 -lm -o hp2xx Any ideas? This didn't happen with b18's gcc. TIA Rick Hellicar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From covici@ccs.covici.com Mon Sep 14 05:44:00 1998 From: covici@ccs.covici.com (John Covici) Date: Mon, 14 Sep 1998 05:44:00 -0000 Subject: cannot do make install on source References: <35fc2321.ccs@ccs.covici.com> Message-ID: <35fd07fe.ccs@ccs.covici.com> Now that I got the redirection problem straightened out, here is the actual error. /bin/sh ./mkinstalldirs /usr/local /usr/local Making install in doc /bin/sh ./../mkinstalldirs /usr/local/lib /bin/sh ./libtool --mode=install /bin/sh /cygnus/B19/src/install-sh -c -x libbfd.la /usr/local/lib/libbfd.la /bin/sh /cygnus/B19/src/install-sh -c -x libbfd.la /usr/local/lib/libbfd.la /bin/sh /cygnus/B19/src/install-sh -c -x .libs/libbfd.a /usr/local/lib/libbfd.a chmod 644 /usr/local/lib/libbfd.a ranlib /usr/local/lib/libbfd.a To link against installed libraries in LIBDIR, users may have to: - use the `-LLIBDIR' linker flag /bin/sh /cygnus/B19/src/install-sh -c -m 644 bfd.h /usr/local/include/bfd.h /bin/sh /cygnus/B19/src/install-sh -c -m 644 ./../include/ansidecl.h /usr/local/include/ansidecl.h /bin/sh /cygnus/B19/src/install-sh -c -m 644 ./../include/bfdlink.h /usr/local/include/bfdlink.h /bin/sh ./../mkinstalldirs /usr/local/lib /bin/sh ./libtool --mode=install /bin/sh /cygnus/B19/src/install-sh -c -x libopcodes.la /usr/local/lib/libopcodes.la /bin/sh /cygnus/B19/src/install-sh -c -x libopcodes.la /usr/local/lib/libopcodes.la /bin/sh /cygnus/B19/src/install-sh -c -x .libs/libopcodes.a /usr/local/lib/libopcodes.a chmod 644 /usr/local/lib/libopcodes.a ranlib /usr/local/lib/libopcodes.a To link against installed libraries in LIBDIR, users may have to: - use the `-LLIBDIR' linker flag make[1]: *** No rule to make target `../libiberty/libiberty.a', needed by `size.exe'. Stop. make: *** [install-binutils] Error 2 on Sun, 13 Sep 1998 15:52:00 -0400 covici@CCS.COVICI.COM (John Covici) in < 35fc2321.ccs@ccs.covici.com > wrote: >Hi. I am running a Pentium 200mhz using Windows 95 and I cannot do a >make install on the source of cygwin32. > >When I tried it, it had trouble assembling libiberty.a, but I don't >have the exact error message because the bash redirection is not >working properly. > >Any assistance would be appreciated. > -- John Covici covici@ccs.covici.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 14 08:50:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 14 Sep 1998 08:50:00 -0000 Subject: CRLF in cat output breaks scripts. References: <0EZ200216XWU8W@mail.hac.com> <3.0.5.32.19980913200920.00966560@pop.ma.ultranet.com> Message-ID: <362e878d.50009359@mail.weiser.saale-net.de> Hello Larry, you wrote: >>>cat and other commands that use > to write files, put in CR's so that >>>we end up with CRLF at the end of every line. >>Just change to binary mounts (e.g. by setting fbinary under >>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >>Setup\b15.0\mounts\ to 1 for all your mounts). >Actually, this isn't going to fix this problem. The bash that comes with >the distribution is set so that stdin, stdout, and pipes write in text mode. >If you really want these to work as they should, you need to either get >the original bash source from a GNU archive or modify execute_cmd.c in the >bash source provided by Cygnus and remove the _setmode() statements... Really? I thought this only applies to pipes. I just tried to do the following with Image4.png being a binary file: cat Image4.png | cat >test2.txt Like one would expect I get michael@NARGOTHROND:/mnt/f/home/michael >cat Image4.png | cat >test2.txt Broken pipe michael@NARGOTHROND:/mnt/f/home/michael >l -rw-r--r-- 1 michael Kein 17035 Sep 14 02:27 Image4.png -rw-r--r-- 1 michael Kein 3879 Sep 14 05:08 test2.txt But when I do cat Image4.png >test2.txt I get michael@NARGOTHROND:/mnt/f/home/michael >cat Image4.png >test2.txt michael@NARGOTHROND:/mnt/f/home/michael >l -rw-r--r-- 1 michael Kein 17035 Sep 14 02:27 Image4.png -rw-r--r-- 1 michael Kein 17035 Sep 14 05:10 test2.txt michael@NARGOTHROND:/mnt/f/home/michael > So are you sure? mount says michael@NARGOTHROND:/mnt/f/home/michael >mount Device Directory Type Flags c:\temp /tmp native text=binary f: /mnt/f native text=binary e: /mnt/e native text=binary d: /mnt/d native text=binary g: /mnt/cd native text=binary c: /mnt/c native text=binary f:\home /home native text=binary \\.\tape1: /dev/st1 native text=binary \\.\tape0: /dev/st0 native text=binary \\.\b: /dev/fd1 native text=binary \\.\a: /dev/fd0 native text=binary e:\dev\cygwin32.b19 / native text=binary michael@NARGOTHROND:/mnt/f/home/michael > for me and CYGWIN32 is set to 'binmode tty'. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fiz@tsc.uvigo.es Mon Sep 14 08:50:00 1998 From: fiz@tsc.uvigo.es (Félix Valado Pomarinho) Date: Mon, 14 Sep 1998 08:50:00 -0000 Subject: Linking with Borland C Message-ID: Hello, I'm more or less aware of the troubles linking gcc DLL's using VC++. I am trying to use a gcc DLL created with the dllhelper utility in a program that's compiled using Borland C and I'm having a lot of problems. 1) Is there any known solution to this problem? 2) If it not possible the dynamic linkage, can I get some kind of static library (such as .lib) out of gcc, so I can link it using Borland C? Thank you for your help, -- F????lix Valado University of Vigo - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sunef@hem.passagen.se Mon Sep 14 10:21:00 1998 From: sunef@hem.passagen.se (Sune Falck) Date: Mon, 14 Sep 1998 10:21:00 -0000 Subject: SV: [ANN] optimised bash for cygwin Message-ID: <001c01bde004$1e1c3ce0$0c00a8c0@suf-hempc> The new bash has the same problem with non US keyboards as the original bash in the cygnus distribution. bash just ignores all accented characters such as ???????????????????????? and cant handle the characters ????`^ when typed on a swedish keybord. Sergey's modified bash have no problem with "foreign" keyboards. /Sune Falck - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Mon Sep 14 11:08:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Mon, 14 Sep 1998 11:08:00 -0000 Subject: I/O redirection of binary data References: <199809110932.LAA13319@geologi.uio.no> Message-ID: <199809141808.OAA03220@venus.solidum.com> What if you do "fdopen()" on file descriptor 0 (stdin) and 1 (stdout) :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From astromas@us.oracle.com Mon Sep 14 14:37:00 1998 From: astromas@us.oracle.com (Aaron Stromas) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: b19: include path flag problem Message-ID: <35FD337B.ECCC54CB@us.oracle.com> hi, i've just installed the cygwin32 b19 on nt and i'm attempting to compile a file that has the following includes: #include #include in my Makefile i have CC = /usr/cygnus/b19/H-i386-cygwin32/bin/gcc srcdir = . CFLAGS = -g INCLUDE_CFLAGS = -I/Netscape/certmap/include-I/Netscape/SuiteSpot/include \ -I/Netscape/SuiteSpot/plugins/sldap/slapi/include -I. INTERNAL_CFLAGS = $(CFLAGS) ${INCLUDE_CFLAGS} $(USER_CFLAGS) certinfo: ${CC} -c ${INTERNAL_CFLAGS} certinfo.c the certmap.h includes ldap.h: #ifndef _PUBLIC_CERTMAP_H #define _PUBLIC_CERTMAP_H #include #ifndef NSAPI_PUBLIC #if defined( _WINDOWS ) || defined( _WIN32 ) || defined( XP_WIN32 ) #define NSAPI_PUBLIC __declspec(dllexport) #else #define NSAPI_PUBLIC #endif #endif .... it appears that the compiler fails to find the ldap.h bash-2.01$ make /usr/cygnus/b19/H-i386-cygwin32/bin/gcc -c -g -I/Netscape/certmap/include -I/Net scape/SuiteSpot/include -I/Netscape/SuiteSpot/plugins/sldap/slapi/include -I. certinfo.c In file included from certinfo.c:14: /Netscape/certmap/include/certmap.h:4: ldap.h: No such file or directory make: *** [certinfo] Error 1 bash-2.01$ the ldap.h is where it should be found, i see no errors in the path bash-2.01$ ls /Netscape/certmap/include/certmap.h /Netscape/certmap/include/certmap.h bash-2.01$ if i'm overlooking somethig obviuos, i aplogise for wasting the bandwidth. -- Aaron Stromas | "Tick-tick-tick!!!... ja, Pantani is weg...." Oracle Corp. | BRTN commentator, L'Alpe d'Huez, 1995 Tour de France +1 703 917 48 72 | - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmbrooks@bigfoot.com Mon Sep 14 14:37:00 1998 From: jmbrooks@bigfoot.com (Jonathan Mark Brooks) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: Problems running cygwin32 References: <35fd7575.1326598@runyon.cygnus.com> Message-ID: <3.0.5.32.19980914114916.007dd380@nr.infi.net> I've had problems getting cygwin32 to run on my system. I downloaded and ran cdk.exe as directed, and added the "shell" statement to my config.sys. But then I get a message when I try to start Cygnus that it can't find "\command.com". I definitely have command.com at the path set in the shell command. I don't have cygwin set up on my C: drive; I put it on another drive for space considerations. My computer is a PII with plenty of memory. I can't figure what the problem might be. I would like to use this tool, but I won't be able to unless I can get the silly thing to run in the first place Any assitance would be greatly appreciated. jmbrooks@bigfoot.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Mon Sep 14 14:37:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: Console speed Message-ID: <35FD2D63.2ADC050@fel.cvut.cz> Hi, I read documetation of vim-5.0 for Win32 and I found this: ---BEGIN--- Q. Why does the Win32 version of Vim update the screen so slowly on Windows 95? A. The support for Win32 console mode applications is very buggy in Win95. For some unknown reason, the screen updates very slowly when Vim is run at one of the standard resolutions (80x25, 80x43, or 80x50) and the 16-bit DOS version updates the screen much more quickly than the Win32 version. However, if the screen is set to some other resolution, such as by ":set columns=100" or ":set lines=40", screen updating becomes about as fast as it is with the 16-bit version. ---END--- I test it and realy speed diference is big! Question is, if is posible to change no of lines of bash window? I test program 'stty rows=45' with no result. I try to run vim form bash, set no of lines and exit, but something (vim?) set back original size. Any ideas? -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 14 14:37:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: X References: <01BDDFCE.CE0A7210@sos> Message-ID: <35ff8157.33753845@mail.weiser.saale-net.de> Hello Sergey, you wrote: [three X11's] >"Core" X libraries in all three packages are the same and are based on my >X11 patch. The package(s) on my web site are pure X11R6.X distributions, >but the ones on Andy's and Arlindo's sites includes some additional X >libraries (lesstiff and libXpm, for example) and prorams. My R6.4 patch >includes some additional changes not found in R6.3 patch. Are there any plans to merge the three versions? IMHO it would be nice to have your latest changes, Andy's XEmacs changes and Arlindo's fvwm2 in one package for example. :) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 14 14:37:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: Down-load of 'cdk.exe' B18 stops References: <35FC27B4.93B98346@ks.ericsson.se> Message-ID: <35fe80a4.33575238@mail.weiser.saale-net.de> Hello Christer, you wrote: >I'm having problems to down-load the B18 version of >'cdk.exe' (both the split version and the complete >version). The same problem occured on all mirrors >I've tried. The file transfer stops (hangs?) when >only a few bytes remains. Is it a known problem? >Any known work-around? Do you need B18 for some specific reason? If not, download B19 because that's the up-to-date version of cygwin32. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Mon Sep 14 14:37:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: [ANN] optimised bash for cygwin References: <3.0.5.32.19980913091527.00824aa0@mail.mel.cybec.com.au> <4931-Sun13Sep1998141538+0200-vzell.cygnus.gnu-win32@de.oracle.com> Message-ID: <6tjus7$9ck$1@cronkite.cygnus.com> In article <4931-Sun13Sep1998141538+0200-vzell.cygnus.gnu-win32@de.oracle.com>, Dr. Volker Zell wrote: >Hi > > >> There is now a modified bash executable available from Sergey's > >> web page: > > >> http://www.lexa.ru/sos > > >> This is a modified bash 2.02.1 that includes optimisations to > >> increase performance (by doing a spawn instead of a fork/exec > >> under some conditions). It also contains modifications by Chris > >> Faylor that prevent bash pausing to look for mail, and address > >> other problems related to the HOME environment variable not > >> being set. > >Will these changes show up in upcoming releases of bash ??? Or is it a >one time only modification ?? For example will these modifications >show up in the upcoming cygnus b20 release ? My changes should be in the next version. It is unlikely that the spawn changes will get in in time, but you never know... -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From astromas@us.oracle.com Mon Sep 14 14:37:00 1998 From: astromas@us.oracle.com (Aaron Stromas) Date: Mon, 14 Sep 1998 14:37:00 -0000 Subject: resolved, but... Was: b19: include path flag problem Message-ID: <35FD41CF.4C3A967B@us.oracle.com> > hi, in the note i just posted i made a mistake of pasting the result of 'ls' of a wrong file. it should have been ls /Netscape/SuiteSpot/plugins/sldap/slapi/include/ldap.h as i started to type this correction i ran this ls and got bash-2.01$ ls /Netscape/SuiteSpot/plugins/sldap/slapi/include/ldap.h ls: /Netscape/SuiteSpot/plugins/sldap/slapi/include/ldap.h: No such file or directory bash-2.01$ well, textually, this directory path appears to be identical to the one i have in the Makefile, however, when i pasted what that path (/Netscape/SuiteSpot/plugins/sldap/slapi/include) the file was found! > > i've just installed the cygwin32 b19 on nt and i'm attempting to compile > a file that has the following includes: > > > #include > #include > > in my Makefile i have > > CC = /usr/cygnus/b19/H-i386-cygwin32/bin/gcc > srcdir = . > > CFLAGS = -g > INCLUDE_CFLAGS = > -I/Netscape/certmap/include-I/Netscape/SuiteSpot/include \ > -I/Netscape/SuiteSpot/plugins/sldap/slapi/include -I. > INTERNAL_CFLAGS = $(CFLAGS) ${INCLUDE_CFLAGS} $(USER_CFLAGS) > > > certinfo: > ${CC} -c ${INTERNAL_CFLAGS} certinfo.c > > the certmap.h includes ldap.h: > > #ifndef _PUBLIC_CERTMAP_H > #define _PUBLIC_CERTMAP_H > > #include > > #ifndef NSAPI_PUBLIC > #if defined( _WINDOWS ) || defined( _WIN32 ) || defined( XP_WIN32 ) > #define NSAPI_PUBLIC __declspec(dllexport) > #else > #define NSAPI_PUBLIC > #endif > #endif > .... > > it appears that the compiler fails to find the ldap.h > > bash-2.01$ make > /usr/cygnus/b19/H-i386-cygwin32/bin/gcc -c -g > -I/Netscape/certmap/include -I/Net > scape/SuiteSpot/include > -I/Netscape/SuiteSpot/plugins/sldap/slapi/include -I. > certinfo.c > In file included from certinfo.c:14: > /Netscape/certmap/include/certmap.h:4: ldap.h: No such file or > directory > make: *** [certinfo] Error 1 > bash-2.01$ > > the ldap.h is where it should be found, i see no errors in the path > > bash-2.01$ ls /Netscape/certmap/include/certmap.h > /Netscape/certmap/include/certmap.h > bash-2.01$ > > if i'm overlooking somethig obviuos, i aplogise for wasting the > bandwidth. -- Aaron Stromas | "Tick-tick-tick!!!... ja, Pantani is weg...." Oracle Corp. | BRTN commentator, L'Alpe d'Huez, 1995 Tour de France +1 703 917 48 72 | - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Mon Sep 14 21:20:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Mon, 14 Sep 1998 21:20:00 -0000 Subject: libkernel32a.lib (fwd) References: Message-ID: On Sat, 12 Sep 1998, Ben Elliston wrote: > It's well documented that the ``TryEnterCriticalSection'' API function is > not available on Win32s and Win95/98. I don't know if that means that the > function doesn't exist in any library, or if the function should exist in > a library, but be implemented to return some error code at runtime. I > believe it is the latter. In which case, can anyone explain why this > function is missing from the kernel32 stub library? Ben, I'm using the export definition files from the winsup distribution, and really don't know much more about it. I'm sure the win32 experts on this list will have a better idea what the "correct" thing to do is. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Mon Sep 14 23:58:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: bash hangs win95 Message-ID: <199809141427.HAA02465@cygnus.com> Also, check Sergey's site, http://www.lexa.ru/sos . He has a newly released modified bash that corrects a number of long wait problems and includes speed enhancements. -----Original Message----- From: michael@weiser.saale-net.de [ mailto:michael@weiser.saale-net.de ] Sent: Saturday, September 12, 1998 9:15 AM To: Dr. G. Scott Lett Cc: gnu-win32@cygnus.com Subject: Re: bash hangs win95 Hello Scott, you wrote: >Has there been any resolution to the problem of bash hanging the system >on win95? I've seen reports about this problem occurring after the user 1) >types an unrecognized command or 2) Types control-C. There are reports at >the Argonne National Lab web sites that the latter problem makes bash >unusable in gnu-win32. I must agree, as I've fallen victim a couple of >times. Just search the list archives on that problem, it has been discussed comprehensively. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2601 bytes Desc: not available URL: From unixguru68@hotmail.com Mon Sep 14 23:58:00 1998 From: unixguru68@hotmail.com (K M) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: where's the UNIX walker Message-ID: <19980915065657.13098.qmail@hotmail.com> I've downloaded and installed the latest( B19) GNU tools and things seem to be fine; however, when I try to compile a UNIX program that calls ftw(),gcc can't find ftw.h. I can't locate any refernce tp ftw in the distribution at all. Where is ftw or how can I get someting like this to compile? ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From salumax@entelchile.net Mon Sep 14 23:58:00 1998 From: salumax@entelchile.net (Salumax S.A.) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: b19: x11 Unix software (NT) Message-ID: <35FDB434.7E87867@entelchile.net> hi... I want to compile on cygnus gcc (Windows NT) a C software that use X11 graphics libraries... How I can compile this program ?... Can I change the X11 graphics instructions in the C code, to any equivalent ones using windows NT graphic API ?... best regards... Gonzalo Rojas Image Processing Group Department of Physics University of Santiago-Chile System Manager SALUMAX S. A. From khan@xraylith.wisc.edu Mon Sep 14 23:58:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: library ll could not be found References: <5F052F2A01FBD11184F00008C7A4A8005D56CF@eukbant101.ericsson.se> Message-ID: On Mon, 14 Sep 1998, Richard Hellicar (EML) wrote: > I'm trying to compile hp2xx using gcc egcs-1.0.2. > > Compilation goes fine, but at run-time, I get an NT error message saying > "The dynamic link library ll could not be found in the specified path". > However, I do not reference a library called "libll" at link time: > > gcc *.o -L/usr/X11R6.3/lib -lX11 -lm -o hp2xx > > Any ideas? This didn't happen with b18's gcc. > This is due to a bug in old binutils (dlltool specifically I believe) that created the import libraries (libX11.a in this case). Re-create libX11.a and you should be fine. I belive Arlindo da Silva has had the new ones on his site for a while now. See http://dao.gsfc.nasa.gov/software/grads/win32/X11R6.3/ or somewhere thereabouts. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Mon Sep 14 23:58:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: bash hangs win95 Message-ID: <199809141412.HAA01262@cygnus.com> Also, check Sergey's site, http://www.lexa.ru/sos . He has a newly released modified bash that corrects a number of long wait problems and includes speed enhancements. -----Original Message----- From: michael@weiser.saale-net.de [ mailto:michael@weiser.saale-net.de ] Sent: Saturday, September 12, 1998 9:15 AM To: Dr. G. Scott Lett Cc: gnu-win32@cygnus.com Subject: Re: bash hangs win95 Hello Scott, you wrote: >Has there been any resolution to the problem of bash hanging the system >on win95? I've seen reports about this problem occurring after the user 1) >types an unrecognized command or 2) Types control-C. There are reports at >the Argonne National Lab web sites that the latter problem makes bash >unusable in gnu-win32. I must agree, as I've fallen victim a couple of >times. Just search the list archives on that problem, it has been discussed comprehensively. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2617 bytes Desc: not available URL: From michael@weiser.saale-net.de Mon Sep 14 23:58:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: less and [D References: <35FBEC7E.D9393164@fel.cvut.cz> Message-ID: <35fd7ec4.33095438@mail.weiser.saale-net.de> Hello Jan, you wrote: >I'm new to this list. I'm student of Faculty of Electrical Engenering >on Czech Technical University. I'm autor of the SemTel telnet client >for Windows 3.11/95+/NT with support for SSL. It can be downloaded >from my page. That will be enought as introducing myself, I think. Welcome. :) >Here're my questions: > >1. I've installed cygwin package with bash > GNU bash, version 2.01.1(2)-release (i386-pc-cygwin32) > and less from site ftp://ftp.franken.de > less version 321 > my OS is MS-Windows 95 OSR2. And when I type > ls -l /bin | less > I receive this message and less is working as on hardcopy terminal > WARNING: terminal is not fully functional > - (press RETURN) Have you set TERM to linux or ansi? If not try export TERM=linux or export TERM=ansi TERM=linux works great for me. >2. Is chance to make bash faster? I unset MAILCHECK but it's > still slow. When I press right arrow key bash will print [D, What exactly do you mean? Are there pauses or is it just incredibly slow? BTW: cygwin32 itself is a bit slow because of the emulation layer sitting behind every little call. But it shouldn't be more than a slight delay sometimes. > (it's esc sequention for right key). It's problem for all > functions key but not for normal keys, like 'a'. Some special keys have to be defined in ~/.inputrc to work. For me this looks like this: set meta-flag on set convert-meta off set output-meta on "\e[3~": delete-char "\e[4~": end-of-line You will need an /etc/passwd with homedir entries and HOME set to your homedir. You could also try to set CYGWIN32=tty in cygnus.bat. But perhaps your problem already gets solved by setting TERM=linux. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Mon Sep 14 23:58:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: Cygwin newbie questions Message-ID: <199809141422.HAA02233@cygnus.com> I believe there is a cygwin32 native CVS that Sergey has ported. Check the ports link on his page, http://www.lexa.ru/sos . -----Original Message----- From: michael@weiser.saale-net.de [ mailto:michael@weiser.saale-net.de ] Sent: Sunday, September 13, 1998 8:32 AM To: Steve Grubbs Cc: gnu-win32@cygnus.com Subject: Re: Cygwin newbie questions Hello Steve, you wrote: >I just got Cygwin32, and it's great. It's working exactly how I'd expect it for >the most part. The problem is the small things that aren't working really bug >me. I have a feeling these may be linked, and I was hoping someone more >knowledgable could help me here. I can try. :) >1) At my new job, I'm working under WinNT, but we use good ol' CVS for revision >control (archive is on a Unix box). I don't really know the source of the "cvs" >executable (our 2 main sysadmins just left within 2 weeks, so nobody I've asked >really knows where they came from). The problem is that it doesn't work under >cygwin. It works fine from a cmd prompt, but if I run it from cygwin, I get no >output. I don't get "command not found", I just get nothing. Any ideas what's up >with this? >BTW, I test this with safe cvs commands like "cvs -v", which should work even if >cvs settings were messed up. My version of cvs-1.9 downloaded from www.cyclic.com works perfectly under cygwin32. But compiling a 'native' cygwin32 cvs would certainly the cleanest solution. >2) One thought I had was to download cvs source and compile it under cygwin. >When I try to run "configure", though, I get "bash: ./configure: No such file or >directory". But configure IS there.... What's up with that? Does configure not >work? Do I just have to edit the Makefile myself? Have you tried 'sh ./configure' or 'bash ./configure'? Perhaps the file permissions are messed up and you have to set them with chmod. But normally this should give an 'permission denied' error... >3) FTP hangs from cygwin. I assume its calling the WinNT ftp. Does this just not >work? Do I need to get a different ftp for cygwin? You could try the one from Sergey's remote.tgz found on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Okhapki n_Sergey >4) I've found some WWW pages with ports and stuff, but they don't seem to have a >lot. Anyone know of any hard-to-find pages with good stuff? ftp://dao.gsfc.nasa.gov/pub/uwm_coads/X11R6.3 (Arlindo da Silva - X11R6 binaries for cygwin32) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David Fox - RPM for cygwin32) ftp://ftp.franken.de/pub/win32/develop/gnuwin32 (Michael Hirmke - German mirror and ports collection) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey Okhapkin - fixes and ports) ftp://ftp.parallax.co.uk/pub/andyp (Andy Piper - fixes and ports) ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32 (Mumit Khan - egcs binaries for cygwin32 and mingw32) (Hello Earnie, the mini-FAQ is coming! ;-)))) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 3896 bytes Desc: not available URL: From rdparker@butlermfg.org Mon Sep 14 23:58:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: X Message-ID: <199809141422.HAA02234@cygnus.com> At the very least, many individuals prefer to retain X11R6.3 instead of the newer version. This is due to The Open Group's new, more restrictive licensing, see http://www.xfree86.org for more detail. I am uncertain as to the reason for two X11R6.3 ports. -----Original Message----- From: michael@weiser.saale-net.de [ mailto:michael@weiser.saale-net.de ] Sent: Sunday, September 13, 1998 8:51 AM To: gnu-win32@cygnus.com Subject: X Hello folks, I'm just wondering why there are three ports of X11 to cygwin32. There's X11R6.3 ported by Andy Piper and Arlindo da Silva and X11R6.4 ported by Sergey Okhapkin. As I want to include something about that in the mini FAQ: Could someone (especially the porters of course :) explain me, why they exist and which one is going to be the 'standard' X11 package for cygwin32. Also I would like to know, which one is the most advanced and/or newbie-friendly. I would also be interested in pages where configuration information for cygwin32 can be found. Thanks in advance. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2662 bytes Desc: not available URL: From uly@mindspring.com Mon Sep 14 23:58:00 1998 From: uly@mindspring.com (Michael D. Hill) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? Message-ID: <2.2.32.19980915030531.00718674@mindspring.com> Environment: Win95, Cygwin32 19.1, latest Coolview, Egcs 1.1 Folks... I have a small program that was compiling okay with egcs 1.0.2. I've just upgraded to 1.1 and the compiler's having a hard time, seemingly in coping with the typename keyword. Here's the first couple of compile erros I'm getting: c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/ g++/stl_iterator.h:319: parse error before `&' c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/ g++/stl_iterator.h:319: `back_insert_iterator::operator =(...)' must take exactly one argument In both of these locations a typename is being identified or used. I just *know* this is something silly, and that I'm gonna be embarassed when I realize what silly compiler switch or #define or whatever that I should be using. But meanwhile, I'm desperate enough to ask out loud: Does the egcs 1.1 actually have support for typename and explicit, and is it possible my stl_config.h isn't set up right? Thanks! Hill +------------------------------------------------------------+ |Michael Hill -- | |Consultant, Developer, Teacher, Coach | |I will translate patterns-related postscript papers to .pdf | |for anyone. E-mail me for instructions. | +------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Mon Sep 14 23:58:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: X Message-ID: <01BDE092.E1FE7A40@sos> Michael Weiser wrote: > Are there any plans to merge the three versions? IMHO it would be nice > to have your latest changes, Andy's XEmacs changes and Arlindo's fvwm2 > in one package for example. :) We have different goals. Andy provides X libraries as a part of Xemacs build/runtime environment. I don't want to mix different packages in a favor of modularity. For example, ported lesstiff and fvwm2 may be runned with R6.4 libraries without recompilation. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 14 23:58:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: less and [D References: <35FBEC7E.D9393164@fel.cvut.cz> Message-ID: <70p2rqkKpfB@mike.franken.de> Hi Jan, [...] > and less from site ftp://ftp.franken.de > less version 321 > my OS is MS-Windows 95 OSR2. And when I type > ls -l /bin | less > I receive this message and less is working as on hardcopy terminal > WARNING: terminal is not fully functional > - (press RETURN) Did you set TERM=linux ? Did you install the ncurses package with less ? ncurses ist necessary for my port of less from ftp.franken.de to work as expected, because it comes with a working termlib, and less has been compiled with termlib support. [...] > >Thanks for any help Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lo7@iol.ie Mon Sep 14 23:58:00 1998 From: lo7@iol.ie (LO) Date: Mon, 14 Sep 1998 23:58:00 -0000 Subject: Down-load of 'cdk.exe' B18 stops References: <35FC27B4.93B98346@ks.ericsson.se> Message-ID: <35FDF603.8598CB65@iol.ie> Hi Christer, I downloaded cdkb19.exe a couple of weeks ago with no problem. The fact that it stops might be normal, so you could try waiting for maby 5 to10 minutes until the file transfer continues. If that dosn't work then there could be something wrong with the computer your using. You could use another computer to download the file, copy the file to a tape cartridge (maby with a external tape drive) and copy the file to your computer from the tape cartridge. There could be something wrong with the internet connection you have. Maby you could contact your Internet Service Provider. Threre could be something wrong with the computer from which you are downloading the file. You could try downloading cdkb19.exe and see if there is a problem downloading that file. You could also download other .exe files from ftp sites and see if the problem occurs while downloading those files. Good bye. Liam O'Keeffe. -------------- Website: http://homepages.iol.ie/~lo7 Christer Olsson wrote: > I'm having problems to down-load the B18 version of > 'cdk.exe' (both the split version and the complete > version). The same problem occured on all mirrors > I've tried. The file transfer stops (hangs?) when > only a few bytes remains. Is it a known problem? > Any known work-around? > > Best regards > Christer Olsson > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 15 00:24:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 15 Sep 1998 00:24:00 -0000 Subject: where's the UNIX walker References: <19980915065657.13098.qmail@hotmail.com> Message-ID: <9809150724.AA22332@modi.xraylith.wisc.edu> "K M" writes: > I've downloaded and installed the latest( B19) GNU tools and > things seem to be fine; however, when I try to compile a UNIX > program that calls ftw(),gcc can't find ftw.h. I can't locate > any refernce tp ftw in the distribution at all. > Where is ftw or how can I get someting like this to compile? Quite possibly because ftw is neither ANSI nor POSIX. You can always use opendir(), readdir() etc which are part of POSIX and essentially get the same behaviour (you have to code the recursion yourself, but that's quite trivial). I understand that Unix95 spec does have some variant of ftw (nftw?), and if that's the case, then it may show up in newlib in the future. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 15 01:59:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 15 Sep 1998 01:59:00 -0000 Subject: library ll could not be found References: <5F052F2A01FBD11184F00008C7A4A8005D56CF@eukbant101.ericsson.se> Message-ID: <199809150737.AAA07580@cygnus.com> Hi folks, On 14 Sep 98, at 14:44, the Illustrious Richard Hellicar (EML) wrote: > I'm trying to compile hp2xx using gcc egcs-1.0.2. Before you get too far into that, you might want to download the latest EGCS (v1.1) and use it instead...in the meantime: > > Compilation goes fine, but at run-time, I get an NT error message saying > "The dynamic link library ll could not be found in the specified path". > However, I do not reference a library called "libll" at link time: hmmm...this sounds familiar ;-) Have you dumped the object code yet? Whether you have or not, this is something that EGCS-1.0.2 is known for doing. It means that some symbols, (those listed in the object dump under ll.dll) are assumed to be defined in one place (lib files I think), but not the other (.dll files). You may have to create a special .dll to compensate for this. That is my best guess, I am sure that Mumit Khan can probably tell you more about this than I can. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From allan@interport.net Tue Sep 15 01:59:00 1998 From: allan@interport.net (Allan Peda) Date: Tue, 15 Sep 1998 01:59:00 -0000 Subject: Window Managers under Windows References: Message-ID: <35FE2D6C.9554CD63@interport.net> Take a look at "VNC", it may provide the functionality you desire, and it's GPL'ed. http://www.orl.co.uk/vnc/ David H. Friedman wrote: > > On Mon, 7 Sep 1998, Ilsundal wrote: > > > I cannot seem to get another window manager running. I get a generic" > > Cannot load, another WM is running;" I'm assuming this other WM that is > > running is infact Windows itself > > Which X server are you using? > > I use Exceed, a commercial X server that has two modes. In one mode, X > apps appear as native windows. In this mode Exceed acts as the WM, so > trying to start another results in an error. In the other mode, Exceed > does not provide WM functions. In this mode you can run another WM, but X > apps can only appear as child windows inside the Exceed parent window. > > David H. Friedman > dhf@interport.net > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Tue Sep 15 03:02:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Tue, 15 Sep 1998 03:02:00 -0000 Subject: less and [D References: <35FBEC7E.D9393164@fel.cvut.cz> <35fd7ec4.33095438@mail.weiser.saale-net.de> Message-ID: <35FE1440.CED46712@fel.cvut.cz> Hi Michael you solve some my problems and make new. Thanks :-) > >2. Is chance to make bash faster? I unset MAILCHECK but it's > > still slow. When I press right arrow key bash will print [D, > What exactly do you mean? Are there pauses or is it just incredibly > slow? By slow I mean console speed I wrote about my discover in mail 'Console speed'. With keyboard I've this problem when I press and left it pressed some function key bash prints parts of esc sequention to screen. For right arrow that should look like this ~$ ls -l /usr/lo[D[D[D[Dcal problem was solved whena I add environment variable CYGWIN32=tty But new one is here: if i press one time arrow key its buffered but no action is made, action is made after I press some normal key, here is example: at begin I've this line, cursor is on end of line ~$ ls -l /usr/local I press three times right arrow ~$ ls -l /usr/local cursor is STIL at end of line, I press 'normal' key "-" and resul is ~$ ls -l /usr/lo-cal cursor is on right place ??? > Some special keys have to be defined in ~/.inputrc to work. For me I create .inputrc in my home but it have no efect to problem. set enable-keypad On set meta-flag On set convert-meta Off set output-meta On "\e[3~": delete-char "\e[4~": end-of-line Thanks Jan -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From colman.curtin@trintech.com Tue Sep 15 03:02:00 1998 From: colman.curtin@trintech.com (Colman Curtin) Date: Tue, 15 Sep 1998 03:02:00 -0000 Subject: cannot find ld Message-ID: I've noticed running some configure scripts that they report ld as not being found. it is there, its in the path. the only way I can get the script to find it is to set the variable 'LD=/usr/bin/ld' in my .bashrc. ok it works fine and all is well but why should I need to do this if ld is available in the path? what am I missing? nt4,sp3,all binary mounts. thanks, Colman ____________________________________________________________ Colman Curtin mailto:colman.curtin@trintech.com Senior Software Engineer ------------------------------------------------------------ Trintech Technologies Ltd, http://www.trintech.com/ South County Business Park, Tel: +353-1-207-4028 Leopardstown, Fax: +353-1-207-4015 Dublin 18. ------------------------------------------------------------ It is one of the superstitions of the human mind to have imagined that virginity could be a virtue. -- Voltaire - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From elliot@wellspring.com Tue Sep 15 06:14:00 1998 From: elliot@wellspring.com (Elliot Mednick) Date: Tue, 15 Sep 1998 06:14:00 -0000 Subject: Can't find TERM=linux w/Piper's local Message-ID: <3.0.5.32.19980915091533.0091c8b0@mailhost.empire.net> I am having problems with Andy Piper's local/ package. Only a few terminal types are recognized. vt200 is, vt100 isn't. versaterm is. linux, xterm isn't. I have CYGWIN32=tty I have binary mounts for /usr/bin, /usr/lib, /usr/etc, /usr/local, ... I have a binary mount for / I have installed the local using both Winzip and Cygwin32 tar. I have the latest (19.4) dll. My test is to run 'tset' to see what terminals can be found. I usually get "unknown terminal type linux", etc. But it can see /usr/local/share/terminfo because *a few* terminals work and when I change the name of terminfo, none of those can be found. This *looks* like a binary/text thing, but (I think) I have binary mounts. Any ideas? I've been working on this on and off for an embarrasingly long time. Thanks!! -- Elliot Mednick 7 Tudor Dr. Suite 300 Wellspring Solutions, Inc. Salem, NH. 03079 (603) 898-1100 (603) 893-8058 [fax] Verilog! see http://www.wellspring.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cheret@soleil.serma.cea.fr Tue Sep 15 06:14:00 1998 From: cheret@soleil.serma.cea.fr (Claude CHERET) Date: Tue, 15 Sep 1998 06:14:00 -0000 Subject: X01:bug whith make under WIN95 Message-ID: <35FE3CE8.E0E017CA@soleil.serma.cea.fr> Make work fine under windows NT . With the same gnu-win32 and the same sources files under Win95 ( OSR2 ) it does not work . The probleme seems to be with the Tab caratere . Can you tel me the way to corect this probleme . Regards --???? __Bonne reception__________________________________( CEA-SERMA )__ ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????Nom???????????????????????? :???????? Claude CHERET???????????????????????????????????????????????? mail :???????? cheret@cea.fr???????????? ????Societe???????? :???????? ATHESA???????????????????????????????????????????????????????????????????????????? tel???? :???????????????????? 0169082526???????????????? ????Fonction???? :???????? Administrateur Systeme???????????? fax???? :???????????????????? 0169084572???????????????? __________________________________________________________________ ???? From Stephen.Marley@memex.com Tue Sep 15 06:14:00 1998 From: Stephen.Marley@memex.com (Stephen Marley) Date: Tue, 15 Sep 1998 06:14:00 -0000 Subject: rename and unlink in cygwin32 Message-ID: <19980915141405.05370@bach.memex.co.uk> Could someone please describe how cygwin32 allows open files to be renamed and unlinked under Win32? (This is illegal in the native api). Are temporary files involved? How robust is the scheme? -- stephen@memex.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 15 06:35:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 15 Sep 1998 06:35:00 -0000 Subject: Problems running cygwin32 Message-ID: <19980915133532.4673.rocketmail@send104.yahoomail.com> ---Jonathan Mark Brooks wrote: > > I've had problems getting cygwin32 to run on my system. > I downloaded and ran cdk.exe as directed, and added > the "shell" statement to my config.sys. But then I > get a message when I try to start Cygnus that it > can't find "\command.com". \command.com would be looking for command.com in the root directory of the current device. What do you have the shell statement saying? You must be specific with the device!! shell=c:\command.com. > > I definitely have command.com at the path set in the > shell command. > > I don't have cygwin set up on my C: drive; I put it > on another drive for space considerations. You will need to modify the cygnus.bat file and change the CYGROOT and CYGFS to point to your installation. - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- To fix the most serious problems: Please, _READ_ the IMPORTANT UPGRADE NOTICE at the end of this note. Please, ensure that there is only _ONE_ cygwinb19.dll. Please, ensure that _ALL_ b18 binaries have been removed. Please, research your question via the Searchable Mail Archives first. http://www.cygnus.com/ml/gnu-win32 (Searchable Mail Archives) Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www-public.rz.uni-duesseldorf.de:1080 (Cygwin32 Porting Project) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - Mingw32) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) ftp://ftp.hksys.com/pub/mirrors/EGCS-Win32/ (Jeremy Bettis - mirror) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) http://www.downloadwizard.com/ak/gnu-win32/bash.html (GNU-Win32 Bash Configuration) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - package ports) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Package Porting Notes) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (German mirror) http://www.dol.ru/users/valtul (Valery Tulnikov - software ports) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 (David fox - RPM packages) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.kedemel.demon.co.uk/ (Darren's ports) http://www.multione.capgemini.fr/tools/pack_ipc/ ("Ludovic Lange" ) http://www.skydancer.demon.co.uk/gnu-win32/ (UK mirror and ports) http://www.i21.com/~tjump/files/index.html (Theodore Jump - emacs functions, cygwin32 ports, other info) Help for Win32 Beginners: http://www.relisoft.com http://www.program.com/resources/win32.html DISCLAIMER: These links or links from these pages to other sites do not constitute an endorsement of any entities, advertisers, products or services therein. I am not responsible for and do not control or monitor the content of these sites or the accuracy of information found therein. -------------------- IMPORTANT UPGRADE NOTICE ------------------------ You should get the following to update your cygwinb19 package: Sergey Okhapkin's coolview package which contains an updated cygwinb19.dll. (Yes, even if you've already downloaded the b19.1 update from the Cygnus Site). Mumit Khan's compilation of EGCS for the cygwinb19.dll; especially if you're using the C++ compiler. The current version of the compiler that comes with the tools has lots of problems that have been fixed with the EGCS version. This is a drop-in replacement for the GCC toolset. URL's are listed above. ----------------------------------------------------------------------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Tue Sep 15 12:56:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: libkernl32a.lib Message-ID: <35FEA6D6.FD7685EF@hem2.passagen.se> On Sat, 12 Sep 1998, Ben Elliston wrote: > It's well documented that the ``TryEnterCriticalSection'' API function is > not available on Win32s and Win95/98. I don't know if that means that the > function doesn't exist in any library, or if the function should exist in > a library, but be implemented to return some error code at runtime. I > believe it is the latter. In which case, can anyone explain why this > function is missing from the kernel32 stub library? The reason it is not in the import library, is probably because it is a quite new function and not documented in older docs. If you link an app that uses `TryEnterCriticalSection' and try to run it under W95 you'll get a message telling you that it the function does not exist (don't know about W98 though). So if you want your apps to run under both W95 and NT shouldn't use it, otherwise it is easy to add it to your `libkernel32.a', just rebuild the whole library after adding `TryEnterCriticalSection@4' to the list of exports. Regards, Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 15 12:56:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <2.2.32.19980915030531.00718674@mindspring.com> Message-ID: <9809151656.AA23229@modi.xraylith.wisc.edu> "Michael D. Hill" writes: > Environment: Win95, Cygwin32 19.1, latest Coolview, Egcs 1.1 > > Folks... > > I have a small program that was compiling okay with egcs 1.0.2. I've just > upgraded to 1.1 and the compiler's having a hard time, seemingly in coping > with the typename keyword. Here's the first couple of compile erros I'm > getting: > > c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../inclu > de/ > g++/stl_iterator.h:319: parse error before `&' > c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../inclu > de/ > g++/stl_iterator.h:319: `back_insert_iterator::operator =(...)' mu > st > take exactly one argument I can see one problem right away. You g++.exe executable isn't the correct one. For some reason, cygwin32 tar doesn't seem to create the hard link correctly (which is a copy under cygwin32). Note the 2.7-B19 above. Make sure you copy over c++.exe on top of g++.exe. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From scandora@cmt.anl.gov Tue Sep 15 12:56:00 1998 From: scandora@cmt.anl.gov (Scandora, Anthony E., Jr.) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: Terminal window scroll bars? Message-ID: <408C59EF36D6D111ACF500A0C92DEA19042A93@cmtnts3> My favorite telnet clients all have scroll bars that allow you to look back more than 24 lines. Can bash do the same? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From scandora@cmt.anl.gov Tue Sep 15 12:56:00 1998 From: scandora@cmt.anl.gov (Scandora, Anthony E., Jr.) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: Out of environment space on Windows 95 Message-ID: <408C59EF36D6D111ACF500A0C92DEA19042A92@cmtnts3> I have been running B19.1 on NT 4.0 with no problems. When I installed the same distribution on a Windows 95 OSR2 system, I got an out of environment space error from Windows 95 when I tried to run Cygwin 32 Beta 19 from the Start menu. If I type the same commands from cygnus.bat at a DOS prompt, bash runs fine. Is my Windows 95 system confused or is there a parameter I can set? Thanks, Tony Scandora, Argonne National Lab, 630-252-7541 scandora@cmt.anl.gov - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Tue Sep 15 12:56:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: Windows98 + inetutils References: <70ghJKzKpfB@mike.franken.de> Message-ID: <35FC2B86.8EE7173@uni-duesseldorf.de> > >> Also, as far as remote logins are concerned (obviously it will be for mere > >> personal use) how is this controlled? Can I simply just setup an > >> /etc/passwd, and /etc/group file, and when inetd is setup it will accept > >> logins using the passwd file? > > > >Yep. The login program called by in.telnetd look up valid users in the > >/etc/passwd file. > > But it gets the password from the NT SAM ! yes, it does on NT. But since I'm on an Win98 box, I'm using a patched login.c file in my case. -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kuku@gilberto.physik.RWTH-Aachen.DE Tue Sep 15 12:56:00 1998 From: kuku@gilberto.physik.RWTH-Aachen.DE (Christoph Kukulies) Date: Tue, 15 Sep 1998 12:56:00 -0000 Subject: read in sh scripts (b18) Message-ID: <199809151600.SAA15528@gilberto.physik.RWTH-Aachen.DE> While testing some shell scripts under b18 I find that echo -n 'enter yes/no:' read answer echo $answer echo -n 'enter yes/no:' read answer echo $answer skips the second read. It look too much like a FAQ to me like tty mode, buffering or a cr/lf issue that I can't believe it's a bug. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de Latest feature of Visual C++ 6.0: 'Command-line builds' - msdev crc.dsw /MAKE "WinCRC - Win32 Debug" /Rebuild /OUT wincrc.log Taken from: MSJ Oct 98, p. 19 -- :-O - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Tue Sep 15 17:27:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Tue, 15 Sep 1998 17:27:00 -0000 Subject: Running SSH on Cygwin Message-ID: I'm using Cygwin B19 and the SSH binaries from Sergey's web page. Once I start "ssh1", I get the prompt for my passphrase, so I enter it and then the shell hangs. If I set "CYGWIN32=tty" as the docs suggest, I get "Cannot find a controlling terminal or DISPLAY". Has anyone got SSH working on Cygwin? Thanks, Ben - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cabrera@wrc.xerox.com Tue Sep 15 19:33:00 1998 From: cabrera@wrc.xerox.com (Jose I. Cabrera) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: cd'ing to a shortcut References: <9809081457.AA01063@dns.cise.it> Message-ID: <35FEB085.BE5BE35A@wrc.xerox.com> In my home, I added a shortcut to a directory that I use a lot. How can I change to it from bash? When I cd to the shortcut name, it tells me that I have no right. Here is the full screen: ------------------------------------------------------------------ /jicman <50> ls -l total 3 -rwxr-xr-x 1 0 everyone 217 Sep 15 14:08 Apps (D).lnk -rw-r--r-- 1 0 everyone 232 Aug 18 11:03 Escalate on Bountiful.lnk -rw-r--r-- 1 0 everyone 377 Sep 15 11:22 New Logs.lnk drwxr-xr-x 2 0 everyone 0 Sep 15 14:05 test /jicman <51> cd Apps\ \(D\).lnk bash: cd: Apps (D).lnk: Permission denied /jicman <52> cd Escalate\ on\ Bountiful.lnk bash: cd: Escalate on Bountiful.lnk: Permission denied /jicman <53> cd New\ Logs.lnk bash: cd: New Logs.lnk: Permission denied /jicman <54> cd test/ /jicman/test <55> -------------------------------------------------------------------- Why is this happening? How can I cd into this shortcut? I've noticed that the test directory has chmod bits assignments different than the others shortcuts. I have tried to assign the d option to the Apps\ \(D\).lnk shortcut, but, I have had no luck with it. Anyone? Please email me, since I will go into vacation soon and I am off the list until I come back....thanks... jose - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 15 19:33:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: Linking with Borland C References: Message-ID: <199809151846.LAA13570@cygnus.com> Hi folks, On 14 Sep 98, at 17:49, the Illustrious F????lix Valado Pomarinho wrote: > > Hello, > > I'm more or less aware of the troubles linking gcc DLL's using > VC++. I am trying to use a gcc DLL created with the dllhelper utility in a > program that's compiled using Borland C and I'm having a lot of problems. > > 1) Is there any known solution to this problem? There was a method noted here in the last couple of weeks on how to generate MS compatible .dlls using Gnu-Win32, that had been tested. You might want to take a look at the archives for the information. In terms of Borland C, it has always been able to understand the MS .dll. So, if you generate a .dll that MSVC can understand, then Borland C can probably understand it as well. > 2) If it not possible the dynamic linkage, can I get some kind > of static library (such as .lib) out of gcc, so I can link it using > Borland C? Afaik, you can not generate .lib files easily via Gnu-Win32. As far as linking is concerned, I believe that Borland/Win32 only recognizes the MS and Borland type .lib files. You would probably be best served by generating an MS compatible .dll to use with Borland. I hope this helps. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 15 19:33:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: TryEnterCritical (was Re: libkernel32a.lib (fwd)) References: Message-ID: <199809152049.NAA23812@cygnus.com> Hi folks, I don't consider myself an expert on Win32, however, I did manage to find some things out. Follows are some thoughts/info on 'TryEnterCritical': On 14 Sep 98, at 23:20, the Illustrious Mumit Khan wrote: > On Sat, 12 Sep 1998, Ben Elliston wrote: > > > It's well documented that the ``TryEnterCriticalSection'' API function > > is not available on Win32s and Win95/98. I don't know if that means > > that the function doesn't exist in any library, or if the function > > should exist in a library, but be implemented to return some error code > > at runtime. After checking my own NT4 directories (.dlls and .a files) I am inclined to believe the former. Perhaps it is my own "worst case scenario" philosophy...;-) At any rate, I show that, under NT4/SP3, that the function exists in the kernel32.dll as well as the old MS NT4 mapi32 implementation (pre-SP3) and doesn't exist in the collection of .a files, including libkernel32.a. The implementation of 'TryEnterCritical', judging by the dates of the .dlls that the function was actually found in, was moved by MS from the old mapi32 implementation (not necessarily a Win32 API implementation) into the kernel32.dll. MS has always been way behind when it comes to implementing traditional Unix APIs, such as Mapi... > > I believe it is the latter. In which case, can anyone > > explain why this function is missing from the kernel32 stub library? Apparently, judging from what Ben has said above, Win95/98 and Win3.11 (win32s) kernel implementation are sufficiently different that MS had to use some other form of 'TryEnterCritical'. If 'TryEnterCritical' exists in any form under non-NT4 Win32 systems, it is probably called something else entirely. At this point, there is every reason to believe that "TryEnterCritical" function is only available with(via) the MS Mapi API update for all pre-NT4 Win32 system implementations. As to why 'TryEnterCritical' is not part of the libkernel32.a file -- I am working with EGCS-1.0.2-Mingw32. I am inclined to believe, and Mumit can correct me on this, that EGCS-1.0.2 or Mingw32 (Colin?) or both were natively developed under Win95, which, afaik, does _not include_ a native implementation of Mapi. This also seems to indicate that the function 'TryEnterCritical' doesn't exist even under Cygwin32 except possibly as a Unix call. Again, I am not using Cygwin32, so I can't directly address this. I did find, under the last release of Win32s, several references to CriticalSection. ftsearch.dll: EnterCriticalSection DeleteCriticalSection comctl32.dll: InitializeCriticalSection LeaveCriticalSection Other Win32s .dlls which are indicated to have "CriticalSection" somewhere within are: (WFW3.11->)mfcans32.dll, msvcrt20.dll, kpsys32.dll, sprof32.dll, wininet.dll, oleaut32.dll, (Win32s ->) crtdll.dll, riched32.dll and w32scomb.dll I hope this helps. Peace, Paul G. Ben, you might want to check the MS Platform SDK update for your Win32 development system, it is likely you will find 'TryEnterCritical' as part of the Mapi API, if it exists at all. Hope this helps. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 15 19:33:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: where's the UNIX walker References: <19980915065657.13098.qmail@hotmail.com> Message-ID: <3605c5ca.3657018@mail.weiser.saale-net.de> Hello K, you wrote: >I've downloaded and installed the latest( B19) GNU tools and >things seem to be fine; however, when I try to compile a UNIX >program that calls ftw(),gcc can't find ftw.h. I can't locate >any refernce tp ftw in the distribution at all. >Where is ftw or how can I get someting like this to compile? The cygwin32 FAQ ( http://www.cygnus.com/misc/gnu-win32/faq.html ) doesn't mention this call, not even as not yet implemented. So your chances are very low to find it in cygwin32. If it helps you: POSIX functions like readdir are implemented. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From massey@surefirev.com Tue Sep 15 19:33:00 1998 From: massey@surefirev.com (Todd Massey) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: Globetrotter FLEX/LM Message-ID: <3.0.3.32.19980915193354.00b829c0@appr> Has anyone successfully linked in the globetrotter flex/lm license manager. If so could you e-mail me directly on how to do this. Thanks, Todd /\ Todd Massey /\// SureFire Verification Inc. < http://www.surefirev.com > /\///\ 1671 Dell Ave, Campbell, CA 95008 -- 408-374-4100 x102 _\///\/ Formerly Silicon Sorcery \//\/ Check out the Scuba Divers Review Site \/ ----> www.scuba-divers.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From uly@mindspring.com Tue Sep 15 19:33:00 1998 From: uly@mindspring.com (Michael D. Hill) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? Message-ID: <2.2.32.19980915163502.00717d54@mindspring.com> Environment: Win95, Cygwin32 19.1, latest Coolview, Egcs 1.1 Folks... I have a small program that was compiling okay with egcs 1.0.2. I've just upgraded to 1.1 and the compiler's having a hard time, seemingly in coping with the typename keyword. Here's the first couple of compile erros I'm getting: c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/ g++/stl_iterator.h:319: parse error before `&' c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/ g++/stl_iterator.h:319: `back_insert_iterator::operator =(...)' must take exactly one argument In both of these locations a typename is being identified or used. I just *know* this is something silly, and that I'm gonna be embarassed when I realize what silly compiler switch or #define or whatever that I should be using. But meanwhile, I'm desperate enough to ask out loud: Does the egcs 1.1 actually have support for typename and explicit, and is it possible my stl_config.h isn't set up right? Thanks! Hill +------------------------------------------------------------+ |Michael Hill -- | |Consultant, Developer, Teacher, Coach | |I will translate patterns-related postscript papers to .pdf | |for anyone. E-mail me for instructions. | +------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Sujoy.Mitra@xilinx.com Tue Sep 15 19:33:00 1998 From: Sujoy.Mitra@xilinx.com (Sujoy Mitra) Date: Tue, 15 Sep 1998 19:33:00 -0000 Subject: Make and command execution Message-ID: <35FED9DB.3E13CF9@xilinx.com> Hi, The e-mail is with reference to make in the b19 release. I always have MAKE_MODE set to unix. Consider the rules: lib1: perlscript lib2: ( perlscript ) Here perlscript is a PERL5 script. The SHELL variable is set to a non GNUWIN32 (tcsh) shell. The lib1 target fails with: Can't open perl script "perlscript": No such file or directory How did make know that "perlscript" was a PERL script? If it actually opened up the file and intuited it from the #! line then why does it say "No such file or directory"? But lib2 executes perfectly! Can anyone explain this? Thanks, Sujoy Mitra. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 15 21:43:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 15 Sep 1998 21:43:00 -0000 Subject: EGCS-1.0.2-Mingw32 References: <35FAA395.300C61B3@crocodial.de> Message-ID: On Sat, 12 Sep 1998, Benjamin Riefenstahl wrote: > > The problems with COM and gcc as I understand it are these: g++ does not > currently support C++-style COM. COM objects are defined by a specific > vtable layout and g++ does not generate a compatible vtable. fyi, Antonio Mendes is working on this, and has a prebuilt test version that should work. I'll add his patches in as soon as I get some time. See http://www.geocities.com/SiliconValley/Sector/6364/ Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 15 22:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: less and [D References: <35FBEC7E.D9393164@fel.cvut.cz> <35fd7ec4.33095438@mail.weiser.saale-net.de> <35FE1440.CED46712@fel.cvut.cz> Message-ID: <361ad9a9.8742250@mail.weiser.saale-net.de> Hello Jan, you wrote: >> >2. Is chance to make bash faster? I unset MAILCHECK but it's >> > still slow. When I press right arrow key bash will print [D, >> What exactly do you mean? Are there pauses or is it just incredibly >> slow? >By slow I mean console speed I wrote about my discover in mail 'Console >speed'. Oh, yes, you're using Win95! Sorry, I forgot. :-/ All cygwin32 apllications are Win32 console applications and, as written somewhere in vim's README, support for Win32 console applications isn't that great in Windows 95. So you will unfortunately have to live with that until Microsoft improves it or change to WinNT. There's no other way AFAIK. BTW: As I don't run Win98 (yet), I don't know whether support for console applications was improved there. Does anyone know? > at begin I've this line, cursor is on end of line > ~$ ls -l /usr/local > I press three times right arrow You mean left arrow, don't you? > ~$ ls -l /usr/local > cursor is STIL at end of line, I press 'normal' key "-" > and resul is > ~$ ls -l /usr/lo-cal > cursor is on right place ??? Oh, that sounds strange! Cursor keys work quite great for me. But there's one thing that could be related to your problem: When I'm at the beginning of a line and press the cursor right key quickly and several times, the cursor disappears and moves without being shown. It appaers again about half a second after the last key press but at the right place in the line. Perhaps that's quite the same for you but a bit slower because of your Win95? BTW: This doesn't happen if I move the cursor to the left. (?) >> Some special keys have to be defined in ~/.inputrc to work. For me >I create .inputrc in my home but it have no efect to problem. > set enable-keypad On > set meta-flag On > set convert-meta Off > set output-meta On > "\e[3~": delete-char > "\e[4~": end-of-line Do you have an /etc/termcap? -- man liest sich, Michael www.saale-net.de/~weiser - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earl_chew@hp.com Tue Sep 15 22:20:00 1998 From: earl_chew@hp.com (Earl Chew) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: Using bash.exe or sh.exe with ClearMake Message-ID: <35FF2421.7DE41E7F@hp.com> Has anyone tried using bash.exe or sh.exe with ClearMake? I've got to a point where ClearMake will invoke bash.exe, but then bash complains about a carriage return in the filename: ======== Rebuilding "r4650_vxworks/atoVersion.i" ======== e:/Tornado/host/x86-win32/mips-wrs-vxworks/bin/gcc -B e:/Tornado/host/x86-win32/lib/gcc-lib/ -D__VxWorks=530 -DCPU=R4650 -DRWSTD_MULTI_THREAD -DRW_MULTI_THREAD -I v:/cerberus -I . -I e:/Tornado/target/h -I ../config/vxworks -O2 -g -EB -m4650 -mcpu=r4650 -mips3 -msingle-float -mgp32 -mfp32 -non_shared -G 0 -fno-builtin -fno-implicit-templates -DCOMPONENTNAME='acl_col__ato' -DCOMPONENTREVISION='"acl/col_/ato/ato.cv@@/main/109"' -DCOMPONENTFILE='"ato.cv"' atoVersion.cpp -E > r4650_vxworks/atoVersion.i >>> (clearmake): Spawned child /usr/bin/bash.exe: r4650_vxworks/atoVersion.i^M: No such file or directory *** Error code 1 clearmake: Error: Build script failed for "r4650_vxworks/atoVersion.i" ======================================================== Earl -- >----------------------------------------------------------------------+ > Earl Chew mailto:earl_chew@hp.com | > Hewlett-Packard Australia Tel: +61 3 9210 5528 | > Advanced Networks Division Fax: +61 3 9210 5550 | > 347 Burwood Highway GPS: 37 51'46"S 145 10'03"E | > Burwood East, Victoria 3151, Australia | >----------------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Tue Sep 15 22:20:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: Problems running cygwin32 References: <35fd7575.1326598@runyon.cygnus.com> <3.0.5.32.19980914114916.007dd380@nr.infi.net> Message-ID: <199809160523.HAA22071@k9.dds.nl> > Date: Mon, 14 Sep 1998 11:49:16 -0400 > From: Jonathan Mark Brooks > I downloaded and ran cdk.exe as directed, and added > the "shell" statement to my config.sys. But then I > get a message when I try to start Cygnus that it > can't find "\command.com". > > I don't have cygwin set up on my C: drive; I put it > on another drive for space considerations. In my config.sys (cygwin om H:) shell=C:\command.com /e:4096 /p Are you sure you didn't forgot the "C:"? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Tue Sep 15 22:20:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: b19: x11 Unix software (NT) References: <35FDB434.7E87867@entelchile.net> Message-ID: <199809160524.HAA22210@k9.dds.nl> > Date: Mon, 14 Sep 1998 20:26:28 -0400 > From: salumax@entelchile.net (Salumax S.A.) > I want to compile on cygnus gcc (Windows NT) a C software that > use > X11 graphics libraries... How I can compile this program ?... You need to compile and link it with the X11 libs. Look in the "Related Sites" section of the gnu-win32 page. You will also need an Xwin server (to be found on same section) >Can I > change the X11 graphics instructions in the C code, to any > equivalent ones using windows NT graphic API ?... I'm trying this with the laban-editor which doesn't run as expected under MiX. But it is a big task :-( - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From stormvind@kurir.net Tue Sep 15 22:20:00 1998 From: stormvind@kurir.net (Henrik Johansson) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: Installationsproblem Message-ID: <35FC4501.E7368DFB@kurir.net> Hello, I have followed the installation instructions for installing the binary release and downloaded cdk.exe . No previous version of gnu-win32 has been used on my machine. When I execute the file from the file manager, nothing happens. Is it because I'm running Windows 3.11 (no I cannot upgrade at this time)? Regards, Henrik Johansson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 15 22:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: Problems running cygwin32 References: <3.0.5.32.19980914114916.007dd380@nr.infi.net> Message-ID: <3604c410.3215733@mail.weiser.saale-net.de> Hello Jonathan, you wrote: >I've had problems getting cygwin32 to run on my system. >I downloaded and ran cdk.exe as directed, and added >the "shell" statement to my config.sys. But then I >get a message when I try to start Cygnus that it >can't find "\command.com". [...] >I don't have cygwin set up on my C: drive; I put it >on another drive for space considerations. '\command.com' searches the file in the root directory of the current drive. So it perhaps helps if you find the place where '\command.com' gets executed and change it to 'c:\command.com' or where your command.com resides. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Tue Sep 15 22:20:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Tue, 15 Sep 1998 22:20:00 -0000 Subject: rename and unlink in cygwin32 References: <19980915141405.05370.cygnus.gnu-win32@bach.memex.co.uk> Message-ID: <6tndpn$6bc$1@cronkite.cygnus.com> In article <19980915141405.05370.cygnus.gnu-win32@bach.memex.co.uk>, Stephen Marley wrote: >Could someone please describe how cygwin32 allows open files to be >renamed and unlinked under Win32? (This is illegal in the native api). Currently, if unlink() fails with the appropriate error, the filename is placed in a queue for deletion at some future time. >Are temporary files involved? Nope. >How robust is the scheme? Not very. -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Tue Sep 15 23:16:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Tue, 15 Sep 1998 23:16:00 -0000 Subject: less and [D References: <70p2rqkKpfB@mike.franken.de> Message-ID: <35FF4F08.A4FD3D3C@fel.cvut.cz> Hi Michael, I've no ncurses, I'' install it. Thanks. Jan > [...] > > and less from site ftp://ftp.franken.de > > less version 321 > > my OS is MS-Windows 95 OSR2. And when I type > > ls -l /bin | less > > I receive this message and less is working as on hardcopy terminal > > WARNING: terminal is not fully functional > > - (press RETURN) > > Did you set TERM=linux ? > Did you install the ncurses package with less ? > ncurses ist necessary for my port of less from ftp.franken.de to work as > expected, because it comes with a working termlib, and less has been > compiled with termlib support. > > [...] > > > >Thanks for any help -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From BROGUIERE@TTM.thomson-csf.com Wed Sep 16 02:43:00 1998 From: BROGUIERE@TTM.thomson-csf.com (BROGUIERE@TTM.thomson-csf.com) Date: Wed, 16 Sep 1998 02:43:00 -0000 Subject: B19 - du command - erroneous size estima Message-ID: <000ABAD0.MAI*/S=BROGUIERE/O=TTM/PRMD=THOMSON/ADMD=ATLAS/C=FR/@MHS> Small problem, probably easy to fix? (win95 explorer can be used but require to click on each directory entry to get its size, "du -sk *" is easier ...) Context: -------- Beta 19 installed on Windows 4.00.950 Bug: ---- Size indicated by the disk usage command "du" is wrong. An example is given hereafter. The error ratio (0.5 in the example) is not constant and therefore not predictible (range 0.6 to 0.8 for a real full directory). Note that the size given by "ls" command is always coherent with Windows95 Explorer display. Example Trace: ------------------------ BASH.EXE-2.01$ pwd/users/gnu/lib BASH.EXE-2.01$ uname -a CYGWIN32_95 BROGUI+RE 4.0 19.0 i586 unknown BASH.EXE-2.01$ ls -l total 32-rw-r--r-- 1 500 everyone 65168 Feb 26 1998 libiberty.a BASH.EXE-2.01$ du -k * 32 libiberty.a BASH.EXE-2.01$ Jean-Louis Broguiere broguiere@thomson-csf.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Wed Sep 16 03:43:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Wed, 16 Sep 1998 03:43:00 -0000 Subject: Problem with a header file Message-ID: <9601-Wed16Sep1998105335+0200-vzell@de.oracle.com> Hi experts I have the following problem when compiling a test program for the Oracle call interface. I finally managed to produce a .a file from a .lib file. Thanks Mumit. vzell:/src/oracle/oci> make oci02 gcc -o oci02 oci02.c -I. -I/usr/local/include/oci80 -lociw32 -loci In file included from oci02.c:64: \usr\local\include\oci80\oratypes.h:169: parse error before `ub8' \usr\local\include\oci80\oratypes.h:169: warning: data definition has no type or storage class \usr\local\include\oci80\oratypes.h:183: parse error before `sb8' \usr\local\include\oci80\oratypes.h:183: warning: data definition has no type or storage class make: *** [oci02] Error 1 The problem is in the oratypes.h include file: When I change line 169 (and the same in 183) from typedef unsigned _int64 ub8; to typedef unsigned int ub8; the compiliation succeeds and the program works. I'm not a programmer so my question is, why does this work? By the way, I have a makefile for the MSVC compiler and there this program compiles with the original include file just fine. Ciao Volker -- ___________________________________________________________________________ "Is a dream a lie if it don't come true or is it something worse ..." Dr. Volker Zell __ / _ / __ / ___/ / ___/ -- Trainer -- / / /__/ /_ / / / __/ Oracle Germany ____/__/ _|__/ __/____/ ____/____/ Paul-Thomas-Str.58 D-40599 D????sseldorf e-Mail: mailto:vzell@de.oracle.com Tel: (+49) 211-74839-414 Fax: (+49) 211-74839-44 ___________________________________________________________________________ The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@jacob.remcomp.fr Wed Sep 16 06:40:00 1998 From: root@jacob.remcomp.fr (root) Date: Wed, 16 Sep 1998 06:40:00 -0000 Subject: libkernel32a.lib References: Message-ID: TryEnterCriticalSection is not defined in the version of kernel32.dll under windows 95. Now, if Mumit would add an entry to the import libraries, this would make the linker happy but... at run time your program would not load and you would get a dialog box with foo.exe is linked to missing export TryEnterCriticalSection. You have to use windows NT 4.0 or higher to get that function. The correct solution for this problem is obvious: Mumit would have to duplicate all import libraries, to account for the fact that the APIs differ: one for windows 95 users, and the other for Windows NT 3.5, and yet another for windows NT 4.0. With the appearing of windows NT 5.0 the set of needed libraries would increase by yet another one. Then, Mumit would have to look at all the (approx 3000) APIs of the basic win32 API and see if the exist under all systems. Another, solution, is the one that lcc-win32 has used: If a function exists, it is included in the import library. If you use TryEnterCriticalSection with lcc-win32 you will see no errors at link time, but your program will NOT load under windows 95/windows NT 3.51. This choice is based in time considerations: I can't do anything else. I can't have 3 or 4 different sets of import libraries... I think that situation with gcc is very similar. We are earning no big bucks with this (personally I'm not earning anything at all!!!) so we have a limited resource pool to do the enormous amount of work a compiler system requires. If you have problems with this approach, I recommend you to spend the US$ 2.000 and get Visual Studio professional 6.0. There, you will get everything you need and much (MUCH) more. Yours sincerely -- Jacob Navia Logiciels/Informatique 41 rue Maurice Ravel Tel 01 48.23.51.44 93430 Villetaneuse Fax 01 48.23.95.39 France - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ciro@rasnaimaging.com Wed Sep 16 08:12:00 1998 From: ciro@rasnaimaging.com (Ciro Rebuffat) Date: Wed, 16 Sep 1998 08:12:00 -0000 Subject: Problems building X11R6.3 (No more processes - Cannot fork) Message-ID: <35FFE418.8CECE56D@rasnaimaging.com> Hi, I'm trying to build X11R6.3 with B19 under Windows NT, following the instructions found on X11R6.3f2-b19.diff patch file. I do "make -i World" and, after several steps of the "Making Makefiles" phase, I have some error messages like the following: making Makefiles in programs/... mv Makefile Makefile.bak ../../../config/imake/imake: No more processes ../../../config/imake/imake: Cannot fork. Stop. Then, rules to make targets "clean', 'includes', 'depend' and 'all' are not found and build process ends. Any help will be greatly appreciated. Thanks Ciro Rebuffat -- Rasna Imaging Systems Via Panciatichi, 26/3 50127 Firenze - Italia tel. + 39 055 4369352 - fax + 39 055 413576 http://www.rasnaimaging.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From setera@us.ibm.com Wed Sep 16 09:23:00 1998 From: setera@us.ibm.com (Craig Setera) Date: Wed, 16 Sep 1998 09:23:00 -0000 Subject: Update GIMP for related sites Message-ID: <5010400026954003000002L032*@MHS> Not sure who is in charge of the "Related Sites" page of the Cygnus web site, but I would appreciate it if you could update the GIMP for Win32 link to its new home http://www.geocities.com/SiliconValley/Garage/8516/gimp/gimpw32.html . (I didn't even know I'd made the big time by making this list!). By the way for those who may be interested, I've added binaries to the page. THanks, Craig Craig Setera AS/400 Enterprise Java Development IBM Rochester setera@us.ibm.com (507) 253-3387 - Tie: 553-3387 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 09:23:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 09:23:00 -0000 Subject: X References: <01BDE092.E1FE7A40@sos> Message-ID: <36039857.2868775@mail.weiser.saale-net.de> Hello Sergey, you wrote: >> Are there any plans to merge the three versions? IMHO it would be nice >> to have your latest changes, Andy's XEmacs changes and Arlindo's fvwm2 >> in one package for example. :) >We have different goals. Andy provides X libraries as a part of Xemacs >build/runtime environment. I don't want to mix different packages in a >favor of modularity. For example, ported lesstiff and fvwm2 may be runned >with R6.4 libraries without recompilation. Thanks for your explanations. I'll see, how it fits in the FAQ. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From awykel@channelpoint.com Wed Sep 16 13:33:00 1998 From: awykel@channelpoint.com (Alex Wykel) Date: Wed, 16 Sep 1998 13:33:00 -0000 Subject: B19.1:bind will not bind usinf the -f option. Message-ID: <915D4A5037A6D011957D006097198E47013DBAF3@goat.channelpoint.com> When binding keys using the -f option (filename) the command appears to read the file which is passed but none of the bindings from the file are 'binded'. To reproduce: Create a bind file: $ bind -p > keybinding.out Then edit the output file change one of the bindings. I changed the beginning-of-line to "\e[1~" or the [HOME] key on my computer. Then I saved the file. And tried to use the '-f' option and pass the file to bind. $ bind -f keybinding.out Upon trying to use the new binding nothing happened. Investigating the binding for the function showed that the new binding was never made. $ bind -q beginning-of-line beginning-of-line can be invoked via "\C-a" Using the normal bind procedure works fine. I also noticed that if you process the command from within EMACS using the -p option there is no output. I have not experimented with this enough to figure out what the problem is. -Alex Wykel Test Engineer ChannelPoint Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 13:33:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 13:33:00 -0000 Subject: X01:bug whith make under WIN95 References: <35FE3CE8.E0E017CA@soleil.serma.cea.fr> Message-ID: <3602ef0e.2673454@mail.weiser.saale-net.de> Hello Claude, you wrote: >Make work fine under windows NT . >With the same gnu-win32 and the same sources files under Win95 ( OSR2 ) >it does not work . >The probleme seems to be with the Tab caratere . > >Can you tel me the way to corect this probleme . Have you mounted your directory structure the same way on both machines? I mean: Are they mounted text=binary or text!=binary on both machines the same? If that doesn't solve your problem: Could you post the error messages you're getting from make? -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Wed Sep 16 13:33:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Wed, 16 Sep 1998 13:33:00 -0000 Subject: Linking with Borland C References: Message-ID: <36002074.5DBFE056@hem2.passagen.se> F????lix Valado Pomarinho wrote: > > Hello, > > I'm more or less aware of the troubles linking gcc DLL's using > VC++. I am trying to use a gcc DLL created with the dllhelper utility > in a program that's compiled using Borland C and I'm having a lot of > problems. > ... > 2) If it not possible the dynamic linkage, can I get some kind > of static library (such as .lib) out of gcc, so I can link it using > Borland C? > Borland C/C++ (at least up to 5.01, don't know about C++ builder) uses the OMF format for object files so it would be impossible to link the object code anyway. /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 16 14:10:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 16 Sep 1998 14:10:00 -0000 Subject: [ANNOUNCE] http://www.freeyellow.com/members5/gw32 Message-ID: <19980916211046.21224.rocketmail@send102.yahoomail.com> I have started creating this announced web page. Feel free to take a look. == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 16 19:22:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: libkernl32a.lib References: Message-ID: On Thu, 17 Sep 1998, Ben Elliston wrote: > I've done this. Mumit: can you make sure that this is merged into the > next release of Mingw32? I've put it into the latest version of winsup, > so it will pop out in Cygwin sooner or later. > Will do. I usually merge in Cygwin changes before releases, so it'll make it in automatically. Thanks for pointing out this problem. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 16 19:22:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: Problem with a header file References: <9601-Wed16Sep1998105335+0200-vzell@de.oracle.com> Message-ID: On Wed, 16 Sep 1998, Dr. Volker Zell wrote: > > vzell:/src/oracle/oci> make oci02 > gcc -o oci02 oci02.c -I. -I/usr/local/include/oci80 -lociw32 -loci > In file included from oci02.c:64: > \usr\local\include\oci80\oratypes.h:169: parse error before `ub8' > \usr\local\include\oci80\oratypes.h:169: warning: data definition has no type or storage class > \usr\local\include\oci80\oratypes.h:183: parse error before `sb8' > \usr\local\include\oci80\oratypes.h:183: warning: data definition has no type or storage class > make: *** [oci02] Error 1 > > The problem is in the oratypes.h include file: > > When I change line 169 (and the same in 183) from > > typedef unsigned _int64 ub8; > > to > > typedef unsigned int ub8; ^^^^^^^^^^^^ wrong size! That's because _int64 is not a built-in type for GCC; it is for MSVC and a few other win32 compilers however, and that's there's code out there that trips over this. Easiest fix, in oratypes.h: #ifdef __GNUC__ typedef unsigned long long ub8; #endif typedef unsigned _int64 ub8; #endif Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 16 19:22:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: Terminal window scroll bars? References: <408C59EF36D6D111ACF500A0C92DEA19042A93@cmtnts3> Message-ID: <70xH30$ppfB@mike.franken.de> Hi Scandora,, >My favorite telnet clients all have scroll bars that allow you to look back >more than 24 lines. Can bash do the same? It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! On NT you can set it through the system menue properites of your cmd window. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Wed Sep 16 19:22:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: libkernl32a.lib References: <35FEA6D6.FD7685EF@hem2.passagen.se> Message-ID: > The reason it is not in the import library, is > probably because it is a quite new function and > not documented in older docs. If you link an app Right. It also never existed in NT 3.51 as far as books have documented. > it is easy to add it to your `libkernel32.a', just > rebuild the whole library after adding > `TryEnterCriticalSection@4' to the list of exports. I've done this. Mumit: can you make sure that this is merged into the next release of Mingw32? I've put it into the latest version of winsup, so it will pop out in Cygwin sooner or later. Thanks, Ben - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 19:22:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: Running SSH on Cygwin References: Message-ID: <36102eea.19019288@mail.weiser.saale-net.de> Hello Ben, you wrote: >I'm using Cygwin B19 and the SSH binaries from Sergey's web page. > >Once I start "ssh1", I get the prompt for my passphrase, so I enter it and >then the shell hangs. > >If I set "CYGWIN32=tty" as the docs suggest, I get "Cannot find a >controlling terminal or DISPLAY". > >Has anyone got SSH working on Cygwin? Yes, here. It runs quite perfectly for me, not counted some small issues I'm currently trying to make reproducable (connection droppings and so). Have you set your TERM environment variable to 'linux'? If not you can do so by adding 'export TERM=linux' somewhere in your startup files. Are you using binary mounts? BTW: You should start ssh using the link ssh and not the ssh1 executable. There shouldn't be much difference but you never know. :) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 19:22:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 19:22:00 -0000 Subject: Out of environment space on Windows 95 References: <408C59EF36D6D111ACF500A0C92DEA19042A92@cmtnts3> Message-ID: <360e2d05.18535392@mail.weiser.saale-net.de> Hello Anthony, you wrote: >I have been running B19.1 on NT 4.0 with no problems. When I installed the >same distribution on a Windows 95 OSR2 system, I got an out of environment >space error from Windows 95 when I tried to run Cygwin 32 Beta 19 from the >Start menu. If I type the same commands from cygnus.bat at a DOS prompt, >bash runs fine. Is my Windows 95 system confused or is there a parameter I >can set? You will have to increase the environment space for shell variables which is too small in your case (256 byte by default IIRC). You can do this by either adding 'SHELL=C:\COMMAND.COM /E:1024 /P' to your config.sys or changing the shell environment parameter somewhere in the properties dialog of your shortcut to cygnus.bat. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjump@cais.com Wed Sep 16 21:23:00 1998 From: tjump@cais.com (Theodore Jump) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: cd'ing to a shortcut References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> Message-ID: <360110b3.3716935@smtp> >In my home, I added a shortcut to a directory that I use a lot. >How can I change to it from bash? When I cd to the shortcut name, >it tells me that I have no right. Here is the full screen: I don't believe that Cygwin can follow MS Windows Explorer Shortcuts (*.lnk files) yet; that it doesn't read them to interpret what they are a shortcut to - in other words, it sees it as a regular file and thus that is why you can't "cd" into it. This would, IMHO, be a useful addition but should not (IMHO again) be used as a replacement for the current softlink emulation. I believe this because the .LNK files would then have to be used to softlink to "Cygwin" paths that may or may-not be valid under native Win32 non-Cygwin applications (like Explorer). ______________________________________________________________________ http://www.i21.com/~tjump http://www.fighterduel.com ---------------------------------------------------------------------- Congrats to Marco Pantani, Jan Ullrich, Bobby Julich, Erik Zabel, Christophe Rinero and all the rest of the riders of Le Tour '98! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Fred.Calm@compaq.com Wed Sep 16 21:23:00 1998 From: Fred.Calm@compaq.com (Calm, Fred) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Terminal window scroll bars? Message-ID: > My favorite telnet clients all have scroll bars that allow you to look > back > more than 24 lines. Can bash do the same? > Assuming you're running bash in a DOS command window, check out the properties dialog for the Command Prompt shortcut in the Start menu, especially the layout pane. You can set both window size and size of the scroll-back buffer. -- Fred - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 21:23:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: b19: x11 Unix software (NT) References: <35FDB434.7E87867@entelchile.net> Message-ID: <360296c2.2463292@mail.weiser.saale-net.de> Hello Gonzalo, you wrote: > I want to compile on cygnus gcc (Windows NT) a C software that use >X11 graphics libraries... How I can compile this program ?... Can I >change the X11 graphics instructions in the C code, to any equivalent >ones using windows NT graphic API ?... You can either do that or install one of the ports of X11 to cygwin32. You should find all of them on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters . The X11R6.3 from Arlindo da Silva seems to be the most complete one to me while the X11R6.4 from Sergey Okhapkin is the mos up-to-date. Additionally you will need a native Win32 X11 server for running your program after it's compiled. There are two free implementations on www.starnet.com (XWin32) and www.microimages.com (MI/X). -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Wed Sep 16 21:23:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Linking with Borland C References: <199809151846.LAA13570@cygnus.com> Message-ID: <199809162017.QAA12676@nala.cs.utk.edu> >Hi folks, > [ my mailer complained of 8 bit stuff so I deleted this line ] > >> >> Hello, >> >> I'm more or less aware of the troubles linking gcc DLL's using >> VC++. I am trying to use a gcc DLL created with the dllhelper utility in a >> program that's compiled using Borland C and I'm having a lot of problems. >> >> 1) Is there any known solution to this problem? > > There was a method noted here in the last couple of weeks on how to >generate MS compatible .dlls using Gnu-Win32, that had been tested. You >might want to take a look at the archives for the information. > > In terms of Borland C, it has always been able to understand the MS >.dll. So, if you generate a .dll that MSVC can understand, then Borland C >can probably understand it as well. > >> 2) If it not possible the dynamic linkage, can I get some kind >> of static library (such as .lib) out of gcc, so I can link it using >> Borland C? > > Afaik, you can not generate .lib files easily via Gnu-Win32. As far as >linking is concerned, I believe that Borland/Win32 only recognizes the MS >and Borland type .lib files. You would probably be best served by generating >an MS compatible .dll to use with Borland. I have been successfull in building libraries with gnuwin32 gcc and linking them with various NT compilers: VC++, Intel's c compiler, Watcom C/C++. However, since I don't have a Borland compiler I've never tested linking with it. One is able to do this since gnuwin32 gcc uses the COFF object format, the same one used by most (the ones I've listed above) NT compilers. The trick to getting gcc-compiled libraries or objects to link with NT libraries or objects is this: You Must Use The Correct Calling Convention, e.g., symbol names, caller or callee cleans up stack, etc. I don't know if this discussion is relevant to the list, but you can email me if you need more help. **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ncb@cc.gatech.edu Wed Sep 16 21:23:00 1998 From: ncb@cc.gatech.edu (Neil Bright) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Running SSH on Cygwin References: Message-ID: <199809162213.SAA24603@cleon.cc.gatech.edu> Ben Elliston wrote the following: > I'm using Cygwin B19 and the SSH binaries from Sergey's web page. > > Once I start "ssh1", I get the prompt for my passphrase, so I enter it and > then the shell hangs. > > If I set "CYGWIN32=tty" as the docs suggest, I get "Cannot find a > controlling terminal or DISPLAY". I've been playing with this for a while now. The only way I could get this to work is by running ssh from an rxvt. YMMV. While I'm on the subject... sshd works nicely, with the exception that when starting it as a service (instructions taken from Sergey's web page about inetd) from the Control Panel/Services thingie, NT claims that the service could not be started, when it is actually running fine. Any NT gurus out there have any idea what is going on? +============ 24 68 BF F6 0E 73 53 47 80 E9 27 7D F9 35 58 4B ============+ Neil Bright ncb@cc.gatech.edu IHPCL administrator (404) 385-0448 College of Computing http://www.cc.gatech.edu/projects/ihpcl Georgia Institute of Technology - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 16 21:23:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: cd'ing to a shortcut References: <35FEB085.BE5BE35A@wrc.xerox.com> Message-ID: <70xIV-AppfB@mike.franken.de> Hi Jose, [...] > >Why is this happening? How can I cd into this shortcut? I've You can't ! The Cygnus layer doesn't know anything about Windows shortcuts. If you want to use something similar from the bash prompt, try to create a soft link or mount ! [...] > >Anyone? > >Please email me, since I will go into vacation soon and I am off >the list until I come back....thanks... > >jose Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 16 21:23:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Make and command execution References: <35FED9DB.3E13CF9@xilinx.com> Message-ID: <70xIVHc$pfB@mike.franken.de> Sujoy Mitra [Sujoy.Mitra@xilinx.com] wrote: [...] >The lib1 target fails with: >Can't open perl script "perlscript": No such file or directory > >How did make know that "perlscript" was a PERL script? If it actually It is *not* make which gives you this message - it is perl itself. Try to run "perlscript" from bash - you should get the same message. You should put ( perl -S perlscript ) into your makefile. [...] > >Can anyone explain this? > >Thanks, >Sujoy Mitra. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From adrian@adttx.sps.mot.com Wed Sep 16 21:23:00 1998 From: adrian@adttx.sps.mot.com (Adrian Lao) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Globetrotter FLEX/LM References: <3.0.3.32.19980915193354.00b829c0@appr> Message-ID: <199809161544.KAA21219@rudys.sps.mot.com> Todd> Has anyone successfully linked in the globetrotter flex/lm license manager. Todd> If so could you e-mail me directly on how to do this. Yes, I've tried it on NT 4.0. However, I've linked to the DLL only, not the static library. Assuming you're using the simple trivial AP, here's what you need to do: (1) save the the attached file in a file called "flexlm.def" (2) run the following (assuming you're in the .../flexlm/v6.1/i86_?? directory): dlltool --as=as --dllname lmgr326b.dll --def flexlm.def --output-lib liblmgr326b.a You can now link the liblmgr326b.a library into your application just like any other .a libraries (but it requires lmgr326b.dll during runtime). Also, when including lmpolicy.h, make sure you've defined WINNT and FLEXLM_DLL on NT, I'm not sured whether you need to do this on Window 95/98. Hope this help. Adrian --------------------- flexlm.def -------------- EXPORTS lp lp_code lp_checkout lp_checkin lp_errstring lp_warning lp_perror lp_pwarn lp_heartbeat - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From t_pires@fox.nstn.ca Wed Sep 16 21:23:00 1998 From: t_pires@fox.nstn.ca (Tony Pires) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: read in sh scripts (b18) Message-ID: <1.5.4.16.19980917042215.2a572ac8@fox.nstn.ca> Try this: #! /bin/sh echo -e "enter yes/no: \c"; read answer; echo $answer echo -e "enter yes/no: \c"; read answer; echo $answer I don't know why it works! At 06:00 PM 9/15/98 +0200, you wrote: > >While testing some shell scripts under b18 I find that > >echo -n 'enter yes/no:' >read answer >echo $answer >echo -n 'enter yes/no:' >read answer >echo $answer > >skips the second read. > >It look too much like a FAQ to me like tty mode, buffering or >a cr/lf issue that I can't believe it's a bug. > > >-- >Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de >Latest feature of Visual C++ 6.0: 'Command-line builds' - >msdev crc.dsw /MAKE "WinCRC - Win32 Debug" /Rebuild /OUT wincrc.log >Taken from: MSJ Oct 98, p. 19 -- :-O >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". > > > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From uly@mindspring.com Wed Sep 16 21:23:00 1998 From: uly@mindspring.com (Michael D. Hill) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? Message-ID: <2.2.32.19980916155905.0070b024@mindspring.com> Mumit was on the right track (as you might expect). I was using Winzip to install the egcs 1.1 update, and the long and the short of it was that it did not correctly unzip. The cygwin tar unpacked everything and now I've got a build. Thanks! Hill At 11:56 AM 9/15/98 -0500, you wrote: >"Michael D. Hill" writes: >> Environment: Win95, Cygwin32 19.1, latest Coolview, Egcs 1.1 >> >> Folks... >> >> I have a small program that was compiling okay with egcs 1.0.2. I've just >> upgraded to 1.1 and the compiler's having a hard time, seemingly in coping >> with the typename keyword. Here's the first couple of compile erros I'm >> getting: >> >> c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../inclu >> de/ >> g++/stl_iterator.h:319: parse error before `&' >> c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../inclu >> de/ >> g++/stl_iterator.h:319: `back_insert_iterator::operator =(...)' mu >> st >> take exactly one argument > >I can see one problem right away. You g++.exe executable isn't the correct >one. For some reason, cygwin32 tar doesn't seem to create the hard link >correctly (which is a copy under cygwin32). Note the 2.7-B19 above. > >Make sure you copy over c++.exe on top of g++.exe. > >Regards, >Mumit > +------------------------------------------------------------+ |Michael Hill -- | |Consultant, Developer, Teacher, Coach | |I will translate patterns-related postscript papers to .pdf | |for anyone. E-mail me for instructions. | +------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsfox@cogsci.ucsd.edu Wed Sep 16 21:23:00 1998 From: dsfox@cogsci.ucsd.edu (David Fox) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: RPM version 2.5.3 Message-ID: I'm releasing another version of RPM for cygwin32. I believe that the problems those brave souls who tried version 2.4.109 had were related to the non-existance of certain directories that the Unix version of RPM expects. I've put in explicit messages in this version that request the creation of any missing directories, and the tar file should contain all the required directories anyway. I'm uploading it to my new FTP area: ftp://pipeline.ucsd.edu/dsf/cygwin32 It was built on a windows 95 system, and it seems to work under NT as well. It assumes that cygwin32 was installed in /Cygnus/B19, and you should unpack the tar.gz file in the root directory. I've also installed this version of RPM on an NT system that didn't have cygwin32 installed and it seemed to work, though I didn't actually install any RPMS there. If you want to do this you'll at least need to copy the following files: /Cygnus/B19/H-i386-cygwin32/bin/rpm.exe /Cygnus/B19/H-i386-cygwin32/bin/cygwinb19.dll /Cygnus/B19/lib/rpmrc /bin/sh.exe and you'll need to create these directories: /Cygnus/B19/src/redhat/RPMS/cygwin32 /Cygnus/B19/src/redhat/RPMS/noarch /Cygnus/B19/src/redhat/SRPMS /Cygnus/B19/src/redhat/SOURCES /Cygnus/B19/src/redhat/BUILD /Cygnus/B19/src/redhat/SPECS /var/tmp After that you're pretty much on your own - many rpms require lots of unix infra-structure. But let me know what happens in any case. -- David Fox http://www.cat.nyu.edu/fox xoF divaD UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 16 21:23:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 16 Sep 1998 21:23:00 -0000 Subject: Can't find TERM=linux w/Piper's local References: <3.0.5.32.19980915091533.0091c8b0@mailhost.empire.net> Message-ID: <3603f0f1.3156488@mail.weiser.saale-net.de> Hello Elliot, you wrote: >I have the latest (19.4) dll. 19.4? Have I missed something? Yesterday I downloaded Sergeys coolview.tgz to see if something happened but file size and date were the same as with my 19.3 cygwin32b19.dll. >My test is to run 'tset' to see what terminals can be found. I usually get >"unknown terminal type linux", etc. But it can see >/usr/local/share/terminfo because *a few* terminals work and when I change >the name of terminfo, none of those can be found. I run Michael Hirmke's ncurses-4.1-win32-bin.tar.gz here and don't have any problems. But I don't have Andy's /usr/local distribution running here. >This *looks* like a binary/text thing, but (I think) I have binary mounts. That migth be because the terminfo database files are binary. What does 'mount' say? -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From joey@rolaren.space.swri.edu Wed Sep 16 21:57:00 1998 From: joey@rolaren.space.swri.edu (Joey Mukherjee) Date: Wed, 16 Sep 1998 21:57:00 -0000 Subject: Problems with Boolean - possible bug Message-ID: <199809161827.NAA20349@rolaren.space.swri.edu.space.swri.edu> I have a problem which might be on my end, but I don't know of an easy way to solve it and possibly someone else does. Anyway, here goes: I have some code which is as follows: /* * Function: * CONVERT(w, from_string, to_type, to_size, success); * Description: * A converter wrapper for convenience from BuilderXcessory. * Input: * w - Widget : the widget to use for conversion * from_string - char * : the string to convert from * to_type - char * : the type to convert to * to_size - int : the size of the conversion result * success - Boolean* : Set to the result value of the conversion * Output: * None */ #ifndef IGNORE_CONVERT XtPointer CONVERT ARGLIST((w, from_string, to_type, to_size, success)) ARG(Widget, w) ARG(char *, from_string) ARG(char *, to_type) ARG(int, to_size) GRA(Boolean *, success) Notice the last Boolean * (the ARG and GRA are just defines for a b). Boolean is typedefed to a char via the X11 stuff. However, unless I explicitly make it a char, none of my programs will link since it says it can not find CONVERT (Widget, char *, char *, int, char *). If I change the Boolean to a char and every external forward reference of CONVERT, it will link fine. My question is this: why is making it a char any different from leaving it as Boolean since that is what it is typedefed to be? If I am somewhere redefining it, shouldn't it let me know somewhere? If not, does anyone know of way to help find the routine or whatever that might be redefining it? BTW, thanks for all the help with the make/imake. I did just get the usertools and the stuff from Mumit's web page. I thought since I was overwriting cdk with Mumit's stuff, I would save a step and just get Mumit's stuff. Joey +--------------------------------------------------------------------------+ + Joey Mukherjee - joey@swri.org - http://www.space.swri.edu/~joey + + + + "Here is a test to see if your mission on earth is finished. + + If you are alive, it isn't." -- Francis Bacon (1561-1626) + +--------------------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmamer@anderson.ucla.edu Wed Sep 16 21:57:00 1998 From: jmamer@anderson.ucla.edu (John Mamer) Date: Wed, 16 Sep 1998 21:57:00 -0000 Subject: mingw32 newbie question..... Message-ID: <360095B4.6939088B@anderson.ucla.edu> Hi! I installed mingw32, in eager anticipation of being able to produce win32 native code executables. I compiled some code. It worked fine on my NT box, but when I tried it on a Win95 box I got an error that said "you need to get a newer version of windows 95 to run this program". I tried to check carefully to make sure that the linker did not link link in any cygwin libraries. I tried this on two different Windoze 95 boxes and got the same message one was "original win 95", the other was win 95 osr 2. I can tried running the same code compiled under gnuwin32, and once it found the cygwinb19.dll it ran just fine on both of the Windoze 95 machines. There must be something I'm doing wrong.......Or is this just another example of Microsoft's pioneering efforts in software marketing? thank you john mamer - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ienaga@strg.sony.co.jp Wed Sep 16 22:13:00 1998 From: ienaga@strg.sony.co.jp (Taro Ienaga) Date: Wed, 16 Sep 1998 22:13:00 -0000 Subject: Manual Page Message-ID: <9809170511.AA10355@cdromssc.strg.sony.co.jp> Hi, all. I'm making some tools used by Gnu-Win32 and thinking how does imprement manual page(s) (eg. unix man command). My idea is as follows: Page Formatting Language: HTML Manual Viewer: WWW Browser The reason is that most of systems support HTML and have WWW Browser today. I want to look up manual pages from Gnu-Win32 (bash) command line and make a simple imprement just now. the command, winman, is used as follows: $ winman command Then winman searchs file 'command.html' in the pathes specified by the emviroment variables WINMANPAH and open it with the defalt web browser. My question is there is already implement such above in Internet. If it already exists, I stop making my implement and use Internet's. Thanks, T.Ienaga - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From K.Donker@fokkerspace.nl Thu Sep 17 00:38:00 1998 From: K.Donker@fokkerspace.nl (K.Donker@fokkerspace.nl) Date: Thu, 17 Sep 1998 00:38:00 -0000 Subject: Out of environment space on Windows 95 Message-ID: <013202ACD9EBD011A3B00000F8207FEEB638B3@mssngr1.fokkerspace.nl> > I have been running B19.1 on NT 4.0 with no problems. When I > installed the > same distribution on a Windows 95 OSR2 system, I got an out of > environment > space error from Windows 95 when I tried to run Cygwin 32 Beta 19 from > the > Start menu. If I type the same commands from cygnus.bat at a DOS > prompt, > bash runs fine. Is my Windows 95 system confused or is there a > parameter I > can set? If you are running Windows 95 and are faced with the error message "Out of environment space", you need to increase the amount of environment space in your config.sys and try again. Adding the line `shell=C:\command.com /e:4096 /p' should do the trick if `C:' is your system drive letter. > Thanks, > Tony Scandora, Argonne National Lab, 630-252-7541 > scandora@cmt.anl.gov > > - > For help on using this list (especially unsubscribing), send a message > to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmamer@anderson.ucla.edu Thu Sep 17 00:38:00 1998 From: jmamer@anderson.ucla.edu (John Mamer) Date: Thu, 17 Sep 1998 00:38:00 -0000 Subject: compiling EGCS probleme Message-ID: <3600BB7A.3CAA0EC7@anderson.ucla.edu> Hi! After a successful configure, compilation of EGCS-1.1 stopped while compilincollect2.c withcpp.exe: Invalid option '-remap'. Any ideas? It seemed to produce a large number of executables (like xgcc.exe). Using gnuwin32 B19 on a NT box. Configure target was i686-pc-cygwin32. I am lost. thanks john - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Thu Sep 17 02:46:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Thu, 17 Sep 1998 02:46:00 -0000 Subject: Problem with a header file References: <9601-Wed16Sep1998105335+0200-vzell@de.oracle.com> Message-ID: <3600DA8A.EA6B739F@crocodial.de> Hi Volker, Dr. Volker Zell wrote: > The problem is in the oratypes.h include file: > > When I change line 169 (and the same in 183) from > > typedef unsigned _int64 ub8; > > to > > typedef unsigned int ub8; > > the compiliation succeeds and the program works. I'm not a programmer > so my question is, why does this work? I don't think it does. Your code evaluates to a 32-bit unsigned integer, while the original specified 64 bits (with an MS-specific extension to the language). It's possible that your program doesn't use this specific code though. Anyway, for a better fix change the code to this: typedef unsigned long long ub8; so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Thu Sep 17 03:37:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Thu, 17 Sep 1998 03:37:00 -0000 Subject: Problem with a header file References: Message-ID: <7278-Thu17Sep1998110732+0200-vzell@de.oracle.com> Hi and thanks a lot Mumit >> That's because _int64 is not a built-in type for GCC; it is for >> MSVC and a few other win32 compilers however, and that's >> there's code out there that trips over this. The same problem is in the jdk header file jni_md.h: /* * @(#)jni_md.h 1.6 97/08/07 * * Copyright 1993-1997 Sun Microsystems, Inc. 901 San Antonio Road, * Palo Alto, California, 94303, U.S.A. All Rights Reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. * * CopyrightVersion 1.2 * */ #ifndef JNI_MD_H #define JNI_MD_H #define JNIEXPORT __declspec(dllexport) #define JNIIMPORT __declspec(dllimport) #define JNICALL __stdcall typedef long jint; typedef __int64 jlong; <------- typedef signed char jbyte; #endif /* JNI_MD_H */ Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From 0507SVP@post.kkhs.dk Thu Sep 17 05:56:00 1998 From: 0507SVP@post.kkhs.dk (Simon Vilmer Pedersen) Date: Thu, 17 Sep 1998 05:56:00 -0000 Subject: Out of environment space on Windows 95 Message-ID: <619B8BF33E04D211B3C600805FA91E2C0474FD@post.kkhs.dk> Tony Scandara, Just go to the properties of the DOS window or of command.com or cygnus.bat, and under Memory set Environment size to something larger. Simon Vilmer Pedersen - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Thu Sep 17 07:14:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Thu, 17 Sep 1998 07:14:00 -0000 Subject: Linking with Borland C References: Message-ID: <3600FABD.415D4245@hem2.passagen.se> F????lix Valado Pomarinho wrote: > > Hello, > > I'm more or less aware of the troubles linking gcc DLL's using > VC++. I am trying to use a gcc DLL created with the dllhelper utility > in a program that's compiled using Borland C and I'm having a lot of > problems. > > 1) Is there any known solution to this problem? I have successfully created a DLL and linked it with an app compiled by BC, but it is cumbersome business. The problem, as I see it, is that you cannot use the same .DEF files with BC and dlltool since the exported names are decorated differently by the different tools. GCC names stdcall functions @, BC names them just . C functions are prefixed by a single '_' in both GCC and BC. Note that I have only done this with BC++ 5.01 and not C++ builder. To import the stdcall function `foo' from FOO.DLL and call it from a BC compiled function, use the following .DEF file: -- BEGIN FOO.DEF -- LIBRARY FOO.DLL EXPORT foo -- END FOO.DEF -- Execute the command `implib foo.lib FOO.DEF' to create the import library. The trouble is that `foo' is decorated `foo@0' (zero arguments) by GCC. Therefore you will have to export it as `foo', even though it is named `foo@0'. This can be done with the following export statement in you .DEF file: `foo=foo@0'. That's for stdcall functions. Importing C functions can be accomplished in two ways. Suppose you want to import a C function with the prototype `int foo(void);'. The function will be prefixed by '_' by both GCC and BC, but when exporting the function you use `foo' as the export statement in the DEF file and BC looks for `_foo'. Here comes the trick... use `_foo=foo' as the export statement in your DEF file when creating the DLL and `_dll_cdecl' when creating the import library for BC... or you can use `foo' when creating the DLL and `_foo=foo' when creating the import library for BC. Here's a complete example: -- BEGIN SAMPLE --- foo.c: int foo(void) { return 0; } int STDCALL bar(void) { return 1; } fooexp.def: EXPORTS foo bar=bar@0 fooimp.def: LIBRARY foo.dll //This is important if the file does not have //the same basename as the DLL (i.e foo.dll). //If the file was named foo.def it would not be necessary //Remove these comments before using implib! EXPORTS _foo=foo bar callfoo.c: #include extern int foo(void); extern int _stdcall bar(void); /* _stdcall is a keyword in BC */ int main() { printf("foo(): %d\nbar(): %d\n", foo(), bar()); return 0; } int main() { printf("foo(): %d\nbar(): %d\n", foo(), bar()); return 0; } -- END SAMPLE -- Now execute the following commands: gcc -c foo.c // Compile foo and bar dllwrap -o foo.dll --def fooexp.def foo.o //Create the DLL implib foo.lib fooimp.def //Use borland tool implib to create //import library `foo.lib' bcc32 callfoo.c foo.lib //Create app Now you have a working DLL and import library! (Depending on how you want exported functions to be named you may change the DEF files as described above). The convention seems to be not to export decorated function names. The whole would be a lot easier if the same DEF file could be used for both set of tools. Hope this helps! /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 17 07:14:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 17 Sep 1998 07:14:00 -0000 Subject: Installationsproblem References: <35FC4501.E7368DFB@kurir.net> Message-ID: <360094ac.438260@mail.weiser.saale-net.de> Hello Henrik, you wrote: >I have followed the installation instructions for installing the binary >release and downloaded cdk.exe . No previous version of gnu-win32 has >been used on my machine. When I execute the file from the file manager, >nothing happens. Is it because I'm running Windows 3.11 (no I cannot >upgrade at this time)? cygwin32 doesn't run on Windows 3.11. As it's designed for Win32 platforms you will need Windows 95/98 or Windows NT to make it run. If you just need a good compiler you could have a look at djgpp found at http://www.delorie.com/djgpp/ . -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Thu Sep 17 07:14:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Thu, 17 Sep 1998 07:14:00 -0000 Subject: libkernel32a.lib References: Message-ID: > TryEnterCriticalSection is not defined in the version of kernel32.dll under > windows 95. Right. > Now, if Mumit would add an entry to the import libraries, this would make > the linker happy but... at run time your program would not load and you > would get a dialog box with > foo.exe is linked to missing export TryEnterCriticalSection. I'm not so sure about that (others will prove me right or wrong here), but you'll only get a runtime load error if foo.exe actually wants to use TryEnterCriticalSection, right? If that's the case, then nothing is lost--you just don't get the error detection so early in the build process. > Another, solution, is the one that lcc-win32 has used: If a function exists, > it is included in the import library. If you use TryEnterCriticalSection with > lcc-win32 you will see no errors at link time, but your program will NOT load > under windows 95/windows NT 3.51. Right. So what's the difference between what you've just said will happen and what lcc-win32 does? Apparently nothing. Users of this import library will have to take the same precautions as if they were trying to avoid a linker error. > If you have problems with this approach, I recommend you to spend the US$ 2.000 > and get Visual Studio professional 6.0. You are joking, right? > There, you will get everything you need and much (MUCH) more. Too much more. Cheers, Ben - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 17 07:14:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 17 Sep 1998 07:14:00 -0000 Subject: TryEnterCritical (was Re: libkernel32a.lib (fwd)) References: <199809152049.NAA23812@cygnus.com> Message-ID: <3602971e.1063899@mail.weiser.saale-net.de> Hello Paul, you wrote: > The implementation of 'TryEnterCritical', judging by the dates of the .dlls >that the function was actually found in, was moved by MS from the old >mapi32 implementation (not necessarily a Win32 API implementation) into >the kernel32.dll. MS has always been way behind when it comes to >implementing traditional Unix APIs, such as Mapi... Isn't MAPI just Microsoft's Mail API which is used to modularize Mail Applications? >> > I believe it is the latter. In which case, can anyone >> > explain why this function is missing from the kernel32 stub library? > Apparently, judging from what Ben has said above, Win95/98 and >Win3.11 (win32s) kernel implementation are sufficiently different that MS had >to use some other form of 'TryEnterCritical'. If 'TryEnterCritical' exists in any >form under non-NT4 Win32 systems, it is probably called something else >entirely. At this point, there is every reason to believe that "TryEnterCritical" >function is only available with(via) the MS Mapi API update for all pre-NT4 >Win32 system implementations. It *is* not available on non Windows NT 4.0 systems. (But I don't know about Win98 because my MSDN subscription ended in January 98.) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 17 07:14:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 17 Sep 1998 07:14:00 -0000 Subject: cd'ing to a shortcut References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> Message-ID: <360195ca.723780@mail.weiser.saale-net.de> Hello Jose, you wrote: >In my home, I added a shortcut to a directory that I use a lot. >How can I change to it from bash? When I cd to the shortcut name, You simply cannot cd into Windows shortcuts because cygwin32 doesn't know about .lnk files and their magic. But you can accomplish the same by creating a link using 'ln -s ' for example. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ahier@swi.com Thu Sep 17 09:30:00 1998 From: ahier@swi.com (David Ahier) Date: Thu, 17 Sep 1998 09:30:00 -0000 Subject: QUestion with regards to ICMP and support for AF_UNIX family calls. Message-ID: <3601390E.403AC082@swi.com> Hello, I notice that icmp.h in cygwin32 directory is empty. Is there some work going on for supporting ICMP protocol. Are there any Applications that use low level packet layers for ICMP support. Will CYGWIN32 have the support for AF_UNIX family calls that use sockaddr_un structure. Thanks for the response, Dushyant Sharma - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From karipid@scotch.mae.cornell.edu Thu Sep 17 11:39:00 1998 From: karipid@scotch.mae.cornell.edu (Daniel Karipides) Date: Thu, 17 Sep 1998 11:39:00 -0000 Subject: Terminal window scroll bars? Message-ID: <199809171838.OAA02433@scotch.mae.cornell.edu> >>My favorite telnet clients all have scroll bars that allow you to look back >>more than 24 lines. Can bash do the same? > >It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! > >On NT you can set it through the system menue properites of your cmdwindow. However, if you enable this, then less no longer works. (When you leave less you are at the top of your "buffer" and must hit return many times to scroll through it.) Or at least, this is what happens to me. -Dan ---- karipid@mae.cornell.edu - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Gilles.Depeyrot@wanadoo.fr Thu Sep 17 15:06:00 1998 From: Gilles.Depeyrot@wanadoo.fr (Gilles Depeyrot) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again) Message-ID: <199809171837.UAA21812@wanadoo.fr> Hello everyone, I've been trying on and off for several months to create a DLL using egcs and loading it into an MSVC 5.0 compiled application under Windows 95. The problem I am encountering is that I succeed in building a relocatable DLL (at least I think it is) with egcs and have no problem loading it either with a small test program compiled either with egcs or with MSVC. However, I have never succeeded in loading my sample DLL into my real life application. LoadLibrary returns NULL and GetLastError returns 0 ! My previous tests had failed with egcs 1.0.3. Following the release if egcs-1.1 for win32, I downloaded and installed the package, updated my makefiles to use the new dllwrap and dlltool utilities and recreated my DLL with no problems (egcs even understands __declspec(dllexport) attributes now :-). I can load the DLL into my small test program whether compiled with egcs or MSVC but I still cannot load it into my application. So my tests have failed with egcs 1.1 and I still cannot load the DLL into my application. Does anyone have an idea what the problem might be ? I somewhat suspect it is related to the size of my application (2 Mb) and maybe a DLL relocation problem but I have no idea where to look for the problem. Thanks for any help, Gilles Gilles Depeyrot < mailto:Gilles.Depeyrot@wanadoo.fr > < http://perso.wanadoo.fr/gilles.depeyrot > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gaa@research.att.com Thu Sep 17 15:06:00 1998 From: gaa@research.att.com (Gabriel Abrantes) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: fork problems Message-ID: <003101bde27e$64f49870$3683cf87@pcioi.research.att.com> Hi, In a program I try to run on winNT4.0 I need to use the fork() statement and I get this error message: "The heap has been split, CYGWIN can't fork this process. Increase the heap_chunk_size in the registry and try again" Does anybody know what the problem may be and how I could correct it? Thanks. regards, Gabriel - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Thu Sep 17 15:06:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: vi and xterm Message-ID: <19980917163423.3728.qmail@hotmail.com> Hello all, I am very pleased to say that I got all this stuff running on my NT box here at my new job. Thanks a lot folks !! One little fix would could complete the picture, though. How do I get a vi or any other editor running in my xterm window. Having done that I can walk into my new boss's office with a big grin. I have been working on a perl dataserver which serves up ( and freezes ) hot piping complex structures in string form to a client which which either creates graphs or html tables from them. I guess I will add a hook to start X clients on the NT box to a UNIX box ( difficult to fathom, I know ) which will be stripping word documents received from an exchange server ( sounds crazy, but thats corporate life ) Thanks in advance for any sugts, John van V. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Thu Sep 17 15:06:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: Installationsproblem References: <35FC4501.E7368DFB@kurir.net> Message-ID: <710Q3DZ$pfB@mike.franken.de> Hi Henrik, >Hello, > >I have followed the installation instructions for installing the binary >release and downloaded cdk.exe . No previous version of gnu-win32 has >been used on my machine. When I execute the file from the file manager, >nothing happens. Is it because I'm running Windows 3.11 (no I cannot >upgrade at this time)? Jep, presumably this is the reason. The Cygnus gnuwin32 package does not run with Win32s under Win3.x - at least it needs Windows 9.x. If you need a similar compiler, try djgpp, the gcc port for DOS and Win3.x ! > >Regards, >Henrik Johansson Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From G.Trevisan@agora.stm.it Thu Sep 17 15:06:00 1998 From: G.Trevisan@agora.stm.it (Giovanni Trevisan) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: B19: Win32 API missing definitions Message-ID: <36018205.3D0A@agora.stm.it> Howdy Folks! Recompiling some small Win32 programs under Gcc I've noticed some missing symbols in two of the B19 header files: File \Cygnus\B19\H-i386-cygwin32\i386-cygwin32\include\Windows32\Defines.h is missing #define LVS_TYPEMASK 3 #define LVS_ALIGNMASK 0xc00 while \Cygnus\B19\H-i386-cygwin32\i386-cygwin32\include\Windows32\Structures.h doesn't define typedef NMHDR *LPNMHDR ; Best regards Giovanni Trevisan < G.Trevisan@agora.stm.it > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 17 15:06:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 17 Sep 1998 15:06:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <2.2.32.19980916155905.0070b024@mindspring.com> Message-ID: On Wed, 16 Sep 1998, Michael D. Hill wrote: > I was using Winzip to install the egcs 1.1 update, and the long and the > short of it was that it did not correctly unzip. The cygwin tar unpacked > everything and now I've got a build. > And now I have big !! WARNING !! in the INSTALL file. Thanks for pointing this out. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 17 17:09:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 17 Sep 1998 17:09:00 -0000 Subject: Linking with Borland C References: <199809162017.QAA12676@nala.cs.utk.edu> Message-ID: On Wed, 16 Sep 1998, Jeffrey Russell Horner wrote: [ on linking gnu and msvc etc ] > > I don't know if this discussion is relevant to the list, but you can > email me if you need more help. I believe this is very relevant, and quite in demand! Please share your experiences and expecially the list of gotchas. I and lots of others will appreciate it. Thanks in advance, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 17 17:09:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 17 Sep 1998 17:09:00 -0000 Subject: environment space limit in cygwin32? Message-ID: <36016c98.1880564@mail.weiser.saale-net.de> Hello, Is there any limit in cygwin's or bash's space for environment variables? I'm encountering a really sophisticated problem dealing with such a limit here: When I tried to run the client of freeciv-1.7.1 (a free civilization clone for UN*X systema with X11) I always got a STATUS_ACCESS_VIOLATION error until I removed some variables from my environment. The compilation itself went smoothly without any errors or warnings. But when my environment is about 2100 bytes in size, the program core dumps with STATUS_ACCESS_VIOLATION on startup. If I strip it down to about 2000 bytes everything works great. I'm running cygwin32 b19 with Sergey's latest coolview and Arlindo da Silva's X11R6.3 on binary mounts and CYGWIN32=tty binmode. The X server is StarNet's XWin32 4.1 Demo. Any ideas? PS: I'll check MS's Knowledge Base now, to see if there's some limit in WinNT and post any information I get. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 17 17:59:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 17 Sep 1998 17:59:00 -0000 Subject: mingw32 newbie question..... Message-ID: <19980918005907.8831.rocketmail@send101.yahoomail.com> Which mingw32? Colins and JanJaap's, or Mumit's EGCS 1.0.2 or 1.1? If built with mingw32 on w95 osr1 and have run, still run, using both JanJaaps 2.8.1 and Mumits EGCS 1.0.2. Haven't tried 1.1 yet. ---John Mamer wrote: > > Hi! > I installed mingw32, in eager anticipation of being able to produce > win32 native code executables. I compiled some code. It worked > fine on my NT box, but when I tried it on a Win95 box I got an > error that said "you need to get a newer version of windows 95 to > run this program". I tried to check carefully to make sure that the > linker did not link link in any cygwin libraries. I tried this on two > different > Windoze 95 boxes and got the same message one was "original win 95", > the other was win 95 osr 2. I can tried running the same code compiled > under > gnuwin32, and once it found the cygwinb19.dll it ran just fine on both > of the Windoze 95 machines. There must be something I'm doing > wrong.......Or is this just another example > of Microsoft's pioneering efforts in software marketing? > thank you > john mamer > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From John.Turner@pobox.com Thu Sep 17 19:46:00 1998 From: John.Turner@pobox.com (John A. Turner) Date: Thu, 17 Sep 1998 19:46:00 -0000 Subject: [ANNOUNCE] http://www.freeyellow.com/members5/gw32 References: <19980916211046.21224.rocketmail@send102.yahoomail.com> Message-ID: <3601C988.6953C1A0@POBox.com> Earnie Boyd wrote: > > I have started creating this announced web page. Feel free to take a > look. Looks like it will be a great resource. But please, ditch the silly animated gifs. Please. -John - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 17 19:46:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 17 Sep 1998 19:46:00 -0000 Subject: compiling EGCS probleme References: <3600BB7A.3CAA0EC7@anderson.ucla.edu> Message-ID: On Thu, 17 Sep 1998, John Mamer wrote: > Hi! > After a successful configure, compilation of EGCS-1.1 stopped > while compilincollect2.c withcpp.exe: Invalid option '-remap'. Any > ideas? > It seemed to produce a large number of > executables (like xgcc.exe). Using gnuwin32 B19 on a NT box. Configure > target was i686-pc-cygwin32. > > I am lost. > Without more information, it is very hard to tell what's going on. The -remap option was added not too long ago to support filename mapping in cpp via "header.gcc", and you might have trouble bootstrapping using an older compiler. Why don't you provide a bit more info on exactly what you're doing? eg., what is the version of gcc that you're using to bootstrap (you *are* running ``make bootstrap'', right), etc. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 17 20:10:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 17 Sep 1998 20:10:00 -0000 Subject: B19.1:bind will not bind usinf the -f option. References: <915D4A5037A6D011957D006097198E47013DBAF3@goat.channelpoint.com> Message-ID: <36098a1c.9443408@mail.weiser.saale-net.de> Hello Alex, you wrote: >Upon trying to use the new binding nothing happened. Investigating the >binding for the function showed that the new binding was never made. bind works quite perfect for me. If I create some file containing "\e[120~": beginning-of-line (yes, I know, it's bogus :) and then run 'bind -f bindings-file' I get michael@NARGOTHROND:/mnt/f/home/michael >bind -f bindings-file michael@NARGOTHROND:/mnt/f/home/michael >bind -q beginning-of-line beginning-of-line can be invoked via "\C-a", "\e[120~", "\e[1~". michael@NARGOTHROND:/mnt/f/home/michael > C-a and \e[1~ are predefined in my /etc/inputrc and automatically bound on every start of bash. If you want to remove those already existing definitions, you will have to use 'bind -r "\C-a"' for example. Hope that helps. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Thu Sep 17 20:10:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Thu, 17 Sep 1998 20:10:00 -0000 Subject: cd'ing to a shortcut References: <9809081457.AA01063@dns.cise.it> <360110b3.3716935.cygnus.gnu-win32@smtp> Message-ID: <6tsiun$gbj$1@cronkite.cygnus.com> In article <360110b3.3716935.cygnus.gnu-win32@smtp>, Theodore Jump wrote: > >>In my home, I added a shortcut to a directory that I use a lot. >>How can I change to it from bash? When I cd to the shortcut name, >>it tells me that I have no right. Here is the full screen: > >I don't believe that Cygwin can follow MS Windows Explorer Shortcuts (*.lnk >files) yet; that it doesn't read them to interpret what they are a shortcut to >- in other words, it sees it as a regular file and thus that is why you can't >"cd" into it. > >This would, IMHO, be a useful addition but should not (IMHO again) be used as a >replacement for the current softlink emulation. I believe this because the >.LNK files would then have to be used to softlink to "Cygwin" paths that may or >may-not be valid under native Win32 non-Cygwin applications (like Explorer). You're absolutely correct. The idea of using .lnk files for symbolic links comes up a lot here. This is the first time I can remember seeing it raised in a reasonable way with an explanation of why .lnk files can't be used as a generic replacement for the current scheme. This is FAQ material. -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Fri Sep 18 00:38:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Fri, 18 Sep 1998 00:38:00 -0000 Subject: OT: Importing mailing list archives Message-ID: <36020E20.AE94E67D@ina.de> Hi all! I just downloaded some older archives of this mailing list. Can anybody give me a clue on how to import these files as separate mails, so that I can see the subjects and senders, view the threads etc. (just as if they were normal mails). What I also want is setting the incoming date as if I received them when they were created. I use Netscape 4.5 PR1, but if there is a generic way of import (e.g. by re-sending them via our local mail server) I would prefer that. I hope I could make clear what I want. Sorry for being off-topic! -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Fri Sep 18 02:05:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Fri, 18 Sep 1998 02:05:00 -0000 Subject: Problems with Mercury References: <0EYZ0040CHXFEP@mail.hac.com> <000301bddc99$66b7a3e0$ca354ec2@herbrand.miscrit.be> Message-ID: <19980918190507.23450@mundook.cs.mu.OZ.AU> On 10-Sep-1998, Dominique de Waleffe wrote: > john_r_velman@mail.hac.com: > > Has anyone successfully compiled and installed Mercury lately? > > > > I'm using B19.3 (coolview) and last weeks egcs and bintools from Mumit > > Kahn's ftp site, on an NT4.0 SP3. I'm trying to compile and install > > Mercury 0.7, which I also downloaded last week. > > Mercury cannot in its current state be compiled with b19. > > Fergus Henderson found a problem in the gcc generated code and there > might also be problems with the GC. Yes, that's correct. The problem with the garbage collector is fixed in the latest development snapshot of Mercury. The gcc code generation bug is fixed in the version of egcs and bintools from Mumit Kahn's ftp site. So if John Velman just tries the latest development snapshot of Mercury, which is available from < ftp://turiel.cs.mu.oz.au/pub/mercury/beta-releases >, it should work, I think. The "official" recommendation is still to stick with b18, but that is just because we've only done very minimal testing with b19.1. The problem with the whole machine hanging is apparently a bug in Windows 95. A patch is available, I believe -- see the cygwin32 FAQ list. -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From covici@ccs.covici.com Fri Sep 18 03:00:00 1998 From: covici@ccs.covici.com (John Covici) Date: Fri, 18 Sep 1998 03:00:00 -0000 Subject: still having problems doing make install on sources Message-ID: <36022cbc.ccs@ccs.covici.com> I probably am doing something wrong here, but let me out line what I did and maybe someone can please, please help! I used the cdk-src.tar.gz and created the src directory under by cygnus/b19 directory, then I applied to the winsup directory both the 19.1 update and noer's latest winsup snapshot which is 980916. Then I created an obj directory under by b19 directory and ran the following command ./src/configure --srcdir=../src and got the following result: Configuring for a i586-pc-cygwin32 host. *** This configuration is not supported in the following subdirectories: send-pr gprof texinfo target-gperf (Any other directories should still work fine.) Created "Makefile" in /cygnus/b19/obj using "../src/config/mh-cygwin32" Links are now set up to build a native compiler for i586-pc-cygwin32 Then I ran make install and got the following: /bin/sh ../src/mkinstalldirs /usr/local /usr/local Making install in doc make[1]: *** No rule to make target `archive.c', needed by `archive.lo'. Stop. make: *** [install-bfd] Error 2 Should I just ignore the error or is there something else I can do? Also, why am I getting the message "this directory is not supported in" as above? Any assistance would be appreciated. -- John Covici covici@ccs.covici.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Fri Sep 18 03:29:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Fri, 18 Sep 1998 03:29:00 -0000 Subject: Problems with Mercury References: <19980910115354.21759.rocketmail@send103.yahoomail.com> Message-ID: <19980918191502.37149@mundook.cs.mu.OZ.AU> ---john_r_velman@mail.hac.com wrote: > > Has anyone successfully compiled and installed Mercury lately? Earnie Boyd replied: > STATUS_ACCESS_VIOLATION relates to SIGSEGV, meaning that you've > stepped outside the memory bounds of the program. > > 1) If the package has it's own memory allocation routines remove them > and use the mmalloc.a library supplied by the cygwin product. > > 2) If the compilations gave you warnings concerning pointers and > non-pointers, consider them errors and fix them. > > 3) If you pointer who has a value of NULL or zero is used as a > reference to a memory location you will get this error. I debugged a STATUS_ACCESS_VIOLATION problem that I encountered when trying Mercury on cygwin32 version b19.1. As it happens, the problem was due to the version of gcc distributed with b19.1 generating incorrect code, rather than any of the alternatives 1-3 above. Stipe Tolj also replied: > I had some problems too in geting the Apache HTTP Server running. Since it > is fork()ing childs, it seems to be crashing with a STATUS_ACCESS_VIOLATION > after trying to init a child process. I assume that this could be the > problem at your task. A STATUS_ACCESS_VIOLATION is a quite common diagnostic which can have a range of different causes, and in this particular case I don't think the problem was related to the use of fork(). As I said in my previous mail, the problems have been solved in the lastest snapshot of the Mercury distribution and in the versions of egcs/binutils available at Mumit Khan's site. -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From amilan@gic.it Fri Sep 18 03:29:00 1998 From: amilan@gic.it (Alessio Milan) Date: Fri, 18 Sep 1998 03:29:00 -0000 Subject: Unix pathname -> DOS pathname Message-ID: <199809181025.MAA23845@linus.ud.gic.it> Hi all! How can I convert a Unix pathname to a DOS pathname? Example: from: /usr/local/myfile to: D:\local\myfile (in the example /usr is mounted on D:) Bye. -- am - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From chj@lin.foa.se Fri Sep 18 03:29:00 1998 From: chj@lin.foa.se (Christian Joensson FOA 72) Date: Fri, 18 Sep 1998 03:29:00 -0000 Subject: Linking with Borland C References: <199809162017.QAA12676@nala.cs.utk.edu> Message-ID: <199809180608.IAA05708@arnljot.lin.foa.se> jhorner@cs.utk.edu said: > I have been successfull in building libraries with gnuwin32 gcc and > linking them with various NT compilers: VC++, Intel's c compiler, > Watcom C/C++. However, since I don't have a Borland compiler I've > never tested linking with it. > One is able to do this since gnuwin32 gcc uses the COFF object format, > the same one used by most (the ones I've listed above) NT compilers. > The trick to getting gcc-compiled libraries or objects to link with NT > libraries or objects is this: You Must Use The Correct Calling > Convention, e.g., symbol names, caller or callee cleans up stack, etc. > I don't know if this discussion is relevant to the list, but you can > email me if you need more help. Please elaborate a little on this issue. I do think that some people, besides myself, would like to hear as much about this as possible. Could you perhaps discuss the name mangling problem with C++, perhaps the dll issues could have some more light shed upon them, what's your thoughts on COM objects, are there important differences between cygwin32 and mingw32? I do know that this might get us off topic, but then again, it's that interesting to me, and perhaps others, that me might allow ourselves a new thread? Maybe something on your fine home page also? TIA, /ChJ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Fri Sep 18 05:30:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Fri, 18 Sep 1998 05:30:00 -0000 Subject: RPM version 2.5.3 References: Message-ID: <9329-Fri18Sep1998143204+0200-vzell@de.oracle.com> Hi >> ftp://pipeline.ucsd.edu/dsf/cygwin32 This reads: ftp://pipeline.ucsd.edu/pub/dsf/ Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vzell@de.oracle.com Fri Sep 18 05:30:00 1998 From: vzell@de.oracle.com (Dr. Volker Zell) Date: Fri, 18 Sep 1998 05:30:00 -0000 Subject: bash and readline Message-ID: <7308-Fri18Sep1998133259+0200-vzell@de.oracle.com> Hi I have a few problems with keybord mappings regarding the readline library which bash uses. By the way I'm using the bash from Sergeys homepage. But the problem exists also in the cygnus bash. For example the following keymap is mapped by default: "\C-s": forward-search-history But when I press this key bash hangs and I have to press "\C-c". The second question, how can I map the new function paste-from-clipboard to "Shift-insert" ? Ciao Volker - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Fri Sep 18 06:53:00 1998 From: lhall@rfk.com (Larry Hall) Date: Fri, 18 Sep 1998 06:53:00 -0000 Subject: Terminal window scroll bars? References: <199809171838.OAA02433@scotch.mae.cornell.edu> Message-ID: <3.0.5.32.19980802095228.00a02480@pop.ma.ultranet.com> At 02:38 PM 9/17/98 -0400, Daniel Karipides wrote: > >>>My favorite telnet clients all have scroll bars that allow you to look back >>>more than 24 lines. Can bash do the same? >> >>It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! >> >>On NT you can set it through the system menue properites of your cmdwindow. > >However, if you enable this, then less no longer works. (When you leave less >you are at the top of your "buffer" and must hit return many times to >scroll through it.) Or at least, this is what happens to me. > >-Dan What's your TERM setting? What do you use termcap or ncurses? I use something close to Sergey's DLL on NT 4 + sp3. My TERM is set to linux and I use ncurses 4.1. less works just fine for me... Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Fred.Calm@compaq.com Fri Sep 18 07:29:00 1998 From: Fred.Calm@compaq.com (Calm, Fred) Date: Fri, 18 Sep 1998 07:29:00 -0000 Subject: cd'ing to a shortcut Message-ID: > You simply cannot cd into Windows shortcuts because cygwin32 doesn't > know about .lnk files and their magic. > It's too bad they're not so magical -- only the explorer shell knows about them, not the file system. They're good as far as they go; the problem is they don't go very far, not even in the Windows world. -- Fred - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From MCzapski@openplus.com.au Fri Sep 18 07:29:00 1998 From: MCzapski@openplus.com.au (Michael Czapski) Date: Fri, 18 Sep 1998 07:29:00 -0000 Subject: Manual Page Message-ID: <01BDE34B.2F8E01D0.MCzapski@openplus.com.au> On Friday, September 18, 1998 12:12 AM, Taro Ienaga [SMTP:ienaga@strg.sony.co.jp] wrote: > Hi, all. > > I'm making some tools used by Gnu-Win32 and thinking how does > imprement manual page(s) (eg. unix man command). > > My idea is as follows: > > Page Formatting Language: HTML > Manual Viewer: WWW Browser > > The reason is that most of systems support HTML and have WWW Browser > today. > > I want to look up manual pages from Gnu-Win32 (bash) command line and > make a simple imprement just now. the command, winman, is used as > follows: > > $ winman command > > Then winman searchs file 'command.html' in the pathes specified by the > emviroment variables WINMANPAH and open it with the defalt web browser. > > My question is there is already implement such above in Internet. If > it already exists, I stop making my implement and use Internet's. > > Thanks, > > T.Ienaga > > - Hello Taro, Unless you can do much better than has been done already by numerous people, I would not bother. There were, over the years, a number of implementations. Do a web search for man2html and similar. It will turn up a number of sites that offer the man pages in html format for public lookup, not to mention there being tools available to convert man pages to html. Back in the dark ages of the www, circa 1994-1995 doing man pages in html format was one of the things budding cgi programmers would do just to learn how to do cgi :-) ------------------ Cheers ... Michael Czapski - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmamer@anderson.ucla.edu Fri Sep 18 09:53:00 1998 From: jmamer@anderson.ucla.edu (John W. Mamer) Date: Fri, 18 Sep 1998 09:53:00 -0000 Subject: compiling EGCS Probleme Message-ID: <360290A6.ACC82033@anderson.ucla.edu> All, Belay last question. Loaded Mumit Khan's EGCS-1.1, things work great. Thanks j. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Fri Sep 18 09:53:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Fri, 18 Sep 1998 09:53:00 -0000 Subject: Problem with a header file Message-ID: <19980918152209.8894.rocketmail@send1e.yahoomail.com> ---Benjamin Riefenstahl wrote: > > Hi Volker, > > > Dr. Volker Zell wrote: > > The problem is in the oratypes.h include file: > > > > When I change line 169 (and the same in 183) from > > > > typedef unsigned _int64 ub8; > > > > to > > > > typedef unsigned int ub8; > > > > the compiliation succeeds and the program works. I'm not a programmer > > so my question is, why does this work? > > I don't think it does. Your code evaluates to a 32-bit unsigned integer, > while the original specified 64 bits (with an MS-specific extension to > the language). It's possible that your program doesn't use this specific > code though. > > Anyway, for a better fix change the code to this: > > typedef unsigned long long ub8; Why not do: typedef long long _int64; ?!?! Then you don't have to change anything else. I would put this in the stddef.h file. You should do this based on the size of long; there is nothing that says that long should remain 32 bits. == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgw@pgt.com Fri Sep 18 09:53:00 1998 From: cgw@pgt.com (Charles G Waldman) Date: Fri, 18 Sep 1998 09:53:00 -0000 Subject: vi and xterm References: <19980917163423.3728.qmail@hotmail.com> Message-ID: <13826.36217.880344.257965@janus.pgt.com> John vanVlaanderen writes: > How do I get a vi or any other editor running in my xterm window. Get a decent "/etc/termcap" and make sure TERM is set appropriately. I have /etc/termcap cribbed from a Linux box and "TERM" is set to "xterm". The relevant section from /etc/termcap is pasted below. Make sure your CYGWIN32 variable is set to include the "tty" option I have CYGWIN32="binmode notitle ntea tty" Make sure you have updated the Cygwin32 DLL to Sergei Okhapin's "Coolview" release or the 19.4 version from Andy Piper's site. If you want the xterm to come up with vi already running, do something like "xterm (your favorite xterm options) -e vi" > Having done that I can walk into my new boss's office with a big > grin. Don't grin too big, or else the program you are trying to show him is bound to crash or hang embarrassingly ;-) >From /etc/termcap: # Entry for an xterm. Insert mode has been disabled. vs|xterm|vs100|xterm terminal emulator (X Window System):\ :am:bs:mi@:km:co#80:li#55:\ :im@:ei@:\ :ct=\E[3k:ue=\E[m:\ :is=\E[m\E[?1l\E>:\ :rs=\E[m\E[?1l\E>:\ :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\ :kI=\E[2~:kD=\177:kP=\E[5~:kN=\E[6~:\ :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\ :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:\ :F1=\E[23~:F2=\E[24~:\ :kh=\E[H:kH=\EOw:\ :ks=:ke=:\ :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ :tc=vt-generic: - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Fri Sep 18 09:53:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Fri, 18 Sep 1998 09:53:00 -0000 Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again) References: <199809171837.UAA21812@wanadoo.fr> Message-ID: <3602882A.43D02BBF@hem2.passagen.se> Gilles Depeyrot wrote: > > Hello everyone, > > I've been trying on and off for several months to create a DLL > using egcs and loading it into an MSVC 5.0 compiled application > under Windows 95. > > The problem I am encountering is that I succeed in building a > relocatable DLL (at least I think it is) with egcs and have no > problem loading it either with a small test program compiled > either with egcs or with MSVC. > > However, I have never succeeded in loading my sample DLL into > my real life application. LoadLibrary returns NULL and GetLastError > returns 0 ! What if you statically link the DLL with your app? /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Fri Sep 18 10:04:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Fri, 18 Sep 1998 10:04:00 -0000 Subject: Problem with a header file References: <19980918152209.8894.rocketmail@send1e.yahoomail.com> Message-ID: <360292D4.94599332@crocodial.de> Hi Earnie, > > Dr. Volker Zell wrote: > > > The problem is in the oratypes.h include file: > > > ... > > > typedef unsigned _int64 ub8; > ---Benjamin Riefenstahl wrote: > > Anyway, for a better fix change the code to this: > > typedef unsigned long long ub8; Earnie Boyd wrote: > Why not do: > typedef long long _int64; > ?!?! Indeed that was my first idea, too. But note that Volker needed the unsigned version and there things get messy, because typedef long long __int64; ... typedef unsigned __int64 ub8; is illegal, so it would not have helped in this case. Instead one could probably do #define __int64 long long If this has no undesirable side effects, this could even be put on the compiler command line or in the specs file. so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tvdm@mweb.co.za Fri Sep 18 12:44:00 1998 From: tvdm@mweb.co.za (Thys van der Merwe) Date: Fri, 18 Sep 1998 12:44:00 -0000 Subject: CYGWIN32 beta 19 - Problem with MAKE Message-ID: <3602B87E.354F@mweb.co.za> Hi I've just subscribed to this list and haven't had much time to read any messages. In fact I only received the first message from thi list about 5 minutes ago. I've downloaded the file CDK.EXE and installed it as was described in the FAQ. However, when I'm in the BASH shell and in the directory where my makefile is, type MAKE, I get the following message: (C:\CYGNUS\H-i368-CYGWIN32\BIN\MAKE.EXE 1002)Exception: STATUS_ACCESS_VIOLATION (C:\CYGNUS\H-i386-CYGWIN32\BIN\MAKE.EXE 1002)Dumping stack trace to MAKE.EXE core. I'm using WIN95 on a 486 notebook :) If anyone can give me a few pointers, I would be very greatful. Thanks. Thys van der Merwe - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Fri Sep 18 14:00:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Fri, 18 Sep 1998 14:00:00 -0000 Subject: bash: no ctl-Z Message-ID: <19980918205933.29542.qmail@hotmail.com> Any clues ?? Thanks, John van V. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Fri Sep 18 15:14:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Fri, 18 Sep 1998 15:14:00 -0000 Subject: make fails w/ perl compile (***missing seperator*** stop) Message-ID: <19980918221437.8473.qmail@hotmail.com> Sorry to be such a pain... Makefile:631: *** missing seperator. stop where line 631-3 is: $(PM_TO_BLIB) << @$(TOUCH) $@ Thanks again. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Fri Sep 18 15:14:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Fri, 18 Sep 1998 15:14:00 -0000 Subject: some unusual errors Message-ID: <199809182005.QAA03634@venus.solidum.com> I get a lot of warnings like this: strtod.c:1239: warning: subscript has type `char' This line of code is actually: for(s = s00; isspace(*s); s++) which confuses me. What, if not "char" should isspace() take??? This is with cygwin32 built under Linux as a cross compiler, but I'm pretty sure it is using the cygwin32 includes. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Fri Sep 18 17:10:00 1998 From: cgf@cygnus.com (ChristopherFaylor) Date: Fri, 18 Sep 1998 17:10:00 -0000 Subject: Terminal window scroll bars? References: <199809171838.OAA02433.cygnus.gnu-win32@scotch.mae.cornell.edu> Message-ID: <6tu9no$q9s$1@cronkite.cygnus.com> In article <199809171838.OAA02433.cygnus.gnu-win32@scotch.mae.cornell.edu>, Daniel Karipides wrote: > >>>My favorite telnet clients all have scroll bars that allow you to look back >>>more than 24 lines. Can bash do the same? >> >>It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! >> >>On NT you can set it through the system menue properites of your cmdwindow. > >However, if you enable this, then less no longer works. (When you leave less >you are at the top of your "buffer" and must hit return many times to >scroll through it.) Or at least, this is what happens to me. I guess it depends on the less you're using. I have a Win32 native version and a cygwin version and both work correctly. There was a problem in B18 with this, but it was fixed (by me) for B19. -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsfox@cogsci.ucsd.edu Fri Sep 18 17:10:00 1998 From: dsfox@cogsci.ucsd.edu (David Fox) Date: Fri, 18 Sep 1998 17:10:00 -0000 Subject: Unix pathname -> DOS pathname References: <199809181025.MAA23845@linus.ud.gic.it> Message-ID: Alessio Milan writes: > Hi all! > > How can I convert a Unix pathname to a DOS pathname? Example: > > from: /usr/local/myfile > > to: D:\local\myfile > > (in the example /usr is mounted on D:) Hey, you just did! (Sorry, couldn't resist.) -- David Fox http://www.cat.nyu.edu/fox xoF divaD UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smorris@xionics.com Fri Sep 18 19:01:00 1998 From: smorris@xionics.com (Steve Morris) Date: Fri, 18 Sep 1998 19:01:00 -0000 Subject: [ANNOUNCE] http://www.freeyellow.com/members5/gw32 References: <19980916211046.21224.rocketmail@send102.yahoomail.com> <3601C988.6953C1A0@POBox.com> Message-ID: <13826.53348.12581.543835@frodo.xionics.com> John A. Turner writes: > Earnie Boyd wrote: > > > > I have started creating this announced web page. Feel free to take a > > look. > > Looks like it will be a great resource. > > But please, ditch the silly animated gifs. Please. I second that on both counts. Great page. Thanks. It is going to the top of my bookmark file. I'm looking forward to its evolution. soapbox on. However animated gifs cause netscape to continuously take up cpu cycles on my Sparc and, more important for me, forces vm swapping to/from disk. It forces swapping when I have a lot of things running. I prefer netscape to be as quiet as possible when I don't give it a command. Animated gifs degrade the performance on my system. Animated gifs force me to leave your page everytime I want to do something else. As to why I am reading a win32 based web page on my sparc that's another story although I suspect the cpu cycle and swapping issue would be the same on my NT box (or my Linux box.) Animated gifs are great for people who are only using the browser. They are bad for reference pages. Soapbox off. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From physcrft@nwlink.com Fri Sep 18 19:01:00 1998 From: physcrft@nwlink.com (Will Morrell) Date: Fri, 18 Sep 1998 19:01:00 -0000 Subject: Problems with gdb Message-ID: <36030FDC.237953BA@nwlink.com> Hi folks. I'm new to this, so easy on the flames. I am trying to get mingw32 with egcs up and running under Win95,and so far everything is going pretty well. Everything compiles and runs just fine, but in *any* debugger, particularly gdb, I get a SYSSEGV whenever I run a program, long before the program starts. Something in the startup code is dying. Is this likely to be - Some broken dll that I need to update? Some installation problem? A bad version of gdb (the one in the egcs 1.1 release)? Something else? Thanks in advance - Will - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeff@nuance.com Fri Sep 18 22:21:00 1998 From: jeff@nuance.com (Jeff Bergan) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Another b18 bash script problem References: Message-ID: <000601bde35c$26be1610$68c718d1@pacific.nuance.com> Hi, Ok, so I wrote a test script in bash to get around the substitution problem I mentioned before. It is: ---------------------------------------------------------- var1=somename var2=num echo "myvar1=${var1} myvar2=${var2} " var3=`echo blobname | perl -pe 's/ /,/g'` echo echo "var1 is ${var1}" echo "var2 is ${var2}" echo "myvar1=${var3}" " myvar2=${var2} " exit And its output is: myvar1=somename myvar2=num var1 is somename var2 is num myvar2=num me ---------------------------------------------------------- Anybody know why it does this? Is this another thing that might be fixed in b18? I'm running out of ideas to get around it... Any hints? Thanks! Jeff - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 18 22:21:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Running SSH on Cygwin References: Message-ID: <718WMkD4pfB@mike.franken.de> Neil Bright [ncb@cc.gatech.edu] wrote: [...] >While I'm on the subject... sshd works nicely, with the exception that >when starting it as a service (instructions taken from Sergey's web page >about inetd) from the Control Panel/Services thingie, NT claims that the >service could not be started, when it is actually running fine. > >Any NT gurus out there have any idea what is going on? > I'm not an NT guru, but - regular programs, which have been installed as services through srvany or similar programs, are not able to react to the requirements of the NT service control manager. They simply don't return the correct code, that tells SCM, which state they are in. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fr1632@digital.net Fri Sep 18 22:21:00 1998 From: fr1632@digital.net (Frankie Ramos) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: linking problem Message-ID: <19980919051831.11142.qmail@findmail.com> Hi. I'm a newbie to Cygwin32. Have the stuff running ok and decided to compile the MAPMAKER/HOMOZ package for gene mapping for a friend. Most of the source compiles ok, but when the final linking starts I get the following error code: gcc -ansi -g ./src/hommain.o ./src/fileio.o ./src/pslib.o ./src/generate.o ./src /compute.o ./src/cmds.o ./src/pedprep.o lib.o -lm -o homoz /d/Cygnus/b19/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: lib.o: bad reloc address 0x94 in section `.text' If anyone has any hints as to what this means, how I could fixit or where to go read stuff that will help me with the problem I would be more than interested in knowing. I did a search in the mailing list but couldn't find anything that might help. Thanks in advance. ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeff@nuance.com Fri Sep 18 22:21:00 1998 From: jeff@nuance.com (Jeff Bergan) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: bash pattern substitution References: Message-ID: <000501bde352$dd936610$68c718d1@pacific.nuance.com> Hi, I was just trying to write a bash script in which I wanted to do a quick substitution in a variable, and it seems that bash has trouble with this. I typed in an example from a book which works on unix: echo -e {PATH//:/'\n'} And it complains of bad substitution. I'm using b18 on NT.. is this known and fixed in b19? Thanks! Jeff - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 18 22:21:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Terminal window scroll bars? References: <199809171838.OAA02433@scotch.mae.cornell.edu> Message-ID: <718WN9D4pfB@mike.franken.de> Hi Daniel, > >>>My favorite telnet clients all have scroll bars that allow you to look back >>>more than 24 lines. Can bash do the same? >> >>It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! >> >>On NT you can set it through the system menue properites of your cmdwindow. > >However, if you enable this, then less no longer works. (When you leave less >you are at the top of your "buffer" and must hit return many times to >scroll through it.) Or at least, this is what happens to me. This works perfectly here, at least in a bash window - it gives the same problem you described in any xterm or rxvt, though ! > >-Dan Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smorris@xionics.com Fri Sep 18 22:21:00 1998 From: smorris@xionics.com (Steve Morris) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: NT inetd (remote.tar.gz) questions; archive search down Message-ID: <13826.36712.187105.732602@frodo.xionics.com> Argh!! The search function is temporarily disabled for the archives. I know these questions are answered in the archives somewhere. Please feel free to point me to documentation. Give me advice today and you help me today. Give me a pointer to documentation and you help me for life. Or is that fish. ;) On Sergey's web page he says: > How to run inetd: > ... > Windows NT: remove "Simple TCP/IP services" (if any) - inetd have the same > functionality built-in. > > Start /usr/local/sbin/inetd as a service using srvany utility from Windows NT > Resource Kit, or freeware AutoexNT or invoker utility. Inetd should be started > with "-d" option (see corresponding manuals how to provide command line > options for started applications). You will have no easy ability to stop inetd > service running without -d option (kill from resource kit will help you). Ok so far. > The account of a service must have a valid cygwin's mount table. 1) How is the account of a service determined. I see no reference to it in the service control. Should I create a special account just for inetd? Does this help me control security? Or do I just use the administrators account? I will be up 24x7 so security will be an important issue. 2) How do I create mount tables for various accounts? Actually what I really want to know is where is the cygwin mount behavior documented. I have been meaning to figure out how to switch to binary mounts anyway. So far I have a vanilla install with whatever mount table the install gave me. Since I have only a large C: drive this works but is probably not optimal. 3) As long as I am asking, where is the documentation for the cygwin32 environment variables? I see them mentioned often on this list but I have never seen the doc. 4) Is this the same inetd package that comes with linux. Can I use that doc to figure out configuration issues? Thanks and sorry for cluttering the bandwidth with previously answered questions. Steve Morris - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From David.Billinghurst@riotinto.com.au Fri Sep 18 22:21:00 1998 From: David.Billinghurst@riotinto.com.au (Billinghurst, David (RTD)) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? Message-ID: Works for me with Winzip 6.3 SR-1 provided you turn off "Tar file smart CR/LF conversion" > -----Original Message----- > From: Mumit Khan [SMTP:khan@xraylith.wisc.edu] > Sent: Friday, 18 September 1998 8:07 > To: Michael D. Hill > Cc: gnu-win32@cygnus.com > Subject: Re: Egcs 1.1 having trouble with 'typename'? > > On Wed, 16 Sep 1998, Michael D. Hill wrote: > > > I was using Winzip to install the egcs 1.1 update, and the long and the > > short of it was that it did not correctly unzip. The cygwin tar > unpacked > > everything and now I've got a build. > > > > And now I have big !! WARNING !! in the INSTALL file. Thanks for pointing > this out. > > Mumit > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Fri Sep 18 22:21:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: on linking gnu and msvc etc References: Message-ID: <199809181651.MAA06368@nala.cs.utk.edu> >On Wed, 16 Sep 1998, Jeffrey Russell Horner wrote: > >[ on linking gnu and msvc etc ] >> >> I don't know if this discussion is relevant to the list, but you can >> email me if you need more help. > >I believe this is very relevant, and quite in demand! Please share your >experiences and expecially the list of gotchas. I and lots of others will >appreciate it. > >Thanks in advance, >Mumit > Okay, I've changed the name of the thread... hope there's no opposition. My purpose of using cygwin32 gcc and various NT compilers was to evaluate the performance of my project's code on NT (plug: www.netlib.org/atlas). It's mixed c and fortran77 code. Thus, I felt myself being thwopped on the head day in and day out when trying various combinations and permutations of compilers and languages. It was not fun, but I learned plenty. Surprisingly enough, out of all the compilers we tried, gcc outperformed them. G77 still needs some work, though. Here are various things I found out about linking together MSVC/C++ and CYGWIN32 gcc objects (I'm actually running egcs 1.0.2 for cygwin32 b19). Both cygnus gcc and msvc objects default to using the cdecl calling convention, and they use the same symbol naming convention of prepending an underscore to the symbol name. So that makes things nice: gcc -c gcc_func.c cl -c vcc_app.c cl -Fevcc_app.exe vcc_app.obj gcc_func.o Cl with complain about the gcc_func.o not being a recognized source file type, but it will default to assuming it's an object. Also notice that all symbols in a gcc object will be resolved by the msvc linker, and of course here's where most problems leak in. Now, with Visual C++, one notices that when wanting to invoke ANY external c function, the symbol name for that c function gets mangled. To get around that you must declare the function prototype this way: in vcc_app.cpp: extern "C" gcc_func(); I'm not sure that this declaration can be used for other NT c++ compilers, though. The gotchas that I've found so far have been minimal. Gcc and msvc have different implementations of stdin, stout, etc so fat chance of referencing them from gcc objects. However, one is still able to call printf from gcc objects. Some arithmetic operations invoked in a gcc object are actually function calls themselves, defined in libgcc1.c. But for this release of gcc I don't find that problem at all. As far as DLL's, I haven't worked with them at all. I've discovered many other things about compiling and linking objects on NT , and I am more than happy to share my experiences with the list. But, I'm afraid that my email might get pretty lengthy when doing a complete brain dump, so let me know if you have more questions. I'd also be happy to share source code. Thanks, **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Fri Sep 18 22:21:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Linking with Borland C References: <199809162017.QAA12676@nala.cs.utk.edu> Message-ID: <19980918185148.09655@cygnus.com> On Thu, Sep 17, 1998 at 07:09:04PM -0500, Mumit Khan wrote: > > I believe this is very relevant, and quite in demand! Please share your > experiences and expecially the list of gotchas. I and lots of others will > appreciate it. I agree. In particular, I'd love to have a section of documentation available that discusses the intermixing of GNU Win32 native development tools with various other companies' toolsets. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 18 22:21:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Manual Page References: <9809170511.AA10355@cdromssc.strg.sony.co.jp> Message-ID: <718WM-O$pfB@mike.franken.de> Hi Taro, [...] >Then winman searchs file 'command.html' in the pathes specified by the >emviroment variables WINMANPAH and open it with the defalt web browser. > >My question is there is already implement such above in Internet. If >it already exists, I stop making my implement and use Internet's. I'm not aware of such a program, but it would be really great to have one ! In any case I would like to test such a beast :) > >Thanks, > >T.Ienaga Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 18 22:21:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <2.2.32.19980916155905.0070b024@mindspring.com> Message-ID: <718WMS7$pfB@mike.franken.de> Mumit Khan [khan@xraylith.wisc.edu] wrote: >On Wed, 16 Sep 1998, Michael D. Hill wrote: > >> I was using Winzip to install the egcs 1.1 update, and the long and the >> short of it was that it did not correctly unzip. The cygwin tar unpacked >> everything and now I've got a build. >> > >And now I have big !! WARNING !! in the INSTALL file. Thanks for pointing >this out. No - WinZip *can* do this, if you have the correct options set ! I only have the German version of WinZip, so the name of the option might be different, but translated from German it is in "Options / Configuration" and is named "Change LF to CR/LF for tar archive" ! This is true for WinZip >= 6.2 ! *And this is important for all .zip archives containing Cygnus aware* *software, which should be used on mounts=binary !* > >Mumit Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jmamer@anderson.ucla.edu Fri Sep 18 22:21:00 1998 From: jmamer@anderson.ucla.edu (John W. Mamer) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: mingw32 newbie question..... References: <19980918005907.8831.rocketmail@send101.yahoomail.com> Message-ID: <36028E3B.703E4117@anderson.ucla.edu> Belay last question. Downloaded & installed Mumit's latest magical EGCS-1.1/mingw32 distribution. All problems vanished, everything works...... j. Earnie Boyd wrote: > Which mingw32? Colins and JanJaap's, or Mumit's EGCS 1.0.2 or 1.1? > > If built with mingw32 on w95 osr1 and have run, still run, using both > JanJaaps 2.8.1 and Mumits EGCS 1.0.2. > > Haven't tried 1.1 yet. > > ---John Mamer wrote: > > > > Hi! > > I installed mingw32, in eager anticipation of being able to produce > > win32 native code executables. I compiled some code. It worked > > fine on my NT box, but when I tried it on a Win95 box I got an > > error that said "you need to get a newer version of windows 95 to > > run this program". I tried to check carefully to make sure that the > > linker did not link link in any cygwin libraries. I tried this on two > > different > > Windoze 95 boxes and got the same message one was "original win 95", > > the other was win 95 osr 2. I can tried running the same code > compiled > > under > > gnuwin32, and once it found the cygwinb19.dll it ran just fine on both > > of the Windoze 95 machines. There must be something I'm doing > > wrong.......Or is this just another example > > of Microsoft's pioneering efforts in software marketing? > > thank you > > john mamer > > > > - > > For help on using this list (especially unsubscribing), send a > message to > > "gnu-win32-request@cygnus.com" with one line of text: "help". > > > > == > - \\||// > -----------o0O0--Earnie--0O0o------------ > -- earnie_boyd@yahoo.com -- > -- http://freeyellow.com/members5/gw32 -- > --------------ooo0O--O0ooo--------------- > > PS: Newbie's, you should visit my page. > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Fri Sep 18 22:21:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Fri, 18 Sep 1998 22:21:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> <360195ca.723780@mail.weiser.saale-net.de> Message-ID: <36031431.30D59202@erols.com> Can someone explain why both of these fail: Under cygnus using bash: cd /opt/persicom ln -s /opt/Cygnus/B19/cygnus.bat . Under Explorer, I drab and drop a Windows NT shortcut for the same file to the same place. It is named cygnus.bat.lnk Then, using an xemacs built with VC++ 5.0 I do:L xemacs cygnus.bat* I get two buffers: cygnus.bat contains: !/opt/Cygnus/B19/cygnus.bat cygnus.bat.lnk has one line of line noise like: @^@^@^@^@^@^@F\233 etc. Now, I could see the ln -s link not working 'cause I built xemacs in NT land, not cygnus land. But then why doesn't the windows link work right? -- Get "The Perl Cookbook" Christansen and Torkington. O'Reilly. ISBN 1-56592-243-3 FAQ on serious steriods! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Sat Sep 19 06:16:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Sat, 19 Sep 1998 06:16:00 -0000 Subject: Info reader? References: <199809121856.LAA14566@coyote.rain.org> Message-ID: <3603AC35.EF5D3C3F@fel.cvut.cz> Please can me any one give a url where is some info reader. I search on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ but found only man. Thanks -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please, be patient with long answer time. For holidays I've only dial-up connection. I'm reading new mails every day after 7pm central european. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 06:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 06:41:00 -0000 Subject: environment space limit in cygwin32? References: <36016c98.1880564@mail.weiser.saale-net.de> Message-ID: <718$BIG$pfB@mike.franken.de> Hi Michael, [...] >Any ideas? Sorry, no 8-/ > >PS: I'll check MS's Knowledge Base now, to see if there's some limit >in WinNT and post any information I get. There seems to be no such limit on NT itself, because my environment is much larger than 2000 Bytes - especially in bash: in bash: MIKE-[/home/mh]_$set | wc -c 4239 in cmd.exe: Z:\mh>set | wc -c 2010 >-- >bye, Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 06:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 06:41:00 -0000 Subject: [ANNOUNCE] http://www.freeyellow.com/members5/gw32 References: <3601C988.6953C1A0@POBox.com> Message-ID: <718$B8p$pfB@mike.franken.de> Hi John, >Earnie Boyd wrote: >> >> I have started creating this announced web page. Feel free to take a >> look. > >Looks like it will be a great resource. > >But please, ditch the silly animated gifs. Please. I have to agree 100% :) > >-John Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From juolja@utu.fi Sat Sep 19 08:58:00 1998 From: juolja@utu.fi (Juha Jäykkä) Date: Sat, 19 Sep 1998 08:58:00 -0000 Subject: Problem with du Message-ID: <3603D490.2BB62FAC@utu.fi> On NT Server 4SP3+some hotfixes, the following occurs when executing du: Only the size of the first few directores are displayed. For the rest of them, du says "du: d:\/WINNT: No such file or directory" although the first ones have been shown correctly. The command "du" has been run from 4nt shell, not bash. I have not tested under bash. Under NT's cmd.exe the result is identical. If the first directories encountered contain subdirectories they will be displayed correctly. I have tried to give du parameters in DOS (\) and unix (/) fashions but none works. Moreover, if I run "du ..", "du ../" or "du ..\" it will show the usage of the current (!!!) directory alone. Not a desired behaviour. All the directories have the same permissions, owners and attributes. Anyone got any ideas? -- ----------------------------------------------- | Juha J????ykk????, juolja@utu.fi | | home: http://www.utu.fi/~juolja/ | | pgp-key: http://www.utu.fi/~juolja/pgp.html | | note: now my pgp key really IS there... | ----------------------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 09:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 09:41:00 -0000 Subject: Manual Page References: <01BDE34B.2F8E01D0.MCzapski@openplus.com.au> Message-ID: <718$Bi84pfB@mike.franken.de> Hi Michael, [...] >> Then winman searchs file 'command.html' in the pathes specified by the >> emviroment variables WINMANPAH and open it with the defalt web browser. >> [...] >Unless you can do much better than has been done already by numerous people, >I would not bother. There were, over the years, a number of implementations. Uhm, perhaps you or me got him wrong ? As I understood, he wants to write a replacement for the man command itself, not a program to create html from man files ! [...] >Cheers ... >Michael Czapski Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Sat Sep 19 09:41:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Sat, 19 Sep 1998 09:41:00 -0000 Subject: bash and readline References: <7308-Fri18Sep1998133259+0200-vzell@de.oracle.com> Message-ID: <000f01bde3de$fc1f5a80$3565a8c0@dolphin.chromatic.com> Uhhh, isn't C-s "pause terminal"? C-q should unpause it. C-c works as well, but is a little more drastic... -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Dr. Volker Zell > Sent: Friday, September 18, 1998 4:33 AM > To: Cygnus > Subject: bash and readline > > > Hi > > I have a few problems with keybord mappings regarding the readline > library which bash uses. By the way I'm using the bash from > Sergeys homepage. > But the problem exists also in the cygnus bash. > > For example the following keymap is mapped by default: > > "\C-s": forward-search-history > > But when I press this key bash hangs and I have to press "\C-c". > > The second question, how can I map the new function paste-from-clipboard > to "Shift-insert" ? > > > Ciao > Volker > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 09:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 09:41:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <9809081457.AA01063@dns.cise.it> Message-ID: <718$kKA$pfB@mike.franken.de> Matthew O. Persico [mpersico@erols.com] wrote: [...] > >Now, I could see the ln -s link not working 'cause I built xemacs in NT >land, not cygnus land. But then why doesn't the windows link work right? Because even in Windows land *only* explorer knows how to deal with .lnk files ! Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Sat Sep 19 12:20:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Sat, 19 Sep 1998 12:20:00 -0000 Subject: bash: no ctl-Z References: <19980918205933.29542.qmail@hotmail.com> Message-ID: <3603E69A.BA71C66A@fel.cvut.cz> Hi, have you set CYGWIN32 to tty? -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Sat Sep 19 14:52:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: NT inetd (remote.tar.gz) questions; archive search down References: <19980919151934.11867.rocketmail@send101.yahoomail.com> Message-ID: <19980919143332.45858@cygnus.com> On Sat, Sep 19, 1998 at 08:19:34AM -0700, Earnie Boyd wrote: > > To search the archives use http://www.eGroups.com/list/gnu-win32 mail > list site. It remains upto date with the list. > > Geoff, I suggest you just point the list there for now. Done. Sorry about the delay in getting the search engine up again. The people responsible for fixing it have had more urgent tasks to take care of... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Sat Sep 19 14:52:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: CYGWIN32 beta 19 - Problem with MAKE References: <3602B87E.354F@mweb.co.za> Message-ID: <000e01bde3de$102ef680$3565a8c0@dolphin.chromatic.com> Are you using MAKE_MODE=unix in your env? I've seen this sort of behavior if there is an environment variable (such as the install location of some tool or another) used in a Makefile that is defined using Windoze path format. For example, I saw it yesterday when MSC50ROOT was set to d:\msvc50 instead of //d/msvc50. -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Thys van der Merwe > Sent: Friday, September 18, 1998 12:46 PM > To: gnu-win32@cygnus.com > Subject: CYGWIN32 beta 19 - Problem with MAKE > > > Hi > > I've just subscribed to this list and haven't had much time to read any > messages. In fact I only received the first message from thi list about > 5 minutes ago. > > I've downloaded the file CDK.EXE and installed it as was described in > the FAQ. However, when I'm in the BASH shell and in the directory where > my makefile is, type MAKE, I get the following message: > > (C:\CYGNUS\H-i368-CYGWIN32\BIN\MAKE.EXE 1002)Exception: > STATUS_ACCESS_VIOLATION > (C:\CYGNUS\H-i386-CYGWIN32\BIN\MAKE.EXE 1002)Dumping stack trace to > MAKE.EXE core. > > I'm using WIN95 on a 486 notebook :) > > If anyone can give me a few pointers, I would be very greatful. > > > Thanks. > Thys van der Merwe > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Sat Sep 19 14:52:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> Message-ID: <3603E268.3CE39511@crocodial.de> Hi Michael, Michael Richardson wrote: > I get a lot of warnings like this: > > strtod.c:1239: warning: subscript has type `char' > > This line of code is actually: > > for(s = s00; isspace(*s); s++) > > which confuses me. What, if not "char" should isspace() take??? Several issues here. a) Specification: The functions all take "int"s in the range 0 to UCHAR_MAX plus EOF. This is the same range that getc() returns. It is *not* the same range as "char", but OTOH "unsigned char" is a subset of this range, so with regular strings one usually should cast like this for(s = s00; isspace((unsigned char)*s); s++) b) The functions are usually implemented as macros which look up the answers in a static array. I think what the compiler complains about is, that you use a (signed) "char" to index into an array where of course no negative values are allowed for indexing. This is actually the same issue as a), just some corners of the actual implementation later. so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sat Sep 19 14:52:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: CYGWIN32 beta 19 - Problem with MAKE Message-ID: <73d0f30.3603d0e1@aol.com> In a message dated 9/19/98 5:34:10 AM Pacific Daylight Time, tvdm@mweb.co.za writes: > type MAKE, I get the following message: > > (C:\CYGNUS\H-i368-CYGWIN32\BIN\MAKE.EXE 1002)Exception: > STATUS_ACCESS_VIOLATION > (C:\CYGNUS\H-i386-CYGWIN32\BIN\MAKE.EXE 1002)Dumping stack trace to > MAKE.EXE core. > > I'm using WIN95 on a 486 notebook There are several relevant notes in the FAQ's, not all entirely relevant to W95. First, under the basic standard W95 installation, do 'cd /;ln -s $CYGFS/H-i386-cygwin32/bin .' That seems best if you are unable to install USB. Next, install gnu make-3.77. This works far better than the basic Cygnus make under W95 and ash (the standard Cygnus sh.exe). It probably gives up some CR/LF function. After you have done ./configure and make in the make-3.77, if you have one of the special .exe-compatible versions of install.exe, such as the one from "Tom's files," ./make install. will replace make.exe as intended, if you configured for the same directory tree as you installed cdk.exe. If your version of W95 allows it, install the USB options. The FAQ's give useful information on this. It comes on the CD with OSR2x versions. If you do this, you can then follow the same procedure as recommended for NT: undo the /bin link recommended above; do 'mkdir /bin; cp $CYGFS/H- i386-cygwin32/bin/bash.exe /bin/sh.exe'. If you wish to have a pure Unix- compatible bash, install bash-2.02 or the presumably faster Okhapkin version of it. If you ever have to re-install W95, don't forget to Add/Remove USB first, and re-install USB afterwards. If you can't, pick the option to over- write the .VXD files with the old version when given a choice. This is a slight pain as some of your Windoze device drivers will latch on to USB and not come back until USB is running. As the FAQ's tell you, USB will allow you to recover from most program faults which otherwise involve rebooting. Finally (or first, if you are impatient), install the Okhapkin coolview version of cygwinb19.dll. Having done all these things, I find W95 performing make builds as reliably as NT. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 19 14:52:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: [ANNOUNCE] http://www.freeyellow.com/members5/gw32 Message-ID: <19980919150709.10326.rocketmail@send1e.yahoomail.com> Gifs will be gone by Monday afternoon EDT if not sooner. ---Steve Morris wrote: > > > John A. Turner writes: > > Earnie Boyd wrote: > > > > > > I have started creating this announced web page. Feel free to take a > > > look. > > > > Looks like it will be a great resource. > > > > But please, ditch the silly animated gifs. Please. > > I second that on both counts. Great page. Thanks. It is going to the top of my > bookmark file. I'm looking forward to its evolution. > > soapbox on. > > However animated gifs cause netscape to continuously take up cpu cycles on my > Sparc and, more important for me, forces vm swapping to/from disk. It forces > swapping when I have a lot of things running. I prefer netscape to be as quiet > as possible when I don't give it a command. Animated gifs degrade the > performance on my system. Animated gifs force me to leave your page everytime > I want to do something else. > > As to why I am reading a win32 based web page on my sparc that's another story > although I suspect the cpu cycle and swapping issue would be the same on my NT > box (or my Linux box.) Animated gifs are great for people who are only using > the browser. They are bad for reference pages. > > Soapbox off. > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Sat Sep 19 14:52:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: Update GIMP for related sites References: <5010400026954003000002L032*@MHS> Message-ID: <19980919143742.25661@cygnus.com> > Not sure who is in charge of the "Related Sites" page of the Cygnus > web site, I guess that would be me? :-) > but I would appreciate it if you could update the GIMP for Win32 > link to its new home > http://www.geocities.com/SiliconValley/Garage/8516/gimp/gimpw32.html . Done! -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Sat Sep 19 14:52:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: cd'ing to a shortcut References: <9809081457.AA01063@dns.cise.it> <360110b3.3716935.cygnus.gnu-win32@smtp> <6tsiun$gbj$1@cronkite.cygnus.com> Message-ID: <19980919145232.50387@cygnus.com> On Fri, Sep 18, 1998 at 03:10:15AM +0000, Christopher G. Faylor wrote: [...] > This is FAQ material. Done. It'll be in the b20 FAQ. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 14:52:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 14:52:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> Message-ID: <718$hZK$pfB@mike.franken.de> Hi Michael, [...] >strtod.c:1239: warning: subscript has type `char' > > This line of code is actually: > > for(s = s00; isspace(*s); s++) > > which confuses me. What, if not "char" should isspace() take??? As all is functions it takes an *int* or *unsigned char* ! man isspace NAME isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit - character classification routines SYNOPSIS #include int isalnum (int c); int isalpha (int c); int isascii (int c); int isblank (int c); int iscntrl (int c); int isdigit (int c); int isgraph (int c); int islower (int c); int isprint (int c); int ispunct (int c); int isspace (int c); int isupper (int c); int isxdigit (int c); DESCRIPTION These functions check whether c, which must have the value of an unsigned char or EOF, falls into a certain character class according to the current locale. [...] Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 19 18:30:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 19 Sep 1998 18:30:00 -0000 Subject: NT inetd (remote.tar.gz) questions; archive search down References: <13826.36712.187105.732602@frodo.xionics.com> Message-ID: <718$iCF4pfB@mike.franken.de> Hi Steve, [...] >1) How is the account of a service determined. I see no reference to it in >the service control. Should I create a special account just for inetd? >Does this help me control security? Or do I just use the administrators >account? I will be up 24x7 so security will be an important issue. You can create an account, which gives you more control and perhaps through this more security, too. But if control and security are no issues, you can use the Administrators account. > >2) How do I create mount tables for various accounts? Actually what I really Either login with this account and ... > want to know is where is the cygwin mount behavior documented. I have been > meaning to figure out how to switch to binary mounts anyway. So far I have ... do the same as you did for your own account. Or you can go to the registry, export the relevant entries and import them afterwards when you logged in with a different account. Or you can even use or alter the global mount entries in "HKLM/Software/Cygnus Solutions", which are used for all accounts without separate mount table, if you don't need different tables for each account. > a vanilla install with whatever mount table the install gave me. Since I > have only a large C: drive this works but is probably not optimal. Should be no problem IMHO. > >3) As long as I am asking, where is the documentation for the cygwin32 > environment variables? I see them mentioned often on this list but I have > never seen the doc. There is no documentation on CYGWIN32, AFAIK, but here we go: It is not complete, but IMHO better than nothing. [no]title - show the name of the actual running program as title of the actual bash window [no]strip_title - works in conjunction with 'title'. Strips the path spec from what is displayed in the console title bar when the program is run. [no]binmode - Use 'binmode' as the default open mode when the mode is not otherwise specified in the open or by mount. [no]glob - Do not perform globbing operations on the command line when a cygwin process is being invoked from a non-cygwin shell. strace - A cygwinb19.dll debugging aid. Setting mask to '1' will cause reams of information about the operation of cygwin to be written to 'file' as cygwin operates. The rest of the bits control the display various cygwin subsystems. For a complete list check out /usr/include/sys/strace.h. The cache setting controls how much strace output will be held in memory before being output to disk. [no]tty - simulate U*ix tty on Win32 ntea - use extended attributes on Windows NT systems in combination with FAT filesystems One problem is, that it depends on the version of cygwinb19.dll, which of the above mentioned values are valid. > >4) Is this the same inetd package that comes with linux. Can I use that doc >to figure out configuration issues? It is a port of the Linux package, but be careful when it comes to OS specific features. > >Thanks and sorry for cluttering the bandwidth with previously answered >questions. > >Steve Morris BYe. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Sat Sep 19 18:30:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Sat, 19 Sep 1998 18:30:00 -0000 Subject: Poor colors on console? Message-ID: <36040276.BE46E4F9@fel.cvut.cz> Hi all, I've problems with colors on screen. For ls are colors displayed only if is screen scroled. For example: 1. Cursor is on first line of screen. I type ls ... no colors (if I switch-off turbo of my computer I see that line is at first printed in colors and at second reprinted with no color! - it isn't very efective and should be reason of slow speed). 2. Cursor is on 48 line of screen (50 lines total). first line(49) - no color second line(50) - no color third line(51->scroll->50) - colors! I'm running Win95 OSR2 with installed USB support. CYGWIN32=tty, TERM=linux, instaled ncurses, GNU bash, version 2.02.1(1). Attached file is piece of screen dumped in graphics. But this problem is here from time when I install this things. Any ideas? Thanks -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~ bash.zip -------------- next part -------------- A non-text attachment was scrubbed... Name: bash.zip Type: application/zip Size: 864 bytes Desc: not available URL: From pvogel@chromatic.com Sat Sep 19 18:30:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Sat, 19 Sep 1998 18:30:00 -0000 Subject: Unix pathname -> DOS pathname References: Message-ID: <001001bde435$bc3dac80$3565a8c0@dolphin.chromatic.com> Sergei's coolview package has "cygpath" which can convert windows to unix and unix to windows paths. While I'm on the subject of Sergei's coolview: When I install Sergei's cygwinb19.dll and try to run "bash", I get an error: //.bashrc invalid argument. And my .bashrc is clearly NOT interpreted. If I go back to the Cygnus provided cygwinb19.dll, bash works fine. Suggestions? Thanks, -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of David Fox > Sent: Friday, September 18, 1998 5:09 PM > To: Alessio Milan > Cc: gnu-win32@cygnus.com > Subject: Re: Unix pathname -> DOS pathname > > > Alessio Milan writes: > > > Hi all! > > > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > from: /usr/local/myfile > > > > to: D:\local\myfile > > > > (in the example /usr is mounted on D:) > > Hey, you just did! (Sorry, couldn't resist.) > -- > David Fox http://www.cat.nyu.edu/fox xoF divaD > UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sat Sep 19 18:30:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sat, 19 Sep 1998 18:30:00 -0000 Subject: NT inetd (remote.tar.gz) questions; archive search down Message-ID: <19980919151934.11867.rocketmail@send101.yahoomail.com> To search the archives use http://www.eGroups.com/list/gnu-win32 mail list site. It remains upto date with the list. Geoff, I suggest you just point the list there for now. ---Steve Morris wrote: > > > Argh!! The search function is temporarily disabled for the archives. I know > these questions are answered in the archives somewhere. > > Please feel free to point me to documentation. Give me advice today and you > help me today. Give me a pointer to documentation and you help me for life. Or > is that fish. ;) > > On Sergey's web page he says: > > How to run inetd: > > ... > > Windows NT: remove "Simple TCP/IP services" (if any) - inetd have the same > > functionality built-in. > > > > Start /usr/local/sbin/inetd as a service using srvany utility from Windows NT > > Resource Kit, or freeware AutoexNT or invoker utility. Inetd should be started > > with "-d" option (see corresponding manuals how to provide command line > > options for started applications). You will have no easy ability to stop inetd > > service running without -d option (kill from resource kit will help you). > > Ok so far. > > > The account of a service must have a valid cygwin's mount table. > > 1) How is the account of a service determined. I see no reference to it in the > service control. Should I create a special account just for inetd? Does > this help me control security? Or do I just use the administrators account? > I will be up 24x7 so security will be an important issue. > > 2) How do I create mount tables for various accounts? Actually what I really > want to know is where is the cygwin mount behavior documented. I have been > meaning to figure out how to switch to binary mounts anyway. So far I have > a vanilla install with whatever mount table the install gave me. Since I > have only a large C: drive this works but is probably not optimal. > > 3) As long as I am asking, where is the documentation for the cygwin32 > environment variables? I see them mentioned often on this list but I have > never seen the doc. > > 4) Is this the same inetd package that comes with linux. Can I use that doc to > figure out configuration issues? > > Thanks and sorry for cluttering the bandwidth with previously answered > questions. > > Steve Morris > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Sat Sep 19 21:30:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Sat, 19 Sep 1998 21:30:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> Message-ID: <360479DF.EBF9EA17@erols.com> Michael Richardson wrote: > > I get a lot of warnings like this: > > strtod.c:1239: warning: subscript has type `char' > > This line of code is actually: > > for(s = s00; isspace(*s); s++) > > which confuses me. What, if not "char" should isspace() take??? > int. In the bad old days (pre-ANSI) ints and chars swapped positions more often than Clinton does, apparently. Try this (UNTESTED!) for(s = s00; isspace((int)*s); s++) You could have found this out a lot faster from any good 'C' book, esp K&R. -- Get "The Perl Cookbook" Christansen and Torkington. O'Reilly. ISBN 1-56592-243-3 FAQ on serious steriods! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Sat Sep 19 21:30:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Sat, 19 Sep 1998 21:30:00 -0000 Subject: bash: no ctl-Z References: <19980918205933.29542.qmail.cygnus.gnu-win32@hotmail.com> Message-ID: <6u208n$19q$1@cronkite.cygnus.com> In article <19980918205933.29542.qmail.cygnus.gnu-win32@hotmail.com>, John vanVlaanderen wrote: >Any clues ?? > >Thanks, John van V. It's either Mrs. Green in the study with the candlestick or set CYGWIN32=tty . -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sat Sep 19 21:30:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sat, 19 Sep 1998 21:30:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <718WMS7$pfB@mike.franken.de> Message-ID: On 19 Sep 1998, Michael Hirmke wrote: > > No - WinZip *can* do this, if you have the correct options set ! > I only have the German version of WinZip, so the name of the option > might be different, but translated from German it is in "Options / > Configuration" and is named "Change LF to CR/LF for tar archive" ! > This is true for WinZip >= 6.2 ! > *And this is important for all .zip archives containing Cygnus aware* > *software, which should be used on mounts=binary !* Thanks for the info. I distribute .tar.gz, instead of .zip, to avoid such issues. I would prefer users to follow instructions and use tar instead. Of course, the users who know these features of WinZip are welcome to use it, but it's unsupported as far as I'm concerned. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From JKraaijeveld@askesis.nl Sat Sep 19 23:10:00 1998 From: JKraaijeveld@askesis.nl (Joost Kraaijeveld) Date: Sat, 19 Sep 1998 23:10:00 -0000 Subject: Info reader? References: <3603AC35.EF5D3C3F@fel.cvut.cz> Message-ID: <000d01bde45d$66881e10$0200a8c0@panoramix> There is a graficical Tk based inforeader tkinfo-2.5 at: http://math-www.uni-paderborn.de/~axel/tkinfo/ To use it with the Cygnus version of tk, get a update from Mumit Khan as the Cygnus version is broken (see the faq) Joost - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sun Sep 20 01:21:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sun, 20 Sep 1998 01:21:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: Message-ID: <71Cd1EZKpfB@mike.franken.de> Hi Mumit, [...] >> might be different, but translated from German it is in "Options / >> Configuration" and is named "Change LF to CR/LF for tar archive" ! >> This is true for WinZip >= 6.2 ! [...] >I distribute .tar.gz, instead of .zip, to avoid such issues. I would >prefer users to follow instructions and use tar instead. Of course, >the users who know these features of WinZip are welcome to use it, >but it's unsupported as far as I'm concerned. Uhm, the above mentioned option is for *tar*, not *zip* archives !!! Winzip by default also handles .gz und .tgz files - so if one isn't aware, that he better should use tar und gzip and only double clicks your archive, ... > >Regards, >Mumit Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Sun Sep 20 02:34:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Sun, 20 Sep 1998 02:34:00 -0000 Subject: Problems with gdb References: <36030FDC.237953BA@nwlink.com> Message-ID: <199809200940.LAA07729@k9.dds.nl> > Date: Fri, 18 Sep 1998 18:58:52 -0700 > From: Will Morrell > I am trying to get mingw32 with > egcs up and running under Win95,and so far everything is going pretty > well. Everything compiles and runs just fine, but in *any* debugger, > particularly gdb, I get a SYSSEGV whenever I run a program, long before > the program starts. Something in the startup code is dying. C++? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From JKraaijeveld@askesis.nl Sun Sep 20 04:06:00 1998 From: JKraaijeveld@askesis.nl (Joost Kraaijeveld) Date: Sun, 20 Sep 1998 04:06:00 -0000 Subject: EGCS B19: signal SIGSEGV in cygwin_statu() Message-ID: <001001bde486$b17d6e60$0200a8c0@panoramix> Hi, While running a program in the debugger (gdb) I get the following message: Program received signal SIGSEGV, Segmentation fault. 0x55cc60 in cygwin_statu () I downloaded the source of CygWin32 B19, could find a class definition of the class per_process (of which cygwin_statu is an instance) but as far as I can find there seems no implementation of the class. So I assume that the messaeg relates to the compiler generated ctor. Is this correct? Does anyone has an idea of how to attack such error? Joost - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Sun Sep 20 05:47:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Sun, 20 Sep 1998 05:47:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <718$kKA$pfB@mike.franken.de> Message-ID: <3604F95D.DF944B9D@erols.com> You know, I firmly believe that the government should butt out of the computer industry. But then when I see some of the stoooooopid decisions the M$oft makes, I say let the DOJ whack 'em. Michael Hirmke wrote: > > Matthew O. Persico [mpersico@erols.com] wrote: > > [...] > > > >Now, I could see the ln -s link not working 'cause I built xemacs in NT > >land, not cygnus land. But then why doesn't the windows link work right? > > Because even in Windows land *only* explorer knows how to deal > with .lnk files ! > > Bye. > Michael. > -- > Michael Hirmke | Telefon +49 (911) 557999 > Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 > 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de > | WWW http://aquarius.franken.de/ > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- Get "The Perl Cookbook" Christansen and Torkington. O'Reilly. ISBN 1-56592-243-3 FAQ on serious steriods! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tvdm@mweb.co.za Sun Sep 20 05:47:00 1998 From: tvdm@mweb.co.za (Thys van der Merwe) Date: Sun, 20 Sep 1998 05:47:00 -0000 Subject: CYGWIN32 beta 19 - Problem with MAKE References: <000e01bde3de$102ef680$3565a8c0@dolphin.chromatic.com> Message-ID: <3604E4DD.4F34@mweb.co.za> Hi again I seem to have some other type of problem. The only other thing I can imagine is that I have some ACCESS_VIOLATION to my harddrive due to having to have used DRIVESPACE to enlarge my disk capacity. I bought the notebook for a steal and will soon be upgrading it to a 2G disk. Would you think that that is my problem, because I also get EXCEPTION/INTERRUPT output when trying to use MAKE with EGCS1.1/MINGW32. Thanks again. Thys van der Merwe Peter A. Vogel wrote: > > Are you using MAKE_MODE=unix in your env? > > For example, I saw it yesterday when MSC50ROOT was set to d:\msvc50 > instead of //d/msvc50. > > > -----Original Message----- > > I've downloaded the file CDK.EXE and installed it as was described in > > the FAQ. However, when I'm in the BASH shell and in the directory where > > my makefile is, type MAKE, I get the following message: > > > > (C:\CYGNUS\H-i368-CYGWIN32\BIN\MAKE.EXE 1002)Exception: > > STATUS_ACCESS_VIOLATION > > (C:\CYGNUS\H-i386-CYGWIN32\BIN\MAKE.EXE 1002)Dumping stack trace to > > MAKE.EXE core. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgw@pgt.com Sun Sep 20 06:35:00 1998 From: cgw@pgt.com (Charles G Waldman) Date: Sun, 20 Sep 1998 06:35:00 -0000 Subject: Terminal window scroll bars? References: Message-ID: <13827.50266.615633.983014@sirius> Calm, Fred writes: > > My favorite telnet clients all have scroll bars that allow you to look > > back > > more than 24 lines. Can bash do the same? > > > Assuming you're running bash in a DOS command window, check out the > properties dialog for the Command Prompt shortcut in the Start menu, > especially the layout pane. You can set both window size and size of the > scroll-back buffer. If you're running WinNT. On Win95 you can't set the window properties on "DOS" windows. Assuming you have an X Server available, (I use Hummingbird) and are willing to do some setup work, you can run an XTerm, which is better-behaved than the #*&^%* "DOS window". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Sun Sep 20 09:32:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Sun, 20 Sep 1998 09:32:00 -0000 Subject: Info reader? References: <3603AC35.EF5D3C3F@fel.cvut.cz> Message-ID: <199809201638.SAA29817@k9.dds.nl> > Date: Sat, 19 Sep 1998 15:05:57 +0200 > From: Jan Tomasek > Please can me any one give a url where is some info reader. Try the info-mode in emacs - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Sun Sep 20 09:32:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Sun, 20 Sep 1998 09:32:00 -0000 Subject: NT inetd (remote.tar.gz) questions; archive search down References: <19980919151934.11867.rocketmail@send101.yahoomail.com> Message-ID: <001301bde4a9$e9abd380$3565a8c0@dolphin.chromatic.com> to mount a drive binary, use mount -b . No, as is my wont, I'll ask a question on the same topic after answering one :-) Is there a way to mount a drive as BOTH a binary AND a text mount? In particular, I was trying to do this yesterday, mounting c:/ as / in text mode and as /binc in binary mode. However, bash started to complain about reading my .bashrc (which is in /) and my PS1 ("\W >") behaved very strangely, I'd get the prompt correctly, but anything I typed would type over the prompt, when a command completed, I had to hit enter again to see a prompt. None of this happens if I get rid of the binary mount. Thanks! -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Earnie Boyd > Sent: Saturday, September 19, 1998 8:20 AM > To: gnu-win32@cygnus.com; Steve Morris > Cc: noer@cygnus.com > Subject: Re: NT inetd (remote.tar.gz) questions; archive search down > > > > To search the archives use http://www.eGroups.com/list/gnu-win32 mail > list site. It remains upto date with the list. > > Geoff, I suggest you just point the list there for now. > > ---Steve Morris wrote: > > > > > > Argh!! The search function is temporarily disabled for the archives. > I know > > these questions are answered in the archives somewhere. > > > > Please feel free to point me to documentation. Give me advice today > and you > > help me today. Give me a pointer to documentation and you help me > for life. Or > > is that fish. ;) > > > > On Sergey's web page he says: > > > How to run inetd: > > > ... > > > Windows NT: remove "Simple TCP/IP services" (if any) - inetd have > the same > > > functionality built-in. > > > > > > Start /usr/local/sbin/inetd as a service using srvany utility from > Windows NT > > > Resource Kit, or freeware AutoexNT or invoker utility. Inetd > should be started > > > with "-d" option (see corresponding manuals how to provide command > line > > > options for started applications). You will have no easy ability > to stop inetd > > > service running without -d option (kill from resource kit will > help you). > > > > Ok so far. > > > > > The account of a service must have a valid cygwin's mount table. > > > > 1) How is the account of a service determined. I see no reference to > it in the > > service control. Should I create a special account just for > inetd? Does > > this help me control security? Or do I just use the > administrators account? > > I will be up 24x7 so security will be an important issue. > > > > 2) How do I create mount tables for various accounts? Actually what > I really > > want to know is where is the cygwin mount behavior documented. I > have been > > meaning to figure out how to switch to binary mounts anyway. So > far I have > > a vanilla install with whatever mount table the install gave me. > Since I > > have only a large C: drive this works but is probably not optimal. > > > > 3) As long as I am asking, where is the documentation for the cygwin32 > > environment variables? I see them mentioned often on this list > but I have > > never seen the doc. > > > > 4) Is this the same inetd package that comes with linux. Can I use > that doc to > > figure out configuration issues? > > > > Thanks and sorry for cluttering the bandwidth with previously answered > > questions. > > > > Steve Morris > > - > > For help on using this list (especially unsubscribing), send a > message to > > "gnu-win32-request@cygnus.com" with one line of text: "help". > > > > == > - \\||// > -----------o0O0--Earnie--0O0o------------ > -- earnie_boyd@yahoo.com -- > -- http://freeyellow.com/members5/gw32 -- > --------------ooo0O--O0ooo--------------- > > PS: Newbie's, you should visit my page. > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 20 16:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: Info reader? References: <199809121856.LAA14566@coyote.rain.org> <3603AC35.EF5D3C3F@fel.cvut.cz> Message-ID: <360b4517.8813743@mail.weiser.saale-net.de> Hello Jan, you wrote: >Please can me any one give a url where is some info reader. > >I search on > ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ >but found only man. I have a compiled texinfo package here but there are some problems I want to solve before releasing it. Just contact me if you want it or compile it on your own. texinfo-3.9 compiled quite out of the box for me. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From teh@ic.eecs.berkeley.edu Sun Sep 20 16:20:00 1998 From: teh@ic.eecs.berkeley.edu (Eugene Teh) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: Java Native & cygnus-generated library. References: <71Cd1EZKpfB@mike.franken.de> Message-ID: Hi, I have a library (.a) generate using gcc (in CYGNUS environment) Now I am trying to call functions in this library in Java. Has anyone done this? I used the solaris' header (for jni.h) And got the library foo.dll But when the function is called in Java - I got an Unsatisfiable Link Error. (I have set my LD_LIBRARY_PATH variable appropriately) Any help is truly appreciated. Eugene Teh UC BErkeley - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 20 16:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: bash pattern substitution References: <000501bde352$dd936610$68c718d1@pacific.nuance.com> Message-ID: <360a43e0.8502596@mail.weiser.saale-net.de> Hello Jeff, you wrote: >I was just trying to write a bash script in which I wanted to do a quick >substitution in a variable, and it seems that bash has trouble with this. I >typed in an example from a book which works on unix: >echo -e {PATH//:/'\n'} You've forgotten a '$'. echo -e ${PATH//:/'\n'} should work. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From marshall@dclink.com Sun Sep 20 16:20:00 1998 From: marshall@dclink.com (Nicholas Marshall) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: any directx examples? Message-ID: <001701bde4da$d6238f20$3520a8cf@wopr-no.-523> i am trying to get Peter Hawkins port of directx 5 to compile; i have been using Mumit Khan's EGCS 1.1 for Mingw32, but i have gotten a lot of errors... would someone point me to some examples of how to get dsound up and working ,w/ gnu c++ compiler, i have looked all over the web and havent found a thing... thanx zipht - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 20 16:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: Terminal window scroll bars? References: <199809171838.OAA02433@scotch.mae.cornell.edu> Message-ID: <36052ab4.2060052@mail.weiser.saale-net.de> Hello Daniel, you wrote: >>>My favorite telnet clients all have scroll bars that allow you to look back >>>more than 24 lines. Can bash do the same? >> >>It can on Windows NT's cmd.exe, but not with Windows 9.x's command.com ! >>On NT you can set it through the system menue properites of your cmdwindow. >However, if you enable this, then less no longer works. (When you leave less >you are at the top of your "buffer" and must hit return many times to >scroll through it.) Or at least, this is what happens to me. less-332 works perfectly here with a buffer of 1000 lines. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 20 16:20:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 20 Sep 1998 16:20:00 -0000 Subject: cd'ing to a shortcut References: Message-ID: <36094125.7803320@mail.weiser.saale-net.de> Hello Fred, you wrote: >> You simply cannot cd into Windows shortcuts because cygwin32 doesn't >> know about .lnk files and their magic. >It's too bad they're not so magical -- only the explorer shell knows about >them, not the file system. They're good as far as they go; the problem is >they don't go very far, not even in the Windows world. Jep, agreed. Real softlinks shouldn't be any problem on NTFS... -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 20 17:56:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 20 Sep 1998 17:56:00 -0000 Subject: environment space limit in cygwin32? References: <718$BIG$pfB@mike.franken.de> Message-ID: <360635cc.4899925@mail.weiser.saale-net.de> Hello Michael, you wrote: >>PS: I'll check MS's Knowledge Base now, to see if there's some limit >>in WinNT and post any information I get. >There seems to be no such limit on NT itself, because my environment >is much larger than 2000 Bytes - especially in bash: Yes, I already guessed that. But I'll search the Knowledge Base anyway, if I find the time. >in bash: >MIKE-[/home/mh]_$set | wc -c > 4239 > >in cmd.exe: >Z:\mh>set | wc -c > 2010 Caution: It is getting strange now! :-) I played aroung a bit with my environment and found that it's not the size of it but the number of exported variables! I filled my environment with some garbage till it had over 5K and it didn't have any effect. But when I filled it up with something like export D1=1 where D1 got incremented like D2, D3 and so on, I got the STATUS_ACCESS_VIOLATION when the environment had michael@NARGOTHROND:/mnt/f/home/michael >export | wc -l 87 exported variables. (?) I'm getting the impression, it's not really the environment but something else I'm missing. If it helps: I debugged the program and found that it's failing at the first call of XtVaGetValues(). It's not the first Xt library call, it's no the first call with a variable argument list and it's not the first call to some other X library at all. The program references the environment only 5 times by calling getenv(). But it's not failing on such a call although there is one of them before the XtVaGetValues() call. I played aroung a bit with this environment code but it didn't have any effect. And: Running it inside of gdb with something like >michael@NARGOTHROND:/ >gdb -nw civclient >GNU gdb 4.16-B19 >Copyright 1997 Free Software Foundation, Inc. >GDB is free software, covered by the GNU General Public License, and you are >welcome to change it and/or distribute copies of it under certain conditions. >Type "show copying" to see the conditions. This version of GDB is supported This version of GDB is supported >for customers of Cygnus Solutions. Type "show warranty" for details. >This GDB was configured as "i386-cygwin32"... >(gdb) run >Starting program: /mnt/e/dev/cygwin32.b19/usr/local/bin/civclient.exe it runs quite perfect. But it crashes regardless of the number of exported variables if I run it from inside the windowed gdb run by 'gdb civclient'. There gdb says Program received signal SIGSEGV, Segmentation fault. 0x485d9d in _XtCountVaList () which seems to be called from inside XtVaGetValues. Is there some environment handling in there? Do I really have to compile X11 myself and track it down to its source? (Uaaahhh!) Thanks for your help so far. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jjf@hal.com Sun Sep 20 17:56:00 1998 From: jjf@hal.com (J. J. Farrell) Date: Sun, 20 Sep 1998 17:56:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> Message-ID: <199809210056.RAA27963@aleph.ssd.hal.com> > Date: Fri, 18 Sep 1998 16:05:13 -0300 > From: Michael Richardson > > > I get a lot of warnings like this: > > strtod.c:1239: warning: subscript has type `char' > > This line of code is actually: > > for(s = s00; isspace(*s); s++) > > which confuses me. What, if not "char" should isspace() take??? isspace() takes an int whose value must be in the range 0 to UCHAR_MAX, or EOF. This looks like a bug in the macro implementation of isspace(), to me; it should be casting the parameter to int so it will behave in the same way as the function implementation. Until a fix appears, your options are: - to fix the bug in your installation by casting the parameter to an int in the macro definition of isspace() in ctype.h - to force the call to use the function implementation of isspace() by putting #undef isspace before you use it, or by putting parenthesis around the name in the call (isspace)(*s) - or to explicitly cast the parameter to an int. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bruno.patin@wanadoo.fr Sun Sep 20 17:56:00 1998 From: bruno.patin@wanadoo.fr (administrateur) Date: Sun, 20 Sep 1998 17:56:00 -0000 Subject: server x Message-ID: <3605633C.9284F526@wanadoo.fr> i make now a summary of the discussion on the x server. The fifferent choices are : 1/ porting XFree : it's great work because of the direct access to the hardware. We would have to make it coexist with windows. An advantage of this approach wouls be a support from the xfree group (or so i suppose). Another would be good performances if we stand upon the directx library. 2/ porting directly from the x11R6.4 release : it also seems a difficult task but it is a writing of the server from the example (directory xc/programs/Xserver/hw/Win32 to create and complete) 3/ porting the xlib to call directly windows gdi calls 4/ porting the vnc server. As it is based on xfree, don't we have to port directly xfree ? 5/ If the mix code becomes a free one to start with it. In all cases, there is one volunteer to help use the direct x library. I think that the first choice is to ask mix because, even if it's not perfect, it works. But, as i see it, i'd want the server not to do one window but the number of window that is asked for. My second choice would be the xfree even with the work because of the developpers that know it. My last choice, to start from scratch, but it's the last. with this summary i hope to see what the best choice is because it means work and i don't want work that becomes garbage. Thanks to all. greetings bruno patin dassault aviation i speak only in my name - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lat@iki.fi Mon Sep 21 00:37:00 1998 From: lat@iki.fi (Lassi A. Tuura) Date: Mon, 21 Sep 1998 00:37:00 -0000 Subject: B19.1 bug: `du' miscounts disk usage and ignores .* files Message-ID: Hi, `du' seems to be miscounting disk space by a factor of two on NT 4.0SP3 on a NTFS disk. Actually, `du -h' *does* work, but both `-m' and `-k' misreport the sizes: $ du -ks 3337 . $ du -ms 3 . $ du -hs 6.3M . Another problem is that in its recursion, `du' skips directories that start with `.' in their name, e.g. `.srt'. It *does* include them in the first level directory, e.g. in `.' if I invoke `du .'. But it misses them in all nested directories: $ du 21 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0/.srtdb/deps 16 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0/.srtdb/linksets 16 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0/.srtdb/packages 16 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0/.srtdb/rules 87 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0/.srtdb 1731 ./.srt/i586-pc-cygwin32-winnt4.0/msvc++-5.0 1731 ./.srt/i586-pc-cygwin32-winnt4.0 1732 ./.srt 4 ./commons/config 38 ./commons 0 ./installed/com 0 ./installed/doc 0 ./installed/include 0 ./installed/info 0 ./installed/man 5 ./installed/share/DB/calib 5 ./installed/share/DB/default 2 ./installed/share/DB/filter 22 ./installed/share/DB/prod 12 ./installed/share/DB/temp 45 ./installed/share/DB 10 ./installed/share/job 82 ./installed/share 0 ./installed/var 82 ./installed 2 ./Tools/Age/src/AgeParser.dir/Templates 2 ./Tools/Age/src/AgeParser.dir 0 ./Tools/Age/src/libAge.dir 1195 ./Tools/Age/src 1227 ./Tools/Age 56 ./Tools/AgeToCxx 101 ./Tools/agetof 33 ./Tools/CSet 1452 ./Tools 3337 . $ ls -laF Tools total 37 dr-xr-xr-x 13 544 None 0 Aug 12 12:04 ./ dr-xr-xr-x 11 544 None 0 Aug 12 12:02 ../ dr-xr-xr-x 3 544 None 0 Aug 12 12:01 .srt/ dr-xr-xr-x 11 544 None 0 Aug 12 12:05 Age/ dr-xr-xr-x 13 544 None 0 Aug 12 12:07 AgeToCxx/ dr-xr-xr-x 11 544 None 0 Aug 12 12:07 CSet/ -r--r--r-- 1 544 None 378 Aug 12 12:04 ChangeLog -r--r--r-- 1 544 None 664 Aug 12 12:04 GNUmakefile.in -r--r--r-- 1 544 None 8 Aug 12 12:04 PACKAGE -r--r--r-- 1 544 None 38 Aug 12 12:04 VERSION dr-xr-xr-x 34 544 None 0 Aug 12 12:09 agetof/ -r--r--r-- 1 544 None 65477 Aug 12 12:04 configure -r--r--r-- 1 544 None 2018 Aug 12 12:04 configure.in Cheers, //lat -- With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. --RFC1925, "The Twelve Networking Truths" - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ienaga@strg.sony.co.jp Mon Sep 21 01:21:00 1998 From: ienaga@strg.sony.co.jp (Taro Ienaga) Date: Mon, 21 Sep 1998 01:21:00 -0000 Subject: Manual Page (replacement of man command) References: <718$Bi84pfB@mike.franken.de> Message-ID: <9809210726.AA11502@cdromssc.strg.sony.co.jp> Thanks all, My purpose to implement winman command replaces unix man command, as Michael (Hirmke) written below, to handle .html and support web browsers because: 1. man command is not included in Gnu-Win32 standard package. 2. I need to make manual pages for my own tools. 3. I'm not familiar with troff language but write easily with html. 4. If manual pages is written with html and showen with web browers, I think there are a lot of advantage for original unix man command because of powerful function of web browers - forward and backward scrolling, printing, links and more... 5. I don't like to open the web browser manually when look up manual pages because normally I'm on command console line in such stuation. Now, winman works fine on Win98 (japanese edition). The current status, problems are as follows: i. The source codes are written in working time. I need to rewrite these from full scratch in my private time. Please wait. *Gnu-win32 runs under Windows 95/98 emurator for Mac? It's a cheapest solution for me. I have a PowerBook 2300c/100 with 56 MB RAM. (I don't mind if it runs very slow.) i. The contents of winman package: Makefile - Build winopen command only now. winman - Main shell (/bin/sh) script file to search paths. winopen.c - Genenal file opener. Used to open .html with the default web browser in case of winman. winman.html - winman manual page. (winopen.html) - (Not yet. winopen manual page.) (README) - (Not yet.) (Other Documents...) ii. winman searchs given title.html in the default search path /Cygnus/man or the value of WINMANPATH and open the file with the default file opener /Cygnus/local/bin/winopen or the value of WINOPEN. iii. winman does not support sections as /Cygnus/man/man1. iv. All manual pages must be in drive C (the drive letter is changable if you edit top of winman shell script. Of course if define new environment variable, no code change is needed but I wander if that is good way). winman and winopen don't support the mount system. (eg. /Cygnus/man must be equal to C:\Cygnus\man.) *not support files and directories includes character '/' in ther name and I will not support in future release. i. The directry problem (/Cygnus/man, /Cygnus/local/bin). There are betters??? Thanks, Taro Ienaga (This mail depends on my personal stance.) P.S - latest version winman.html is attached last of this mail as text view and html source. Michael Hirmke wrote: >> Hi Michael, >> >> [...] >> >> Then winman searchs file 'command.html' in the pathes specified by the >> >> emviroment variables WINMANPAH and open it with the defalt web browser. >> >> >> [...] >> >Unless you can do much better than has been done already by numerous people, >> >I would not bother. There were, over the years, a number of implementations. >> >> Uhm, perhaps you or me got him wrong ? >> As I understood, he wants to write a replacement for the man command >> itself, not a program to create html from man files ! /// 1. winman.html (text view) //////////////////////////////////////////// NAME winman - open reference manual pages with the default web browser SYNOPSIS winman title DESCRIPTION winman opens infomation from the reference manuals with the default web browser. ENVIRONMENT WINMANPATH If set, its value overrides /Cygnus/man as the default search path. WINOPEN If set, its value overrides /Cygnus/local/bin/winopen as the default file opener. NOTES Current directory ('.') specified in WINMANPATH is always ignored because of security. /// 2. winman.html (html source) ////////////////////////////////////////// winman NAME
winman - open reference manual pages with the default web browser
SYNOPSIS
winman title
DESCRIPTION
winman opens infomation from the reference manuals with the default web browser.
ENVIRONMENT
WINMANPATH
If set, its value overrides /Cygnus/man as the default search path.
WINOPEN
If set, its value overrides /Cygnus/local/bin/winopen as the default file opener.
NOTES
Current directory ('.') specified in WINMANPATH is always ignored because of security.
- For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jba@lfpt.RWTH-Aachen.DE Mon Sep 21 01:21:00 1998 From: jba@lfpt.RWTH-Aachen.DE (Juergen Bausa) Date: Mon, 21 Sep 1998 01:21:00 -0000 Subject: Linking with Borland C Message-ID: <199809210820.KAA00749@lisa.rwth-aachen.de> > >I have successfully created a DLL and linked it with an >app compiled by BC, but it is cumbersome business. The >problem, as I see it, is that you cannot use the same .DEF >files with BC and dlltool since the exported names are >decorated differently by the different tools. > Dear Anders, I am very interested in your post, since I was trying (nearly) the same thing. However, it seems to me, that you only addressed the linking problem. I am using another gcc-port (rsxnt) where I had no poblem in creating an import-library and linking to it (or, using LoadLibrary & GetProcAddress). I took the X11-libraries from Sergej, used only the DLL's and Headers and created my own Inport-Libraries, which I then linked to my rsxnt-gcc program. However, it crashed on every call of an X11-function. The real problem is to execute a function in a cygnus-made dll, that uses functions like 'malloc'. I think these functions are not correctly initialized when the dll is loaded by a non-cygnus program. So, my question is: Is your example still working if you use this function foo: int foo(int n) { int i; double *a=malloc(n*sizeof(double)); for(i=0;i Message-ID: <3606278B.9E702F85@hem2.passagen.se> Juergen Bausa wrote: > I am using another gcc-port (rsxnt) where I had no poblem in creating an > import-library and linking to it (or, using LoadLibrary & GetProcAddress). > I took the X11-libraries from Sergej, used only the DLL's and Headers and > created my own Inport-Libraries, which I then linked to my rsxnt-gcc program. > However, it crashed on every call of an X11-function. > > The real problem is to execute a function in a cygnus-made dll, that > uses functions like 'malloc'. I think these functions are not correctly > initialized when the dll is loaded by a non-cygnus program. That is most certainly true. Some of the cygwin developers should know more about this. Try searching the mailing list. Why don't you use cygwin instead of rsxnt? /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dyoung@vviuh221.vvi.com Mon Sep 21 07:09:00 1998 From: dyoung@vviuh221.vvi.com (David Young) Date: Mon, 21 Sep 1998 07:09:00 -0000 Subject: some unusual errors References: <199809210056.RAA27963@aleph.ssd.hal.com> Message-ID: <9809211418.AA12875@vviuh221.vvi.com> > isspace() takes an int whose value must be in the range 0 to > ... > it should be casting the parameter to int so it will ... ACK! Doesn't the ANSI isspace() prototype definition take type char ? Why be non-ANSI compliant? Instead of changing the macro, why not change the function prototype itself. Thanks A Bunch! David Young; VVI-DCS http://www.vvi.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Mon Sep 21 07:09:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Mon, 21 Sep 1998 07:09:00 -0000 Subject: Running SSH on Cygwin References: <199809162213.SAA24603@cleon.cc.gatech.edu> Message-ID: <36065E21.AF1E948@sigma6.com> Neil Bright wrote: > While I'm on the subject... sshd works nicely, with the exception that > when starting it as a service (instructions taken from Sergey's web page > about inetd) from the Control Panel/Services thingie, NT claims that the > service could not be started, when it is actually running fine. > > Any NT gurus out there have any idea what is going on? Unless you start inetd in debug mode, the parent will fork and exit, which SCM may interpret as a premature exit. Probably it won't appear as a running service, and you won't be able to stop it either. -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From setera@us.ibm.com Mon Sep 21 07:09:00 1998 From: setera@us.ibm.com (Craig Setera) Date: Mon, 21 Sep 1998 07:09:00 -0000 Subject: Opendir/readdir trouble Message-ID: <5010400027073348000002L082*@MHS> Can anyone offer me any hints for using opendir/readdir/closedir? I am able to successfully complete the opendir, but I never get any directory entries back. I've tried strings of the form: "/temp/data/*" "/temp/data/" "/temp/data" None of which seem to work for me. Thoughts? Craig Craig Setera AS/400 Enterprise Java Development IBM Rochester setera@us.ibm.com (507) 253-3387 - Tie: 553-3387 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From h5@sjakk.fi Mon Sep 21 07:09:00 1998 From: h5@sjakk.fi (h5) Date: Mon, 21 Sep 1998 07:09:00 -0000 Subject: Midas Digital Audio System Message-ID: <3606337B.A3E1F5AC@sjakk.fi> Would it be a good thing to use Midas Digital Audio System for cygwin/mingw? The thought came up when I tried to get directsound working. Midas is very portable, supports many platforms already (including cygwin/mingw) and directsound. The Midas project can be found from: http://www.s2.org/midas/ Teemu N????tkinniemi - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 21 07:11:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 21 Sep 1998 07:11:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <71Cd1EZKpfB@mike.franken.de> Message-ID: <360630e4.681980@mail.weiser.saale-net.de> Hello Michael, you wrote: [tgz and WinZip] >Uhm, the above mentioned option is for *tar*, not *zip* archives !!! >Winzip by default also handles .gz und .tgz files - so if one isn't >aware, that he better should use tar und gzip and only double clicks >your archive, ... Mhmm, didn't Mumit mean that? -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Mon Sep 21 07:52:00 1998 From: vance@deneb.com (Stephen Vance) Date: Mon, 21 Sep 1998 07:52:00 -0000 Subject: make fails w/ perl compile (***missing seperator*** stop) References: <19980918221437.8473.qmail@hotmail.com> Message-ID: <3606686F.95DFBFC5@deneb.com> John vanVlaanderen wrote: > Sorry to be such a pain... > > Makefile:631: *** missing seperator. stop > > where line 631-3 is: > > $(PM_TO_BLIB) > << > @$(TOUCH) $@ > > Thanks again. > Usually means there is a CR in your make file. Did you generate it automatically and run it through a pipe or redirect? Did you edit it with notepad or forget to tell a more capable editor to write it in Unix mode? -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Mon Sep 21 13:10:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Mon, 21 Sep 1998 13:10:00 -0000 Subject: [ANNOUNCE] gdb and process attach. Message-ID: <01BDE5BD.8BC3DA50@sos> Hi! B19 gdb fails to attach to a running process. I've fixed the problem and uploaded modified gdb.exe. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tstokes@pacbell.net Mon Sep 21 13:10:00 1998 From: tstokes@pacbell.net (Tom Stokes) Date: Mon, 21 Sep 1998 13:10:00 -0000 Subject: any directx examples? Message-ID: <002601bde57b$cf4fe620$1c44aace@TomStokes> >i am trying to get Peter Hawkins port of directx 5 to compile; i have been >using Mumit Khan's EGCS 1.1 for Mingw32, but i have gotten a lot of >errors... would someone point me to some examples of how to get dsound up >and working ,w/ gnu c++ compiler, i have looked all over the web and havent >found a thing... thanx > >zipht I got it to work but with some pain. First, you have to create the header file Peter discusses in his README. In my case, I had to create an additional header file to eleminate the remaining syntax errors. That part was strictly fix each error one step at a time. Also this was C. Don't know about C++. Tom - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hgfernan@usp.br Mon Sep 21 13:10:00 1998 From: hgfernan@usp.br (Hilton Fernandes) Date: Mon, 21 Sep 1998 13:10:00 -0000 Subject: Windows98 + inetutils References: <35FC2B86.8EE7173@uni-duesseldorf.de> Message-ID: <199809211516.MAA07773@swan2.uspnet.usp.br> On 13 Sep 98 at 22:31, Stipe Tolj wrote: > > But it gets the password from the NT SAM ! > > yes, it does on NT. But since I'm on an Win98 box, I'm using a patched login.c > file in my case. > Hello Stipe, that would be a good addition to CygWin. It add one more feature for the poor Win 9X user, previously available only for the NT users. What Cygnus people think about it? Regards, --Hilton > -- > Stipe Tolj > Cygwin32 Porting Project > Department of Economical Computer Science > University of Cologne, Germany > http://www-public.rz.uni-duesseldorf.de/~tolj > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rbehar@lucky.fr Mon Sep 21 14:21:00 1998 From: rbehar@lucky.fr (Romain Behar) Date: Mon, 21 Sep 1998 14:21:00 -0000 Subject: g++ executables / bash window Message-ID: <3606BD64.79CA@lucky.fr> I've been using FreeBSD, then installed GNU-Win32B19 on NT4. I noticed that g++ executables are very big when compiled with GNU-Win32, that is 330Kb for a simple `cout << "Hello world!";' while the C version is less than 20Kb. Under FreeBSD which runs GNU g++ too, there is no such a differnce. Is there a compiler option that reduces executable size to its minimum? Romain - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Mon Sep 21 14:21:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Mon, 21 Sep 1998 14:21:00 -0000 Subject: CYGWIN32 beta 19 - Problem with MAKE References: <3604E4DD.4F34@mweb.co.za> Message-ID: <199809212121.XAA01723@k9.dds.nl> > Date: Sun, 20 Sep 1998 13:19:57 +0200 > From: Thys van der Merwe > The only other thing I can > imagine is that I have some ACCESS_VIOLATION to my harddrive due to > having to have used DRIVESPACE to enlarge my disk capacity. My cygnus on a drivspaced disk, no problem here. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsfox@cogsci.ucsd.edu Mon Sep 21 14:21:00 1998 From: dsfox@cogsci.ucsd.edu (David Fox) Date: Mon, 21 Sep 1998 14:21:00 -0000 Subject: server X References: <01BDDD75.00B69600@sos> Message-ID: Sergey Okhapkin writes: > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct > video hardware access. Could you expand on this further? Why is direct video hardware access more of a problem under windows than it is under Unix? -- David Fox http://www.cat.nyu.edu/fox xoF divaD UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Mon Sep 21 14:21:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Mon, 21 Sep 1998 14:21:00 -0000 Subject: some unusual errors References: <718$hZK$pfB@mike.franken.de> Message-ID: <199809211652.MAA13143@venus.solidum.com> >>>>> "Michael" == Michael Hirmke writes: Michael> Hi Michael, Michael> [...] >> strtod.c:1239: warning: subscript has type `char' >> >> This line of code is actually: >> >> for(s = s00; isspace(*s); s++) >> >> which confuses me. What, if not "char" should isspace() take??? Michael> As all is functions it takes an *int* or *unsigned char* ! Michael> int isalnum (int c); Michael> int isalpha (int c); Why would you say "unsigned char"?? It says "int" to me. So, a signed char should promote to int just fine. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Mon Sep 21 14:21:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Mon, 21 Sep 1998 14:21:00 -0000 Subject: Java Native & cygnus-generated library. References: Message-ID: <199809211334.JAA02796@nala.cs.utk.edu> >Hi, > > I have a library (.a) generate using gcc (in CYGNUS environment) > Now I am trying to call functions in this library in Java. > Has anyone done this? > I used the solaris' header (for jni.h) > And got the library foo.dll > >But when the function is called in Java - >I got an Unsatisfiable Link Error. >(I have set my LD_LIBRARY_PATH variable appropriately) > >Any help is truly appreciated. I would suspect that you haven't setup the native method interface correctly on the Java side. I've been able to link cygnus libraries (.a) fine when using many of the NT compilers. Can you tell me which jvm and jdk you're using? I need to do some java work anyway , so I could install it and take a closer look at the problem... > >Eugene Teh >UC BErkeley > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From steve@ton80.com Mon Sep 21 15:22:00 1998 From: steve@ton80.com (sdrinovsky) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: B19.1: missing prompt? Message-ID: <36067AF0.FB07FCA7@ton80.com> Hello, I am having a strange problem and I was unable to find a match in our archives. First, I am using B19.1 on Windows NT. I am also running through a telnet server (InterAccess TelnetD 4.0 for Windows NT). Here is my problem. Once connected through telnet I execute bash. bash runs, I can execute commands except there is no prompt! So, next I tried running bash -i, now I get my prompt. However, when I type in commands the input if repeated. (llss not ls). I was wondering what is different between bash and bash -i that would cause the change? What do I need to set so that bash echos the same characters? Here is a short screen dump of what is happening: Microsoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp. c:\build>bash ls CompileErr.tmp MakeAndTest.bat Makefile exit c:\build>bash -i bash-2.01$ llss CompileErr.tmp MakeAndTest.bat Makefile bash-2.01$ bash-2.01$ eexxiitt exit c:\build> - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kommer@artefaktur.com Mon Sep 21 15:22:00 1998 From: kommer@artefaktur.com (Roger René Kommer) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: Unix pathname -> DOS pathname References: Message-ID: <000001bde57b$7d7faf60$fa01a8c0@KOMUN.artefaktur.de> Hi, > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > from: /usr/local/myfile > > > > to: D:\local\myfile > > > > (in the example /usr is mounted on D:) > > Hey, you just did! (Sorry, couldn't resist.) Actually it is more interessant, how to do it in shell scripts. One possibility is to launch echo `cmd.exe /c cd` to get the cwd in DOS/NT syntax, but the performance could be better. Does anybody know a better solution? Roger - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lsmith@cio2000.eds.com Mon Sep 21 15:22:00 1998 From: lsmith@cio2000.eds.com (Larry Smith) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> <360195ca.723780@mail.weiser.saale-net.de> <36031431.30D59202@erols.com> Message-ID: <199809211525.KAA22071@marshall.aus.edsr.eds.com> Windows shortcuts and cygnus symbolic links are two different animals. The cygnus code does its best to implement the semantics of Unix semantic links without help from the operating system. And as far as the Cygnus code is concerned, a .lnk file is just another binary-format file with some wierd contents. Whether your program of interest chooses to follow through cygnus symbolic links or Windows shortcut files (or both) is up to the application. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Mon Sep 21 15:22:00 1998 From: vance@deneb.com (Stephen Vance) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> Message-ID: <360669BE.A06C57B2@deneb.com> Michael Richardson wrote: > I get a lot of warnings like this: > > strtod.c:1239: warning: subscript has type `char' > > This line of code is actually: > > for(s = s00; isspace(*s); s++) > > which confuses me. What, if not "char" should isspace() take??? The reason isspace() and friends are defined this way is that special characters like EOF are not always represented by "char". The standard leaves the choice of "signed char" or "unsigned char" as the default "char" as implementation defined. EOF is usually -1. If you want 8-bit chars, -1 maps to an already defined char in either representation, but as an int it is distinct. -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dj@delorie.com Mon Sep 21 15:22:00 1998 From: dj@delorie.com (DJ Delorie) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: some unusual errors References: <199809182005.QAA03634@venus.solidum.com> <199809210056.RAA27963.cygnus.gnu-win32@aleph.ssd.hal.com> Message-ID: <3606527E.2781@delorie.com> > This looks like a bug in the macro implementation of > isspace(), to me; it should be casting the parameter to > int so it will behave in the same way as the function > implementation. Until a fix appears, your options are: This discussion happens a lot in the djgpp newsgroup. The result is always the same: You can't cast to int in the macro. Why? Because: 1. If the programmer used the macro with a char argument (when char is signed), the macro can't tell the difference between EOF and char 0xff 2. If char is signed, a cast to int may not do what the macro is expecting. The is*() macros normally expect a parameter in the range 0..255 or -1, but if you cast a signed char to int, you get values in the range -128..127 or -1, and your program may crash. 3. Remember that getchar() returns in int - for the very same reason, so that EOF is not in the range of valid characters. getchar() returns EOF or 0..255, which is NOT the same range as the range for type `signed char'. Basically, if you're a programmer and you've stumbled onto this problem, you have a problem with your code. 60 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgw@pgt.com Mon Sep 21 15:22:00 1998 From: cgw@pgt.com (Charles G Waldman) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> <360195ca.723780@mail.weiser.saale-net.de> <36031431.30D59202@erols.com> <199809211525.KAA22071@marshall.aus.edsr.eds.com> <3606869E.C9F8DFF1@tardis.ed.ac.uk> Message-ID: <13830.47016.142658.925270@janus.pgt.com> Jonathan Harris writes: > > XEmacs doesn't currently understand cygwin shortcuts or Explorer > shortcut files Unless the XEmacs has been built under the Cygwin environment - in which case cygwin shortcuts are handled by the cygwin dll and look to XEmacs just like normal Unix symbolic links. If you're a Cygwin user, you will be much happier running an XEmacs built for Cygwin, rather than the "native" Win32 version - because of stuff like your Cygwin mount tables, CR/LF handling, "/" vs "\", etc... - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Mon Sep 21 15:22:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Mon, 21 Sep 1998 15:22:00 -0000 Subject: B19: G++ Bug References: <35EBB0E2.E4612E45@debis.spb.ru> Message-ID: <19980921152225.32369@cygnus.com> On Tue, Sep 01, 1998 at 01:36:55PM -0500, Mumit Khan wrote: > > That's not true. The problem is that the order of initialization isn't > correct in the current cygwin DLL, so any dependencies cause problems. FYI, this has been fixed in development sources/future b20 sources. BTW, B20 looks like it's on track for an early October release. So far so good... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Mon Sep 21 15:32:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Mon, 21 Sep 1998 15:32:00 -0000 Subject: QUestion with regards to ICMP and support for AF_UNIX family calls. References: <3601390E.403AC082@swi.com> Message-ID: <19980921153124.61419@cygnus.com> On Thu, Sep 17, 1998 at 12:30:07PM -0400, David Ahier wrote: > > I notice that icmp.h in cygwin32 directory is empty. I think it hasn't ever really been worked on. > Will CYGWIN32 have the support for AF_UNIX family calls that use > sockaddr_un structure. AFAIK, nobody is working on this. If someone cares enough about this stuff to work on it and send in some patches, I'll look into integrating them... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From stk@infoseek.com Mon Sep 21 15:32:00 1998 From: stk@infoseek.com (Steve Kirsch) Date: Mon, 21 Sep 1998 15:32:00 -0000 Subject: read doesn't read the second time Message-ID: <000701bde592$ff92d240$0bd205c6@topgun.infoseek.com> This script fails to wait for the second number to be input: ???? read -p "enter number: " num1 read -p "enter another number: " num2 echo "done" From dj@delorie.com Mon Sep 21 19:11:00 1998 From: dj@delorie.com (DJ Delorie) Date: Mon, 21 Sep 1998 19:11:00 -0000 Subject: some unusual errors References: <199809210056.RAA27963@aleph.ssd.hal.com> <9809211418.AA12875.cygnus.gnu-win32@vviuh221.vvi.com> Message-ID: <36070683.167E@delorie.com> > Doesn't the ANSI isspace() prototype > definition take type char ? According to my ANSI spec quick reference, all the is*() functions, including isspace(), take an int and return an int. In fact, it specifically states that in the intro, and says that legal values are EOF or the range of type `unsigned char'. It also states that thus these functions take values as returned by, say, fgetc(), which returns EOF or 0..255 as an `int'. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mickish@cmu.edu Mon Sep 21 19:11:00 1998 From: mickish@cmu.edu (Andrew Mickish) Date: Mon, 21 Sep 1998 19:11:00 -0000 Subject: Java JNI with GNU-WIN32 gcc Message-ID: <360650CC.5EAB82C8@cmu.edu> FAQ Maintainers: Please add this info to your sites. _________________________________________________________________ Subject: More Java JNI with GNU-WIN32 gcc Date: Tue, 30 Jun 1998 14:05:03 -0400 From: Andrew Mickish To: gnu-win32@cygnus.com Here are a few more issues that came up when trying to compile a JNI DLL with gcc. * There are two different problems that could cause Unsatisfied link errors. One is if the DLL is not found, and the other is if the DLL is found but is unreadable or the specific function cannot be found in it. These problems are distinguishable by the stack trace that you get below the "Unsatisfied link error," and also by testing for changes in behavior when you run Java after deliberately deleting the DLL or deliberately renaming some arbitrary text file to be your DLL. * The directory containing the DLL ought to be in your PATH. The recommended way to set your path is to change it with the System control panel and open a new window. The cygnus.bat file munges the path a little itself, so my own path ends up looking like this: bash-2.01$ echo $PATH /Cygnus/B19/H-i386-cygwin32/bin:/WINNT/system32:/WINNT:/utils:/enscript://E/jdk1.1.5/bin://E/java/HelloWorld * I had to hand-edit the DEF file and put in an alias for the exported function. Without the alias, it seems that Cygnus is exporting the mangled name of the function with its offset ("...@8") and Java is looking for an unmangled name. My DEF file looks like this: bash-2.01$ cat hello.def EXPORTS Java_HelloWorld_displayHelloWorld=Java_HelloWorld_displayHelloWorld@8dll_entry@12 Please let me know if any of this has been helpful. --Andrew Mickish mickish@cmu.edu __________________________________________________________________ Subject: Java JNI with GNU-WIN32 gcc Date: Thu, 11 Jun 1998 19:48:11 -0400 From: Andrew Mickish To: gnu-win32@cygnus.com > With significant help from Bill Pringlemeir, I figured out how to > compile Sun's JNI tutorial HelloWorld example under GNU-WIN32 with > gcc. I will keep a ZIP file of the gcc-compatible code at > http://www.andrew.cmu.edu/~am2q/HelloWorld.zip for future reference. > > Please add this information to the GNU-WIN32 documentation and FAQ. > As of version 19.1, it is significantly more complicated to compile > a Java-compatible DLL under gcc than under Microsoft Visual C++. > Even printf() does not work in a gcc-compiled DLL, even thoough it > works fine with VC++. Will this be changing with future releases > of GNU-WIN32? > > Here are a few hints for how to compile a trivial JNI-compaible DLL > with gcc: > > 1) You need init.cc, an element of building relocatable DLLs > > 2) There is a complicated linking procedure involving ld and > intermediate files: > > ld --base-file hello.base --dll -o hello.dll HelloWorldImp.o > init.o $(LIB) -e _dll_entry@12 > dlltool --as=as --dllname hello.dll --def hello.def > --base-file hello.base --output-exp hello.exp > ld --base-file hello.base hello.exp --dll -o hello.dll > HelloWorldImp.o init.o $(LIB) -e _dll_entry@12 > dlltool --as=as --dllname hello.dll --def hello.def --base-file > hello.base --output-exp hello.exp > ld hello.exp --dll -o hello.dll HelloWorldImp.o init.o $(LIB) > -e _dll_entry@12 > > 3) Printf will not work here. Use a Windows dialog box or > call back into Java to invoke System.out.println(): > > void jprintf (JNIEnv *env, char* str) { > > jstring jstr = (*env)->NewStringUTF(env, str); > jclass System_class = (*env)->FindClass(env, > "java/lang/System"); > jfieldID fid_out = (*env)->GetStaticFieldID( > env, System_class, "out", > "Ljava/io/PrintStream;"); > jobject out = (*env)->GetStaticObjectField( > env, System_class, fid_out); > jclass PrintStream_class = (*env)->FindClass(env, > "java/io/PrintStream"); > jmethodID mid_println = (*env)->GetMethodID(env, > PrintStream_class, > "println", > (Ljava/lang/String;)V"); > if (mid_println == 0) { > exit(1); > } > (*env)->CallVoidMethod(env, out, mid_println, jstr); > } > > > JNIEXPORT void JNICALL Java_HelloWorld_displayHelloWorld( > JNIEnv *env, jobject obj) > { > (void)env; (void)obj; > MessageBoxA(NULL,"Hello Jupiter!", "Hello world!", 0); > jprintf(env, "Hello Uranus!\n"); > return; > } > > > A collection of files that implement Sun's JNI HelloWorld example > may be found at http://www.andrew.cmu.edu/~am2q/HelloWorld.zip > > --Andrew Mickish > mickish@cmu.edu > To : gnu-win32 at cygnus dot com Subject : Java JNI with GNU-WIN32 gcc >From : Andrew Mickish Date : Thu, 11 Jun 1998 19:48:11 -0400 With significant help from Bill Pringlemeir, I figured out how to compile Sun's JNI tutorial HelloWorld example under GNU-WIN32 with gcc. I will keep a ZIP file of the gcc-compatible code at http://www.andrew.cmu.edu/~am2q/HelloWorld.zip for future reference. Please add this information to the GNU-WIN32 documentation and FAQ. As of version 19.1, it is significantly more complicated to compile a Java-compatible DLL under gcc than under Microsoft Visual C++. Even printf() does not work in a gcc-compiled DLL, even thoough it works fine with VC++. Will this be changing with future releases of GNU-WIN32? Here are a few hints for how to compile a trivial JNI-compaible DLL with gcc: 1) You need init.cc, an element of building relocatable DLLs 2) There is a complicated linking procedure involving ld and intermediate files: ld --base-file hello.base --dll -o hello.dll HelloWorldImp.o init.o $(LIB) -e _dll_entry@12 dlltool --as=as --dllname hello.dll --def hello.def --base-file hello.base --output-exp hello.exp ld --base-file hello.base hello.exp --dll -o hello.dll HelloWorldImp.o init.o $(LIB) -e _dll_entry@12 dlltool --as=as --dllname hello.dll --def hello.def --base-file hello.base --output-exp hello.exp ld hello.exp --dll -o hello.dll HelloWorldImp.o init.o $(LIB) -e _dll_entry@12 3) Printf will not work here. Use a Windows dialog box or call back into Java to invoke System.out.println(): void jprintf (JNIEnv *env, char* str) { jstring jstr = (*env)->NewStringUTF(env, str); jclass System_class = (*env)->FindClass(env, "java/lang/System"); jfieldID fid_out = (*env)->GetStaticFieldID(env, System_class, "out", "Ljava/io/PrintStream;"); jobject out = (*env)->GetStaticObjectField(env, System_class, fid_out); jclass PrintStream_class = (*env)->FindClass(env, "java/io/PrintStream"); jmethodID mid_println = (*env)->GetMethodID(env, PrintStream_class, "println", "(Ljava/lang/String;)V"); if (mid_println == 0) { exit(1); } (*env)->CallVoidMethod(env, out, mid_println, jstr); } JNIEXPORT void JNICALL Java_HelloWorld_displayHelloWorld(JNIEnv *env, jobject obj) { (void)env; (void)obj; MessageBoxA(NULL,"Hello Jupiter!", "Hello world!", 0); jprintf(env, "Hello Uranus!\n"); return; } A collection of files that implement Sun's JNI HelloWorld example may be found at http://www.andrew.cmu.edu/~am2q/HelloWorld.zip --Andrew Mickish mickish@cmu.edu - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From marshall@dclink.com Mon Sep 21 21:12:00 1998 From: marshall@dclink.com (Nicholas Marshall) Date: Mon, 21 Sep 1998 21:12:00 -0000 Subject: any directx examples? Message-ID: <002a01bde5ba$d5854280$8120a8cf@wopr-no.-523> i have also had some syntax and parse errors. mostly in objidl.h, objbase.h and mmsystem.h. that why i wanted some examples to see what i wasnt doing right... nothing compex just a makefile and some code... also i was missing wtypes.h so i stole the one from lcc but it was empty. could that have something to do it? thanz for the help nick -----Original Message----- From: tstokes@pacbell.net Date: Monday, September 21, 1998 1:10 PM Subject: Re: any directx examples? >I got it to work but with some pain. First, you have to create the header >file Peter discusses in his README. In my case, I had to create an >additional header file to eleminate the remaining syntax errors. That part >was strictly fix each error one step at a time. Also this was C. Don't know >about C++. > > Tom > > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Mon Sep 21 21:12:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Mon, 21 Sep 1998 21:12:00 -0000 Subject: More NT inetd questions Message-ID: <3606E6CD.CEF03563@ece.gatech.edu> I have gnu-win up and running, and am trying to set up Sergey's remote tools package. I have installed inetd as a service using srvany, and it seems to start running ok - at least according to the "services" control panel applet. It is running under a local account, "services" which is a member of the "Users" group, but with permission added to allow: "Act as part of operating system," "Replace a process level token," and "Increase quotas." However, I can't seem to telnet into my machine. Even using localhost, I get the following: cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... Connected to belgarion.res.gatech.edu Escape character is '^]'. Connection closed by foriegn host. cwilson : BELGARION : ~ > I get similar transcripts telnetting in from other machines. However, I know that _something_ is running, because if I stop inetd from the "services" control panel applet, the transcript looks like this: cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... telnet: Unable to connect to remote host: error 111 cwilson : BELGARION : ~ > Does anyone know what the problem is, and how to fix it? --Chuck Wilson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From william.stacey@voyager.net Mon Sep 21 21:12:00 1998 From: william.stacey@voyager.net (William Stacey) Date: Mon, 21 Sep 1998 21:12:00 -0000 Subject: GMP for NT Message-ID: <19980922041558.13271.qmail@findmail.com> Is there a GMP library I can use with MS C++ 6.0 under NT? ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Mon Sep 21 21:12:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Mon, 21 Sep 1998 21:12:00 -0000 Subject: some unusual errors References: <3603E268.3CE39511@crocodial.de> Message-ID: <199809211655.MAA13243@venus.solidum.com> >>>>> "Benjamin" == Benjamin Riefenstahl writes: Benjamin> a) Specification: The functions all take "int"s in the range 0 Benjamin> to UCHAR_MAX plus EOF. This is the same range that getc() returns. It is Benjamin> *not* the same range as "char", but OTOH "unsigned char" is a subset of Benjamin> this range, so with regular strings one usually should cast like this Benjamin> for(s = s00; isspace((unsigned char)*s); s++) Benjamin> b) The functions are usually implemented as macros which look Benjamin> up the answers in a static array. I think what the compiler complains Benjamin> about is, that you use a (signed) "char" to index into an array Then the routines should cast the argument appropriately, or the routines should be functions and cast things appropriate, or "char" should be by default unsigned. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Mon Sep 21 22:08:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: some unusual errors References: <199809210056.RAA27963@aleph.ssd.hal.com> <9809211418.AA12875@vviuh221.vvi.com> Message-ID: <19980922150642.32947@murlibobo.cs.mu.OZ.AU> On 21-Sep-1998, David Young wrote: > > isspace() takes an int whose value must be in the range 0 to > > ... > > it should be casting the parameter to int so it will ... > > ACK! > > Doesn't the ANSI isspace() prototype definition take type char ? No, I'm afraid not. It takes an int, which should be either an unsigned char cast to int, or EOF. -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhar@tardis.ed.ac.uk Mon Sep 21 22:08:00 1998 From: jhar@tardis.ed.ac.uk (Jonathan Harris) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> <360195ca.723780@mail.weiser.saale-net.de> <36031431.30D59202@erols.com> <199809211525.KAA22071@marshall.aus.edsr.eds.com> Message-ID: <3606869E.C9F8DFF1@tardis.ed.ac.uk> Larry Smith wrote: > > Windows shortcuts and cygnus symbolic links are two different > animals. The cygnus code does its best to implement the semantics of > Unix semantic links without help from the operating system. And as far > as the Cygnus code is concerned, a .lnk file is just another > binary-format file with some wierd contents. I don't understand why cygwin invents its own bogus file format for softlinks when there is an existing (equally bogus) documented API for the shortcuts used by Windows Explorer (called "Shell Links" in the MS docs). OK, you'd have to link cygwin.dll against ole32.dll, but the added functionality would be a big win. In the common case of having few or no shortcuts in a directory, it would not be noticeably slower to look for Explorer shortcuts on all *.lnk files than the current practice of looking for cygwin softlinks on all files with the System attribute. > Whether your program of > interest chooses to follow through cygnus symbolic links or Windows > shortcut files (or both) is up to the application. XEmacs doesn't currently understand cygwin shortcuts or Explorer shortcut files (but neither do most Windows programs other than Explorer itself and the File/Open dialog [1]). There's no intrinsic reason why it couldn't do the same magic as Explorer or cygwin. Jonathan. [Please cc me or xemacs-nt@xemacs.org on any replies; I don't subscribe to gnu-win32@cygnus.com] [1] eg try: notepad "C:\WINNT\Profiles\Default User\Start Menu\Programs\Accessories\calculator.lnk" -- Jonathan Harris | jhar@tardis.ed.ac.uk London, England | Jonathan.Harris@symbian.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Mon Sep 21 22:08:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: some unusual errors References: <360479DF.EBF9EA17@erols.com> Message-ID: <199809211649.MAA13138@venus.solidum.com> >>>>> "Matthew" == Matthew O Persico writes: Matthew> Michael Richardson wrote: >> >> I get a lot of warnings like this: >> >> strtod.c:1239: warning: subscript has type `char' >> >> This line of code is actually: >> >> for(s = s00; isspace(*s); s++) >> >> which confuses me. What, if not "char" should isspace() take??? >> Matthew> int. In the bad old days (pre-ANSI) ints and chars swapped positions Matthew> more often than Clinton does, apparently. Try this (UNTESTED!) Matthew> for(s = s00; isspace((int)*s); s++) Matthew> You could have found this out a lot faster from any good 'C' book, esp Matthew> K&R. Yes, I understand that. So? Promote the char to int. End of problem. I shouldn't have to write that cast! I don't get this warning on any other system using GCC. (Linux, NetBSD, Solaris). So I assume that there is something up with either the macro or the prototype of isspace() on Cygwin. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tprince@cat.e-mail.com Mon Sep 21 22:08:00 1998 From: tprince@cat.e-mail.com (tprince@cat.e-mail.com) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: FWD: PROBLEM WITH DU -Reply Message-ID: <4.19980921.10.45.22.405313@cat.e-mail.com> I too am running on NT4/SP3. For me, du has no trouble with the Winnt directories, which are installed on //c. However, the command du //d processes only the first folder correctly, and fails as you describe. I am using B19.1/new-cygwinb19.dll, as I have not been able to connect to the Okhapkin site from the office, together with bash from cdk.exe. Perhaps we should try this again with coolview. I don't reproduce the problem you describe with du failing to read the starting directory path. "On NT Server 4SP3+some hotfixes, the following occurs when executing du: Only the size of the first few directores are displayed. For the rest of them, du says "du: d:\/WINNT: No such file or directory" although the first ones have been shown correctly. The command "du" has been run from 4nt shell, not bash. I have not tested under bash. Under NT's cmd.exe the result is identical. If the first directories encountered contain subdirectories they will be displayed correctly. I have tried to give du parameters in DOS (\) and unix (/) fashions but none works. Moreover, if I run "du ..", "du ../" or "du ..\" it will show the usage of the current (!!!) directory alone. " Dr. Timothy C. Prince Consulting Engineer Solar Turbines, a Caterpillar Company alternate e-mail: tprince@computer.org To: INTERNET - IBMMAIL I5716149 - IBMMAIL - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Mon Sep 21 22:08:00 1998 From: vance@deneb.com (Stephen Vance) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: Remote tar Message-ID: <3606D8BE.BBFCADE2@deneb.com> I have been trying to use the Cygwin tar to backup remotely to a tape drive on a Linux host, but get error messages that the remote host or device can't be found. I have verified that I can rsh to the Linux box, although the rsh being used is the WinNT version. I have also used the Linux tar on the machines other boot personality successfully to backup up remotely. I stopped short of installing ssh and trying to use it as the --rsh-program, although I did explicitly specify the WinNT version with no different behavior. Does anyone know why this doesn't work? Current theories are: 1) WinNT rsh does not supply the necessary piping functionality for the rmt interface. 2) The binary open issue is rearing its ugly head yet again. 3) This functionality has never been tested or explicitly ported under Cygwin. For reference, the command being used is tar cvf kat:/dev/st0 . -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Mon Sep 21 22:08:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: Linking with Borland C Message-ID: <19980922014735.27672.rocketmail@send1b.yahoomail.com> ---Juergen Bausa wrote: > > > The real problem is to execute a function in a cygnus-made dll, that > uses functions like 'malloc'. I think these functions are not correctly > initialized when the dll is loaded by a non-cygnus program. So, my question > is: Is your example still working if you use this function foo: > > > int foo(int n) > > { > int i; > double *a=malloc(n*sizeof(double)); > > > for(i=0;i i=(int)a[n-1]; > free(a); > > return i; > } > IMHO it is most likely that functions that use malloc within the cygwin.dll or functions built with the cygwin that use malloc routines will always be a problem outside of the cygwin environment. The cygwin malloc emulates the UNIX functions including external variables controlling the size of memory. Since those variables don't exist naturally in Win32, if you expect it to work at all you would have to take care that the external variables were properly initialized and to use the cygwin mmalloc.a library. Others who are more intune with the workings of the cygwin malloc, I'm I wrong with this? If not, what would have to be initialized and how? == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Mon Sep 21 22:08:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: Problems with Mercury Message-ID: <0EZN00J147372O@mail.hac.com> Thanks for the information. I've downloaded the latest egcs from Mumit's site, and the Mercury snapshot -rtod-1998-09-18-.. Unfortunately, I didn't have time over the weekend to take the next step. In the meantime, I've resolved the CRLF problem with my installation, and I expect that everything will go smothly next time! I'll let you know. John Velman ______________________________ Reply Separator _________________________________ Subject: Re: Problems with Mercury Author: fjh@cs.mu.OZ.AU at mime Date: 9/18/98 2:15 AM ---john_r_velman@mail.hac.com wrote: > > Has anyone successfully compiled and installed Mercury lately? [ other responses sniped out to save bits] A STATUS_ACCESS_VIOLATION is a quite common diagnostic which can have a range of different causes, and in this particular case I don't think the problem was related to the use of fork(). As I said in my previous mail, the problems have been solved in the lastest snapshot of the Mercury distribution and in the versions of egcs/binutils available at Mumit Khan's site. -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jjf@bcs.org.uk Mon Sep 21 22:08:00 1998 From: jjf@bcs.org.uk (J. J. Farrell) Date: Mon, 21 Sep 1998 22:08:00 -0000 Subject: some unusual errors References: <9809211418.AA12875@vviuh221.vvi.com> Message-ID: <199809212009.NAA00026@aleph.ssd.hal.com> > From dyoung@vviuh221.vvi.com Mon Sep 21 07:09:45 1998 > > > isspace() takes an int whose value must be in the range 0 to > > ... > > it should be casting the parameter to int so it will ... > > ACK! > > Doesn't the ANSI isspace() prototype definition take type char ? > > Why be non-ANSI compliant? > Instead of changing the macro, why not change the function prototype itself. I think you've misunderstood something - my apologies if I was unclear. A Standard C library is required to include a function implementation of all its interfaces, and may optionally also provide a macro version. The caller was passing a char to isspace() and receiving complaints from the compiler which seemed to be due to this char being used as an array subscript in the macro expansion. isspace() is prototyped as isspace(int); if the caller were using the function version (either by doing an '#undef isspace' before calling it, or calling it in a way which suppresses the macro expansion, such as (isspace)(whatever)), then the prototype would be effective, and the char would have been silently and correctly widened to an int. He used the macro version, so the function prototype isn't relevant, and it seems that this version of the macro doesn't do the conversion to int which would have been done if he had used the function version. After a brief look, I can't find any wording in the Standard that requires a macro implementation to convert its parameters in the same way that the function version does; and a look at another implementation shows that it doesn't cast the parameter either. However, as a Quality of Implementation issue, I think that the macro implementations should do all they reasonably can to behave in the same way as the function implementations, and it is trivial in this case for the macro to cast its parameter to an int. This is particularly true when the compiler can be made to issue entirely spurious warnings about a char being used as an array subscript! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From p.dalgaard@biostat.ku.dk Tue Sep 22 06:08:00 1998 From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA) Date: Tue, 22 Sep 1998 06:08:00 -0000 Subject: some unusual errors References: <199809211652.MAA13143@venus.solidum.com> Message-ID: Michael Richardson writes: > >> strtod.c:1239: warning: subscript has type `char' > >> which confuses me. What, if not "char" should isspace() take??? > > Michael> As all is functions it takes an *int* or *unsigned char* ! > > > Michael> int isalnum (int c); > Michael> int isalpha (int c); > > Why would you say "unsigned char"?? > It says "int" to me. > So, a signed char should promote to int just fine. ...with everything above 127 mapping to negative numbers! -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Tue Sep 22 06:08:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Tue, 22 Sep 1998 06:08:00 -0000 Subject: Windows98 + inetutils References: <199809211516.MAA07773@swan2.uspnet.usp.br> Message-ID: <36074F76.C69EC1C4@uni-duesseldorf.de> > > yes, it does on NT. But since I'm on an Win98 box, I'm using a patched login.c > > file in my case. > > > that would be a good addition to CygWin. It add one more feature > for the poor Win 9X user, previously available only for the NT > users. > > What Cygnus people think about it? unfortunatly it is NOT safe for realy using it as remote package. Users have only access to the machine if authentification is valid, but after that they can do what ever they want in the file system, i.e. delete system files etc. I'll be working on a workaround to provide a minimum of security space in this cases. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From benny@crocodial.de Tue Sep 22 06:08:00 1998 From: benny@crocodial.de (Benjamin Riefenstahl) Date: Tue, 22 Sep 1998 06:08:00 -0000 Subject: some unusual errors References: <199809211655.MAA13243@venus.solidum.com> Message-ID: <36077457.96F4F12E@crocodial.de> Hi Michael, > >>>>> "Benjamin" == Benjamin Riefenstahl writes: > Benjamin> ... isspace((unsigned char)*s); ... Michael Richardson wrote: > Then the routines should cast the argument appropriately, or the routines > should be functions and cast things appropriate, or "char" should be by > default unsigned. - By the definition of the interface, an internal cast is out of the question (the interface is defined to handle EOF correctly and that usually means handling it differently from '\xFF'). - You can replace the routines with functions in the RTL by #undefining the macros, but that doesn't gain you anything here, negative char values (except EOF) would still cause undefined behaviour (i.e. may crash). OTOH the warning would go away, which I would consider a bad thing, being that it hightlights a real problem, and the performance would suffer. - You can make char unsigned in gcc (-funsigned-char), but if you rely on that in your code, it would be non-portable. You're basically right, the defined interface is not as user friendly as it pretends to be. Still it's the defined interface, and for the time being neither you nor me can change the definition and changing a particular implementation doesn't buy me enough to do it (I used to do that, but nowadays I rather write portable code). so long, benny ====================================== Benjamin Riefenstahl (benny@crocodial.de) Crocodial Communications EntwicklungsGmbH Ruhrstra????e 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From olleo@sics.se Tue Sep 22 06:22:00 1998 From: olleo@sics.se (Olle Olsson) Date: Tue, 22 Sep 1998 06:22:00 -0000 Subject: Windows98 + inetutils References: <199809211516.MAA07773@swan2.uspnet.usp.br> Message-ID: <36079E63.444EF684@sics.se> Being able to mimic an ordinary Unix way of handling users/groups/passwords/... via "/etc"-files seems like useful approach. The core API functionality remains the same to a large extent, the difference is only in where things are stored and updated. To what extent can one have *one* implementation of the API? What if there are /etc files on an NT, should these or the NT-owned structures be used. Presumably, as Windows95 (Windows98?) is weak on security, the NT-way of handling it should be used on the NT, while on Windows9x the file-based approach is taken. This would enable a wider portability, something that simplifies management of the system. /olle Hilton Fernandes wrote: > On 13 Sep 98 at 22:31, Stipe Tolj wrote: > > > > But it gets the password from the NT SAM ! > > > > yes, it does on NT. But since I'm on an Win98 box, I'm using a patched login.c > > file in my case. > > > > Hello Stipe, > > that would be a good addition to CygWin. It add one more feature > for the poor Win 9X user, previously available only for the NT > users. > > What Cygnus people think about it? > > Regards, > --Hilton > > > -- > > Stipe Tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Tue Sep 22 06:22:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Tue, 22 Sep 1998 06:22:00 -0000 Subject: server X References: <01BDDD75.00B69600@sos> Message-ID: <3607A48D.311B41C6@sigma6.com> David Fox wrote: > Sergey Okhapkin writes: > > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct > > video hardware access. > > Could you expand on this further? Why is direct video hardware access > more of a problem under windows than it is under Unix? (A small clarification to Sergey's post: XFree86 is designed for video framebuffer access. It need not access video registers directly. Recent work in Linux for example has moved video drivers out of X and into the kernel; X opens the display via the /dev/fb device.) The big difference is that under Unix, the X server controls the entire display. Under Win32 however, X has to cooperate with the native window subsystem. I think that precludes an X server from accessing video memory from Win32 (does anyone know otherwise?). It may be able to write to backing store... I'm not sure if this is better (easier or more efficient, that is) than just translating X drawing requests into GDI requests. If it turns out that the "virtual framebuffer" technique is feasible, I'd contend that the XFree86 source is a better starting point than TOG's X11R6.4, since they have cleaned up and fixed a lot of the cfb code. -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lat@iki.fi Tue Sep 22 06:22:00 1998 From: lat@iki.fi (Lassi A. Tuura) Date: Tue, 22 Sep 1998 06:22:00 -0000 Subject: some unusual errors References: <199809211652.MAA13143@venus.solidum.com> Message-ID: |> Why would you say "unsigned char"?? |> It says "int" to me. |> So, a signed char should promote to int just fine. The only negative value allowed with these functions is EOF (if it is negative)---see the quotes earlier in this thread. If you have a signed character that really is negative, it will promote to a negative integer and you end up with undefined behaviour. gcc is nice enough to give you a warning about that. You need to cast the character to `unsigned char' before using it in the is* predicates. Cheers, //lat -- With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. --RFC1925, "The Twelve Networking Truths" - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ahier@swi.com Tue Sep 22 09:21:00 1998 From: ahier@swi.com (ahier@swi.com) Date: Tue, 22 Sep 1998 09:21:00 -0000 Subject: QUestion with regards to ICMP and support for AF_UNIX family calls. References: <19980921153124.61419@cygnus.com> Message-ID: <199809221621.MAA09165@columbia> Hello Geoffrey: I don't believe I have ever sent the message below. I don't know how my name got connected to this question. Regards, -dave ahier > > On Thu, Sep 17, 1998 at 12:30:07PM -0400, David Ahier wrote: > > > > I notice that icmp.h in cygwin32 directory is empty. > > I think it hasn't ever really been worked on. > > > Will CYGWIN32 have the support for AF_UNIX family calls that use > > sockaddr_un structure. > > AFAIK, nobody is working on this. If someone cares enough about this > stuff to work on it and send in some patches, I'll look into > integrating them... > > -- > Geoffrey Noer > noer@cygnus.com > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Tue Sep 22 18:03:00 1998 From: lhall@rfk.com (Larry Hall (RFK Partners Inc)) Date: Tue, 22 Sep 1998 18:03:00 -0000 Subject: read doesn't read the second time References: <000701bde592$ff92d240$0bd205c6@topgun.infoseek.com> Message-ID: <3.0.5.32.19980922123743.00acbe40@pop.ma.ultranet.com> At 12:06 PM 9/21/98 -0700, Steve Kirsch wrote: >>>> This script fails to wait for the second number to be input: read -p "enter number: " num1 read -p "enter another number: " num2 echo "done" <<<< This is a well-known bug that should be in the FAQ by now (especially because it comes up every few weeks!) I believe the current work-around is to use CTRL-J rather than enter at the end of the user input... Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jgloudon@bbn.com Tue Sep 22 18:03:00 1998 From: jgloudon@bbn.com (Jason Gloudon) Date: Tue, 22 Sep 1998 18:03:00 -0000 Subject: B19 : cd in bash (95) Message-ID: <3.0.1.32.19980922170852.006af640@manitoba.bbn.com> With B19 on Windows 95 cd in bash does unusual things when given directory names consisting of 3 or more "." 's . BASH.EXE-2.01$ pwd / BASH.EXE-2.01$ cd ... BASH.EXE-2.01$ pwd /... BASH.EXE-2.01$ cd .... BASH.EXE-2.01$ pwd /.../.... and so on -- Jason Gloudon - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tim@carrolldata.com Tue Sep 22 18:03:00 1998 From: tim@carrolldata.com (Tim Sell) Date: Tue, 22 Sep 1998 18:03:00 -0000 Subject: B19.1 under NT 4.0sp3: "cp -p" doesn't preserve modification date/time Message-ID: <360834FC.DE07A658@carrolldata.com> If you copy a file using "cp -p" or "cp -a", the modification date/time of the destination file is supposed to be set equal to the modification date/time of the source file. Instead, the destination file appears to be stamped with the current date/time. (Just as if you had entered your "cp" without the "p" or "a" option.) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dj@delorie.com Tue Sep 22 18:03:00 1998 From: dj@delorie.com (DJ Delorie) Date: Tue, 22 Sep 1998 18:03:00 -0000 Subject: some unusual errors References: <199809222030.QAA25521@venus.solidum.com> Message-ID: <199809222056.QAA20551@indy.delorie.com> > isspace(foo[3]) has been around for a *LONG* time. It shouldn't > break. I agree it would be nice if the program didn't crash in those conditions, and even better if it worked correctly, but relying on the runtime to protect the computer from the programmer is a bad way to start your morning. > I will fix my code to use unsigned char's, fine, but I suggest that > gnu-win32 make char unsigned by default then. IRIX has unsigned chars by default. You do NOT want that as a default! Many programs assume "char" can hold small negative numbers, and fail in subtle ways on unsigned-char machines. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 22 18:03:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 22 Sep 1998 18:03:00 -0000 Subject: g++ executables / bash window References: <3606BD64.79CA@lucky.fr> Message-ID: <19980922180310.22826@cygnus.com> On Mon, Sep 21, 1998 at 10:56:04PM +0200, Romain Behar wrote: > > I've been using FreeBSD, then installed GNU-Win32B19 on NT4. > I noticed that g++ executables are very big when compiled with > GNU-Win32, that is 330Kb for a simple `cout << "Hello world!";' while > the C version is less than 20Kb. > Under FreeBSD which runs GNU g++ too, there is no such a differnce. These is the same source, compiled for both platforms? I bet they're not. > Is there a compiler option that reduces executable size to its minimum? Try adding -fno-rtti -fno-exceptions into the mix... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Tue Sep 22 19:41:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: Unix pathname -> DOS pathname References: <000001bde57b$7d7faf60$fa01a8c0@KOMUN.artefaktur.de> Message-ID: <3607F8B0.B53F17CA@ece.gatech.edu> I don't know if anybody has mentioned this yet, but cygpath.exe from Sergey's coolview patch allows you to convert to/from Dos/Unix pathnames. Get it at ftp://www.lexa.ru/pub/domestic/sos/coolview.tar.gz --Chuck Wilson Roger Ren???? Kommer wrote: > Hi, > > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > > > from: /usr/local/myfile > > > > > > to: D:\local\myfile > > > > > > (in the example /usr is mounted on D:) > > > > Hey, you just did! (Sorry, couldn't resist.) > Actually it is more interessant, how to do it in shell scripts. > One possibility is to launch > echo `cmd.exe /c cd` > to get the cwd in DOS/NT syntax, but the performance could be > better. > Does anybody know a better solution? > > Roger > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From JKraaijeveld@askesis.nl Tue Sep 22 19:41:00 1998 From: JKraaijeveld@askesis.nl (Joost Kraaijeveld) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: CygWin32 B19: Bug signal SIGSEGV in cygwin_statu() Message-ID: <000001bde64c$5202cc60$0200a8c0@panoramix> Hi, I posted this message earlier but no one responded. Maybe I did not make my problem clear enough (I mentioned EGCS instead of CygWin...). While running a program in the debugger (gdb) I get the following message: Program received signal SIGSEGV, Segmentation fault. 0x55cc60 in cygwin_statu () I downloaded the source of CygWin32 B19, could find a class definition of the class per_process (of which cygwin_statu is an instance) but as far as I can find there seems no implementation of the class. So I assume that the message relates to the compiler generated ctor. Is this correct? Does anyone has an idea of how to attack such error? Joost Joost Kraaijeveld Askesis B.V. Groenewoudseweg 46 6524VB Nijmegen tel: 024-3888063 fax: 024-3608416 web: http:/www.askesis.nl - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From madarasz@erols.com Tue Sep 22 19:41:00 1998 From: madarasz@erols.com (Alex P. Madarasz, Jr.) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: cd'ing to a shortcut References: <36094125.7803320@mail.weiser.saale-net.de> Message-ID: <199809221646.MAA13022@smtp1.erols.com> Michael Weiser wrote on 20 Sep 98, 17:55 : > > >> You simply cannot cd into Windows shortcuts because cygwin32 doesn't > >> know about .lnk files and their magic. > > > >It's too bad they're not so magical -- only the explorer shell knows > >about them, not the file system. They're good as far as they go; the > >problem is they don't go very far, not even in the Windows world. > > Jep, agreed. Real softlinks shouldn't be any problem on NTFS... Actually, AFAIK only the POSIX layer of NT 4 exposes link features, and ?only for hard links. NT 5 NTFS supports "reparse points", which sound like they should have all the features needed for Unix-like links. -- Alex P. Madarasz, Jr. -- madarasz@erols.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dj@delorie.com Tue Sep 22 19:41:00 1998 From: dj@delorie.com (DJ Delorie) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: some unusual errors References: <9809211418.AA12875@vviuh221.vvi.com> <199809212009.NAA00026.cygnus.gnu-win32@aleph.ssd.hal.com> Message-ID: <36080502.41C6@delorie.com> J. J. Farrell wrote: > isspace() is prototyped as isspace(int); if the caller > were using the function version, then the prototype would > be effective, and the char would have been silently and > correctly widened to an int. No, the char would have been silently and INcorrectly widened to a *signed* int, resulting in a range of values of -128..127. That is not the legal range of values for the is*() functions. The legal range of values for is*() is 0..255 and EOF. The automatic widening of a [default signed] char results in signed int values in the range -128..127. You cannot rely on the automatic widening to give correct results. On a side note, using a signed char as the input makes it impossible to tell the difference between character 255 and the traditional EOF value of -1, as both have the same bit pattern (0xff) when stored in a signed char variable. Because there are 257 legal parameter values for is*(), an 8-bit variable is simply too small to represent them without loss or inaccuracy. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Tue Sep 22 19:41:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: Permissions? Message-ID: <0EZP0080HCUR9T@mail.hac.com> Can someone point me to an explanation of how Cygwin handles permissions, and -- specifically -- how I can get root permission? I just ran a-foul of trying to configure a package where configure tests to see if it can find the sources by testing for a certain file to be readable. It turned out that this particluar package had a lot of permissions set to -rw-r-----. Probably this is the case in a number of directories as well as a lot of files in this directory. I could try changing all permissions in all directories with find, but it would be a lot cleaner to be able to do an su like I do on my Linux box. And by the way, how does Cygwin know what the permisions are, anyhow? It appears that this has little if anything I can find in explorer file properties. Thanks, John Velman jrvelman@mail.hac.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Tue Sep 22 19:41:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: More NT inetd questions Message-ID: <36080BC6.725FF3F8@ece.gatech.edu> I have gnu-win up and running, and am trying to set up Sergey's remote tools package. I have installed inetd as a service using srvany, and it seems to start running ok - at least according to the "services" control panel applet. It is running under a local account, "services" which is a member of the "Users" group, but with permission added to allow: "Act as part of operating system," "Replace a process level token," and "Increase quotas." However, I can't seem to telnet into my machine. Even using localhost, I get the following: cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... Connected to belgarion.res.gatech.edu Escape character is '^]'. Connection closed by foriegn host. cwilson : BELGARION : ~ > I get similar transcripts telnetting in from other machines. However, I know that _something_ is running, because if I stop inetd from the "services" control panel applet, the transcript looks like this: cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... telnet: Unable to connect to remote host: error 111 cwilson : BELGARION : ~ > Does anyone know what the problem is, and how to fix it? --Chuck Wilson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Tue Sep 22 19:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <360630e4.681980@mail.weiser.saale-net.de> Message-ID: <71Kuu0hppfB@mike.franken.de> Hi Michael, [...] >>Winzip by default also handles .gz und .tgz files - so if one isn't >>aware, that he better should use tar und gzip and only double clicks >>your archive, ... >Mhmm, didn't Mumit mean that? He said: "I distribute .tar.gz, instead of .zip, to avoid such issues" ??? Which issues, when WinZIP can deal with .tar.gz ? >-- >bye, Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 22 19:41:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: Unix pathname -> DOS pathname Message-ID: <19980922170340.28988.rocketmail@send1b.yahoomail.com> ---=?iso-8859-1?Q?Roger_Ren=E9_Kommer?= wrote: > > > Hi, > > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > > > from: /usr/local/myfile > > > > > > to: D:\local\myfile > > > > > > (in the example /usr is mounted on D:) > > > > Hey, you just did! (Sorry, couldn't resist.) > Actually it is more interessant, how to do it in shell scripts. > One possibility is to launch > echo `cmd.exe /c cd` > to get the cwd in DOS/NT syntax, but the performance could be > better. > Does anybody know a better solution? > Take a look at the faq.html#SEC15 This is a list of misc functions of which include what you need. == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From panic@diku.dk Tue Sep 22 19:41:00 1998 From: panic@diku.dk (Arne Glenstrup) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: gcc produces foo.exe, not foo Message-ID: Hello, Apologies if this question has been answered many times before, but I didn't seem to be able to find it in the mailing list archives via the search function. The problem is that it seems that when running gcc -o foo foo.c it produces not a file named foo, but a file named foo.exe. This has caused me problems when writing a Makefile somewhat like bar: foo.c gcc -o foo foo.c mv foo bar because it complains when trying to mv file foo. What is the standard way of circumventing this problem? Simply writing mv foo.exe bar.exe is not a full solution, because that is not portable. Is it necessary to write some autoconf stuff to check what the extension of the executable resulting from calling gcc is? Thanx, -- Arne. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Tue Sep 22 19:41:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Tue, 22 Sep 1998 19:41:00 -0000 Subject: g++ executables / bash window References: <3606BD64.79CA@lucky.fr> Message-ID: <71KuuvJ$pfB@mike.franken.de> Hi Romain, >I've been using FreeBSD, then installed GNU-Win32B19 on NT4. >I noticed that g++ executables are very big when compiled with >GNU-Win32, that is 330Kb for a simple `cout << "Hello world!";' while >the C version is less than 20Kb. Did you strip the executable ? [...] > Romain Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Tue Sep 22 23:12:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: server X References: Message-ID: <71KuuUEppfB@mike.franken.de> Hi David, >Sergey Okhapkin writes: > >> Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct >> video hardware access. > >Could you expand on this further? Why is direct video hardware access >more of a problem under windows than it is under Unix? Because Windows NT doesn't allow any direct access to the hardware. >-- >David Fox http://www.cat.nyu.edu/fox xoF divaD Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Tue Sep 22 23:12:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: read doesn't read the second time References: <000701bde592$ff92d240$0bd205c6@topgun.infoseek.com> Message-ID: <71KuvEvKpfB@mike.franken.de> Hi Steve, [...] >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable [...] >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable Would you please stop this ? Please reconfigure your MUA, so that it does not send mails additionally in HTML format. Thx and bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Tue Sep 22 23:12:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: some unusual errors References: <3606527E.2781@delorie.com> Message-ID: <199809222030.QAA25521@venus.solidum.com> >>>>> "DJ" == DJ Delorie writes: DJ> 3. Remember that getchar() returns in int - for the very same reason, DJ> so that EOF is not in the range of valid characters. getchar() DJ> returns EOF or 0..255, which is NOT the same range as the range for DJ> type `signed char'. DJ> Basically, if you're a programmer and you've stumbled onto this DJ> problem, you have a problem with your code. 60 - For help on using DJ> this list (especially unsubscribing), send a message to I think the problem is posix saying that is* needs to process EOF without deciding if "char" is signed or not. isspace(foo[3]) has been around for a *LONG* time. It shouldn't break. I will fix my code to use unsigned char's, fine, but I suggest that gnu-win32 make char unsigned by default then. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mcr@solidum.com Tue Sep 22 23:12:00 1998 From: mcr@solidum.com (Michael Richardson) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: some unusual errors References: Message-ID: <199809222007.QAA24654@venus.solidum.com> >>>>> "Peter" == Peter Dalgaard BSA writes: Peter> Michael Richardson writes: >> >> strtod.c:1239: warning: subscript has type `char' >> which confuses >> me. What, if not "char" should isspace() take??? >> Michael> As all is functions it takes an *int* or *unsigned char* ! >> Michael> int isalnum (int c); int isalpha (int c); >> Why would you say "unsigned char"?? It says "int" to me. So, a >> signed char should promote to int just fine. Peter> ...with everything above 127 mapping to negative numbers! Yes. That's my problem. The macro is wrong: it should behave in the same way as a prototyped function. :!mcr!: | Solidum Systems Corporation, http://www.solidum.com Michael Richardson |For a better connected world,where data flows faster Personal: mcr@sandelman.ottawa.on.ca. PGP key available. Corporate: mcr@solidum.com. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jjf@bcs.org.uk Tue Sep 22 23:12:00 1998 From: jjf@bcs.org.uk (J. J. Farrell) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: some unusual errors References: <3606527E.2781@delorie.com> Message-ID: <199809222130.OAA02403@aleph.ssd.hal.com> > From: DJ Delorie > > > This looks like a bug in the macro implementation of > > isspace(), to me; it should be casting the parameter to > > int so it will behave in the same way as the function > > implementation. Until a fix appears, your options are: > > This discussion happens a lot in the djgpp newsgroup. The > result is always the same: You can't cast to int in the > macro. Why? Because: No - you're missing the point. isspace() is defined in terms of a prototyped function which takes an int. If I were using the function form instead of the macro form and passed a char as the parameter, that char (or other compatible arithmetic type) would be silently and automatically promoted to an int before the function was invoked, exactly as if it had been assigned to an int. There's little reason why the macro shouldn't include an explicit cast to int which would have almost exactly the same effect as the automatic 'cast' in the function case. > 1. If the programmer used the macro with a char argument > (when char is signed), the macro can't tell the difference > between EOF and char 0xff While this is certainly true, I don't see what it has to do with whether or not the macro can include a cast. Assuming 8-bit chars, 0xff in a signed char is a negative number. Unless it's value happens to equal EOF, it breaks the constraints on allowed values for the ctype functions, and unleashes undefined behaviour. Whether or not it has been promoted to an int is irrelevant. > 2. If char is signed, a cast to int may not do what the > macro is expecting. The is*() macros normally expect a > parameter in the range 0..255 or -1, but if you cast a > signed char to int, you get values in the range -128..127 or > -1, and your program may crash. Again, all true but I don't see the relevance. Signed 8-bit 2's complement chars already have values in the range -128 to 127; casting to an int doesn't change these values. > 3. Remember that getchar() returns in int - for the very > same reason, so that EOF is not in the range of valid > characters. getchar() returns EOF or 0..255, which is NOT > the same range as the range for type `signed char'. I think we may be at cross purposes. Again this is all true (except that there's no guarantee that EOF will be outside the range of valid characters), but doesn't have any relevance to whether or not a macro implementation of isspace() can or should cast its parameter to an int. > Basically, if you're a programmer and you've stumbled onto > this problem, you have a problem with your code. The cases you're talking about are bugs anyway - whether or not the parameter gets promoted to an int is irrelevant. Chars are just small integers; in the usual context of this list, signed chars have values in the range -128 to 127. The values passed to the ctype macros must be in the range 0 to UCHAR_MAX (255 in this context) or EOF which is some specified negative number. The programmer is required to ensure that the parameter has a value in this range. As long as the value is acceptable, he can put it in an int or any arithmetic type he fancies which is smaller than int - including a signed char. That would be correct input to the isspace() function, and ought not to result in spurious messages from the compiler if the macro version is used instead of the function. The best way to make sure such messages don't appear is for the macro to convert the parameter to an int. Whether or not it is sensible to hold characters in signed chars is an entirely different question. It is probably not a good idea in general, especially if you want to use the ctype functions on them. However, if I happen to know that the values held in my signed chars are within the range which is acceptable to the ctype functions, then there's no reason why I can't pass them directly to the functions; I shouldn't end up with confusing messages about using a char as an array subscript! The only problem with including a cast in the macro is that it may suppress warnings if the macro is called with a type which is not compatible with int. A better (but slightly more complex) solution would be for the macro to define a working int and assign the parameter into the int before doing anything else. I should think the compiler ought to be able to optimise out the inefficiencies of this. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Gilles.Depeyrot@wanadoo.fr Tue Sep 22 23:12:00 1998 From: Gilles.Depeyrot@wanadoo.fr (Gilles Depeyrot) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again) Message-ID: <199809221902.VAA16878@wanadoo.fr> Le (the) 18/09/98 18:19, Anders Norlander a ????crit (wrote) : >> I've been trying on and off for several months to create a DLL >> using egcs and loading it into an MSVC 5.0 compiled application >> under Windows 95. >> >> The problem I am encountering is that I succeed in building a >> relocatable DLL (at least I think it is) with egcs and have no >> problem loading it either with a small test program compiled >> either with egcs or with MSVC. >> >> However, I have never succeeded in loading my sample DLL into >> my real life application. LoadLibrary returns NULL and GetLastError >> returns 0 ! > >What if you statically link the DLL with your app? That seems like an interesting test. However, howow should I go about creating a .lib for my DLL in order to link statically in MSVC 5 ? Gilles Depeyrot < mailto:Gilles.Depeyrot@wanadoo.fr > < http://perso.wanadoo.fr/gilles.depeyrot > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pfay@acl.lanl.gov Tue Sep 22 23:12:00 1998 From: pfay@acl.lanl.gov (Patrick J. Fay) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: More NT inetd questions Message-ID: Hello, Another alternative: >From microsoft, beta 2, telnet server, vi, nfs, etc. Free, http://www.microsoft.com/Windows/News/September1998/NTserv4UNIX.asp?custarea=bus&site=ntw&openmenu=&highlighteditem= If that URL doesn't work, then do: http://www.microsoft.com/ntworkstation/default.asp and click on: 'Running in a mixed environment? Download Beta 2 of WINDOWS NT SERVICES FOR UNIX ' Pat Patrick Fay, Ph.D., Intel Corp. email: pfay@co.intel.com Los Alamos National Lab wk: (505) 665-9141 TA3,Bldg 132, MS B272 fax: (505) 665-6333 Los Alamos NM 87545 ASCI-RED http://www.acl.lanl.gov/~pfay/teraflop - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Tue Sep 22 23:12:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: Unix pathname -> DOS pathname References: <000001bde57b$7d7faf60$fa01a8c0@KOMUN.artefaktur.de> Message-ID: <005b01bde65c$244dcc60$44c010ac@gandalf.chromatic.com> Sergei's CoolView package has cygpath to convert from one form to the other (either source, either destination). Recommended! -Peter > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Roger Ren???? Kommer > Sent: Monday, September 21, 1998 9:19 AM > To: David Fox; Alessio Milan > Cc: gnu-win32@cygnus.com > Subject: RE: Unix pathname -> DOS pathname > > > > Hi, > > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > > > from: /usr/local/myfile > > > > > > to: D:\local\myfile > > > > > > (in the example /usr is mounted on D:) > > > > Hey, you just did! (Sorry, couldn't resist.) > Actually it is more interessant, how to do it in shell scripts. > One possibility is to launch > echo `cmd.exe /c cd` > to get the cwd in DOS/NT syntax, but the performance could be > better. > Does anybody know a better solution? > > Roger > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Tue Sep 22 23:12:00 1998 From: lhall@rfk.com (Larry Hall (RFK Partners Inc)) Date: Tue, 22 Sep 1998 23:12:00 -0000 Subject: Shortcuts and shortcuts do not mix [Was: cd'ing to a shortcut] References: <36031431.30D59202@erols.com> <9809081457.AA01063@dns.cise.it> <35FEB085.BE5BE35A@wrc.xerox.com> <360195ca.723780@mail.weiser.saale-net.de> <199809211525.KAA22071@marshall.aus.edsr.eds.com> Message-ID: <3.0.5.32.19980922124110.00ad5e50@pop.ma.ultranet.com> At 10:25 AM 9/21/98 -0500, Larry Smith wrote: >Windows shortcuts and cygnus symbolic links are two different >animals. The cygnus code does its best to implement the semantics of >Unix semantic links without help from the operating system. And as far >as the Cygnus code is concerned, a .lnk file is just another >binary-format file with some wierd contents. Whether your program of >interest chooses to follow through cygnus symbolic links or Windows >shortcut files (or both) is up to the application. > To split a hair, whether an application supports the MS shortcut is application dependent. Whether the application supports the Cygwin32 symbolic link is only application dependent if the application is not compiled with the Cygwin32 environment. Otherwise, support for the symbolic link comes from the cygwinbxx.dll. Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gcheez@tampabay.rr.com Wed Sep 23 02:03:00 1998 From: gcheez@tampabay.rr.com (GoatCheez) Date: Wed, 23 Sep 1998 02:03:00 -0000 Subject: server X Message-ID: <001201bde6b5$dae0da40$1f105c18@B0B> In the most recent version of DirectX (6), another version of DirectDraw was implemented(4). This version allows the locking and unlocking of a video surface without the rest of the windows system to stop... in other words, accessing the cideo memory directly isn't as scary as it previously was. Before, when someone would lock the video memory, the entire cpu would give access to only that program running, which made all other applications cease untill the surface was unlocked. It was done for backwards compatablility or something, but in DirectX6 there's an option to allow the system to respond normally. The old system would also not allow debugging because the debugger wouldn't be running then the surface was locked. A DirectX X server would be a good idea. The only thing needed is some DirectX programmers that are willing to port the XFree86 code... I know a little DirectDraw and would be willing to help, but we would need a lot more. GoatCheez gcheez@tampabay.rr.com -----Original Message----- From: Jeff Sturm To: David Fox Cc: Date: Tuesday, September 22, 1998 7:30 PM Subject: Re: server X >David Fox wrote: >> Sergey Okhapkin writes: >> > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires direct >> > video hardware access. >> >> Could you expand on this further? Why is direct video hardware access >> more of a problem under windows than it is under Unix? > >(A small clarification to Sergey's post: XFree86 is designed for video >framebuffer access. It need not access video registers directly. >Recent work in Linux for example has moved video drivers out of X and >into the kernel; X opens the display via the /dev/fb device.) > >The big difference is that under Unix, the X server controls the entire >display. Under Win32 however, X has to cooperate with the native window >subsystem. I think that precludes an X server from accessing video >memory from Win32 (does anyone know otherwise?). It may be able to >write to backing store... I'm not sure if this is better (easier or more >efficient, that is) than just translating X drawing requests into GDI >requests. > >If it turns out that the "virtual framebuffer" technique is feasible, >I'd contend that the XFree86 source is a better starting point than >TOG's X11R6.4, since they have cleaned up and fixed a lot of the cfb >code. > >-- >Jeff Sturm >jsturm@sigma6.com >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From psbhat@IRGDB.XEEDEL.xeemail.com Wed Sep 23 02:03:00 1998 From: psbhat@IRGDB.XEEDEL.xeemail.com (psbhat@IRGDB.XEEDEL.xeemail.com) Date: Wed, 23 Sep 1998 02:03:00 -0000 Subject: withdraw subscription Message-ID: I wood like to withdraw the subscription from the mailing list psbhat From anorland@hem2.passagen.se Wed Sep 23 02:51:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Wed, 23 Sep 1998 02:51:00 -0000 Subject: [HELP] Loading Mingw32 built DLLs into an MSVC application (again) References: <199809221902.VAA16878@wanadoo.fr> Message-ID: <3608C460.129CE64B@hem2.passagen.se> Gilles Depeyrot wrote: > > Le (the) 18/09/98 18:19, Anders Norlander a ????crit (wrote) : > > >> I've been trying on and off for several months to create a DLL > >> using egcs and loading it into an MSVC 5.0 compiled application > >> under Windows 95. > >> > >> The problem I am encountering is that I succeed in building a > >> relocatable DLL (at least I think it is) with egcs and have no > >> problem loading it either with a small test program compiled > >> either with egcs or with MSVC. > >> > >> However, I have never succeeded in loading my sample DLL into > >> my real life application. LoadLibrary returns NULL and GetLastError > >> returns 0 ! > > > >What if you statically link the DLL with your app? > > That seems like an interesting test. However, howow should I go about > creating a .lib for my DLL in order to link statically in MSVC 5 ? I don't have MSVC but I think the procedure to create an import library is something likes this. 1.) Create the .DEF file 2.) Create the import library. The command line should look like this: `LIB /def:.def /out:.lib /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Wed Sep 23 06:47:00 1998 From: lhall@rfk.com (Larry Hall) Date: Wed, 23 Sep 1998 06:47:00 -0000 Subject: cd'ing to a shortcut References: <36094125.7803320@mail.weiser.saale-net.de> <199809221646.MAA13022@smtp1.erols.com> Message-ID: <3.0.5.32.19980923094632.00959100@pop.ma.ultranet.com> At 12:47 PM 9/22/98 -0400, Alex P. Madarasz, Jr. wrote: >Michael Weiser wrote on 20 Sep 98, 17:55 : >> >> >> You simply cannot cd into Windows shortcuts because cygwin32 doesn't >> >> know about .lnk files and their magic. >> > >> >It's too bad they're not so magical -- only the explorer shell knows >> >about them, not the file system. They're good as far as they go; the >> >problem is they don't go very far, not even in the Windows world. >> >> Jep, agreed. Real softlinks shouldn't be any problem on NTFS... > >Actually, AFAIK only the POSIX layer of NT 4 exposes link features, and ?only >for hard links. NT 5 NTFS supports "reparse points", which sound like they >should have all the features needed for Unix-like links. > Hard links are possible under Win32 as well. Softlinks are also theoretically possible on NT 4.0 NTFS since fields exist to support this but are currently not used (this information is second-hand as I have no direct experience in this regard...) Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Wed Sep 23 07:15:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Wed, 23 Sep 1998 07:15:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: > What is the standard way of circumventing this problem? Simply writing > mv foo.exe bar.exe > is not a full solution, because that is not portable. Is it necessary to > write some autoconf stuff to check what the extension of the executable > resulting from calling gcc is? Yes, that's right. The next version of autoconf will have a new macro called `AC_EXEEXT' which will probe your system and make a subsitution variable available for your Makefile.in called @EXEEXT@. It typically has the value "" or ".exe". Ben - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Wed Sep 23 08:03:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Wed, 23 Sep 1998 08:03:00 -0000 Subject: Unix pathname -> DOS pathname References: <000001bde57b$7d7faf60$fa01a8c0@KOMUN.artefaktur.de> Message-ID: <36090D9F.C9CF609@ece.gatech.edu> I don't know if anybody has mentioned this yet, but cygpath.exe from Sergey's coolview patch allows you to convert to/from Dos/Unix pathnames. Get it at ftp://www.lexa.ru/pub/domestic/sos/coolview.tar.gz --Chuck Wilson Roger Ren???? Kommer wrote: > Hi, > > > How can I convert a Unix pathname to a DOS pathname? Example: > > > > > > from: /usr/local/myfile > > > > > > to: D:\local\myfile > > > > > > (in the example /usr is mounted on D:) > > > > Hey, you just did! (Sorry, couldn't resist.) > Actually it is more interessant, how to do it in shell scripts. > One possibility is to launch > echo `cmd.exe /c cd` > to get the cwd in DOS/NT syntax, but the performance could be > better. > Does anybody know a better solution? > > Roger > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Wed Sep 23 10:01:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Wed, 23 Sep 1998 10:01:00 -0000 Subject: More NT inetd questions References: <36080BC6.725FF3F8@ece.gatech.edu> Message-ID: <36092934.D3C99927@ece.gatech.edu> sorry about the repeat post; my mail-server is acting flaky. --Chuck - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Wed Sep 23 11:02:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Wed, 23 Sep 1998 11:02:00 -0000 Subject: [ANNOUNCE] gdb and process attach. References: <01BDE5BD.8BC3DA50@sos> Message-ID: <199809231802.UAA10159@k9.dds.nl> > From: Sergey Okhapkin > Date: Tue, 22 Sep 1998 00:11:27 +0400 > B19 gdb fails to attach to a running process. > I've fixed the problem and uploaded modified gdb.exe. > Sergey Okhapkin, http://www.lexa.ru/sos That is good news! Thanks! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 23 11:02:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 23 Sep 1998 11:02:00 -0000 Subject: B19.1: missing prompt? References: <36067AF0.FB07FCA7@ton80.com> Message-ID: <360897c4.1180607@mail.weiser.saale-net.de> Hello sdrinovsky, you wrote: >What do I need to set so that bash echos the same characters? Is there some option like 'local echo' in your telnet client? If so, disable it, because it makes it echo all characters you type expecting that the telnet server doesn't do so. But bash does echo all typed characters so that you get them doubled on screen. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gvaughan@oranda.demon.co.uk Wed Sep 23 11:02:00 1998 From: gvaughan@oranda.demon.co.uk (Gary V. Vaughan) Date: Wed, 23 Sep 1998 11:02:00 -0000 Subject: [Q] How to load dll's at runtime Message-ID: <36091F33.EB433757@oranda.demon.co.uk> I am porting E + gnome to cygwin32.dll (with X), but have run into a snag =(O| I don't know enough about win32 to know how (or even whether) I load a dll into a program at runtime ala unix dlopen... could anyone please give me some advice/url's?? On the plus side, I have all of the graphics libraries and gtk+1.0.6 ported. And have been running Enlightenment and Eterm (w/ background pixmaps) for a couple of weeks now. I am trying to port gtk+-1.1 now, and generate all the libraries as dlls, rather than statically linking them as I did first time through... I have diffs and binaries (but nowhere to upload them) if anyone would like this stuff btw. TIA. Gary V. Vaughan - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bparrish@intellectonline.com Wed Sep 23 13:02:00 1998 From: bparrish@intellectonline.com (Ben Parrish) Date: Wed, 23 Sep 1998 13:02:00 -0000 Subject: Newbie getting started... Message-ID: <19980923200245.30760.qmail@findmail.com> Well, everything looks installed okay, but when I compile this : #include main() { string test; } ...I get pages full of errors talking about "multiple definitions" of basic_string-related stuff. I apologize in advance for the low-level nature of this request. I'll catch on fast. :) ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 23 13:38:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 23 Sep 1998 13:38:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: On Wed, 23 Sep 1998, Arne Glenstrup wrote: > > The problem is that it seems that when running > > gcc -o foo foo.c > > it produces not a file named foo, but a file named foo.exe. This has > caused me problems when writing a Makefile somewhat like > > bar: foo.c > gcc -o foo foo.c > mv foo bar > > because it complains when trying to mv file foo. > > What is the standard way of circumventing this problem? Simply writing > > mv foo.exe bar.exe > All my local configuration systems check for executable extension and define a variable such as exeext to either the extension or "" if none is added by default. Lots of GNU Makefiles are beginning to use this as well. The Makefile rules look like the following: PROGRAMS = bar$(exeext) bar$(exeext): foo.c $(CC) -o foo foo.c mv foo$(exeext) bar$(exeext) Rather ugly, but currently the only usable solution. As for the rationale for adding the automatic .exe, I'm somewhat in favor of, if not thrilled by, such "native compliance"; for mingw32, it makes perfect sense (must have .exe to jive with native system and also be executable by native shell); for cygwin32, bash can run programs with or without .exe, but have trouble when running with native shell. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Wed Sep 23 13:38:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Wed, 23 Sep 1998 13:38:00 -0000 Subject: B19 : cd in bash (95) References: <3.0.1.32.19980922170852.006af640@manitoba.bbn.com> Message-ID: <001b01bde700$e15b1160$3565a8c0@dolphin.chromatic.com> Only thing wrong there is that it does not say "..." no such file or directory. Only Win95/98 understand ... to mean ../.., etc., even NT does not do that. -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Jason Gloudon > Sent: Tuesday, September 22, 1998 2:09 PM > To: gnu-win32@cygnus.com > Subject: B19 : cd in bash (95) > > > > With B19 on Windows 95 cd in bash does unusual things when given directory > names consisting of 3 or more "." 's . > > BASH.EXE-2.01$ pwd > / > BASH.EXE-2.01$ cd ... > BASH.EXE-2.01$ pwd > /... > BASH.EXE-2.01$ cd .... > BASH.EXE-2.01$ pwd > /.../.... > > and so on > > -- > Jason Gloudon > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From aolchik@digitel.com.br Wed Sep 23 13:38:00 1998 From: aolchik@digitel.com.br (Alejandro Olchik) Date: Wed, 23 Sep 1998 13:38:00 -0000 Subject: Using vpath directive in makefiles Message-ID: <19980923204055.29972.qmail@findmail.com> I????m having problem when using the vpath directive in a makefile. I have cywin B19 installed and I????m running make in unix mode. Look at the followin makefile vpath %.s //s/multinos/prj/nr1100/startup start.o: start.s copy $< $@ When trying to execute it I receive the following message make: *** No rule to make target `start.s', needed by `start.o'. Stop. Am I doing something wrong? The make program does not have to search for the .s file at the vpath directories? ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Wed Sep 23 15:58:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Wed, 23 Sep 1998 15:58:00 -0000 Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] References: <71Kuu0hppfB@mike.franken.de> Message-ID: On 22 Sep 1998, Michael Hirmke wrote: > Hi Michael, > > [...] > >>Winzip by default also handles .gz und .tgz files - so if one isn't > >>aware, that he better should use tar und gzip and only double clicks > >>your archive, ... > >Mhmm, didn't Mumit mean that? > > He said: > "I distribute .tar.gz, instead of .zip, to avoid such issues" ??? > > Which issues, when WinZIP can deal with .tar.gz ? > Let's end this discussion please. Here's my stance: The *only* supported installation method is documented rather explicitly in the INSTALL file that the user is supposed to read; any other method to unpack, such as using WinZip (or your toaster, swiss army knife, whatnot), is unsupported and you're on your own. I have neither the time nor inclination to figure out what various WinZip options, or the correct version number, to do the right thing for .tar.gz archive with hard- and sym-links in them. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From joey@rolaren.space.swri.edu Wed Sep 23 15:58:00 1998 From: joey@rolaren.space.swri.edu (Joey Mukherjee) Date: Wed, 23 Sep 1998 15:58:00 -0000 Subject: mkfifo and values.h Message-ID: <199809231821.NAA27619@rolaren.space.swri.edu.space.swri.edu> I noticed mkfifo is not currently implemented. Will it ever be implemented or should I look at changing my code? How about values.h? Is that not a POSIX sort of header? Does anyone know a replacement for it? Really the only value I need out of there is MAXFLOAT and MINFLOAT. If anyone saw my other problem about Boolean coming up undefined, searching the egcs list helped. Apparantly, egcs will assign different types to typedefs even if they are defined to be the same thing. has Boolean defined and I had a typedef Boolean char; in my code as well which made it not work. Removing my define fixed the problem. If you ever have weird linking errors, maybe this will help you too. Thanks, Joey +--------------------------------------------------------------------------+ + Joey Mukherjee "I am amused by the simplicity + + joey@swri.org of this game. Bring me your + + http://www.space.swri.edu/~joey finest meats and cheeses." + + + +--------------------------------------------------------------------------+ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 23 15:58:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 23 Sep 1998 15:58:00 -0000 Subject: gcc produces foo.exe, not foo Message-ID: <19980923170605.29412.rocketmail@send1e.yahoomail.com> ---Arne Glenstrup wrote: > > Hello, > > > Apologies if this question has been answered many times before, but I > didn't seem to be able to find it in the mailing list archives via the > search function. > > The problem is that it seems that when running > > gcc -o foo foo.c > > it produces not a file named foo, but a file named foo.exe. This has > caused me problems when writing a Makefile somewhat like > > bar: foo.c > gcc -o foo foo.c > mv foo bar > > because it complains when trying to mv file foo. > > What is the standard way of circumventing this problem? Simply writing > Create a variable SUFFIX just like the variable PREFIX. SUFFIX should not contain a value by default. Then do: mv foo$(SUFFIX) bar$(SUFFIX) == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 23 15:58:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 23 Sep 1998 15:58:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <19980923155818.46559@cygnus.com> On Wed, Sep 23, 1998 at 12:34:34AM +0200, Arne Glenstrup wrote: [...] > is not a full solution, because that is not portable. Is it necessary to > write some autoconf stuff to check what the extension of the executable > resulting from calling gcc is? Autoconf is one way to handle it. We have added an EXEEXT variable that's set by the configure process to .exe under Windows and blank otherwise. In the upcoming (?) new release of autoconf, there will be an AC_EXEEXT macro you can call to accomplish this. Then you would set EXEEXT = @EXEEXT@ in your Makefile.in and add $(EXEEXT)'s in the appropriate places. In b19 comp tools directories, look for AM_EXEEXT which is a similar local addition. The corresponding code would be in aclocal.m4 files. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Wed Sep 23 18:18:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Wed, 23 Sep 1998 18:18:00 -0000 Subject: More [free] NT: WRONG !! Warning Message-ID: <19980923200546.22706.qmail@hotmail.com> >From microsoft, beta 2, telnet server, vi, nfs, etc. Free, > http://www.microsoft.com/Windows/News/September1998/NTserv4UNIX.asp?custarea=bus&site=ntw&openmenu=&highlighteditem= Well the shitheads @ M$, or is it MK$, just trashed my cygnus install. A lot got erased from /bin, and dll's are missing as well. I spent a whole lot of time putting this together. I hope I can reinstall. It seems to me that there should be a commitment not to use their stuff at all. The above proves it and there is every reason to belive that the above negligence will only continue, or is it sabotage ?? Bill Gates has a reputation for that kind of stuff. IMHO, the best way may be to totally work outside of the registry, and use tar.gz files only installed by gnutar. In other words, just be unix inside of these NT prison walls. I am going to think this whole thing over and make some suggestions after I understand how the dlls and stuff work. This is not making life easier, give me linux or give me [ a beer ]. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Wed Sep 23 18:18:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Wed, 23 Sep 1998 18:18:00 -0000 Subject: g++ executables / bash window References: <3606BD64.79CA@lucky.fr> Message-ID: <360998e3.1467450@mail.weiser.saale-net.de> Hello Romain, you wrote: >I've been using FreeBSD, then installed GNU-Win32B19 on NT4. >I noticed that g++ executables are very big when compiled with >GNU-Win32, that is 330Kb for a simple `cout << "Hello world!";' while >the C version is less than 20Kb. >Under FreeBSD which runs GNU g++ too, there is no such a differnce. On FreeBSD like any other OS your program will be linked dynamically with all needed libraries (libg++.a ?). So the additional 310KB are somewhere in your system and loaded and linked at program startup but they're not in the executable itself. On cygwin32 there is no such dynamic loader/linker for UN*X-like libraries. So all needed libraries get linked statically with every executable which of course makes them pretty fat. One approach in reducing that size would be to write DLLs as replacements for the UN*X-like lib*.a libs. But AFAIK that needs some volunteers. :-/ -- man liest sich, Micha Ich bin gegen Hueftknochen! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From iwa@mmp.fujitsu.co.jp Wed Sep 23 18:18:00 1998 From: iwa@mmp.fujitsu.co.jp (IWAMURO Motonori) Date: Wed, 23 Sep 1998 18:18:00 -0000 Subject: cygwinb19.4 bug? Message-ID: <19980924011845.28881.qmail@findmail.com> Before replacing cygwinb19.dll: $ echo '\\\' | sed 's@\\@/@g' /// After replacing cygwinb19.dll (in cygwinb19.4.tar.gz on Andy Piper's page): $ echo '\\\' | sed 's@\\@/@g' sed: Unterminated `s' command $ echo '\\\' | sed 's#\\#/#g' /// $ echo 'aaa' | sed 's@a@b@g' bbb Is this bug? ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mike@aztek-eng.com Wed Sep 23 19:20:00 1998 From: mike@aztek-eng.com (mike agee) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: compiler parse errors in socket.h Message-ID: <19980923180636.14452.qmail@findmail.com> I am trying to compile using Win32 sockets rather than Unix sockets. I have performed the steps described in the FAQ to make this happen (i.e To use the vanilla Win32 winsock, you just need to #define Win32_Winsock and #include "windows.h" at the top of your source file(s). You'll also want to add -lwsock32 to the compiler's command line so you link against libwsock32.a. ). Anyway I get the following compiler errors. The parse errors seem to be associated with lines that reference function prototypes returning pointers??? Any help would be appreciated. /** ERROR MESSAGE OUTPUT FROM GCC **/ In file included from C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2. 7-B19\\../../../../i386-cygwin32/include/windows.h:66, from gettime.cpp:2: C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:783: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:818: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:821: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:825: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:827: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:830: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:832: parse error before `__attribute__' ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Wed Sep 23 19:20:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: More [free] NT: WRONG !! References: <19980923200501.3048.qmail@hotmail.com> Message-ID: <36096B4E.52ABF06B@ece.gatech.edu> John vanVlaanderen wrote: > >From microsoft, beta 2, telnet server, vi, nfs, etc. Free, > > http://www.microsoft.com/Windows/News/September1998/NTserv4UNIX.asp?custarea=bus&site=ntw&openmenu=&highlighteditem= > > Well the shitheads @ M$, or is it MK$, just trashed my cygnus install. > A lot got erased from /bin, and dll's are missing as well. > Geez. I'm glad I hadn't gotten around to trying the Mickey$oft telnetd. In any case, this mickeysoft stuff was beside the point. Other folks have been able to run the gnu-win inetd/telnetd/rlogind/etc. Does anybody have an explanation for the transcripts in my last post - why won't telnetd work? transcripts reposted: services control panel applet says "inetd Running" - cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... Connected to belgarion.res.gatech.edu Escape character is '^]'. Connection closed by foriegn host. cwilson : BELGARION : ~ > stop inetd using services control panel applet, and - cwilson : BELGARION : ~ > telnet localhost Trying 127.0.0.1... telnet: Unable to connect to remote host: error 111 cwilson : BELGARION : ~ > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From t_pires@fox.nstn.ca Wed Sep 23 19:20:00 1998 From: t_pires@fox.nstn.ca (Tony Pires) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: read doesn't read the second time Message-ID: <1.5.4.16.19980924022012.40cf3178@fox.nstn.ca> Try this: #! /bin/sh echo -e "enter yes/no: \c"; read answer; echo $answer echo -e "enter yes/no: \c"; read answer; echo $answer At 12:06 PM 9/21/98 -0700, you wrote: >This script fails to wait for the second number to be input: > >read -p "enter number: " num1 >read -p "enter another number: " num2 >echo "done" > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From panic@diku.dk Wed Sep 23 19:20:00 1998 From: panic@diku.dk (Arne Glenstrup) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames Message-ID: Hi, Has anybody found a REALLY good solution to this problem yet? I agree with Steven that Cygwin32 has a serious compatibility problem here: lots of makefiles will break, i fear. So here's what I have done in my case to circumvent the problem: 1) Wrote an autoconf macro: dnl MYMAC_SYS_EXE dnl ------------ dnl dnl If the compiler generates foo.exe when instructed to generate foo, dnl set $exe to `.exe', else set $exe to `' AC_DEFUN(MYMAC_SYS_EXE, [dnl AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CACHE_CHECK([whether the C++ compiler (${CXX}) generates .exe files], mymac_cv_sys_exe,[dnl cat > conftest.$ac_ext < >> Well the shitheads @ M$, or is it MK$, just trashed my cygnus install. >> A lot got erased from /bin, and dll's are missing as well. Its not your fault. The past 2 weeks on this NT box have led to a number of problems that never seemed to be unix issues, stuff working for some people, not for others. This marks the 14th day that I have ever used a M$ product. Everything I have ever heard about M$ indicates that this sort of stuff is bound to happen since you are prevented from peering under the hood or at least you do so @ your own risk. The reinstall worked and I got all that stuff back, but then my path got updated, and I am not sure where. Maddening. Now xterm is broken completely. I put Cygnus before and MKS after but which should I put in the /bin directory. Using my xterm problems as an example, I would like to know if there is a way to install applicatons, with dlls in a side directory until the executables can be bundled w/ one of the "offical products" after the necessary testing. Links, aliases, and path changes could access that. This is the sort of stuff I did when I was working w/ the chaotic nature of gnuplot releases. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 23 19:20:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: Remote tar References: <3606D8BE.BBFCADE2@deneb.com> Message-ID: <71T2-OLppfB@mike.franken.de> Hi Stephen, >I have been trying to use the Cygwin tar to backup remotely to a tape >drive on a Linux host, but get error messages that the remote host or >device can't be found. I have verified that I can rsh to the Linux box, >although the rsh being used is the WinNT version. I have also used the >Linux tar on the machines other boot personality successfully to backup >up remotely. [...] >For reference, the command being used is > >tar cvf kat:/dev/st0 . This works for me: tar --rsh-command=/usr/local/bin/ssh -cvf aqua.hirmke.de:/dev/tape . > >-- >Stephen Vance | http://www.deneb.com Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Wed Sep 23 19:20:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: More [free] NT: WRONG !! Message-ID: <19980923200501.3048.qmail@hotmail.com> >From microsoft, beta 2, telnet server, vi, nfs, etc. Free, > http://www.microsoft.com/Windows/News/September1998/NTserv4UNIX.asp?custarea=bus&site=ntw&openmenu=&highlighteditem= Well the shitheads @ M$, or is it MK$, just trashed my cygnus install. A lot got erased from /bin, and dll's are missing as well. I spent a whole lot of time putting this together. I hope I can reinstall. It seems to me that there should be a commitment not to use their stuff at all. The above proves it and there is every reason to belive that the above negligence will only continue, or is it sabotage ?? Bill Gates has a reputation for that kind of stuff. IMHO, the best way may be to totally work outside of the registry, and use tar.gz files only installed by gnutar. In other words, just be unix inside of these NT prison walls. I am going to think this whole thing over and make some suggestions after I understand how the dlls and stuff work. This is not making life easier, give me linux or give me [ a beer ]. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jjf@bcs.org.uk Wed Sep 23 19:20:00 1998 From: jjf@bcs.org.uk (J. J. Farrell) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: some unusual errors References: <199809222007.QAA24654@venus.solidum.com> Message-ID: <199809232120.OAA04855@aleph.ssd.hal.com> > From: Michael Richardson > > > >>>>> "Peter" == Peter Dalgaard BSA writes: > > Peter> Michael Richardson writes: > > >> >> strtod.c:1239: warning: subscript has type `char' >> which confuses > >> me. What, if not "char" should isspace() take??? > >> > Michael> As all is functions it takes an *int* or *unsigned char* ! > >> > Michael> int isalnum (int c); int isalpha (int c); > >> Why would you say "unsigned char"?? It says "int" to me. So, a > >> signed char should promote to int just fine. > > Peter> ...with everything above 127 mapping to negative numbers! > > Yes. That's my problem. > The macro is wrong: it should behave in the same way as a prototyped > function. I agree entirely with what you say, but I think it may not be what you mean! The only way in which the function version will behave differently from the macro version is that the function version won't give you the spurious warning message. If you pass a signed char which contains a negative value (top bit set) other than EOF to any of the ctype macros or functions, you will get undefined behaviour - it may do what you want by luck, or it may crash your program or do anything else it fancies. If you can be certain that the values in your signed chars are between 0 and UCHAR_MAX, there's no problem passing those signed chars to a ctype function - but you have to put up with the spurious warning in this implementation. If you can't be certain of that, you must do something to make certain - either check their value before calling is*(), or access them as unsigned if that's appropriate. The most portable fix to your example bit of code would be for(s = s00; isspace(*(unsigned char*)s); s++) or just declare s as in the first place. [ Casting the char itself to unsigned is not a portable answer to this since it will change the bit pattern on a 1's complement machine; probably not what is wanted. ] - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From adf@mentor-systems.com Wed Sep 23 19:20:00 1998 From: adf@mentor-systems.com (Austin David France) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: B19 sh.exe symbolic links problem Message-ID: <002f01bde713$54bba360$010120c0@menpc1> The following shell script creates a directory tree, and creates a symbolic link to the top level directory. If you cd from within a shell script to the subdirectory via the symbolic link, it actually only uses the information in the sybmolic link, it loses the subdirectory part. #!/bin/sh # Setup test case mkdir -p /mydir/subdir ln -s /mydir /yourdir # Reproduce cygwin32.dll bug cd /yourdir/subdir pwd ls -l /yourdir/subdir # Cleanup rm /yourdir rmdir /mydir/subdir rmdir /mydir The pwd above in my case outputs /e/GnuWin32/mydir not /mydir/subdir as it should be. This all works fine in bash. For the moment, I have moved sh.exe out of the way and linked /bin/sh to /bin/bash. I am using: Windows NT 4 Telnetted via InetD binary mounts, bash version 2.01.1(2)-release, cygwinb19.dll (669150 bytes) Can anyone else re-produce this problem, or even better does anyone have a fix for sh.exe? Austin David France Mentor Systems plc mailto:adf@mentor-systems.com http://menpc1.mentor.misys.co.uk/help ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 23 19:20:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: Permissions? Message-ID: <19980923164702.15339.rocketmail@send1e.yahoomail.com> What's your system?! WinNT 3.51, 4 or 5, Win95 or Win98? ---john_r_velman@mail.hac.com wrote: > > > Can someone point me to an explanation of how Cygwin handles > permissions, and -- specifically -- how I can get root permission? > > I just ran a-foul of trying to configure a package where configure > tests to see if it can find the sources by testing for a certain file > to be readable. It turned out that this particluar package had a lot > of permissions set to -rw-r-----. Probably this is the case in a > number of directories as well as a lot of files in this directory. > > I could try changing all permissions in all directories with find, but > it would be a lot cleaner to be able to do an su like I do on my Linux > box. > > And by the way, how does Cygwin know what the permisions are, anyhow? > It appears that this has little if anything I can find in explorer > file properties. > > Thanks, > > John Velman > jrvelman@mail.hac.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Wed Sep 23 19:20:00 1998 From: vance@deneb.com (Stephen Vance) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <36090582.6A5A33FD@deneb.com> Arne Glenstrup wrote: > Hello, > > Apologies if this question has been answered many times before, but I > didn't seem to be able to find it in the mailing list archives via the > search function. > > The problem is that it seems that when running > > gcc -o foo foo.c > > it produces not a file named foo, but a file named foo.exe. This has > caused me problems when writing a Makefile somewhat like > > bar: foo.c > gcc -o foo foo.c > mv foo bar > > because it complains when trying to mv file foo. > > What is the standard way of circumventing this problem? Simply writing > > mv foo.exe bar.exe > > is not a full solution, because that is not portable. Is it necessary to > write some autoconf stuff to check what the extension of the executable > resulting from calling gcc is? > > Thanx, > > -- Arne. > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". We tend to deal with this in the following way. 1) Define an environment variable to contain some platform identifier (e.g. ARCH=Cygwin32) 2) Create a file like the following called Cygwin32.mk OBJ=.obj EXE=.exe The Unix equivalent (e.g. Sun5.mk) might be OBJ=.o EXE= 3) Create your makefiles to include the platform makefile and use its macros. include $(ARCH).mk bar$(EXE): foo.c gcc -o foo$(EXE) foo.c mv foo$(EXE) bar$(EXE) Obviously, there are improvements to be applied in the use of make, the $(ARCH).mk files can be put in a central location, you can do similar things with compiler and linker flags, provide a means for directory-specific platform settings, etc. to extend this to a full-fledged make environment, but this is the basic technique. -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Wed Sep 23 19:20:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: More [free] NT: WRONG !! References: Message-ID: <360988EE.889BED2E@ece.gatech.edu> Got telnetd working. Thanks, everyone. Details below. "Patrick J. Fay" wrote: > I don't know why exactly. I was trying to install his inetd > last week and eventually got it to work. > Do you have valid /etc/passwd & /etc/group files? No crlf's. this was OK > > Is your login shell /bin/bash.exe ? no - it's /bin/sh.exe, which is a copy (not a link) of bash.exe [1] > Do you have the permissions set correctly for the account > running the telnetd? (from sergey's page). yes. > Do you have your C: drive mounted binary? yes - all drives mounted binary, but my / is F: > Did you have the drive mounted binary when you untar'ed > the remote.tar.gz? yes and no. All drives were mounted binary, but I untar/gzed using (no flames please) WinZip. [2] > Do you have 'CYGWIN32=tty' in your > /Start/Settings/System/Environment/User variables? yes. > > Do you have login.exe in /usr/local/bin/login.exe? yes. > It seems like telnetd wanted bash.exe to be in > /usr/local/bin as well. Not as a symbolic link. not present. [3] > Let me know. > Pat > [1] ,[2],[3] made all three changes, and it worked. Then I undid the changes one at a time. Only [2] was the real problem. [1] and [3] were not necessary. I had forgotten to turn WinZip/Options/Smart TAR LF/CR conversion _OFF_. Also, Andy Piper's local.tar.gz contains several older versions of Sergey's remote tools. In particular, my /usr/local/libexec contained from Andy's local.tar.gz: in.ftpd* in.rlogind* in.talkd* in.tftpd* in.rexecd* in.rshd* in.telnetd* from Sergey's remote.tar.gz in.ftpd.exe* in.rlogind.exe* in.talkd.exe* in.tftpd.exe* in.rexecd.exe* in.rshd.exe* in.telnetd.exe* in.uucpd.exe* I don't know if this was part of the problem, but I deleted the files from Andy's distribution. --Chuck Wilson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jsturm@sigma6.com Wed Sep 23 19:20:00 1998 From: jsturm@sigma6.com (Jeff Sturm) Date: Wed, 23 Sep 1998 19:20:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <36090878.58689A84@sigma6.com> This is a constant nuisance for porting packages to gnu-win32. The install program breaks, as do many other utilities when they hit an executable file with a .exe suffix. I know the problem can be "fixed" to some degree by modifying all the appropriate tools to append the .exe suffix transparently whenever needed. Apparently this has been partially done, e.g. when I try a 'mv' command: bash$ mv foo.exe foo mv: `x.exe' and `x' are the same file However I run NT, which understands executables without any .exe suffix just fine. For my use I would rather be able to disable the .exe generation in gcc and go without it for all programs except bash and a few others I might launch from ordinary win32 programs. Arne Glenstrup wrote: > > Hello, > > Apologies if this question has been answered many times before, but I > didn't seem to be able to find it in the mailing list archives via the > search function. > > The problem is that it seems that when running > > gcc -o foo foo.c > > it produces not a file named foo, but a file named foo.exe. This has > caused me problems when writing a Makefile somewhat like > > bar: foo.c > gcc -o foo foo.c > mv foo bar > > because it complains when trying to mv file foo. > > What is the standard way of circumventing this problem? Simply writing > > mv foo.exe bar.exe > > is not a full solution, because that is not portable. Is it necessary to > write some autoconf stuff to check what the extension of the executable > resulting from calling gcc is? > > Thanx, > > -- Arne. > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- Jeff Sturm jsturm@sigma6.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 23 23:42:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <71T2-st$pfB@mike.franken.de> Hi Arne, [...] >What is the standard way of circumventing this problem? Simply writing > > mv foo.exe bar.exe > >is not a full solution, because that is not portable. Is it necessary to >write some autoconf stuff to check what the extension of the executable >resulting from calling gcc is? Don't use "mv" or "cp", but "install" instead and replace install.exe with: ------------------------< snip snip snip >----------------------------- #! /bin/sh # file: install # author: earnie email: earnie_boyd@hotmail.com # # Install Preprocessor for the gnu-win32 "make install" command. # # To use: # # copy this file to /usr/bin/install (earlier in the # path than the default GNU install). # # Note: # No warranty implicit or explicit is given. # You may copy, distribute and use as you see fit. # USE AT YOU OWN RISK. # # changed: M.Hirmke email: mh@mike.franken.de # changed ginstall to cyg_install, because some packages are looking # for ginstall # # changed: Dr David Coe email: david@coent.demon.co.uk # "I seem to remember earnie's script gave trouble (in X11 or lesstif # make install) when both and are present # simultaneously). The attached helped." # # changed: Dr Pierre A. Humblet email: humblet@eurecom.fr # Modify logic to work when several files are installed in a # directory, some with the .exe extension and others without. tstr="" while test $# -gt 1; do if test -e $1.exe; then suffix=".exe"; else suffix=""; fi tstr="${tstr}${1}${suffix} " shift; done if test -d $1 then suffix=""; fi tstr="${tstr}${1}${suffix}" eval "cyg_install.exe $tstr"; exit ------------------------< snip snip snip >----------------------------- > >Thanx, > >-- Arne. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From john_r_velman@mail.hac.com Wed Sep 23 23:42:00 1998 From: john_r_velman@mail.hac.com (john_r_velman@mail.hac.com) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: Permissions? Message-ID: <0EZQ00905ZDTH0@mail.hac.com> Woops! I meant to include this: My system is NT4 SP3, NTFS file system Thanks, John Velman jrvelman@mail.hac.com ______________________________ Reply Separator _________________________________ Subject: Re: Permissions? Author: earnie_boyd@yahoo.com at mime Date: 9/23/98 9:47 AM What's your system?! WinNT 3.51, 4 or 5, Win95 or Win98? ---john_r_velman@mail.hac.com wrote: > > > Can someone point me to an explanation of how Cygwin handles > permissions, and -- specifically -- how I can get root permission? > > I just ran a-foul of trying to configure a package where configure > tests to see if it can find the sources by testing for a certain file > to be readable. It turned out that this particluar package had a lot > of permissions set to -rw-r-----. Probably this is the case in a > number of directories as well as a lot of files in this directory. > > I could try changing all permissions in all directories with find, but > it would be a lot cleaner to be able to do an su like I do on my Linux > box. > > And by the way, how does Cygwin know what the permisions are, anyhow? > It appears that this has little if anything I can find in explorer > file properties. > > Thanks, > > John Velman > jrvelman@mail.hac.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com From jjf@bcs.org.uk Wed Sep 23 23:42:00 1998 From: jjf@bcs.org.uk (J. J. Farrell) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: some unusual errors References: <36080502.41C6@delorie.com> Message-ID: <199809232046.NAA04824@aleph.ssd.hal.com> > From: DJ Delorie > > J. J. Farrell wrote: > > isspace() is prototyped as isspace(int); if the caller > > were using the function version, then the prototype would > > be effective, and the char would have been silently and > > correctly widened to an int. > > No, the char would have been silently and INcorrectly > widened to a *signed* int, resulting in a range of values of > -128..127. That is not the legal range of values for the > is*() functions. You're still missing the point. A char is just a small integer. A signed 8-bit 2's complement char has a range of values from -128 to 127. If I assign one to a signed integer, the resulting integer has exactly the same value as the signed char had. Converting the parameter to an int in the macro would make no difference whatsoever to the value of the parameter; but it would make a call to the macro behave more like a call to the equivalent function, in that it would get rid of the spurious warning about a char being used as an array subscript. > The legal range of values for is*() is 0..255 and EOF. The > automatic widening of a [default signed] char results in > signed int values in the range -128..127. You cannot rely > on the automatic widening to give correct results. Widening to an integer will make no difference to the result - that's fundamental to my point; however, it will get rid of the spurious warning message from the compiler. Passing a signed char with the top bit set to a ctype function results in undefined behaviour unless its value happens to equal EOF. Converting it to an int makes no difference to this. It's the caller's responsibility to make sure that the values passed to the ctype routines are in the correct range; as long as he does this, he can hold those values in whatever integral type he likes - including signed char. If the type he chooses can be automatically widened to an int by assignment (as is the case with a signed char), then the prototype definition for the ctype functions says that he can pass that parameter in its original type to the function. He shouldn't end up with spurious warnings from the compiler if he happens to be using the macro version instead of the function. > On a side note, using a signed char as the input makes it > impossible to tell the difference between character 255 and > the traditional EOF value of -1, as both have the same bit > pattern (0xff) when stored in a signed char variable. C doesn't guarantee that the value of EOF is different from the value of some valid character anyway. Code that wants to be portable to all Standard C implementations can't assume that seeing an EOF value means end of file. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From zimmermj@adstii.com Wed Sep 23 23:42:00 1998 From: zimmermj@adstii.com (Jeffrey P. Zimmerman) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: gnu-win32: Linking with Exceed's X and Motif libraries References: <199809231347.JAA13334@mailrelay.adstii.com> Message-ID: <36096C3C.16202D31@adstii.com> Gagnon, Benoit: CIO wrote: > Hi, > I am a student at Sherbrooke University (Canada), and I am working at > Industry Canada for the semester. I was wondering if you ever got an answer > to your linking problem. I'm trying to link to a xxx.lib file and i'm > getting similar warnings as you did. > Here is an example: > > /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: > extr_api.lib(extr_api.dll): warning: ignoring duplicate section `.text' > /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: > extr_api.lib(extr_api.dll): warning: ignoring duplicate section `.idata > $5' > > Thanks a lot > Benoit > > >Has anyone out there attempted to link with Exceed's X and Motif > >libraries? When I made the attempt, I got a huge amount of warnings and > >a few errors. Exceed requires MS Visual C/C++, with their X and Motif > >resource kit, but I figured I would give it a shot with gcc. > > > >Examples: > >warning: ignoring duplicate section `.idata$5' > >warning: ignoring duplicate section `.text' > >multiple definition of `.idata$2' > > > >I admit to having no knowledge of dlls or NT programming. Therefore, > >.idata$5 means nothing to me (assuming that even has anything to do with > >dlls). Also, please excuse my ignorance on how things link together, > >etc....I'm used to easily linking in libXXX.a files. These are XXX.lib > >files with references to dlls (I checked out the symbols with nm). > > > >Thanks for any help you can give me. > >Jeff > >zimmermj@adstii.com Benoit, Actually, I did...in a way. It ended up with Hummingbird (the creators of Exceed) doing some work for us. They were very good about helping out as much as they could. Without any previous knowledge of Cygwin32, they were still willing to put some of their engineers on the problem. After a couple of weeks of work, they came up with some compatible libXX.a files and a few new "interface" dlls. They sent the new files to me as a "Proof of Concept" product, I installed them, and everything just worked...and very well!!! All warnings were gone and everything looked and worked as it was expected....which did NOT happen with Lesstif (a free version of Motif). Right now, we are stuck on legal stuff, but hopefully, if a lot of other people show interest, we can get passed that. What I would suggest is to send email to Norbert Bedoucha (norbert.bedoucha@hcl.com) at Hummingbird. He may be willing to send you a "demo" version of what they sent me. If nothing else, it will show that there is other interest out there besides our company. Let him know that you are trying to link Cygwin32 based code with Exceed. Hopefully he can help. With enough interest, they may be willing to release a Beta/Test version or something. You never know....they were pretty good about helping me!!! Good Luck, Jeff Zimmerman zimmermj@adstii.com PS Let me know what happens...or just post it on the Cygwin32 mailing list....so EVERYONE can know the outcome. : ) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Wed Sep 23 23:42:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: [ANNOUNCE] gdb and process attach. Message-ID: <01BDE7A6.83449820@sos> tjoen@dds.nl wrote: > > B19 gdb fails to attach to a running process. > > I've fixed the problem and uploaded modified gdb.exe. > > Sergey Okhapkin, http://www.lexa.ru/sos > > That is good news! Thanks! More news - I successfully compiled unix versions (not win32 ports) of tcl, tk and tix, and built gdb with X window interface. It's very usefull for debugging while telnetting into NT box. If anybody will be interesting in that variant of gdb, I'll upload the executable on my web site. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jjf@bcs.org.uk Wed Sep 23 23:42:00 1998 From: jjf@bcs.org.uk (J. J. Farrell) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: some unusual errors References: <199809222030.QAA25521@venus.solidum.com> Message-ID: <199809232135.OAA04878@aleph.ssd.hal.com> > From: Michael Richardson > > > >>>>> "DJ" == DJ Delorie writes: > DJ> 3. Remember that getchar() returns in int - for the very same reason, > DJ> so that EOF is not in the range of valid characters. getchar() > DJ> returns EOF or 0..255, which is NOT the same range as the range for > DJ> type `signed char'. > > DJ> Basically, if you're a programmer and you've stumbled onto this > DJ> problem, you have a problem with your code. > > I think the problem is posix saying that is* needs to process EOF > without deciding if "char" is signed or not. It's nothing to do with POSIX - it's the C Standard. The ctype functions are defined the way they are so they are guaranteed to work on everything which getchar() and friends return, but are also practical to implement as macros for speed of execution. > isspace(foo[3]) has been around for a *LONG* time. It shouldn't break. It certainly has, but then the C Standard has been around for almost 10 years, and I don't think the definition of isspace() was changed from how it was before the Standard. It isn't breaking anyway - it's just the compiler giving you a spurious warning message. If it's not working that's probably down to a bug in your code which would show up on any compiler which treats plain chars as signed. > I will fix my code to use unsigned char's, fine, but I suggest that gnu-win32 > make char unsigned by default then. There's no reason why it should; there have been implementations from the early days which had it as signed and others which had it as unsigned. That's why the Standard explicitly doesn't specify whether it is signed or unsigned. You'd be far better off writing your C to be as portable as possible rather than expecting compilers to behave in a certain way when they're not obliged to. If you're porting a chunk of code which assumes that a plain char is unsigned, the best long term fix is to get rid of those assumptions; but in the short term, I think there's an option to gcc to make it treat plain chars as unsigned. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From t_pires@fox.nstn.ca Wed Sep 23 23:42:00 1998 From: t_pires@fox.nstn.ca (Tony Pires) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: Unix pathname -> DOS pathname Message-ID: <1.5.4.16.19980924022008.0eaf73ec@fox.nstn.ca> You will need to write some code to get the mount points from the registry in order to perform the magic. Can you code? There was a post sometime ago on this list that offered a DOS path to Posix path conversion, but this is not what you want. Search the archives for "posixpath" or "Command here" if this interests you. Alternately, get yourself a copy of "pwd" from the Mingw32 shell utils ported by Earnie Boyd. This stuff can be found at ftp.franken.de in pub/win32/develop/gnuwin32/mingw32/porters/Boyd_Earnie Good Luck. At 06:18 PM 9/21/98 +0200, you wrote: > >Hi, >> > How can I convert a Unix pathname to a DOS pathname? Example: >> > >> > from: /usr/local/myfile >> > >> > to: D:\local\myfile >> > >> > (in the example /usr is mounted on D:) >> >> Hey, you just did! (Sorry, couldn't resist.) >Actually it is more interessant, how to do it in shell scripts. >One possibility is to launch >echo `cmd.exe /c cd` >to get the cwd in DOS/NT syntax, but the performance could be >better. >Does anybody know a better solution? > >Roger > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". > > > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kriegaex@ina.de Wed Sep 23 23:42:00 1998 From: kriegaex@ina.de (Alexander Kriegisch) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: server X References: <71KuuUEppfB@mike.franken.de> Message-ID: <3609DE0B.894D84F5@ina.de> Hi Michael! > >Why is direct video hardware access > >more of a problem under windows than it is under Unix? > Because Windows NT doesn't allow any direct access to the hardware. I do not know enough about it, so this is more a question than a hint: How about DirectX and the like? Is it not designed for granting the developer direct hardware access? -- Alexander Kriegisch Produktentwicklung BusinessFlow Abt. KOU4/COI-ES ------------------------------------------------------ INA Werk Schaeffler OHG Mail: kriegaex@ina.de Industriestr. 1-3 Tel: +49-9132-82-4281 D-91074 Herzogenaurach Fax: +49-9132-82-4959 ------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Wed Sep 23 23:42:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: [Q] How to load dll's at runtime Message-ID: <01BDE7A8.35254980@sos> Gary V. Vaughan wrote: > I don't know enough about win32 to know how (or even whether) I load a > dll into a program at runtime ala unix dlopen... could anyone please > give me some advice/url's?? Cygwin supports the same dlopen/dlsym etc interface. See a details on cygnus gnu-win32 web page. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mike@aztek-eng.com Wed Sep 23 23:42:00 1998 From: mike@aztek-eng.com (mike agee) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: B19.1: Parse errors in socket.h Message-ID: <19980923215548.3251.qmail@findmail.com> I want to use Win32 sockets. I have taken the steps outlined in the FAQ for doing this. I cannot get the following code to compile using gcc. #define Win32_Winsock #include #include #include void main(int argc, char *argv[]) { time_t t; int s; struct sockaddr_in a; struct hostent *h; WSADATA wsaData; if (argc != 2) { cout << "Usage: gettime" << argv[0] << " \n"; exit(1); } if(WSAStartup(0x101, &wsaData)) { cout << "Unable to initialize WinSock library.\n"; exit(1); } h = gethostbyname(argv[1]); if (h == NULL) { cout << "Cannot resolve hostname\n"; WSACleanup(); exit(1); } a.sin_family = AF_INET; a.sin_port = htons(37); memcpy(&(a.sin_addr.s_addr), h->h_addr, sizeof(int)); s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (s == 0) { cout << "Cannot establish connection: " << WSAGetLastError() << '\n'; WSACleanup(); exit(1); } if (connect(s, (struct sockaddr *)&a, sizeof(a))) { cout << "Cannot establish connection: " << WSAGetLastError() << '\n'; WSACleanup(); exit(1); } if (recv(s, (char *)&t, 4, 0) != 4) cout << "Unable to obtain time.\n"; else { t = ntohl(t) - 2208988800; cout << asctime(localtime(&t)); } closesocket(s); WSACleanup(); } /** THE FOLLOWING ERRORS ARE GENERATED **/ In file included from C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2. 7-B19\\../../../../i386-cygwin32/include/windows.h:66, from gettime.cpp:2: C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:783: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:818: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:821: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:825: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:827: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:830: parse error before `__attribute__' C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 6-cygwin32/include/Windows32/Sockets.h:832: parse error before `__attribute__' It appears to have trouble with lines containing funtion prototypes returning pointers. Any ideas? regards mike agee mike@aztek-eng.com ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pfay@acl.lanl.gov Wed Sep 23 23:42:00 1998 From: pfay@acl.lanl.gov (Patrick J. Fay) Date: Wed, 23 Sep 1998 23:42:00 -0000 Subject: More [free] NT: WRONG !! References: <19980923204815.9806.qmail@hotmail.com> Message-ID: Hello John, I think one option with the package was to install the mks shell. Somewhere it said that this is demoware (I assume it means that this expires) so I didn't do that. Sorry, I should have specified that in the email. (I don't have time for demoware and I'm happy with bash and tcsh). Maybe that was what wiped out your setup? Pat On Wed, 23 Sep 1998, John vanVlaanderen wrote: > > > > >> Well the shitheads @ M$, or is it MK$, just trashed my cygnus > install. > >> A lot got erased from /bin, and dll's are missing as well. > > Its not your fault. > > The past 2 weeks on this NT box have led to a number of problems that > never seemed to be unix issues, stuff working for some people, not for > others. This marks the 14th day that I have ever used a M$ product. > > Everything I have ever heard about M$ indicates that this sort of stuff > is bound to happen since you are prevented from peering under the hood > or at least you do so @ your own risk. > > The reinstall worked and I got all that stuff back, but then my path got > updated, and I am not sure where. Maddening. > > Now xterm is broken completely. > > I put Cygnus before and MKS after but which should I put in the /bin > directory. > > Using my xterm problems as an example, I would like to know if there is > a way to install applicatons, with dlls in a side directory until the > executables can be bundled w/ one of the "offical products" after the > necessary testing. Links, aliases, and path changes could access that. > This is the sort of stuff I did when I was working w/ the chaotic nature > of gnuplot releases. > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > Patrick Fay, Ph.D., Intel Corp. email: pfay@co.intel.com Los Alamos National Lab wk: (505) 665-9141 TA3,Bldg 132, MS B272 fax: (505) 665-6333 Los Alamos NM 87545 ASCI-RED http://www.acl.lanl.gov/~pfay/teraflop - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From W.Hennings@fz-juelich.de Thu Sep 24 04:01:00 1998 From: W.Hennings@fz-juelich.de (Wilfried Hennings) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: B19: error in cygnus.bat Message-ID: <199809240701.JAA07678@fz-juelich.de> Hello all, I installed cygwin b19 under win95. The installation procedure creates the file "cygnus.bat" in the installation directory. This file looks as follows: @ECHO OFF SET MAKE_MODE=unix SET CYGFS=e:/cgc SET GCC_EXEC_PREFIX=e:\CGC\H-I386~1\lib\gcc-lib\ SET TCL_LIBRARY=%CYGROOT%\share\tcl8.0\ SET GDBTK_LIBRARY=%CYGFS%/share/gdbtcl SET PATH=e:\CGC\H-I386~1\bin;%PATH% bash In line 5 the environment variable %CYGROOT% is used but still undefined. I suggest to change this line to SET TCL_LIBRARY=%CYGFS%\share\tcl8.0\ Any objections? Best regards, Dipl.-Ing. Wilfried Hennings c./o. Forschungszentrum (Research Center) Juelich GmbH, ISR D-52425 Juelich, Germany Tel. (+49) 2461 61 5570 ; Fax (G3+G4) (+49) 2461 61 8254 email: my pgp (2.6.3i) public key: < ftp://isr016.isr.kfa-juelich.de/wh.asc > ISR homepage: < http://www.kfa-juelich.de/isr/ > Join the fight against spam! details at < http://www.cauce.org > All opinions mentioned are strictly my own, not my employer's - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kimball@sgrail.com Thu Sep 24 04:01:00 1998 From: kimball@sgrail.com (Kimball Thurston) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: problem with SGI STL (was: Newbie getting started...) References: <19980923200245.30760.qmail@findmail.com> Message-ID: <3609E614.A7E2231E@sgrail.com> Ben Parrish wrote: > Well, everything looks installed okay, but when I compile this : > > #include > main() { > string test; > } > > ...I get pages full of errors talking about "multiple definitions" of basic_string-related stuff. > > I apologize in advance for the low-level nature of this request. I'll catch on fast. :) > No worries. I've been trying to figure out why the SGI STL (now shipped with egcs, I guess) doesn't compile , _even under the SGI compiler_!!!! I've tried egcs, SGI CC 7.1.x under Irix, MS VC++ 5.0. All to no avail. I traced it back to a circular dependency between , , and : 1. includes as the second include file so it can throw length, etc. errors... 2. includes (oh, and relies on class string being defined, BTW) 3. relies on char_traits, basic_string, et al. being defined for some typedefs.... But wait! I'm in the middle of the setup includes for , so I haven't defined it yet!!! ACK. If anyone knows a workaround to this, or how the heck SGI gets to compile, please let me (and I guess others) know.... we posted a message to SGI, but haven't heard anything... thanks, -- Kimball mailto:kimball@sgrail.com --------------- "Time has little to do with infinity and jelly doughnuts." - Unknown - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Thu Sep 24 04:01:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: [B19:BUG] cd .... broken on Win95/98 [former B19 : cd in bash (95)] References: <3.0.1.32.19980922170852.006af640@manitoba.bbn.com> Message-ID: <360A0F57.249C55D7@uni-duesseldorf.de> > With B19 on Windows 95 cd in bash does unusual things when given directory > names consisting of 3 or more "." 's . > > BASH.EXE-2.01$ pwd > / > BASH.EXE-2.01$ cd ... > BASH.EXE-2.01$ pwd > /... > BASH.EXE-2.01$ cd .... > BASH.EXE-2.01$ pwd > /.../.... > > and so on I have the same unusual output of bash using B19.2 on a Win98 box. So I tried this on the simple sh shell and this is what happens: $ cd /usr/local/bin $ cd ... $ pwd /usr $ cd /usr/local/lib/lynx $ cd .... $ pwd /usr $ cd /usr/local/lib/lynx $ cd ... /usr/local It seems as if any additional point "." beyond the two parent-dir porints ".." is causing another parant-step to the upper directory. Has anyone tried this running NT? BRAINFLASH: UPS, now I remember of something that may be important for this. I had such a bad behaviour of cd multiple poirnts while porting the old Apache 1.2.6 to the redindian 1.2.6 server. A client was able to request the document http://www.yourmachine.com/ .... and get the root directory returned /w access in the browser. I remember that I had to check this by hand for the cygwin32 port. Is it possible that this is a more core mis-behaviour on Win95/98 within the cygwinb19.dll? Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 24 04:01:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: Newbie getting started... References: <19980923200245.30760.qmail@findmail.com> Message-ID: <9809240621.AA02981@modi.xraylith.wisc.edu> "Ben Parrish" writes: > Well, everything looks installed okay, but when I compile this : > > #include > main() { > string test; > } > > ...I get pages full of errors talking about "multiple definitions" of basic_s > tring-related stuff. You need to upgrade your compiler + dev tools. See: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ or, directly to the ftp site: ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/egcs-1.1/ > > I apologize in advance for the low-level nature of this request. I'll catch > on fast. :) We've all been there. Good luck. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Thu Sep 24 04:01:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: Bash 2.02.1(1) - wrong work with status keys (NumLock, CapsLock) Message-ID: <360A0D87.C2A90FAC@fel.cvut.cz> CapsLock: * When bash is running, my system sometimes switch on CapsLock LED diode and starts printing big leters. It's realy deadly to switch it back. * When in bash is CapsLock, first line of keyboard is shifted (keys ~, 1 ... 0,-,=) keys [];',./ are shited too. It's wrong! In this mail is described same problem but not solution was posted. b19: bash and the Caps Lock Key Keith A. Reed (KREED@co.riverside.ca.us) Fri, 11 Sep 1998 11:08:52 -0800 NumLock: * When numlock is switched on, I've problems with arrows keys, I can browse history, I can't move in cmd line. This problem is caused by Sergey's CygWin32.dll, if I use original DLL from cygnus B19 package all is corect. I'm using bash 2.02.1(1), Sergeys CygWin32.dll from coolview - md5sum is d388339d43a0e83c6effd1de09a91c30 (I don't known how to get version from dll). Please if is here any known solution, write me. Thanks -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Robert.Cross@scottish-newcastle.co.uk Thu Sep 24 04:01:00 1998 From: Robert.Cross@scottish-newcastle.co.uk (Robert.Cross@scottish-newcastle.co.uk) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] Message-ID: <01J26MWZV3KI000L6H@scottish-newcastle.co.uk> At the risk of introducing a new flame-war, could I point out one possible reason to leave the install as .tar.gz, and not use WinZip, etc. gnutar and gzip are free and come with the gnu-win32 installation, WinZip isn't (free) and doesn't (come with gnu-win32). IMHO, its a bad idea to rely on the user having extra software, even if widely available. After all, not everyone can get frequent access to the 'net. Sorry if this offends anyone. Bob Cross. Disclaimer: My opinion is like my fingerprint - unique to me. From pvogel@chromatic.com Thu Sep 24 04:01:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: More NT inetd questions References: <36080BC6.725FF3F8@ece.gatech.edu> Message-ID: <000101bde786$de1fc5a0$3565a8c0@dolphin.chromatic.com> Based on what I see from inetd -d, I'd say inetd is taking an ACCESS_VIOLATION right after the accept of the telnet connection. Actually, it is probably in.telnetd, and not inetd taking the exception, since inetd continues to run. -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Charles Wilson > Sent: Tuesday, September 22, 1998 1:43 PM > To: gnu-win32@cygnus.com > Subject: More NT inetd questions > > > I have gnu-win up and running, and am trying to set up Sergey's remote > tools package. I have installed inetd as a service using srvany, and it > seems to start running ok - at least according to the "services" control > > panel applet. It is running under a local account, "services" which is a > > member of the "Users" group, but with permission added to allow: "Act as > > part of operating system," "Replace a process level token," and > "Increase quotas." However, I can't seem to telnet into my machine. Even > > using localhost, I get the following: > > cwilson : BELGARION : ~ > telnet localhost > Trying 127.0.0.1... > Connected to belgarion.res.gatech.edu > Escape character is '^]'. > Connection closed by foriegn host. > cwilson : BELGARION : ~ > > > I get similar transcripts telnetting in from other machines. However, I > know that _something_ is running, because if I stop inetd from the > "services" control panel applet, the transcript looks like this: > > cwilson : BELGARION : ~ > telnet localhost > Trying 127.0.0.1... > telnet: Unable to connect to remote host: error 111 > cwilson : BELGARION : ~ > > > Does anyone know what the problem is, and how to fix it? > > --Chuck Wilson > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 24 04:01:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: [FAQ] gnuwin32 mini FAQ second draft Message-ID: <360b7cde.5023873@mail.weiser.saale-net.de> Hello folks, it took a bit long, but here it is: the second draft of the gnuwin32 mini FAQ and resource pointer. I mainly cleaned up and devided it into seperate parts for mingw32 and cygwin32 to avoid confusion. There are also some new URLs and some old ones got updated. I would greatly appreciate any feedback, escpecially of course from volunteers who want to write some section ( for example those marked like '[ text goes here. any volunteers? ]' ;). Also I would like to merge the '1.1.4. Options for the CYGWIN32 environment variable' article into one listing. Geoffrey, Michael and Sergey, could you please mail me if this is okay for you? (Of course you get mentioned in the acknowledgements. :) For the traffic paranoid: the file itself has 7,698 bytes. >From now on I would start to post it regularly every two weeks, although it's not complete yet. If there are any protests or reasons not to do so, please mail me. But here it goes: gnuwin32 mini FAQ and resource pointer $Id: gnuwin32-mini-faq.txt,v 1.5 1998/09/23 23:02:30 michael Exp $ 0. Introduction This document tries to answer the gnuwin32 mailing list's most frequently asked questions. It is not intended to replace any other document you should have read before mailing a question to the list but tries to give a comprehensive list of such resources. Also it tries to collect all related, interesting and up-to-date download locations. 1. Cygwin32 Before doing anything else you should make sure that you have updated your cygwinb19 package, even and especially if you just downloaded and installed it. - Sergey Okhapkin's coolview package contains an updated cygwinb19.dll that reflects the latest developments and fixes a lot of known problems. It is the latest resource and even newer than the b19.1 update found on Cygnus' site. - Mumit Khan's compilation of egcs for the cygwinb19.dll fixes lots of problems with the tools that come with the environment, especially if you're using the C++ compiler. This is a drop-in replacement for the gcc toolset. URL's are listed below. 1.1. Cygwin32 most frequently asked questions If your problem doesn't go away after the above mentioned updates, perhaps the following QA's help solving it: 1.1.1. Binary mounts [ text goes here. any volunteers? ] 1.1.2. Long pauses occuring randomly in bash [ text goes here. any volunteers? ] 1.1.3. Windows 95 freezing up [ text goes here. any volunteers? ] 1.1.4. Options for the CYGWIN32 environment variable Michael Hirmke writes: It is not complete, but IMHO better than nothing: [no]strip_title - works in conjunction with 'title'. Strips the path spec from what is displayed in the console title bar when the program is run. [no]binmode - Use 'binmode' as the default open mode when the mode is not otherwise specified in the open or by mount. [no]glob - Do not perform globbing operations on the command line when a cygwin process is being invoked from a non-cygwin shell. strace - A cygwinb19.dll debugging aid. Setting mask to '1' will cause reams of information about the operation of cygwin to be written to 'file' as cygwin operates. The rest of the bits control the display various cygwin subsystems. For a complete list check out /usr/include/sys/strace.h. The cache setting controls how much strace output will be held in memory before being output to disk. Sergey Okhapkin writes: [no]tty - disable(default)/enable tty support for consoles. [no]title - disable/enable(default) displaying of a current running proces's command line on a console title. If you run my patched cygwinb19.dll, more options are available: [no]ntea - disable(default)/enable usage of extended file attributes on Windows NT. [no]mixed - disable(default)/enable case-sensitive filenames on ntfs partitions. Goeffrey Noer writes about CYGWIN32=tty: With tty mode, ttys are more Unix-like but will prevent some non-Cygwin32 console apps from working correctly. 1.2. Cygwin32 resources 1.2.1. General information If the above doesn't answer your question you should read the cygwin32 FAQ at http://www.cygnus.com/misc/gnu-win32/faq.html before posting any question to the list. Please also research your question via the Searchable Mail Archives at http://www.cygnus.com/ml/gnu-win32 . Most problems have already been discussed and solved on the list. If you are searching for a port of a specific program or further information on a certain topic, you should check out the following cygwin32 related sites: 1.2.2. Web sites http://www.cygnus.com/misc/gnu-win32/ (project page) http://www.cygnus.com/pubs/gnupro/ (comercial page) http://www.cygnus.com/misc/gnu-win32/faq.html (cygwin32 faq) http://www.cygnus.com/ml/gnu-win32 (searchable mailing list archive) http://www.eGroups.com/list/gnu-win32/ (mailing list archive mirror) http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt (Michael Hirmke - package porting notes) http://dao.gsfc.nasa.gov/software/grads/win32/X11R6.3/ (Arlindo da Silva - X11R6.3 binaries) http://gnu-win32.paranoia.ru (Chuck Bogorad - ports - sometimes down) http://www.alank.net/ (GNU-Win32 Bash Configuration) http://www.dol.ru/users/valtul (Valery Tulnikov - ports) http://www.freeyellow.com/members5/gw32/ (Earnie Boyd - resource pointer) http://www.geocities.com/SiliconValley/Garage/8516/gimp/gimpw32.html (Craig Setera - gimp) http://www.itribe.net/virtunix/ (more tools and man pages) http://www.kedemel.demon.co.uk/ (Darren - ports) http://www.lexa.ru/sos (Sergey Okhapkin - updates and ports) http://www.multione.capgemini.fr/tools/pack_ipc/ (Ludovic Lange - ipc package) http://www.parallax.co.uk/~andyp/index_text.html (Andy Piper - ports) http://www.tiac.net/users/cgf (Christopher Faylor - ports) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan - updates and ports) 1.2.3. FTP archives ftp://go.cygnus.com/pub/ftp.cygnus.com/gnu-win32 (cygwin32 FTP site) ftp://dao.gsfc.nasa.gov/pub/uwm_coads/X11R6.3 (Arlindo da Silva - X11R6.3 binaries) ftp://ftp.cs.nyu.edu/pub/local/fox/cygwin32 ftp://pipeline.ucsd.edu/pub/dsf/cygwin32 (David Fox - RPM port and packages) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ (Michael Hirmke - German mirror and ports collection) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey Okhapkin - fixes and ports) ftp://ftp.parallax.co.uk/pub/andyp (Andy Piper - fixes and ports) ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/ (Mumit Khan - egcs binaries) 2. Mingw32 2.1. Mingw32 resources 2.1.1. Web sites http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/ (Jan Jaap van der Heijden - gcc binaries) http://www.freeyellow.com/members5/gw32/ (Earnie Boyd - resource pointer) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters - project page) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan - updates and ports) 2.1.2. FTP archives ftp://agnes.dida.physik.uni-essen.de/home/janjaap/mingw32 (Jan Jaap van der Heijden - gcc binaries) ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/ (Michael Hirmke - German mirror and ports collection) ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/ (Mumit Khan - egcs binaries) 4. Acknowledgements Special thanks go to Earnie Boyd who wrote the first version of this document. I of course also want to thank all the developers at Cygnus and all over the net for developing such a great development environment. :) 5. Legal stuff I disclaim everything. :) Copyright (c) 1998 by Michael Weiser, all rights reserved. # end of file -- bye, Michael Ich bin gegen Hueftknochen! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 24 04:01:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: Permissions? Message-ID: <19980923184138.23621.rocketmail@send104.yahoomail.com> Add `ntea' to the list of values for the CYGWIN32 environment variable. `ntea' is for NT Extended Attributes. CAUTION: If you have this set for a FAT on NT then you will get an `EA DATA. SF' file that will only grow larger. Also, this `EA DATA. SF' file will be created on a floppy. ---john_r_velman@mail.hac.com wrote: > > > Woops! I meant to include this: > > My system is NT4 SP3, NTFS file system > > Thanks, > > John Velman > jrvelman@mail.hac.com > > > ______________________________ Reply Separator _________________________________ > Subject: Re: Permissions? > Author: earnie_boyd@yahoo.com at mime > Date: 9/23/98 9:47 AM > > > What's your system?! > > WinNT 3.51, 4 or 5, Win95 or Win98? > > > ---john_r_velman@mail.hac.com wrote: > > > > > > Can someone point me to an explanation of how Cygwin handles > > permissions, and -- specifically -- how I can get root > permission? > > > > I just ran a-foul of trying to configure a package where > configure > > tests to see if it can find the sources by testing for a > certain file > > to be readable. It turned out that this particluar package had > a lot > > of permissions set to -rw-r-----. Probably this is the case > in a > > number of directories as well as a lot of files in this > directory. > > > > I could try changing all permissions in all directories with > find, but > > it would be a lot cleaner to be able to do an su like I do on > my Linux > > box. > > > > And by the way, how does Cygwin know what the permisions are, > anyhow? > > It appears that this has little if anything I can find in > explorer > > file properties. > > > > Thanks, > > > > John Velman > > jrvelman@mail.hac.com > > - > > For help on using this list (especially unsubscribing), send a > message to > > "gnu-win32-request@cygnus.com" with one line of text: "help". > > > > == > - \\||// > -----------o0O0--Earnie--0O0o------------ > -- earnie_boyd@yahoo.com -- > -- http://freeyellow.com/members5/gw32 -- > --------------ooo0O--O0ooo--------------- > > PS: Newbie's, you should visit my page. > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > RFC-822-headers: > Received: from CONVERSION-DAEMON by mail.hac.com (PMDF V5.1-12 #26580) > id <0EZQ00B01XDM9O@mail.hac.com> for "john r velman"@mime.mail.hac.com; Wed, > 23 Sep 1998 09:49:01 -0700 (PDT) > Received: from PROCESS-DAEMON by mail.hac.com (PMDF V5.1-12 #26580) > id <0EZQ00B01XDJ95@mail.hac.com> for "john r velman"@mime.mail.hac.com; Wed, > 23 Sep 1998 09:48:58 -0700 (PDT) > Received: from fw-es05.hac.com by mail.hac.com (PMDF V5.1-12 #26580) > with ESMTP id <0EZQ005FHXDKTC@mail.hac.com> for > "john r velman"@mime.mail.hac.com; Wed, 23 Sep 1998 09:48:57 -0700 (PDT) > Received: from send1e.yahoomail.com ([205.180.60.64]) > by fw-es05.hac.com (8.9.0/8.9.0) with SMTP id JAA06299 for > ; Wed, 23 Sep 1998 09:50:05 -0700 (PDT) > Received: from [199.186.21.253] by send1e; Wed, 23 Sep 1998 09:47:02 -0700 (PDT) > Date: Wed, 23 Sep 1998 09:47:02 -0700 (PDT) > From: Earnie Boyd > Subject: Re: Permissions? > Reply-to: earnie_boyd@yahoo.com > Message-id: < 19980923164702.15339.rocketmail@send1e.yahoomail.com > > MIME-version: 1.0 > Content-transfer-encoding: 7BIT > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From panic@diku.dk Thu Sep 24 04:01:00 1998 From: panic@diku.dk (Arne Glenstrup) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: gcc produces foo.exe, not foo References: <19980923155818.46559@cygnus.com> Message-ID: Now that we have established that we need some (in my opinion) dirty $(EXEEXT)-stuff, what is the consensus on how to use it with regards to makefile targets and -o switches to compilers? Should a makefile look like this: EXEEXT = @EXEEXT@ goal$(EXEEXT): goal.c $(CC) -o goal$(EXEEXT) goal.c cp goal$(EXEEXT) anothergoal$(EXEEXT) mv goal$(EXEEXT) yet.another.goal or should it look like this: EXEEXT = @EXEEXT@ goal: goal.c $(CC) -o goal goal.c cp goal$(EXEEXT) anothergoal$(EXEEXT) mv goal$(EXEEXT) yet.another.goal -- Arne __________________________________________________________________________ Arne John Glenstrup | Windows 95: n. 32 bit extensions and a panic@diku.dk | graphical shell for a 16 bit patch to an 8 http://www.diku.dk/~panic/ | bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Thu Sep 24 04:01:00 1998 From: lhall@rfk.com (Larry Hall) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: server X References: <001201bde6b5$dae0da40$1f105c18@B0B> Message-ID: <3.0.5.32.19980923154741.00a05ce0@pop.ma.ultranet.com> The problem is DirectX versions don't get updated on NT with the same alacrity that they do on 9x. I think the currently supported(?) version is DirectX 3 on NT. Here is one place where capabilities in 9x outstrip those in NT! So a DirectX approach will not allow an XFree86 "port" to address the need of both 9x and NT users at this time... Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com At 10:48 PM 9/22/98 -0700, GoatCheez wrote: > In the most recent version of DirectX (6), another version of DirectDraw >was implemented(4). This version allows the locking and unlocking of a video >surface without the rest of the windows system to stop... in other words, >accessing the cideo memory directly isn't as scary as it previously was. >Before, when someone would lock the video memory, the entire cpu would give >access to only that program running, which made all other applications cease >untill the surface was unlocked. It was done for backwards compatablility or >something, but in DirectX6 there's an option to allow the system to respond >normally. The old system would also not allow debugging because the debugger >wouldn't be running then the surface was locked. A DirectX X server would >be a good idea. The only thing needed is some DirectX programmers that are >willing to port the XFree86 code... I know a little DirectDraw and would be >willing to help, but we would need a lot more. > >GoatCheez >gcheez@tampabay.rr.com > >-----Original Message----- >From: Jeff Sturm >To: David Fox >Cc: >Date: Tuesday, September 22, 1998 7:30 PM >Subject: Re: server X > > >>David Fox wrote: >>> Sergey Okhapkin writes: >>> > Porting _Xfree86_ to win32 is a bad idea, because Xfree86 requires >direct >>> > video hardware access. >>> >>> Could you expand on this further? Why is direct video hardware access >>> more of a problem under windows than it is under Unix? >> >>(A small clarification to Sergey's post: XFree86 is designed for video >>framebuffer access. It need not access video registers directly. >>Recent work in Linux for example has moved video drivers out of X and >>into the kernel; X opens the display via the /dev/fb device.) >> >>The big difference is that under Unix, the X server controls the entire >>display. Under Win32 however, X has to cooperate with the native window >>subsystem. I think that precludes an X server from accessing video >>memory from Win32 (does anyone know otherwise?). It may be able to >>write to backing store... I'm not sure if this is better (easier or more >>efficient, that is) than just translating X drawing requests into GDI >>requests. >> >>If it turns out that the "virtual framebuffer" technique is feasible, >>I'd contend that the XFree86 source is a better starting point than >>TOG's X11R6.4, since they have cleaned up and fixed a lot of the cfb >>code. >> >>-- >>Jeff Sturm >>jsturm@sigma6.com >>- >>For help on using this list (especially unsubscribing), send a message to >>"gnu-win32-request@cygnus.com" with one line of text: "help". > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". > > Larry - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Thu Sep 24 04:01:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Thu, 24 Sep 1998 04:01:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <360A0444.EF577C75@hem2.passagen.se> Mumit Khan wrote: > > On Wed, 23 Sep 1998, Arne Glenstrup wrote: > > > > > The problem is that it seems that when running > > > > gcc -o foo foo.c > > > > it produces not a file named foo, but a file named foo.exe. This has > > caused me problems when writing a Makefile somewhat like > > > > bar: foo.c > > gcc -o foo foo.c > > mv foo bar > > > > because it complains when trying to mv file foo. > > > > What is the standard way of circumventing this problem? Simply writing > > > > mv foo.exe bar.exe > > > > All my local configuration systems check for executable extension and > define a variable such as exeext to either the extension or "" if none > is added by default. Lots of GNU Makefiles are beginning to use this > as well. The Makefile rules look like the following: > > PROGRAMS = bar$(exeext) > > bar$(exeext): foo.c > $(CC) -o foo foo.c > mv foo$(exeext) bar$(exeext) > > Rather ugly, but currently the only usable solution. > > As for the rationale for adding the automatic .exe, I'm somewhat in > favor of, if not thrilled by, such "native compliance"; for mingw32, it > makes perfect sense (must have .exe to jive with native system and also > be executable by native shell); for cygwin32, bash can run programs > with or without .exe, but have trouble when running with native shell. Just an interesting fact. Executables can actually have any extension *except* "" in win32. The limitation of the ".exe" extension is not built in the kernel, but in the shell, i.e it is possible to start processes with any extension via `CreateProcess' but not with ShellExecute (which instead tries to find an associated program). /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Thu Sep 24 07:05:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Thu, 24 Sep 1998 07:05:00 -0000 Subject: remote & coolview: romania cxn too slow Message-ID: <19980924140502.14361.qmail@hotmail.com> Is there a mirror site for these, I tried to do the latest downloads and... 1/2 nada. "I will sing in my [NT] chains like the sea" some poet ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From johnvv@hotmail.com Thu Sep 24 08:11:00 1998 From: johnvv@hotmail.com (John vanVlaanderen) Date: Thu, 24 Sep 1998 08:11:00 -0000 Subject: [Q] How to load dll's at runtime Message-ID: <19980924151116.24226.qmail@hotmail.com> Hello Seregey, I have been trying to download several packages from your web site and they all got stalled every time. Actually, I thought you were in Romania, not Russia, my eyes must have been blurry. Is there any mirror site, or any other way I can get to them. Thanks in advance, John van V. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From julio@fundem.gov.ve Thu Sep 24 09:20:00 1998 From: julio@fundem.gov.ve (Julio Rojas) Date: Thu, 24 Sep 1998 09:20:00 -0000 Subject: NAT... Message-ID: <19980924161831.11743.qmail@findmail.com> Hi... I want to use NAT or IP Masquerade on NT... I've been searching for it and all I've found is the reference to Linux HOW-TO (recompiling kernels is not an allowed feature of NT ;) )... Do you have a ported version of this service to compile with CygWin32... I'm building a big MAN with few bucks and I don't have enough addresses for all the computers... I will be very grateful if you can send me any help... ANY!!! 8) Thanx in advance... ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From julio@fundem.gov.ve Thu Sep 24 11:49:00 1998 From: julio@fundem.gov.ve (Julio Rojas) Date: Thu, 24 Sep 1998 11:49:00 -0000 Subject: NAT Message-ID: <19980924184754.25720.qmail@findmail.com> Hi... Sorry if I alredy posted this message, but I'm new and I wanted to be sure... I want to use NAT or IP Masquerade on NT... I've been searching for it and all I've found is the reference to Linux HOW-TO (recompiling kernels is not an allowed feature of NT ;) )... Do you have a ported version of this service to compile with CygWin32... I'm building a big MAN with few bucks and I don't have enough addresses for all the computers... I will be very grateful if you can send me any help... ANY!!! 8) Thanx in advance... ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 24 11:49:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 24 Sep 1998 11:49:00 -0000 Subject: Egcs 1.1 having trouble with 'typename'? References: <71Kuu0hppfB@mike.franken.de> Message-ID: <360a091c.201750@mail.weiser.saale-net.de> Hello Michael, you wrote: [Winzip] >>Mhmm, didn't Mumit mean that? >He said: >"I distribute .tar.gz, instead of .zip, to avoid such issues" ??? > >Which issues, when WinZIP can deal with .tar.gz ? Okayokay, but the rest sounds quite right. ;-) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Thu Sep 24 11:49:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Thu, 24 Sep 1998 11:49:00 -0000 Subject: cd'ing to a shortcut References: <199809221646.MAA13022@smtp1.erols.com> Message-ID: <360b09a8.342332@mail.weiser.saale-net.de> Hallihallo Alex, Jr., du meintest: >> Jep, agreed. Real softlinks shouldn't be any problem on NTFS... >Actually, AFAIK only the POSIX layer of NT 4 exposes link features, and ?only >for hard links. NT 5 NTFS supports "reparse points", which sound like they >should have all the features needed for Unix-like links. Yes, I know. It was more a wish than reality. :-) -- tschoe, Michael Ich bin dagegen! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Thu Sep 24 11:49:00 1998 From: vance@deneb.com (Stephen Vance) Date: Thu, 24 Sep 1998 11:49:00 -0000 Subject: Using vpath directive in makefiles References: <19980923204055.29972.qmail@findmail.com> Message-ID: <360A56E5.85FEB22D@deneb.com> Alejandro Olchik wrote: > I????m having problem when using the vpath directive in a makefile. I have cywin B19 installed and I????m running make in unix mode. > > Look at the followin makefile > > vpath %.s //s/multinos/prj/nr1100/startup > > start.o: start.s > copy $< $@ > > When trying to execute it I receive the following message > make: *** No rule to make target `start.s', needed by `start.o'. Stop. > > Am I doing something wrong? The make program does not have to search for the .s file at the vpath directories? > > ----- > Free e-mail group hosting at http://www.eGroups.com/ > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". I've had problems like this, as well, even though the makefiles work with GNU make on Solaris. Instead, I ended up having to do pattern rules like %.o: //s/multinos/prj/nr1100/startup/%.s for each of the desired vpath components. -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hdeadman@bdsinc.com Thu Sep 24 11:49:00 1998 From: hdeadman@bdsinc.com (Hal Deadman) Date: Thu, 24 Sep 1998 11:49:00 -0000 Subject: ncurses or termcap Message-ID: <19980924181259.13610.qmail@findmail.com> I have a Word Star like editor that I would like to compile in the gnu-win32 environment. Everything compiles but I need a curses or a termcap library to link to. Is there such a library in the B19 release? Am I foolish to try to compile an editor that I love but didn't write and don't know much about? It compiles on all the versions of unix I have encountered and it used to work on MS-DOS but I need either termcap or curses. I am getting the following undefined symbols when I try to use curses: tigetstr, setupterm, tigetflag, tparm, tputs, tigetnum. I get the following undefined symbols when I try to use termcap: tgetent, tgetflag, tgetstr, tgoto, tputs, tgetnum. Thanks, Hal ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sbennett@ichips.intel.com Thu Sep 24 16:45:00 1998 From: sbennett@ichips.intel.com (Steve Bennett) Date: Thu, 24 Sep 1998 16:45:00 -0000 Subject: AFS executable problems Message-ID: <19980924230003.29372.qmail@findmail.com> I have an executable which builds and runs fine on an NFS drive mounted to my NT4 system. The same executable, however, will not run when copied onto a Transarc mounted AFS drive. Bash complains that there is "no such file or directory". The permissions (when I do an ls -l) give owner, group and global execute and read permissions. I get the same results when I build on the AFS drive. The build seems to go fine (just as it does on the NFS drive), so I am at a loss here. Any ideas? Thanks - Steve ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Thu Sep 24 16:45:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Thu, 24 Sep 1998 16:45:00 -0000 Subject: server X References: <3.0.5.32.19980923154741.00a05ce0@pop.ma.ultranet.com> Message-ID: <360AD97D.CF4C2BF4@ece.gatech.edu> This may change. NT5.0 has DirectX 6 support builtin, and rumors say it will be released (early, for a change) in the first quarter of 1999, Chuck Wilson Larry Hall wrote: > The problem is DirectX versions don't get updated on NT with the same > alacrity that they do on 9x. I think the currently supported(?) version > is DirectX 3 on NT. Here is one place where capabilities in 9x outstrip > those in NT! So a DirectX approach will not allow an XFree86 "port" to > address the need of both 9x and NT users at this time... > > Larry Hall lhall@rfk.com > RFK Partners, Inc. (781) 239-1053 > 8 Grove Street (781) 239-1655 - FAX > Wellesley, MA 02482-7797 http://www.rfk.com > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mpersico@erols.com Thu Sep 24 17:11:00 1998 From: mpersico@erols.com (Matthew O. Persico) Date: Thu, 24 Sep 1998 17:11:00 -0000 Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] References: Message-ID: <360ADF95.1C0A63FE@erols.com> Any version of WinZip 6.3 or greater definitely supports tar.gz out of the box. I pull stuff off the net all the time and have unpacked many a cygnus-bound tar.gz with this program. If this program doesn't work on a tar.gz, the tar.gz is corrupt. If it does not work on many tar.gz from many sources, then the user probably diddle with the configureation. Again, WinZip 6.3 OUT OF THE BOX, no configuration changes at all - no problem in my experience. > > I have neither the time nor inclination to figure out what various WinZip > options, or the correct version number, to do the right thing for .tar.gz > archive with hard- and sym-links in them. > > Regards, > Mumit > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- Get "The Perl Cookbook" Christansen and Torkington. O'Reilly. ISBN 1-56592-243-3 FAQ on serious steriods! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Thu Sep 24 17:11:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Thu, 24 Sep 1998 17:11:00 -0000 Subject: Unix pathname -> DOS pathname References: <1.5.4.16.19980924022008.0eaf73ec@fox.nstn.ca> Message-ID: <360A9CF1.AC7E0587@hem2.passagen.se> Tony Pires wrote: > > You will need to write some code to get the mount points from the registry > in order to perform the magic. Can you code? There actually seems to be a much better way to accomplish Unix -> dos path conversion. According to the FAQ there are some intersting functions: cygwin32_conv_to_full_posix_path cygwin32_conv_to_full_win32_path cygwin32_conv_to_posix_path cygwin32_conv_to_win32_path cygwin32_posix_path_list_p cygwin32_posix_to_win32_path_list cygwin32_posix_to_win32_path_list_buf_size cygwin32_split_path cygwin32_win32_to_posix_path_list cygwin32_win32_to_posix_path_list_buf_size I don't know the prototypes for these functions, but if I call cygwin32_conv_to_win32_path with the unix path as the first argument and a buffer to hold the converted path as the second argument I get the win32 path. By looking at the source it would be possible to get the exact prototypes. The developers ought to know about this. /Anders - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 24 19:59:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: read doesn't read the second time Message-ID: <19980924184701.22454.rocketmail@send1d.yahoomail.com> If you have WinNT: Make sure you have the Sergey's latest coolview update and the bash.exe.gz. Make sure that you `set CYGWIN32=tty %CYGWIN32%' before starting bash. This will fix the problem. I don't know about Win95. I can only try that from home and it will be a while before I can get to it. ---Tony Pires wrote: > > Try this: > > #! /bin/sh > echo -e "enter yes/no: \c"; read answer; echo $answer > echo -e "enter yes/no: \c"; read answer; echo $answer > > At 12:06 PM 9/21/98 -0700, you wrote: > >This script fails to wait for the second number to be input: > > > >read -p "enter number: " num1 > >read -p "enter another number: " num2 > >echo "done" > > > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Thu Sep 24 19:59:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: any directx examples? References: <001701bde4da$d6238f20$3520a8cf@wopr-no.-523> Message-ID: <199809242157.OAA04038@cygnus.com> Hi folks, On 20 Sep 98, at 17:08, the Illustrious Nicholas Marshall wrote: From: "Nicholas Marshall" To: Subject: any directx examples? Date sent: Sun, 20 Sep 1998 17:08:36 -0400 > i am trying to get Peter Hawkins port of directx 5 to compile; i have been > using Mumit Khan's EGCS 1.1 for Mingw32, but i have gotten a lot of > errors... [Disclaimer: These are only suggestions arrived at by a lot of trial-and- error attempts at generating DirectX stuff using Gnu-Win32 (EGCS-1.0.2- Mingw32) and may not work for your specific platform setup] Much depends on what the errors actually are. Here are some (NT4 WkS) hints: Verify that you have set the DX headers to reflect the actual MS DX API that you have installed on your system. Verify that you have all the necessary libraries (.a files). Verify that you have added the necessary modifications to the Gnu- Win32 headers as suggested by the author of the DX header port. Verify that you are linking the proper MS .dlls for DirectSound during the link phase (-l would someone point me to some examples of how to get dsound up > and working ,w/ gnu c++ compiler, i have looked all over the web and > havent found a thing... Welcome to the bleeding-edge! >... thanx No problem... Peace, Paul G. > > zipht > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 24 19:59:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <9809250047.AA04041@modi.xraylith.wisc.edu> Arne Glenstrup writes: > Now that we have established that we need some (in my opinion) dirty > $(EXEEXT)-stuff, what is the consensus on how to use it with regards to > makefile targets and -o switches to compilers? Should a makefile look > like this: Writing portable Makefiles usually always involves something that will always be "dirty" to some/most. I still have makefiles lying around in our projects that were portable between Unix and VMS, and talk about dirty! Make is a powerful tool, but the downside is that it's quite low-level and has been showing its age for a while now. Unfortunately, the general purpose and cross-platform alternatives just haven't caught on and have remained in the dark arena called "research tools". > > EXEEXT = @EXEEXT@ > > goal$(EXEEXT): goal.c > $(CC) -o goal$(EXEEXT) goal.c > cp goal$(EXEEXT) anothergoal$(EXEEXT) > mv goal$(EXEEXT) yet.another.goal > How about letting make saving you some error-prone typing: goal$(EXEEXT): goal.c $(CC) -o $@ goal.c cp $@ anothergoal$(EXEEXT) mv $@ yet.another.goal > or should it look like this: > > EXEEXT = @EXEEXT@ > > goal: goal.c > $(CC) -o goal goal.c > cp goal$(EXEEXT) anothergoal$(EXEEXT) > mv goal$(EXEEXT) yet.another.goal I prefer, and use, the former. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From eric.engberg@nextcard.com Thu Sep 24 19:59:00 1998 From: eric.engberg@nextcard.com (Eric Engberg) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: Trouble passing args, & where is 'more' Message-ID: <19980924173450.19653.qmail@findmail.com> Hey, I took some text-hacking code written on Unix that uses things like sed, awk, and perl, and I can't seem to get some of the simple scripts that use command line arguments to work. I am also looking for a tool like 'more' so stdout doesn't fly by if its more than 1 page. I'm also wondering how to 'alias' commands, and how to accomplish 'foreach' commands. Basically, I miss Unix. Below is an example of a script that doesn't work on NT (with cygwin32, and correctly telling it to use bash as the shell), but worked fine on Unix. Any help would be much appreciated. -Eric Eric.Engberg@nextcard.com #!/bin/csh # # lst2xlt # General sed script to tab-delimit SAS output (for import to Excel) # # USAGE: % lst2xlt sasoutfile1.lst [ sasoutfile2.lst ... ] # # 1. strips whitespace up to first non-white char of line # 2. strips whitespace after last non-white char of line # 3. removes page breaks # 4. removes SAS table border characters: {-,|,+} # 5. replaces 2 or more spaces with a single tab for parsing into cells # # EXAMPLES: % lst2xlt pprint.lst -- converts single file to pprint.xlt # % lst2xlt *.lst -- generates .xlt file for each .lst in dir # # NOTE: will *not* use any file that doesn't end in .lst, and does # not alter existing .lst input file # # ABF Tue Dec 05 1995 foreach sasfile ($*) if (${sasfile:e} =~ 'lst') then sed 's/^ *//\ s/ *$//\ s/|/ /g\ /^[-+ ]\{3,\}$/d\ s/ *//g\ s/ \{2,\}/ /g' $sasfile >! ${sasfile:r}.xlt else echo ${0}: Ignoring $sasfile endif end ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Thu Sep 24 19:59:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: on linking gnu and msvc etc References: <199809181651.MAA06368@nala.cs.utk.edu> Message-ID: <199809242144.OAA02816@cygnus.com> Hi folks, On 18 Sep 98, at 12:51, the Illustrious Jeffrey Russell Horner wrote: To: Mumit Khan Copies to: gnu-win32@cygnus.com Subject: Re: on linking gnu and msvc etc Date sent: Fri, 18 Sep 1998 12:51:31 -0400 From: Jeffrey Russell Horner > > >On Wed, 16 Sep 1998, Jeffrey Russell Horner wrote: > > > >[ on linking gnu and msvc etc ] > >> > >> I don't know if this discussion is relevant to the list, but you can > >> email me if you need more help. > > > >I believe this is very relevant, and quite in demand! Please share your > >experiences and expecially the list of gotchas. I and lots of others will > >appreciate it. > > > >Thanks in advance, > >Mumit > > > > Okay, I've changed the name of the thread... hope there's no opposition. > I've discovered many other things about compiling and linking objects on > NT , and I am more than happy to share my experiences with the list. But, > I'm afraid that my email might get pretty lengthy when doing a complete > brain dump, so let me know if you have more questions. I'd also be happy > to share source code.  Could you post them to the web and tell us where to find it? A little background: I am one of those developers who is porting MSVC/C++ based Win32 code to Gnu-Win32 using Mingw32 (currently EGCS-1.0.2)...I have no idea how many of us there are... My focus seems to be on getting the MS DX stuff to compile/build properly for a free 3d engine (CrystalSpace -- as a start) and expect to be porting, eventually, the Win32/Dx stuff to be integrated and buildable for all of the Gnu-Win32 (Mingw32) packages/tool sets (including Cygwin32). I don't seem to have the patience to dig through and convert MS headers, but I do have the patience to integrate/test pre-converted API sets for the Intel based Gnu-Win32 build environments/toolsets. The 3D engine (CrystalSpace: http://crystal.linuxgames.com/ ) seems to be an excellent test- bed for such things. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Thu Sep 24 19:59:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] References: <360ADF95.1C0A63FE@erols.com> Message-ID: <9809250055.AA04069@modi.xraylith.wisc.edu> "Matthew O. Persico" writes: > Any version of WinZip 6.3 or greater definitely supports tar.gz out of > the box. I pull stuff off the net all the time and have unpacked many a > cygnus-bound tar.gz with this program. If this program doesn't work on a > tar.gz, the tar.gz is corrupt. If it does not work on many tar.gz from > many sources, then the user probably diddle with the configureation. Evidently this thread is one of those that refuse to die. Sigh. To reiterate my point, I don't *care* what people use to install packages I distribute; if you install using the method outlined in the INSTALL file, I'll support it and answer problem reports; if you choose to use some other tool not distributed as part of the cygwin32 user tools, you're on your own. > Again, WinZip 6.3 OUT OF THE BOX, no configuration changes at all - no > problem in my experience. Well, others *have* had problems, and I've responded to quite a few. I don't know what the problem is (dealing with hard links, text mode convertion, whatever it may be). Dealing with such non-problems takes time away from important things that I could be spending my free time on. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gvaughan@oranda.demon.co.uk Thu Sep 24 19:59:00 1998 From: gvaughan@oranda.demon.co.uk (Gary V. Vaughan) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: [Q] How to load dll's at runtime References: <36091F33.EB433757@oranda.demon.co.uk> <360A565C.2F8261AF@deneb.com> Message-ID: <360A7837.DC15F876@oranda.demon.co.uk> Hi Stephen, thanks for the response! And your's too Sergey, I have read everything from the cygnus web site that seemed relevant now. Stephen Vance wrote: > > First, I heard that the header dlfcn.h had problems in this release > of Cygwin. That could cause problems. I think you can download the > source and copy it from there to patch things up. Indeed, there is no dlfcn.h in the b19 cdk.exe! And the defaults that glib falls back on don't work at all. I have done as you suggested, and copied (one of the two!) dlfcn.h files from the source into the compiler's include path. Well I on familiar ground again now that I can use the dlsym api, but that get's me only about 75% of the way there. > Here's a code snippet: > > void *open_symbol( const char *libname, const char *funcname ) > { > > void *libhandle; > > libhandle = dlopen( libname, RTLD_LAZY ); > if( libhandle == NULL ) > return NULL; > > return dlsym( libhandle, funcname ); > } > > int (*func)( int, char *); // For example > > func = open_symbol( "mylib.dll", "myfunc" ); > > (*func)( myint, mycharstar ); > > Invoking dlsym with a NULL libhandle give you a handle to the > executable. dlsym you say? I am used to using libhandle = dlopen (NULL, RTLD_NOW|RTLD_LAZY); to get an introverted handle. However I don't seem to be able to get either of them to work. I have followed the execution through with gdb, and in either case it fails inside cygwin.dll, with error: dlopen: Win32 Error #126 and error: dlsym: Win32 Error #87 respectively. > On some systems, this means *precisely* the executable > (Sun, NT); on others it means the executable and any shared library > explicitly linked with it (SGI, HP). I suspect Cygwin will behave > the same way as the regular NT stuff. Any other clues you might be able to help me with? I fear that there may be no support for the introspective handler within b19... but even confirmation of this would be good. Thanks for your patience. Gary. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From eric.engberg@nextcard.com Thu Sep 24 19:59:00 1998 From: eric.engberg@nextcard.com (Eric Engberg) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: Trouble passing args, & where is 'more' Message-ID: <19980924173443.19643.qmail@findmail.com> Hey, I took some text-hacking code written on Unix that uses things like sed, awk, and perl, and I can't seem to get some of the simple scripts that use command line arguments to work. I am also looking for a tool like 'more' so stdout doesn't fly by if its more than 1 page. I'm also wondering how to 'alias' commands, and how to accomplish 'foreach' commands. Basically, I miss Unix. Below is an example of a script that doesn't work on NT (with cygwin32, and correctly telling it to use bash as the shell), but worked fine on Unix. Any help would be much appreciated. -Eric Eric.Engberg@nextcard.com #!/bin/csh # # lst2xlt # General sed script to tab-delimit SAS output (for import to Excel) # # USAGE: % lst2xlt sasoutfile1.lst [ sasoutfile2.lst ... ] # # 1. strips whitespace up to first non-white char of line # 2. strips whitespace after last non-white char of line # 3. removes page breaks # 4. removes SAS table border characters: {-,|,+} # 5. replaces 2 or more spaces with a single tab for parsing into cells # # EXAMPLES: % lst2xlt pprint.lst -- converts single file to pprint.xlt # % lst2xlt *.lst -- generates .xlt file for each .lst in dir # # NOTE: will *not* use any file that doesn't end in .lst, and does # not alter existing .lst input file # # ABF Tue Dec 05 1995 foreach sasfile ($*) if (${sasfile:e} =~ 'lst') then sed 's/^ *//\ s/ *$//\ s/|/ /g\ /^[-+ ]\{3,\}$/d\ s/ *//g\ s/ \{2,\}/ /g' $sasfile >! ${sasfile:r}.xlt else echo ${0}: Ignoring $sasfile endif end ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jofa@berlin.snafu.de Thu Sep 24 19:59:00 1998 From: jofa@berlin.snafu.de (Joachim Faulhaber) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: linking tk's winMain.o with libfl under cygnus: linker-error References: <35CD9024.71108032@berlin.snafu.de> Message-ID: <360ABF6E.1A4198CB@berlin.snafu.de> Hello, a few weeks ago, I posted this problem. Meanwhile I found a workaround for it. > I am working on porting a c++ program from linux to windoze. The user > > interface is implemented via an extension of tk's wish. I'm using > Cygnus > b19.1 on win95 and tcl/tk8.0. > > ... but I couln't get rid of the following > linker error: > > C:\CYGNUS\B19\H-I386~1\lib\gcc-lib\i386-cygwin32\ > 2.7-B19\../../../libfl.a(libmain.o)(.text+0x9):libmain.c: > undefined reference to `yylex' > make: *** [myWish] Error 1 > > I figured out, that the error is independend of my own sources, by > compiling > the following minimal myWish program: > > ------------- makefile: ----------------- > tkConsole.o: tkConsole.c > gcc -c -I. tkConsole.c -o tkConsole.o > winMain.o: winMain.c > gcc -c winMain.c -o winMain.o > > myWish: winMain.o tkConsole.o > gcc tkConsole.o winMain.o -o myWish -ltk80 -ltcl80 -lfl -lm > -mwindows > ----------------------------------------- > The problem seems to be the flex-lib libfl, which somehow does't work correctly with windows. Some flexpert should look at it. But there's a workaround: Libfl doesn't do very much. It just provides a default yywrap function, which isn't needed in most cases. If you don't need to scan multiple files, use the %option noyywrap. If you need the yywrap function you can define your own. In both cases you can link your programs without libfl, and the linker-error disappears :) Regards Joachim Faulhaber - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Thu Sep 24 19:59:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames Message-ID: <199809241720.KAA12546@cygnus.com> Actually the .exe is appended to executable with or without a dot in the name. I discovered this while building teTeX. It built an xdvi.bin.exe and a couple others. -----Original Message----- From: Arne Glenstrup [ mailto:panic@diku.dk ] Sent: Wednesday, September 23, 1998 9:16 AM To: gnu-win32@cynus.com Subject: Re: cp/mv/rm problems with .exe extension filenames Hi, Has anybody found a REALLY good solution to this problem yet? I agree with Steven that Cygwin32 has a serious compatibility problem here: lots of makefiles will break, i fear. So here's what I have done in my case to circumvent the problem: 1) Wrote an autoconf macro: dnl MYMAC_SYS_EXE dnl ------------ dnl dnl If the compiler generates foo.exe when instructed to generate foo, dnl set $exe to `.exe', else set $exe to `' AC_DEFUN(MYMAC_SYS_EXE, [dnl AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CACHE_CHECK([whether the C++ compiler (${CXX}) generates .exe files], mymac_cv_sys_exe,[dnl cat > conftest.$ac_ext < DOS pathname References: <1.5.4.16.19980924022008.0eaf73ec@fox.nstn.ca> Message-ID: <19980924163126.3488.qmail@findmail.com> Can't you just use "cygpath"? If it's not part of the standard dist, it's on Sergie's page. Geoff You will need to write some code to get the mount points from the registry > in order to perform the magic. Can you code? > > There was a post sometime ago on this list that offered a DOS path to Posix > path conversion, but this is not what you want. Search the archives for > "posixpath" or "Command here" if this interests you. > > Alternately, get yourself a copy of "pwd" from the Mingw32 shell utils > ported by Earnie Boyd. This stuff can be found at ftp.franken.de in > pub/win32/develop/gnuwin32/mingw32/porters/Boyd_Earnie > > Good Luck. > > At 06:18 PM 9/21/98 +0200, you wrote: > > > >Hi, > >> > How can I convert a Unix pathname to a DOS pathname? Example: > >> > > >> > from: /usr/local/myfile > >> > > >> > to: D:\local\myfile > >> > > >> > (in the example /usr is mounted on D:) > >> > >> Hey, you just did! (Sorry, couldn't resist.) > >Actually it is more interessant, how to do it in shell scripts. > >One possibility is to launch > >echo `cmd.exe /c cd` > >to get the cwd in DOS/NT syntax, but the performance could be > >better. > >Does anybody know a better solution? > > > >Roger > > > >- > >For help on using this list (especially unsubscribing), send a message to > >"gnu-win32-request@cygnus.com" with one line of text: "help". > > > > > > > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7525 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Thu Sep 24 19:59:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Thu, 24 Sep 1998 19:59:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: > As for the rationale for adding the automatic .exe, I'm somewhat in > favor of, if not thrilled by, such "native compliance"; for mingw32, it > makes perfect sense (must have .exe to jive with native system and also > be executable by native shell); for cygwin32, bash can run programs > with or without .exe, but have trouble when running with native shell. Since MS seem to be trying to hide file extensions in their user interfaces these days, I wonder how long it will be before they drop the filename extensions on executables all-together and start using some attributes in the file system? Ben - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Thu Sep 24 22:32:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Thu, 24 Sep 1998 22:32:00 -0000 Subject: B19.1: Parse errors in socket.h Message-ID: <01BDE867.87B9ACD0@sos> mike agee wrote: > > /** THE FOLLOWING ERRORS ARE GENERATED **/ > > In file included from C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2. > 7-B19\\../../../../i386-cygwin32/include/windows.h:66, > from gettime.cpp:2: > C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 > 6-cygwin32/include/Windows32/Sockets.h:783: parse error before `__attribute__' Rename your file - the extension must be .c, but not .C! -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Thu Sep 24 22:32:00 1998 From: vance@deneb.com (Stephen Vance) Date: Thu, 24 Sep 1998 22:32:00 -0000 Subject: [Q] How to load dll's at runtime References: <36091F33.EB433757@oranda.demon.co.uk> <360A565C.2F8261AF@deneb.com> <360A7837.DC15F876@oranda.demon.co.uk> Message-ID: <360A8135.68EF870E@deneb.com> Gary V. Vaughan wrote: > Hi Stephen, thanks for the response! And your's too Sergey, I have read > everything from the cygnus web site that seemed relevant now. [ ... ] > > Here's a code snippet: > > > > void *open_symbol( const char *libname, const char *funcname ) > > { > > > > void *libhandle; > > > > libhandle = dlopen( libname, RTLD_LAZY ); > > if( libhandle == NULL ) > > return NULL; > > > > return dlsym( libhandle, funcname ); > > } > > > > int (*func)( int, char *); // For example > > > > func = open_symbol( "mylib.dll", "myfunc" ); > > > > (*func)( myint, mycharstar ); > > > > Invoking dlsym with a NULL libhandle give you a handle to the > > executable. > > dlsym you say? I am used to using > > libhandle = dlopen (NULL, RTLD_NOW|RTLD_LAZY); > > to get an introverted handle. However I don't seem to be able to get > either of them to work. I have followed the execution through with gdb, > and in either case it fails inside cygwin.dll, with > > error: dlopen: Win32 Error #126 > > and > > error: dlsym: Win32 Error #87 > > respectively. I don't know what the error codes mean. Givent that the first call fails, the second is not surprising. Some problems I have encountered in the past are: -- The symbols may not be exported properly using dll_export() if created with the MS tools. This is particularly tricky with C++. -- You may have name mangling issues if you're using C++. -- The semantics and actual functionality of a NULL library handle vary between systems. For example, in HP's shlib library (they don't use dlopen and friends) NULL is an invalid library handle, but they have a special constant that can be used for this purpose. -- PATH on NT, LD_LIBRARY_PATH on most Unices (and I believe Cygwin) and SHLIB_PATH on HP are not set properly. > > On some systems, this means *precisely* the executable > > (Sun, NT); on others it means the executable and any shared library > > explicitly linked with it (SGI, HP). I suspect Cygwin will behave > > the same way as the regular NT stuff. > > Any other clues you might be able to help me with? The only other suggestions I might have are: -- Try getting your introverted handle by explicitly passing argv[0]. -- Try using dlerror to tell you the error in English. > > > I fear that there may be no support for the introspective handler within > b19... but even confirmation of this would be good. > > Thanks for your patience. > > Gary. Good luck. Dynamic loading stuff can be tricky, particularly when portability is an issue. -- Stephen Vance | http://www.deneb.com Deneb Robotics, Inc. | mailto:vance@deneb.com 5500 New King Street | Phone: (248) 267-9696 Troy, MI 48098-2615 | Fax: (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Thu Sep 24 22:32:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Thu, 24 Sep 1998 22:32:00 -0000 Subject: WinZip vs. Tar (Was Re: WinZip [Re: Egcs 1.1 having trouble with 'typename'?]) References: <71Kuu0hppfB@mike.franken.de> Message-ID: <199809242240.PAA07352@cygnus.com> Hi folks, On 23 Sep 98, at 15:15, the Illustrious Mumit Khan wrote: Date sent: Wed, 23 Sep 1998 15:15:46 -0500 (CDT) From: Mumit Khan To: gnu-win32@cygnus.com Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] > On 22 Sep 1998, Michael Hirmke wrote: > > > Hi Michael, > > > > [...] > > >>Winzip by default also handles .gz und .tgz files - so if one isn't > > >>aware, that he better should use tar und gzip and only double clicks > > >>your archive, ... > > >Mhmm, didn't Mumit mean that? > > > > He said: > > "I distribute .tar.gz, instead of .zip, to avoid such issues" ??? > > > > Which issues, when WinZIP can deal with .tar.gz ? > > > > Let's end this discussion please. Agreed. > I have neither the time nor inclination to figure out what various WinZip > options, or the correct version number, to do the right thing for .tar.gz > archive with hard- and sym-links in them. Nor should you need to Mumit, as it is _not_ (imho) your responsibility given how much you are involved with EGCS. So, for those who are curious, WinZip can _not_ handle any sort of symbolic linking whatsoever, period. Of course, if it were run in a Unix shell, it might be able to... Let's face it, folks; WinZip is defined/designed for MS Windows platforms and not for anything else. The fact that WinZip is capable of handling .tar and .tgz is nothing more than a convenience that was added by NicoMac computing for those who haven't a clue about the differences between .tar, .tgz, .gzip, .zip or tar.gz type files. Of course, it is _convenient_ for non-Unix aware users... For the record -- You can _not_ integrate Unix sym_links with NT links or any other MS proprietary OS without some very special precautions taken beforehand, such as making available a _working_ Unix shell (Cygwin32/EGCS) or defining a program of some sort that can understand and/or translate a Unix sym_link to something that any MS platform can understand (The Alpha NTOS is the only exception I can think of). An MS .lnk file is _not_ a Unix sym_link, feel free to check the MS documentation. Peace, Paul G. Nothing real can be threatened. Nothing unreal exists. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Thu Sep 24 22:32:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Thu, 24 Sep 1998 22:32:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames Message-ID: <19980924172251.20992.rocketmail@send101.yahoomail.com> Y'all make this too hard!! Easier would be to create a shell wrapper for cp, mv and rm. For an example take a look at the install script that I created for the install process found in the archives and in http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt . ---Arne Glenstrup wrote: > > Hi, > > > Has anybody found a REALLY good solution to this problem yet? I agree > with Steven that Cygwin32 has a serious compatibility problem here: lots > of makefiles will break, i fear. > > So here's what I have done in my case to circumvent the problem: > > 1) Wrote an autoconf macro: > > dnl MYMAC_SYS_EXE > dnl ------------ > dnl > dnl If the compiler generates foo.exe when instructed to generate foo, > dnl set $exe to `.exe', else set $exe to `' > > AC_DEFUN(MYMAC_SYS_EXE, [dnl > AC_LANG_SAVE > AC_LANG_CPLUSPLUS > AC_CACHE_CHECK([whether the C++ compiler (${CXX}) generates .exe files], > mymac_cv_sys_exe,[dnl > cat > conftest.$ac_ext < dnl This sometimes fails to find confdefs.h, for some reason. > dnl [#]line __oline__ "[$]0" > [#]line __oline__ "configure" > #include "confdefs.h" > int main() { return 0; } > EOF > mymac_cv_sys_exe=no > if eval $ac_link; then > if test -f conftest.exe > then > mymac_cv_sys_exe=yes > fi > fi > rm -f conftest*] > ) > if test $mymac_cv_sys_exe = yes > then > exe='.exe' > else > exe= > fi > AC_SUBST(exe) > AC_LANG_RESTORE > ]) > > 2) Added the following line to configure.in: > > MYMAC_SYS_EXE > > 3) In all Makefile.in files, shell commands to move executables, are > changed like this: > > FROM TO > ==== == > $(CXX) -o foo $(OBJ) foo.c $(CXX) -o foo $(OBJ) foo.c > cp foo bar cp foo@exe@ bar@exe@ > mv foo oldfoo mv foo@exe@ oldfoo@exe@ > > $(CXX) -o hello.world hello.c $(CXX) -o hello.world hello.c > cp hello.world hello.underworld cp hello.world hello.underworld > mv hello.world hello mv hello.world hello@exe@ > > Am I right in thinking that this zany .exe-stuff is only appended to > executables without a dot in their name? > > 4) And of course invoking autoconf and configure and makefiles in the > right order as usual. > > > This seems right now to be my best bet for keeping things runnable on > several platforms besides Cygwin32. Comments on better ideas or > great mistakes in the above points are very welcome. > > -- Arne > __________________________________________________________________________ > Arne John Glenstrup | Windows 95: n. 32 bit extensions and a > panic@diku.dk | graphical shell for a 16 bit patch to an 8 > http://www.diku.dk/~panic/ | bit operating system originally coded for a 4 > bit microprocessor, written by a 2 bit company > that can't stand 1 bit of competition. > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@deb.lumax.com.tw Fri Sep 25 00:22:00 1998 From: root@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Fri, 25 Sep 1998 00:22:00 -0000 Subject: Curse Message-ID: I wish to run hexedit on WintNt. After I compiled it, the result is a mess. The libcurse could not control the screen under Cygwin32 window. Who could help me to cover it ? (I use B19.1 to compile it. I think the problem comes from libcurse.) Thanks, Debursky - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@deb.lumax.com.tw Fri Sep 25 01:01:00 1998 From: root@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Fri, 25 Sep 1998 01:01:00 -0000 Subject: Curse (fwd) References: Message-ID: Sorry, I forgot to set TERM. It's better now. Debursky On Fri, 25 Sep 1998, Debursky, Po-Sheng Ko wrote: > Andy, It's from your local.tar.gz. > Please give me some hints. > Thanks, > Debursky > > ---------- Forwarded message ---------- > Date: Fri, 25 Sep 1998 15:11:37 +0800 (CST) > From: "Debursky, Po-Sheng Ko" > To: gnu-win32@cygnus.com > Subject: Curse > > I wish to run hexedit on WintNt. > After I compiled it, the result is a mess. > The libcurse could not control the screen under Cygwin32 window. > Who could help me to cover it ? > (I use B19.1 to compile it. I think the problem comes from libcurse.) > > Thanks, > Debursky > > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Robert.Cross@scottish-newcastle.co.uk Fri Sep 25 01:22:00 1998 From: Robert.Cross@scottish-newcastle.co.uk (Robert.Cross@scottish-newcastle.co.uk) Date: Fri, 25 Sep 1998 01:22:00 -0000 Subject: DirectX (was Re: server X) Message-ID: <01J27VP3NPSO000L5V@scottish-newcastle.co.uk> Alexander Kriegisch wrote: #I do not know enough about it, so this is more a question than a hint: #How about DirectX and the like? Is it not designed for granting the #developer direct hardware access? As far as I can tell from M'softs' literature, DirectX is *not* designed to give direct hardware access. It appears to be graphics middleware, that is an application can rely on a certain set of services and capabilities, and a hardware vendor can ensure that their driver performs these services in the most optimal way possible, (or not - there's some really lousy driver code out there!). We keep being told that DirectX will make an appearance in NT, (5.0 perhaps?). This being the case if it provided direct hardware access, wouldn't that break NT's security model? Any other opinions anyone? Bob Cross. Disclaimer: My opinions, like my fingerprints, are unique to me. From adf@mentor-systems.com Fri Sep 25 02:22:00 1998 From: adf@mentor-systems.com (Austin David France) Date: Fri, 25 Sep 1998 02:22:00 -0000 Subject: B19 sh.exe symbolic links problem Message-ID: <004b01bde865$e714e890$010120c0@menpc1> The following shell script creates a directory tree, and creates a symbolic link to the top level directory. If you cd from within a shell script to the subdirectory via the symbolic link, it actually only uses the information in the sybmolic link, it loses the subdirectory part. #!/bin/sh # Setup test case mkdir -p /mydir/subdir ln -s /mydir /yourdir # Reproduce cygwin32.dll bug cd /yourdir/subdir pwd ls -l /yourdir/subdir # Cleanup rm /yourdir rmdir /mydir/subdir rmdir /mydir The pwd above in my case outputs /e/GnuWin32/mydir not /mydir/subdir as it should be. This all works fine in bash. For the moment, I have moved sh.exe out of the way and linked /bin/sh to /bin/bash. I am using: Windows NT 4 Telnetted via InetD binary mounts, bash version 2.01.1(2)-release, cygwinb19.dll (669150 bytes) Can anyone else re-produce this problem, or even better does anyone have a fix for sh.exe? Austin David France Mentor Systems plc mailto:adf@mentor-systems.com http://menpc1.mentor.misys.co.uk/help ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Fri Sep 25 05:34:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Fri, 25 Sep 1998 05:34:00 -0000 Subject: Bash 2.02.1(1) - wrong work with status keys (NumLock, CapsLock) (fwd) Message-ID: CapsLock: * When bash is running, my system sometimes switch on CapsLock LED diode and starts printing big leters. It's realy deadly to switch it back. * When in bash is CapsLock, first line of keyboard is shifted (keys ~, 1 ... 0,-,=) keys [];',./ are shited too. It's wrong! In this mail is described same problem but not solution was posted. b19: bash and the Caps Lock Key Keith A. Reed (KREED@co.riverside.ca.us) Fri, 11 Sep 1998 11:08:52 -0800 NumLock: * When numlock is switched on, I've problems with arrows keys, I can browse history, I can't move in cmd line. This problem is caused by Sergey's CygWin32.dll, if I use original DLL from cygnus B19 package all is corect. I'm using bash 2.02.1(1), Sergeys CygWin32.dll from coolview - md5sum is d388339d43a0e83c6effd1de09a91c30 (I don't known how to get version from dll). Please if is here any known solution, write me. Thanks -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hgfernan@usp.br Fri Sep 25 06:18:00 1998 From: hgfernan@usp.br (Hilton Fernandes) Date: Fri, 25 Sep 1998 06:18:00 -0000 Subject: (Fwd) [VGUI] FYI: GTK for Win32 Message-ID: <199809251239.JAA02639@swan2.uspnet.usp.br> Hello all! Maybe you'd like to know... Regards, --Hilton ------- Forwarded Message Follows ------- Date: Wed, 23 Sep 1998 02:43:04 +0200 From: Markus Fleck Organization: University of Bonn, Germany To: wxxt@elvis.informatik.uni-freiburg.de, disc@mnemonic.org, vgui-discuss@attila.apana.org.au, spitzak@d2.com Subject: [VGUI] FYI: GTK for Win32 Hi! FYI: There's a new port of "native" GTK for Win32: < http://www.vtt.fi/tte/staff/tml/gimp/win32/ >. Yours, Markus. -- //////////////////////////////////////////////////////////////////////////// Markus B Fleck - University of Bonn - CS Department IV - fleck@isoc.de UNIX Administrator - comp.lang.python.announce Moderator "GNU Gather" - Free Internet Groupware Project - http://cscw.net/gather/ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ------------------- Hilton Fernandes email: hgfernan@usp.br graduate student of Parallel Distributed Applications at Escola Politecnica (Polytechnic School) University of S. Paulo - Brazil - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From henry.cheung@pwc.ca Fri Sep 25 06:18:00 1998 From: henry.cheung@pwc.ca (Henry K. H. Cheung) Date: Fri, 25 Sep 1998 06:18:00 -0000 Subject: problem with windows gui program Message-ID: <199809251318.GAA07365@cygnus.com> Hi: I'm new to this. How do you compile and link a windows program? I've this (simplew32.c): #include #include int STDCALL WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) { char text[80]; MessageBox (NULL, text, "Test", MB_OK); return 0; } and when I use bash this on NT4 (Cygnwin32 Beta 19) with 'gcc -o simplew32.exe simplew32.c -lgdi32' I got this: c:\temp\cc0010481.o(.text+0x1c):simplew32.c: undefined reference to 'MessageBoxA@16' Please help. Thanks. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Fri Sep 25 08:35:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Fri, 25 Sep 1998 08:35:00 -0000 Subject: problem with SGI STL (was: Newbie getting started...) References: <3609E614.A7E2231E@sgrail.com> Message-ID: On Wed, 23 Sep 1998, Kimball Thurston wrote: > No worries. I've been trying to figure out why the SGI STL (now shipped with egcs, I guess) doesn't > compile , _even under the SGI compiler_!!!! I've tried egcs, SGI CC 7.1.x under Irix, MS VC++ > 5.0. All to no avail. There are various versions of SGI STL. EGCS unfortunately ships with an older version, not the current one from SGI. Unless you have some specific need for the SGI's version, might want to stick with what's distributed. Do you have problems with libstdc++/egcs string? There have been others who have successfully used SGI latest with egcs, but it takes a bit of work. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Petr.Novak@i.cz Fri Sep 25 08:35:00 1998 From: Petr.Novak@i.cz (Petr Novak) Date: Fri, 25 Sep 1998 08:35:00 -0000 Subject: B19: fgets from /dev/tty with echo off broken Message-ID: Hi, I was trying to port SSH-1.2.26 with minimal changes under cygwin32. I am using B19 tools & runtime. The major problem I have is that reading the passphrase from terminal fails and sometimes even freezes the Win95 kernel. I am using W95, I did not try Windows NT. When you turn echo off using tcsetattr and read a line using fgets, the fgets works fine while reading from stdin assigned to console, but loops until the buffer is overflown while reading from FILE *p = fopen("/dev/tty", "r"). It might have something to do with CRLF conversion not being done properly, as the fgets routine expects to find a \n or fills up the buffer. Pressing CTRL-BREAK or CTRL-C sometimes stops the program with signal 2, sometimes does not produce any result (and it is possible to close the BASH window from which the process was started) and sometimes hangs the whole W95 kernel. Any idea where the problem is? I was trying to debug the fgets, ___fill... and other routines, but I was not able to do it properly. Thanks in advance, -- Petr Novak ICZ a.s. Zirovnicka 6 CZ-106 00 Praha 10 Ph: +420 2 2424 5124 Fax: +420 2 2424 5125 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lewis.beard@wcom.com Fri Sep 25 09:04:00 1998 From: lewis.beard@wcom.com (Lewis Beard) Date: Fri, 25 Sep 1998 09:04:00 -0000 Subject: Including .dll portions in binary? Message-ID: <360BB8E0.A86B0D00@wcom.com> All, Is there a way, during the linking process or at some other time, to extract the portions of the cygwin32b19.dll (or whatever it is) and attach them into the binary I'm making. I ask because once I have a binary, I don't want to have to install the cygnus stuff on my target box, and it seems that the .dll is big. Is there any way to make pure stand-alone binaries? I know there are GPL issues, but both of these PCs are my PCs and nothing is for sale and nothing is being re-distributed. If there is no solution, then no big deal. I can just dump the .dll in the windows or windows/system dirs. Thanks, Lewis -- Lewis W. Beard 601-292-5267 lewis.beard@wcom.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lat@iki.fi Fri Sep 25 10:26:00 1998 From: lat@iki.fi (Lassi A. Tuura) Date: Fri, 25 Sep 1998 10:26:00 -0000 Subject: AFS executable problems References: <19980924230003.29372.qmail@findmail.com> Message-ID: |> The same executable, however, will not run when copied onto a |> Transarc mounted AFS drive. Bash complains that there is "no such |> file or directory". The permissions (when I do an ls -l) give owner, |> group and global execute and read permissions. |> |> I get the same results when I build on the AFS drive. The build seems |> to go fine (just as it does on the NFS drive), so I am at a loss |> here. |> |> Any ideas? Revert back to AFS 3.4a/Patch 3 (or 5). Patch 9 might also work, I have not yet tried it, but none of the patches above five work. This has been so at least for us on NT 4.0 SP3. BTW, at least patch 3 will fill your event log in approximately three minutes when you build on AFS (i.e. if run make with lots of files). It will create a event notification some five times a second. And it will be *really* slow, something like a factor of 20 slower than on local disk. I don't know if these two things are related. Hope this helps, //lat -- With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. --RFC1925, "The Twelve Networking Truths" - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From stuart@its.washington.edu Fri Sep 25 10:26:00 1998 From: stuart@its.washington.edu (Stuart Maclean) Date: Fri, 25 Sep 1998 10:26:00 -0000 Subject: programs wont read/write stdin/stdout under bash Message-ID: <199809251725.KAA27768@autobahn.its.washington.edu> HI all, I'm having trouble getting compiled C (cygwin19beta gcc) or java (sun jdk) programs to communicate with stdin and stdout when exec'ed from bash (cygwin19beta) under NT4. reading from stdin always produces an eof and writing produces no input. It seems as though the child process hasnt got open file descriptors 0,1 or 2. I suspect I am being incredibly dumb here. Any help gratefully appreciated. stu -- Stuart Maclean, Research Associate University of Washington ITS Research Program, College of Engineering Box 352500 Seattle, WA 98195-2500 Tel: (206) 543-0637 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lhall@rfk.com Fri Sep 25 10:26:00 1998 From: lhall@rfk.com (Larry Hall) Date: Fri, 25 Sep 1998 10:26:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <3.0.5.32.19980925091829.00a1f300@pop.ma.ultranet.com> At 12:59 PM 9/25/98 +1000, Ben Elliston wrote: >> As for the rationale for adding the automatic .exe, I'm somewhat in >> favor of, if not thrilled by, such "native compliance"; for mingw32, it >> makes perfect sense (must have .exe to jive with native system and also >> be executable by native shell); for cygwin32, bash can run programs >> with or without .exe, but have trouble when running with native shell. > >Since MS seem to be trying to hide file extensions in their user >interfaces these days, I wonder how long it will be before they drop >the filename extensions on executables all-together and start using some >attributes in the file system? > This day cannot come quick enough for me! This bogus association junk is a nightmare in my estimation. Presumably, before any such move is made, they have to at least provide the ability to store such attributes in a useful way on all their file system types. Since they seem willing to make modifications to their file systems, even when they are not backward compatible, this still seems like something they might do. I'm all for it!;-) Larry Hall lhall@rfk.com RFK Partners, Inc. (781) 239-1053 8 Grove Street (781) 239-1655 - FAX Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Werner_Kliewer@MPIC.mb.ca Fri Sep 25 10:26:00 1998 From: Werner_Kliewer@MPIC.mb.ca (Werner Kliewer) Date: Fri, 25 Sep 1998 10:26:00 -0000 Subject: Win95 osr1 vs. osr2 Message-ID: Hi, I just installed the cygnus win32 beta 19.1 environment on a desktop with Win95 OSR1 + a few additional patches, and a laptop with Win95 OSR2 and most current patches. The OSR2 version seems to be fairly stable, but the OSR1 locks up at frequent but somewhat random places. Is this something I can fix somehow? I have cleaned up the DOS paths and set up the PIF paths everywhere I can find, to an equal level, as near as I can find. Or is this something inherent in pre OSR2 Win95? Or is there a particular Win95 patch that I need? Is there a more recent level available that might address this? Or do I need to apply for an upgrade to my desktop PC to one of those new ones they are giving out now that have OSR2 or even Win98 on them? Werner Kliewer Manitoba Public Insurance "A computer without COBOL and FORTRAN is like a piece of chocolate cake without ketchup or mustard." -- John Krueger - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Fri Sep 25 10:26:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Fri, 25 Sep 1998 10:26:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames References: <199809241720.KAA12546@cygnus.com> Message-ID: On Thu, 24 Sep 1998, Parker, Ron wrote: > Actually the .exe is appended to executable with or without a dot in the > name. I discovered this while building teTeX. It built an xdvi.bin.exe > and a couple others. Odd. Here's the advertised behaviour in egcs-1.1 and what I see as well: % gcc -o foo.bin foo.c % ls foo.bin foo.bin % ./foo.bin Foo here % What is the general consensus, if any, here? Here're the choices: 1. add .exe never. [ gcc -o foo [...] ==> foo ] [ gcc -o foo.exe [...] ==> foo.exe ] [ gcc -o foo.bin [...] ==> foo.bin ] 2. add .exe always, unless .exe is already there. [ gcc -o foo [...] ==> foo.exe ] [ gcc -o foo.exe [...] ==> foo.exe ] [ gcc -o foo.bin [...] ==> foo.bin.exe ] 3. add .exe only if no suffix is provided. [ gcc -o foo [...] ==> foo.exe ] [ gcc -o foo.exe [...] ==> foo.exe ] [ gcc -o foo.bin [...] ==> foo.bin ] I lean towards 3, which is what's implemented -- it follows conventional wisdom on this particular platform, doesn't screw up native shells and other tools that expect executables to .exe (unless you explicitly want some other extension), and it has the added benefit of being compatible with how the native compilers work. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsharma@swi.com Fri Sep 25 13:32:00 1998 From: dsharma@swi.com (Dushyant Sharma) Date: Fri, 25 Sep 1998 13:32:00 -0000 Subject: syslog call->where is it logged on Win-NT Message-ID: <19980925203244.607.qmail@findmail.com> Here is the code snippet using syslog call. Where are the logs strored?? Can they be seen by Event Viewer. Thanks for your response, Dushyant Sharma #include int main ( ) { char *application = "??????"; openlog( application, 0, LOG_USER ); syslog( LOG_EMERG, "Test this thang00" ); syslog( LOG_EMERG, "Test this thang11" ); syslog( LOG_EMERG, "Test this thang22" ); closelog(); return 0; } ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ggp@informix.com Fri Sep 25 13:32:00 1998 From: ggp@informix.com (Guy Gascoigne - Piggford) Date: Fri, 25 Sep 1998 13:32:00 -0000 Subject: DirectX (was Re: server X) References: <01J27VP3NPSO000L5V@scottish-newcastle.co.uk> Message-ID: <199809251921.MAA06367@clifford.pdx.informix.com> Well to be honest you could probably implement an X server simply using the functionality that comes with DirectX 3 (this is the level that is provided in NT 4.0 SP3). This does give very fast raster/bitmap access to the whole screen. There are plenty of apps/games that do this and get great results even on NT. The problem comes with 3D, NT has no support for Direct 3D and won't until NT 5.0 is released. If you have fast enough API access, do you actually require hardware access? Guy - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smccormi@kgo.csc.com Fri Sep 25 13:32:00 1998 From: smccormi@kgo.csc.com (Scott McCormick) Date: Fri, 25 Sep 1998 13:32:00 -0000 Subject: Timezones and the strftime function. Message-ID: <19980925200218.3247.qmail@findmail.com> The problem I'm having concerns outputting the correct timezone using strftime function. I'm compiling using g++ and am using a date class to output messages to an error log file. I would like for the timezone to appear in this string. According to ANSI C, the timezone can be output through a %Z format. I've tried the same compile on SunOS and HPUX and both report out the timezone. I saw that each had a preset environent variable TZ which stored information regarding the timezone. Is this done in a different manner for using cyg-win32? I saw an earlier message regarding prolems with this, but I was wondering if a fix had been developed yet. ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 25 13:46:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 25 Sep 1998 13:46:00 -0000 Subject: remote & coolview: romania cxn too slow References: <19980924140502.14361.qmail@hotmail.com> Message-ID: <360de7d3.2550567@mail.weiser.saale-net.de> Hello John, you wrote: >Is there a mirror site for these, I tried to do the latest downloads >and... You should be able to find it on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Okhapkin_Sergey , too. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lewis.beard@wcom.com Fri Sep 25 13:46:00 1998 From: lewis.beard@wcom.com (Lewis Beard) Date: Fri, 25 Sep 1998 13:46:00 -0000 Subject: Make addity? Message-ID: <360BB627.78921C74@wcom.com> All, As requested, I looked through back issues of the newsletter before posting. I DID find mention of my problem, but no solution was given and the answer didn't satisfy me. I have a problem in that, when I modify my make files, I get: makefile:48: *** missing separator. Stop. To me this is a serious problem; it occurs when I add new lines or delete lines entirely. It happens whether or not I have a unix or dos line type. The only way I can get around it is to keep my makefile on a unix box on the internet and make changes there and ftp it across, because once I change the length of the file or add lines or whatnot, I get this seperator problem. What gives? Why this is happening? Is there a way around it without a new or patched make? The person who answered the original poster (Geoofrey Noer, I believe) said "make 3.77 fixes this", essentially. He poster also said that a later patch of b19 will fix it, but that make 3.77 wont fix it. That totally confused me. :) 3.77 make fixes that now, but later it wont? Also, where can I get source or binaries to the version of make (3.77) listed above, if indeed it does fix it? I'm new to the whole project, so I have yet to find my way around. Sorry for the totally newbie question. Lewis -- Lewis W. Beard 601-460-5267 lewis.beard@wcom.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 25 13:50:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 25 Sep 1998 13:50:00 -0000 Subject: ncurses or termcap References: <19980924181259.13610.qmail@findmail.com> Message-ID: <360fe929.2892679@mail.weiser.saale-net.de> Hello Hal, you wrote >I have a Word Star like editor that I would like to compile in the gnu-win32 environment. Everything compiles but I need a curses or a termcap library to link to. Is there such a library in the B19 release? You can find a precompiled version of ncurses-4.1 on http://www.xraylith.wisc.edu/~khan/software/gnu-win32/porters/Hirmke_Michael but you can also build it yourself following the instructions in Michael's Package Report at http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt . The Report also includes some instructions and download locations for already ported text editors like vim and joe. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Fri Sep 25 15:08:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Fri, 25 Sep 1998 15:08:00 -0000 Subject: [ANNOUNCE] gdb and process attach. References: <01BDE7A6.83449820@sos> Message-ID: <360C0EDD.858DCD07@uni-duesseldorf.de> > More news - I successfully compiled unix versions (not win32 ports) of tcl, > tk and tix, and built gdb with X window interface. It's very usefull for > debugging while telnetting into NT box. If anybody will be interesting in > that variant of gdb, I'll upload the executable on my web site. If there is enough space, please do so. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 25 15:10:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: WinZip vs. Tar (Was Re: WinZip [Re: Egcs 1.1 having trouble with ' References: <199809242240.PAA07352@cygnus.com> Message-ID: <71XFHOt$pfB@mike.franken.de> Hi Paul, [...] > So, for those who are curious, WinZip can _not_ handle any sort of >symbolic linking whatsoever, period. Of course, if it were run in a Unix >shell, it might be able to... > > Let's face it, folks; WinZip is defined/designed for MS Windows platforms >and not for anything else. > > The fact that WinZip is capable of handling .tar and .tgz is nothing more >than a convenience that was added by NicoMac computing for those who >haven't a clue about the differences between .tar, .tgz, .gzip, .zip or >tar.gz type files. Of course, it is _convenient_ for non-Unix aware users... Perhaps once again I wasn't clear enough - I *don't want* .zip archives, too. All I wanted to point out was, that it doesn't help to use .tar.gz archives to avoid problems with WinZIP, because WinZIP can deal with .tar.gz and .tgz ! And if users didn't configure WinZIP as appropriate, they will run into troubles. [...] Sorry for the confusion. > > Peace, > > Paul G. BYe. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Fri Sep 25 15:10:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: Remote tar References: <3606D8BE.BBFCADE2@deneb.com> Message-ID: <360C107F.EE95AC2E@uni-duesseldorf.de> > I have been trying to use the Cygwin tar to backup remotely to a tape > drive on a Linux host, but get error messages that the remote host or > device can't be found. I have verified that I can rsh to the Linux box, > although the rsh being used is the WinNT version. I have also used the > Linux tar on the machines other boot personality successfully to backup > up remotely. > > I stopped short of installing ssh and trying to use it as the > --rsh-program, although I did explicitly specify the WinNT version with > no different behavior. > > Does anyone know why this doesn't work? Current theories are: > > 1) WinNT rsh does not supply the necessary piping functionality for the > rmt interface. > 2) The binary open issue is rearing its ugly head yet again. > 3) This functionality has never been tested or explicitly ported under > Cygwin. > > For reference, the command being used is > > tar cvf kat:/dev/st0 . you may be using rsync-2.1.1 from http://samba.anu.edu.au/rsync . Just configure and make the package on both systems. Run rsync as standalone daemon on the Linux machine and access it via the client version of rsync on WinNT. Currently the orginal distribution will only support the client part of rsync on Cygwin32. I am working on the port to support the daemon part too. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 25 15:10:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: server X References: <71KuuUEppfB@mike.franken.de> <3609DE0B.894D84F5@ina.de> Message-ID: <360bd279.308032@mail.weiser.saale-net.de> Hello Alexander, you wrote: >> >Why is direct video hardware access >> >more of a problem under windows than it is under Unix? >> Because Windows NT doesn't allow any direct access to the hardware. >I do not know enough about it, so this is more a question than a hint: >How about DirectX and the like? Is it not designed for granting the >developer direct hardware access? I also don't know much about X and the way it works, but why do we need direct hardware access anyway? AFAIK X opens some windows and makes simple drawing which should map on top of the normal Win32 API with its windowing and drawing functions. For example I'm running XWin32 4.1 demo here and it's able to open each X client in its own window on the normal Windows desktop without needing DirectX. So with some luck, we should be able to drop all the hardware code from some XFree86 server and implement all the X calls with native Windows calls. Of course it wouldn't be very portable and not very easy to integrate in the normal source tree but it should be possible. -- man liest sich, Micha Ich bin dagegen! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gcheez@tampabay.rr.com Fri Sep 25 15:10:00 1998 From: gcheez@tampabay.rr.com (GoatCheez) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: DirectX (was Re: server X) Message-ID: <030901bde8e6$e99db1b0$1f105c18@B0B> DirectX is already in NT, but not the most current version. DirectX 3 is supported in NT4, and the current beta of NT5 supports DX6. DirectX doesn't allow DIRECT access to all of the video hardware, but it is possible to get direct access to video memory. The portion of DirectX that a X Server would use would be DirectDraw. NT4 had DirectDraw 3 support. The latest version of Direct Draw is 4. the only MAIN difference with version 4 of DirectDraw is that when accessing video memory directly, it doesn't suspend all other processes. It is VERY possible to make an X Server that uses DirectX and works on 9x,and NT4 and NT5. GoatCheez gcheez@tampabay.rr.com -----Original Message----- From: To: Date: Friday, September 25, 1998 12:19 PM Subject: DirectX (was Re: server X) >Alexander Kriegisch wrote: > >#I do not know enough about it, so this is more a question than a hint: >#How about DirectX and the like? Is it not designed for granting the >#developer direct hardware access? > >As far as I can tell from M'softs' literature, DirectX is *not* designed to >give direct >hardware access. It appears to be graphics middleware, that is an application >can >rely on a certain set of services and capabilities, and a hardware vendor can >ensure >that their driver performs these services in the most optimal way possible, (or >not - there's >some really lousy driver code out there!). > >We keep being told that DirectX will make an appearance in NT, (5.0 perhaps?). >This being >the case if it provided direct hardware access, wouldn't that break NT's >security model? > >Any other opinions anyone? > >Bob Cross. > >Disclaimer: My opinions, like my fingerprints, are unique to me. > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 25 15:10:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: B19: error in cygnus.bat References: <199809240701.JAA07678@fz-juelich.de> Message-ID: <360ce5d3.2038601@mail.weiser.saale-net.de> Hello Wilfried, you wrote: >I installed cygwin b19 under win95. The installation procedure >creates the file "cygnus.bat" in the installation directory. >In line 5 the environment variable %CYGROOT% is used but >still undefined. No, normally %CYGROOT% _is_ there and looks like SET CYGROOT=e:\dev\cygwin32.b19 while this part cygnus.bat is something like SET MAKE_MODE=unix SET CYGWIN32=tty binmode SET CYGROOT=e:\dev\cygwin32.b19 SET CYGFS=e:/dev/cygwin32.b19 SET CYGREL=b19 SET GCC_EXEC_PREFIX=%CYGROOT%\usr\lib\gcc-lib\ SET TCL_LIBRARY=%CYGROOT%\usr\share\tcl8.0\ SET GDBTK_LIBRARY=%CYGFS%/usr/share/gdbtcl SET PATH=%CYGROOT%\bin;%CYGROOT%\usr\bin;%PATH% for me. Perhaps you've simply deleted it? Just add it or try to install cygwin32 again, perhaps to some different directory. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 25 15:10:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: WinZip [Re: Egcs 1.1 having trouble with 'typename'?] References: <01J26MWZV3KI000L6H@scottish-newcastle.co.uk> Message-ID: <71XFGYTppfB@mike.franken.de> Hi, [...] >At the risk of introducing a new flame-war, could I point out one possible >reason >to leave the install as .tar.gz, and not use WinZip, etc. Perhaps once again I wasn't clear enough - I *don't want* .zip archives, too. All I wanted to point out was, that it doesn't help to use .tar.gz archives to avoid problems with WinZIP, because WinZIP can deal with .tar.gz and .tgz ! And if users didn't configure WinZIP as appropriate, they will run into troubles. [...] > >Sorry if this offends anyone. Want to say sorry, too. > >Bob Cross. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 25 15:10:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: [Q] How to load dll's at runtime References: <19980924151116.24226.qmail@hotmail.com> Message-ID: <71XFHb$$pfB@mike.franken.de> John vanVlaanderen [johnvv@hotmail.com] wrote: > > >Hello Seregey, > >I have been trying to download several packages from your web site and >they all got stalled every time. > >Actually, I thought you were in Romania, not Russia, my eyes must have >been blurry. > >Is there any mirror site, or any other way I can get to them. ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/ > >Thanks in advance, John van V. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Fri Sep 25 15:10:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: ncurses or termcap References: <19980924181259.13610.qmail@findmail.com> Message-ID: <71XFH4KppfB@mike.franken.de> Hi Hal, >I have a Word Star like editor that I would like to compile in the gnu-win32 >environment. Everything compiles but I need a curses or a termcap library to >link to. Is there such a library in the B19 release? > >Am I foolish to try to compile an editor that I love but didn't write and >don't know much about? It compiles on all the versions of unix I have >encountered and it used to work on MS-DOS but I need either termcap or >curses. > >I am getting the following undefined symbols when I try to use curses: >tigetstr, setupterm, tigetflag, tparm, tputs, tigetnum. > >I get the following undefined symbols when I try to use termcap: tgetent, >tgetflag, tgetstr, tgoto, tputs, tgetnum. Did you try: *ncurses-4.1* ----------- - what is it? - As soon as a text application needs to directly control its output to the screen (e.g. wants to place the cursor at location x y and then write text), ncurses is used. The panel and the forms libraries are included in this package. These new libraries support color, special characters and panels. - system - Windows NT4 German / SP3 - preliminaries - /bin/sh has to be *bash, not ash* - umount /bin (if mounted) - cp /bash.exe /bin/sh.exe - configure - works without changes - make - works without changes - make install - works without changes - notes - works the same way for ncurses-4.2 (according to noer@cygnus.com (Geoffrey Noer)) - package availability - on ftp.franken.de - in /pub/win32/develop/gnuwin32/cygwin32/porters/Hirmke_Michael - as ncurses-4.1-win32-bin.tar.gz - or ncurses-4.1-win32-bin.zip - contributed by - mh@mike.franken.de (Michael Hirmke) ??? > >Thanks, Hal Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tommy.reynolds@adtran.com Fri Sep 25 15:10:00 1998 From: tommy.reynolds@adtran.com (TOMMY REYNOLDS) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: Trouble passing args, & where is 'more' Message-ID: >Below is an example of a script that doesn't work on NT (with cygwin32, and >correctly telling it to use bash as the shell), but worked fine on Unix. > >Any help would be much appreciated. > >-Eric > >Eric.Engberg@nextcard.com > >#!/bin/csh ># ># lst2xlt ># General sed script to tab-delimit SAS output (for import to Excel) Well, the first line causes KSH / BASH, et. al. to try to run the C Shell instead of anything you have. C Shell was never meant to be used for scripting; I mean scripts were always to be written in Bourne shell because you *knew* you'd always have Bourne. Get the Z Shell (ZSH) for UNIX. It will compile under CYGWIN32 (with only a missing #define; make up a value for it). ZSH knows KSH / BASH / CSH / BOURNE all at once. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Fri Sep 25 15:10:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: NAT... References: <19980924161831.11743.qmail@findmail.com> Message-ID: <360ee845.2664721@mail.weiser.saale-net.de> Hello Julio, you wrote: >I want to use NAT or IP Masquerade on NT... I've been searching for it and all I've found is the reference to Linux HOW-TO (recompiling kernels is not an allowed feature of NT ;) )... Do you have a ported version of this service to compile with CygWin32... I'm building a big MAN with few bucks >and I don't have enough addresses for all the computers... I will be very grateful if you can send me any help... ANY!!! 8) No, IP masquerading hasn't been ported to cygwin32 yet and if MS doesn't integrate cygwin32 into the kernel it won't get ported in the future. That's just because cygwin32 is only a DLL on top of the OS while masquerading needs low level support from the OS. So you won't get around either waiting for NT 5.0 or buying some commercial solution. :-| -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vance@deneb.com Fri Sep 25 15:10:00 1998 From: vance@deneb.com (Stephen Vance) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: gcc produces foo.exe, not foo References: Message-ID: <360BA99B.6DBB00B6@deneb.com> Arne Glenstrup wrote: Now that we have established that we need some (in my opinion) dirty $(EXEEXT)-stuff, what is the consensus on how to use it with regards to makefile targets and -o switches to compilers? Should a makefile look like this: ???? EXEEXT = @EXEEXT@ ???? goal$(EXEEXT): goal.c ???????????????????????????????????????????????????????????????? $(CC) -o goal$(EXEEXT) goal.c ???????????????????????????????????????????????????????????????? cp goal$(EXEEXT) anothergoal$(EXEEXT) ???????????????????????????????????????????????????????????????? mv goal$(EXEEXT) yet.another.goal or should it look like this: ???? EXEEXT = @EXEEXT@ ???? goal:???????????????????????????????????? goal.c ???????????????????????????????????????????????????????????????? $(CC) -o goal goal.c ???????????????????????????????????????????????????????????????? cp goal$(EXEEXT) anothergoal$(EXEEXT) ???????????????????????????????????????????????????????????????? mv goal$(EXEEXT) yet.another.goal Actually, for really portable makefiles, you need to consider that not all compilers and linkers use -o.???? Specifically, MSVC uses /OUT: with not trailing space.???? Here's a remedy in pseudo-GNUmake syntax. ???? NULLSTRING = SPACE = $(NULLSTRING) # DO NOT REMOVE.???? End of line. if $(MSVC) LDOUT = /OUT: else LDOUT = -o$(SPACE) endif foo$(EXEEXT): foo$(OBJEXT) ???????????? $(CC) $(LDOUT)$@ $(LDFLAGS) $? --???? Stephen Vance???????????????????????????????????????????????????????????????????????????????????????????????????????? |???? http://www.deneb.com Deneb Robotics, Inc.???????????????????????????????????????????????????????????????????????????? |???? mailto:vance@deneb.com 5500 New King Street???????????????????????????????????????????????????????????????????????????? |???? Phone: (248) 267-9696 Troy, MI 48098-2615???????????????????????????????????????????????????????????????????????????????? |???? Fax:???????? (248) 267-8585 What is done well is done quickly enough. -Augustus Caesar ???? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From drd@sii-nh.com Fri Sep 25 15:10:00 1998 From: drd@sii-nh.com (David R. Dick) Date: Fri, 25 Sep 1998 15:10:00 -0000 Subject: Curse (fwd) References: Message-ID: <199809252307.SAA11534@clay.sii-nh.com> What setting did you use? > Sorry, I forgot to set TERM. > It's better now. > > Debursky > > On Fri, 25 Sep 1998, Debursky, Po-Sheng Ko wrote: > > > Andy, It's from your local.tar.gz. > > Please give me some hints. > > Thanks, > > Debursky > > > > ---------- Forwarded message ---------- > > Date: Fri, 25 Sep 1998 15:11:37 +0800 (CST) > > From: "Debursky, Po-Sheng Ko" > > To: gnu-win32@cygnus.com > > Subject: Curse > > > > I wish to run hexedit on WintNt. > > After I compiled it, the result is a mess. > > The libcurse could not control the screen under Cygwin32 window. > > Who could help me to cover it ? > > (I use B19.1 to compile it. I think the problem comes from libcurse.) > > > > Thanks, > > Debursky > > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sat Sep 26 01:44:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sat, 26 Sep 1998 01:44:00 -0000 Subject: [ANNOUNCE] gdb and process attach. Message-ID: <01BDE94B.7DBB0730@sos> Stipe Tolj wrote: > > More news - I successfully compiled unix versions (not win32 ports) of tcl, > > tk and tix, and built gdb with X window interface. It's very usefull for > > debugging while telnetting into NT box. If anybody will be interesting in > > that variant of gdb, I'll upload the executable on my web site. > > If there is enough space, please do so. > Done! -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sat Sep 26 05:01:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sat, 26 Sep 1998 05:01:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application Message-ID: <199809260937.CAA11155@cygnus.com> Hi folks, Just finished building a program that uses glaux32 (something I cooked up) and opengl. The libraries are correctly defined (include references to .dlls) and the object dump confirms this. All calls are properly placed in the appropriate .dll references. When I run the executable, I get an application error from the Win32 system: "The application failed to initialize properly (0xc000007b). Click on OK to terminate the application." Any ideas what causes this or what specifically is meant by 0xc000007b under NT4(sp3)? Thanks for you help. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jeffdbREMOVETHIS@goodnet.com Sat Sep 26 05:01:00 1998 From: jeffdbREMOVETHIS@goodnet.com (jeffdb) Date: Sat, 26 Sep 1998 05:01:00 -0000 Subject: Win95 osr1 vs. osr2 References: Message-ID: <360cbe02.41242604@mail.goodnet.com> OSR2 install usbsupp.exe OSR1 set CYGWIN32=tty in config.sys or autoexec.bat & start from a .lnk not a .pif set your other env vars in $HOME/.bashrc On Fri, 25 Sep 1998 10:53:23 CDT, you wrote: >Hi, > >I just installed the cygnus win32 beta 19.1 environment on a desktop >with Win95 OSR1 + a few additional patches, and a laptop with Win95 >OSR2 and most current patches. The OSR2 version seems to be fairly >stable, but the OSR1 locks up at frequent but somewhat random places. > >Is this something I can fix somehow? I have cleaned up the DOS paths >and set up the PIF paths everywhere I can find, to an equal level, as >near as I can find. Or is this something inherent in pre OSR2 Win95? Or >is there a particular Win95 patch that I need? Is there a more recent >level available that might address this? Or do I need to apply for an >upgrade to my desktop PC to one of those new ones they are giving out >now that have OSR2 or even Win98 on them? > >Werner Kliewer >Manitoba Public Insurance > >"A computer without COBOL and FORTRAN is like a piece of chocolate >cake without ketchup or mustard." -- John Krueger > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sat Sep 26 05:01:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sat, 26 Sep 1998 05:01:00 -0000 Subject: Make addity? Message-ID: <01BDE967.1C1BF720@sos> Lewis Beard wrote: > I have a problem in that, when I modify my make files, I get: > > makefile:48: *** missing separator. Stop. > > To me this is a serious problem; it occurs when I add new lines or > delete lines entirely. It happens whether or not I have a unix or dos > line type. The only way I can get around it is to keep my makefile on a Looks like your editor converts tabs to spaces. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sat Sep 26 05:01:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sat, 26 Sep 1998 05:01:00 -0000 Subject: EGCS-Mingw32(1.0.2) libglaux.a Message-ID: <199809261043.DAA13042@cygnus.com> Hi folks, Does anyone (Colin...Mumit?) know what this lib is for? It has some OpenGL calls listed. It does not have any of the Aux toolkit calls included. However, it is not, apparently, a complete list of OpenGL calls when compared with either the libopengl32.a (Win32-bound) or libopengl.a (SGI 1.2 Win32). Thanks for any assistance. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sat Sep 26 05:01:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sat, 26 Sep 1998 05:01:00 -0000 Subject: DirectX (was Re: server X) References: <01J27VP3NPSO000L5V@scottish-newcastle.co.uk> Message-ID: <199809252235.PAA17482@cygnus.com> Hi folks, On 25 Sep 98, at 9:20, the Illustrious Robert.Cross@scottish-newcast wrote: From: Robert.Cross@scottish-newcastle.co.uk Date sent: Fri, 25 Sep 1998 09:20:18 +0100 (GDT) Subject: DirectX (was Re: server X) To: gnu-win32@cygnus.com > Alexander Kriegisch wrote: > > #I do not know enough about it, so this is more a question than a hint: > #How about DirectX and the like? Is it not designed for granting the > #developer direct hardware access? > > As far as I can tell from M'softs' literature, DirectX is *not* designed > to give direct hardware access. It appears to be graphics middleware, that > is an application can rely on a certain set of services and capabilities, > and a hardware vendor can ensure that their driver performs these services > in the most optimal way possible, (or not - there's some really lousy > driver code out there!). This is, for the most part, accurate. You can, via D3D "directly access hardware", however, the true definition is, "you can directly access hardware on any NT4 system, as long as you traverse the GDI and the HAL system levels along the way." In other words, the terms "Direct" h/w Access and "Direct" 3D are not the same thing and are definitely, imho, MS perpetuated misnomers...I won't get into my cynicism re: MS and stick to "just the facts" re: MS NT4 System Architecture: The NT4 GDI (not the same as the Win9x or NT 3.51 GDIs) is actually set, hierarchically, above the HAL (Hardware Abstraction Layer). Any and all GDI calls for NT4 *must*, logically and quite reasonably, go through the GDI before they can get to the HAL. GDI calls for Win9x (possibly NT3.51) do not. It is here where you find the biggest security flaws for Win9x. It is also, as I understand it, within the Win9x GDI that you find no security whatsoever. NT4, on the other hand, includes all security checks at the GDI level and the HAL so that once an NT4 GDI call is passed from the GDI to the HAL, the HAL does another check against the _currently available_ h/w drivers. If the _currently available_ h/w driver exists, then NT4 passes control to the h/w devices themselves. This is not limited to a particular set of h/w drivers but to all the currently available h/w drivers (includes all i/o ports) that NT4 has, previously authorized, access to. As a quick example, say you have a 16bit Tape Backup system that is in perfect working condition, and that Tape Backup System is not recognized as a valid or _currently available_ piece of hardware by NT... If you try to access the tapes' hardware from the NT system, HAL, not recognizing the Tape Backup System as "valid && _currently available_", ignores any attempts to access that tape backup system, even if the tape backup system may work fine under Win95/WFW or MS-DOS and has all the necessary drivers that NT4 needs in order to operate it. > > We keep being told that DirectX will make an appearance in NT, (5.0 > perhaps?). Actually, under the beta versions of NT5, DirectX and a newer version of D3D (DX5.x) is there and is working, but only as a DX5.x D3D h/w device call structure. MS says they will provide an SP(#4) to modify the NT kernel to handle D3D for DX5...I'm not holding my breath. The DirectX 3 D3D is already enabled (out of the box -- using MSVC/C++) once SP3 is applied. The problem is that the D3D portion is extremely difficult to deal with when it comes to porting unless you are a DX3 D3D guru of some sort. > This being the case if it provided direct hardware access, > wouldn't that break NT's security model? Actually, no...see my description about the GDI <--> HAL interface stuff above. > > Any other opinions anyone? Final opinion, DX3/DX5 D3D is badly flawed. This is largely due to the inherent inefficiency of the Win9x GDI/HAL interface. It is also the reason behind "why it is such a long time between DirectX updates for the NT4 OS", since MS has to modify the NT4 kernel32.dll every single time that MS releases a new version of DirectX for Win9x. In closing, if you are planning on using any accellerated h/w, such as a VooDoo or Banshee, you would be better served to develop your application using OpenGL since D3D (DX3 and DX5) apparently are not designed to, easily or conveniently, support such things. [For more on OpenGL vs. D3D, you might want to check out what the creators of QuakeII have to say on the subject. It was an eye-opener for me, perhaps it will be for you as well -- in other words, you don't have to believe me; you can find this out for yourself if you are so inclined.] Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From madarasz@erols.com Sat Sep 26 06:54:00 1998 From: madarasz@erols.com (Alex P. Madarasz, Jr.) Date: Sat, 26 Sep 1998 06:54:00 -0000 Subject: DirectX (was Re: server X) References: <01J27VP3NPSO000L5V@scottish-newcastle.co.uk> <199809251921.MAA06367@clifford.pdx.informix.com> Message-ID: <199809261255.IAA15862@smtp1.erols.com> Guy Gascoigne - Piggford wrote on 25 Sep 98, 12:20 : > > The problem comes with 3D, NT has no support > for Direct 3D and won't until NT 5.0 is released. Actually, if you read MS's docs you'll find that NT4 SP3 _does_ support the Direct3D API, _but_ there is no support for _hardware_ acceleration: < http://support.microsoft.com/support/ntserver/Content/ServicePacks/Readme.asp > > DirectX 3.0: > > Service Pack 3 contains a complete software implementation of DirectX 3.0 as > well as ongoing hardware support for the DirectDraw component of DirectX 3.0. > This translates into the following major feature changes since the release of > DirectX 2.0 as supported in Windows NT 4.0: > > > DirectDraw > Access to all 256 entries in the palette when in exclusive mode. > > DirectSound > Software-based 3-D localization of audio (Direct3DSound APIs.) > > DirectInput > COM interface supporting mouse and keyboard data with documentation and sample > programs. > > DirectPlay > IDirectPlayLobby, an interface that allows an external application to launch a > DirectPlay 3.0 application and provide it with all information necessary to > connect to a session. Internet TCP/IP service provider for multi-player > applications over the Internet. > > Direct3D > Software emulation for the Direct3D 3.0 API. (In Windows NT 4.0, we provide a > beta version of the software drivers for Direct3D 2.0.) There are rumors that NT4 SP4 does / will have support for a higher version of DirectX, but again you'll have to check carefully to see if they consider "support" to mean merely the API or full acceleration. -- Alex P. Madarasz, Jr. -- madarasz@erols.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Sat Sep 26 06:54:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Sat, 26 Sep 1998 06:54:00 -0000 Subject: [Q] How to load dll's at runtime References: <19980924151116.24226.qmail@hotmail.com> Message-ID: <199809261354.PAA25976@k9.dds.nl> > From: "John vanVlaanderen" > Date: Thu, 24 Sep 1998 08:11:14 PDT > Hello Seregey, > > I have been trying to download several packages from your web site and > they all got stalled every time. There is an ftpmailserver in russia: ftpmail@demos.su Send a mail containing only the word "help" in the body - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From bje@cygnus.com Sat Sep 26 07:59:00 1998 From: bje@cygnus.com (Ben Elliston) Date: Sat, 26 Sep 1998 07:59:00 -0000 Subject: Including .dll portions in binary? References: <360BB8E0.A86B0D00@wcom.com> Message-ID: > Is there a way, during the linking process or at some other time, to > extract the portions of the cygwin32b19.dll (or whatever it is) and > attach them into the binary I'm making. I ask because once I have a In other words, you want to statically link the Cygwin library? > binary, I don't want to have to install the cygnus stuff on my target > box, and it seems that the .dll is big. Is there any way to make pure Note that you only need the .DLL. None of the other stuff, unless you use it. Is the DLL really that big, compared with some of the other DLLs already on your system? I don't think so. Ben --- Ben Elliston bje@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sat Sep 26 08:52:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sat, 26 Sep 1998 08:52:00 -0000 Subject: server X Message-ID: <01BDE987.4A272CA0@sos> Michael Weiser wrote: > So with some luck, we should be able to drop all the hardware code > from some XFree86 server and implement all the X calls with native > Windows calls. Of course it wouldn't be very portable and not very X sample server = Xfree86 - hardware code :-) -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 26 09:13:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 26 Sep 1998 09:13:00 -0000 Subject: gcc produces foo.exe, not foo References: <360BA99B.6DBB00B6@deneb.com> Message-ID: <71aJlG1ppfB@mike.franken.de> Hi Stephen, > Would you please stop posting/mailing in HTML !?!? Thx and bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 26 09:13:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 26 Sep 1998 09:13:00 -0000 Subject: B19.1: Parse errors in socket.h References: <01BDE867.87B9ACD0@sos> Message-ID: <36290e48.12402223@mail.weiser.saale-net.de> Hello Sergey, you wrote: >> /** THE FOLLOWING ERRORS ARE GENERATED **/ >> >> In file included from C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2. >> 7-B19\\../../../../i386-cygwin32/include/windows.h:66, >> from gettime.cpp:2: >> C:\\CYGNUS\\B19\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../i38 >> 6-cygwin32/include/Windows32/Sockets.h:783: parse error before `__attribute__' >Rename your file - the extension must be .c, but not .C! But he uses cout and the like. Doesn't he need the C++ compiler then? -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 26 09:13:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 26 Sep 1998 09:13:00 -0000 Subject: Trouble passing args, & where is 'more' References: <19980924173443.19643.qmail@findmail.com> Message-ID: <36280d29.12114780@mail.weiser.saale-net.de> Hello Eric, you wrote: >I am also looking for a tool like 'more' so stdout doesn't fly by if its more than 1 page. There're precompiled versions of less at ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ . >I'm also wondering how to 'alias' commands, and how to accomplish 'foreach' commands. You should try to use tcsh from Sergey's site ftp://www.lexa.ru/pub/domestic/sos/ (which is morrored at ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/ ). As your script was written for csh it won't work with bash or any other bourne compatible shell. -- Micha - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gpasa@omedia.ch Sat Sep 26 09:13:00 1998 From: gpasa@omedia.ch (Guglielmo Pasa) Date: Sat, 26 Sep 1998 09:13:00 -0000 Subject: OFF TOPIC : How to restore NT Loader ? Message-ID: <360D1273.E15806F0@omedia.ch> Hi, I had to run sys.com (win95/98) on my C: disk to have win98 to load again, but now the NT Loader obviously doesn't run anymore. How can I have it to run again (Is there something as a sys.com utility for NT ?) -- Sincerely yours, Pasa Guglielmo ------------------------------------------------------------------ ???? homepage: http://www.omedia.ch/pages/gpasa/ ???? ????----------------------------------------------------------------???? ???? e-mail : gpasa@omedia.ch ???? tel. : +41 (0)24 485 50 40 ???? ???? mailing : Pasa Guglielmo ???? fax : +41 (0)24 485 50 44 ???? ???? Rte des Cases 17A ???? ???? ???? CH-1890 St-Maurice ???? prof.: physicist ???? ???? (Switzerland) ???? ???? ------------------------------------------------------------------ From sos@prospect.com.ru Sat Sep 26 13:38:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sat, 26 Sep 1998 13:38:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application Message-ID: <01BDE9AF.4801AD60@sos> Paul Garceau wrote: > "The application failed to initialize properly (0xc000007b). Click on OK to > terminate the application." > > Any ideas what causes this or what specifically is meant by 0xc000007b > under NT4(sp3)? > // // MessageId: STATUS_INVALID_IMAGE_FORMAT // // MessageText: // // {Bad Image} // The application or DLL %s is not a valid Windows NT image. // Please check this against your installation diskette. // #define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC000007BL) -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 26 13:38:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 26 Sep 1998 13:38:00 -0000 Subject: ncurses or termcap References: <360fe929.2892679@mail.weiser.saale-net.de> Message-ID: <71aJm2R4pfB@mike.franken.de> Hi Michael, [...] >You can find a precompiled version of ncurses-4.1 on > http://www.xraylith.wisc.edu/~khan/software/gnu-win32/porters/Hirmke_Michael ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ????????????????????????????????????????????????????? ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Hirmke_Michael [...] >-- >bye, Michael Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Sat Sep 26 13:38:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Sat, 26 Sep 1998 13:38:00 -0000 Subject: Make addity? Message-ID: In a message dated 9/26/98 5:12:32 AM Pacific Daylight Time, lewis.beard@wcom.com writes: > where can I get source or binaries to the version of make (3.77) > listed above, if indeed it does fix it? ftp://ftp.gnu.org has had the make-3.77 source from the time it was announced. Many mirrors have been slow to pick it up. It was a tremendous improvement over earlier versions for me on W95 and has worked trouble-free on NT, hpux10.20, and irix6.4. "makefile:48: *** missing separator. Stop. To me this is a serious problem; it occurs when I add new lines or delete lines entirely. It happens whether or not I have a unix or dos line type. The only way I can get around it is to keep my makefile on a unix box on the internet and make changes there and ftp it across, because once I change the length of the file or add lines or whatnot, I get this seperator problem. " I'm not sure I understand this. Do you wind up with a mixture of and >CR> terminated lines after editing? Is your editor set up to expand tabs upon insertion? If so, turn it off or use a different editor. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwgrand@aplcenMP.apl.jhu.edu Sat Sep 26 13:38:00 1998 From: cwgrand@aplcenMP.apl.jhu.edu (Charles Granderson) Date: Sat, 26 Sep 1998 13:38:00 -0000 Subject: No Subject Message-ID: <000401bde94f$d830b1c0$05c8fea9@cwgrand> When I tried to install by running cdk.exe on my PC (running Windows 98), I got the following error: ???? ???????????? Setup Initialization Error ???? ???????????? Setup is unable to find installation languages in C:\TMP\SETUP.LID file. ???? ???????????? Error 105 ???? Can you help me. ???? C. Granderson From jeffdbREMOVETHIS@goodnet.com Sat Sep 26 15:16:00 1998 From: jeffdbREMOVETHIS@goodnet.com (jeffdb) Date: Sat, 26 Sep 1998 15:16:00 -0000 Subject: EGCS-Mingw32(1.0.2) libglaux.a References: <199809261043.DAA13042@cygnus.com> Message-ID: <360f655e.42135798@mail.goodnet.com> the libglaux.a included with cygwin32 is junk the MS libglaux.a is a static library, how it got included in Scott's win32 API is a mystery, but none of the GL calls or libs will work as is, so the best thing to do if you want to use MS's GL is to get the libglaux.a from the PSDK then you may be able to use the cygnus libgl.a and libglu.a. On Sat, 26 Sep 1998 03:45:47 -0700, you wrote: >Hi folks, > > Does anyone (Colin...Mumit?) know what this lib is for? It has some >OpenGL calls listed. It does not have any of the Aux toolkit calls included. > > However, it is not, apparently, a complete list of OpenGL calls when >compared with either the libopengl32.a (Win32-bound) or libopengl.a (SGI 1.2 >Win32). > > Thanks for any assistance. > > Peace, > > Paul G. > >Information Systems Consultant >NewDawn Productions > http://www.teleport.com/~pgarceau/newdawn/ >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 26 18:38:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: B19 sh.exe symbolic links problem References: <004b01bde865$e714e890$010120c0@menpc1> Message-ID: <71aJjwC$pfB@mike.franken.de> Hi Austin, [...] > # Setup test case > mkdir -p /mydir/subdir > ln -s /mydir /yourdir > >I am using: > Windows NT 4 > Telnetted via InetD > binary mounts, > bash version 2.01.1(2)-release, > cygwinb19.dll (669150 bytes) I'm using: Windows NT 4 SP3 German binary mounts GNU bash, version 2.01.1(2)-release (i386-pc-cygwin32) cygwinb19.dll 664904 May 16 19:26 > >Can anyone else re-produce this problem, or even better does anyone have a >fix for sh.exe? I don't have this problem. MIKE-[/tmp]_$mkdir -p /mydir/subdir MIKE-[/tmp]_$ln -s /mydir /yourdir MIKE-[/tmp]_$ls -ld /yourdir lrw-r--r-- 1 544 DomUser 17 Sep 26 17:12 /yourdir -> /mydir/ MIKE-[/tmp]_$cd /yourdir/subdir MIKE-[/yourdir/subdir]_$pwd /yourdir/subdir > >Austin David France Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pvogel@chromatic.com Sat Sep 26 18:38:00 1998 From: pvogel@chromatic.com (Peter A. Vogel) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: Make addity? References: <360BB627.78921C74@wcom.com> Message-ID: <004901bde95c$1a1cccc0$3565a8c0@dolphin.chromatic.com> I use make-3.77 built using the cygwin gcc tools for b19, having done a straight-up "./configure" in the source tree to build it under the cygnus environment. The only time, I ever see "missing separator" type messages are when: 1. The makefile was edited using an editor that converts tabs to spaces, gnumake REQUIRES command lines to begin with a . Some windoze editors (and some configurations of emacs) convert tabs to spaces. 2. I honestly forgot a colon where there should be one (like in a .PHONY) declaration. It would help a lot if you showed us your makefile, at least a snippet around line 48 (couple lines before, couple after). -Peter Peter A. Vogel Manager, SW Configuration Management Chromatic Research, Inc. http://www.chromatic.com > -----Original Message----- > From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On > Behalf Of Lewis Beard > Sent: Friday, September 25, 1998 8:27 AM > To: Gnu-Win32 Mailing List > Subject: Make addity? > > > All, > > As requested, I looked through back issues of the newsletter before > posting. I DID find mention of my problem, but no solution was given and > the answer didn't satisfy me. > > I have a problem in that, when I modify my make files, I get: > > makefile:48: *** missing separator. Stop. > > To me this is a serious problem; it occurs when I add new lines or > delete lines entirely. It happens whether or not I have a unix or dos > line type. The only way I can get around it is to keep my makefile on a > unix box on the internet and make changes there and ftp it across, > because once I change the length of the file or add lines or whatnot, I > get this seperator problem. What gives? Why this is happening? Is there > a way around it without a new or patched make? > > The person who answered the original poster (Geoofrey Noer, I believe) > said "make 3.77 fixes this", essentially. He poster also said that a > later patch of b19 will fix it, but that make 3.77 wont fix it. That > totally confused me. :) 3.77 make fixes that now, but later it wont? > > Also, where can I get source or binaries to the version of make (3.77) > listed above, if indeed it does fix it? I'm new to the whole project, so > I have yet to find my way around. > > Sorry for the totally newbie question. > > Lewis > -- > Lewis W. Beard 601-460-5267 lewis.beard@wcom.com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 26 18:38:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: problem with windows gui program References: <199809251318.GAA07365@cygnus.com> Message-ID: <3611901a.1679745@mail.weiser.saale-net.de> Hello Henry, you wrote: >I'm new to this. How do you compile and link a windows program? I've >this (simplew32.c): [...] >and when I use bash this on NT4 (Cygnwin32 Beta 19) with > 'gcc -o simplew32.exe simplew32.c -lgdi32' Just try 'gcc -o simplew32.exe simplew32.c -luser32'. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsfox@cogsci.ucsd.edu Sat Sep 26 18:38:00 1998 From: dsfox@cogsci.ucsd.edu (David Fox) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: server X References: <71KuuUEppfB@mike.franken.de> <3609DE0B.894D84F5@ina.de> <360bd279.308032@mail.weiser.saale-net.de> Message-ID: michael@weiser.saale-net.de (Michael Weiser) writes: > Hello Alexander, you wrote: > >> >Why is direct video hardware access > >> >more of a problem under windows than it is under Unix? > >> Because Windows NT doesn't allow any direct access to the hardware. > >I do not know enough about it, so this is more a question than a hint: > >How about DirectX and the like? Is it not designed for granting the > >developer direct hardware access? > I also don't know much about X and the way it works, but why do we > need direct hardware access anyway? AFAIK X opens some windows and > makes simple drawing which should map on top of the normal Win32 API > with its windowing and drawing functions. I think this discussion started from the suggestion of porting XFree86 to Cygwin32, and XFree86 accesses the hardware directly. Therefore, XFree86 is not a good porting candidate. But I don't think anyone thinks its important to access the hardware directly. -- David Fox http://www.cat.nyu.edu/fox xoF divaD UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sat Sep 26 18:38:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: B19: fgets from /dev/tty with echo off broken References: Message-ID: <36129092.1800368@mail.weiser.saale-net.de> Hello Petr, you wrote: >I was trying to port SSH-1.2.26 with minimal changes under cygwin32. I am >using B19 tools & runtime. Why don't you just use Sergey's binaries? You can find them at http://www.lexa.ru/sos or ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Okhapkin_Sergey . >Any idea where the problem is? I was trying to debug the fgets, ___fill... >and other routines, but I was not able to do it properly. Have you set 'CYGWIN32=tty binmode' and binary mounts? -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 26 18:38:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: programs wont read/write stdin/stdout under bash References: <199809251725.KAA27768@autobahn.its.washington.edu> Message-ID: <71aJk5CKpfB@mike.franken.de> Hi Stuart, > > >HI all, I'm having trouble getting compiled C (cygwin19beta gcc) or >java (sun jdk) programs to communicate with stdin and stdout when >exec'ed from bash (cygwin19beta) under NT4. reading from stdin always >produces an eof and writing produces no input. It seems as though the >child process hasnt got open file descriptors 0,1 or 2. set CYGWIN32=tty %CYGWIN32% *before* starting the first instance of any cygwin32 program. > >I suspect I am being incredibly dumb here. Any help gratefully >appreciated. > >stu BYe. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Sat Sep 26 18:38:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: Win95 osr1 vs. osr2 References: Message-ID: <71aJkInKpfB@mike.franken.de> Hi Werner, >Hi, > >I just installed the cygnus win32 beta 19.1 environment on a desktop >with Win95 OSR1 + a few additional patches, and a laptop with Win95 >OSR2 and most current patches. The OSR2 version seems to be fairly >stable, but the OSR1 locks up at frequent but somewhat random places. This has beend reported for several times - it seems that the new USB code in OSR2 prevents Win95 from crashing. > >Is this something I can fix somehow? I have cleaned up the DOS paths You can install the USB hotfix for OSR1. [...] > >Werner Kliewer Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dsfox@cogsci.ucsd.edu Sat Sep 26 18:38:00 1998 From: dsfox@cogsci.ucsd.edu (David Fox) Date: Sat, 26 Sep 1998 18:38:00 -0000 Subject: Make addity? References: <360BB627.78921C74@wcom.com> Message-ID: Lewis Beard writes: > All, > > As requested, I looked through back issues of the newsletter before > posting. I DID find mention of my problem, but no solution was given and > the answer didn't satisfy me. > > I have a problem in that, when I modify my make files, I get: > > makefile:48: *** missing separator. Stop. > > To me this is a serious problem; it occurs when I add new lines or > delete lines entirely. It happens whether or not I have a unix or dos > line type. The only way I can get around it is to keep my makefile on a > unix box on the internet and make changes there and ftp it across, > because once I change the length of the file or add lines or whatnot, I > get this seperator problem. What gives? Why this is happening? Is there > a way around it without a new or patched make? I suspect that this is about make not understanding the ^M at the end of every line in a windows file. The easiest way around this is to put an FTP server on your windows box and then do all your editing on your Unix box, using the ange-ftp feature of emacs to access the files. Other than that, maybe there is some tool to strip the ^Ms off. I've used sed for this in the past, though I usually just use Emacs. Or perhaps I'm completely wrong about the source of the problem. -- David Fox http://www.cat.nyu.edu/fox xoF divaD UCSD HCI Lab dsfox@cogsci.ucsd.edu baL ICH DSCU - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From schmeul@holdit.com Sat Sep 26 21:23:00 1998 From: schmeul@holdit.com (Sam Huffman) Date: Sat, 26 Sep 1998 21:23:00 -0000 Subject: Installation bug in B19 Message-ID: <199809270428.VAA21710@holdit.com> I have downloaded cdk.exe from the b19 folder several times and each time I get an error during installation: "Setup is unable to find installation languages in D:\temp\setup.LID". Indeed the file is not there. I have copied this file from the usertools package and the installation proceeds but reports that it is finished after 27%. Many of the tools (such as gcc) look to be installed but they ahve zero size. Any ideas? Thanks, Sam Huffman schmeul@holdit.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sun Sep 27 00:45:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sun, 27 Sep 1998 00:45:00 -0000 Subject: OFF TOPIC : How to restore NT Loader ? Message-ID: <01BDEA04.1E70F550@sos> Guglielmo Pasa wrote: > I had to run sys.com (win95/98) on my C: disk to have win98 to load > again, but now the NT Loader obviously doesn't run anymore. > How can I have it to run again (Is there something as a sys.com utility > for NT ?) Boot from your NT CD-ROM or boot floppies, select "repair" and select "Inspect boot sector" repair option only. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From leisner@rochester.rr.com Sun Sep 27 00:45:00 1998 From: leisner@rochester.rr.com (Marty Leisner) Date: Sun, 27 Sep 1998 00:45:00 -0000 Subject: What is /dev/window? Message-ID: <199809270534.BAA03827@rochester.rr.com> In Geoffrey Noer's Usenix paper ( http://www.cygnus.com/misc/gnu-win32/usenix-98/cygwin.html ) he talks about a " custom /dev/windows windows messages pseudo-device" Is this discussed anywhere? Where is the code which does this? Also, is there a way to do unix local datagram IPC (not pipes). It looks like win32 mailslots seems to do this... Marty Leisner leisner@rochester.rr.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sun Sep 27 03:47:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sun, 27 Sep 1998 03:47:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application References: <01BDE9AF.4801AD60@sos> Message-ID: <199809271038.DAA01595@cygnus.com> On 27 Sep 98, at 0:39, the Illustrious Sergey Okhapkin wrote: > Paul Garceau wrote: > > "The application failed to initialize properly (0xc000007b). Click on > > OK to terminate the application." > > > > Any ideas what causes this or what specifically is meant by 0xc000007b > > under NT4(sp3)? > > > > // > // MessageId: STATUS_INVALID_IMAGE_FORMAT > // > // MessageText: > // > // {Bad Image} > // The application or DLL %s is not a valid Windows NT image. > // Please check this against your installation diskette. > // > #define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC000007BL) Thanks a lot, Sergey. I appreciate your reply. Any idea where might I find a list of these things? Thanks again. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From xtomasej@fel.cvut.cz Sun Sep 27 03:47:00 1998 From: xtomasej@fel.cvut.cz (Jan Tomasek) Date: Sun, 27 Sep 1998 03:47:00 -0000 Subject: Building SSL dll - please help Message-ID: <360E06B4.A51DB5D0@fel.cvut.cz> Hi, I trying to build SSL dlls with Cygnus tools. I sucesfully build ssleay.exe, libcrypto.a and libssl.a. ssleay.exe is working corectly (if I build in non binary mode). I read FAQs about building, but I think that I'm doing some stupid newbie error. Before that all my C building was made from Borlands IDE. I'm realy newbie in building with make :-) Here is part of my make: libeaydll: ld -s --base-file libeay.dll.base --dll -o libeay.dll libcrypto.a libssl.a libRSAglue.a -e startup@12 echo EXPORTS > libeay.dll.def nm libcrypto.a | grep '^........ [T] _' | sed 's/[^_]*_/ /' >>libeay.dll.def dlltool --as=as -dllname libeay.dll --def libeay.dll.def --base-file libeay.dll.base --output-exp libeay.dll.exp ld -s --base-file libeay.dll.base libeay.dll.exp --dll -o libeay.dll libcrypto.a libssl.a libRSAglue.a I'm receiving this errors: libcrypto.a(stack.o)(.text+0x67):stack.c: undefined reference to `qsort' libcrypto.a(stack.o)(.text+0x88):stack.c: undefined reference to `bsearch' libcrypto.a(stack.o)(.text+0xdf):stack.c: undefined reference to `malloc' libcrypto.a(stack.o)(.text+0xef):stack.c: undefined reference to `malloc' libcrypto.a(stack.o)(.text+0x130):stack.c: undefined reference to `free' libcrypto.a(stack.o)(.text+0x150):stack.c: undefined reference to `free' libcrypto.a(stack.o)(.text+0x159):stack.c: undefined reference to `free' That seams that some system library is mising. But which? Help me please. -- Jan Tomasek, student FEL-CVUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e-mail: xtomasej@fel.cvut.cz www: http://www.feld.cvut.cz/~xtomasej ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~H~ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Sun Sep 27 03:47:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Sun, 27 Sep 1998 03:47:00 -0000 Subject: EGCS-Mingw32(1.0.2) libglaux.a References: <199809261043.DAA13042@cygnus.com> <360f655e.42135798@mail.goodnet.com> Message-ID: <199809271047.DAA01772@cygnus.com> On 26 Sep 98, at 22:12, the Illustrious jeffdb wrote: > the libglaux.a included with cygwin32 is junk Thanks... > > the MS libglaux.a is a static library, how it got > included in Scott's win32 API is a mystery, but > none of the GL calls or libs will work as is, so the best > thing to do if you want to use MS's GL is to > get the libglaux.a from the PSDK then you may > be able to use the cygnus libgl.a and libglu.a. Any suggestions on what would be the best GL implementation to use for EGCS-Mingw32? Thanks for your reply, Jeff. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From psion@tpu.org Sun Sep 27 06:33:00 1998 From: psion@tpu.org (Adam Chlipala) Date: Sun, 27 Sep 1998 06:33:00 -0000 Subject: B19: Link error between libs linked with -l Message-ID: <360E3ED9.5EEBA9E3@tpu.org> When I do something like the following: gcc file.c -l1 -l2 I get linker errors involving functions found in 1 and used in 2. When I move a lib to the cwd and do: gcc file.c lib1.a -l2 all is well. Am I doing something incorrectly here or is this a bug? -- Adam Chlipala psion@tpu.org http://www.tpu.org/~psion/ ICQ UIN: 489166 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/L/P/SS d- s:- a--- C++$ UL+ UA+$ UB$ P++ W+++ N+ w+ M- V? PS+++ PE++ Y+ t++ 5 X+++ R+++>$ tv b++(+++) DI++ D- G e- h! !r y ------END GEEK CODE BLOCK------ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sun Sep 27 07:44:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sun, 27 Sep 1998 07:44:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application Message-ID: <01BDEA47.04661B20@sos> Paul Garceau wrote: > > #define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC000007BL) > > Thanks a lot, Sergey. I appreciate your reply. Any idea where might I > find a list of these things? > Windows NT DDK. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 27 09:43:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 27 Sep 1998 09:43:00 -0000 Subject: EGCS-Mingw32(1.0.2) libglaux.a References: <199809271047.DAA01772@cygnus.com> Message-ID: On Sun, 27 Sep 1998, Paul Garceau wrote: > Any suggestions on what would be the best GL implementation to use > for EGCS-Mingw32? > I've heard good things about SGI OpenGL implementation, but I've only used uses MS OpenGL and seems to work just fine. We also use VTK ( http://www.kitware.com/vtk.html ), an extensive 3D visualization package that uses OpenGL for rendering, and I use egcs/mingw32 to build it on win32. There is a problem in our software where the OpenGL callbacks are not working properly when GCC is used to build it, and I haven't investigated in detail as to where the problem is. I also haven't check if the problem remains with egcs-1.1 or not. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Sun Sep 27 09:43:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Sun, 27 Sep 1998 09:43:00 -0000 Subject: Building SSL dll - please help Message-ID: <01BDEA57.AB54D600@sos> Jan Tomasek wrote: > libcrypto.a(stack.o)(.text+0x150):stack.c: undefined reference to `free' > libcrypto.a(stack.o)(.text+0x159):stack.c: undefined reference to `free' > > That seams that some system library is mising. But which? libcygwin.a -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Sun Sep 27 09:43:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Sun, 27 Sep 1998 09:43:00 -0000 Subject: ncurses or termcap References: <71aJm2R4pfB@mike.franken.de> Message-ID: <360e1b38.444769@mail.weiser.saale-net.de> Hallihallo Michael, du meintest: >[...] >>You can find a precompiled version of ncurses-4.1 on >> http://www.xraylith.wisc.edu/~khan/software/gnu-win32/porters/Hirmke_Michael > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ????????????????????????????????????????????????????? > ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Hirmke_Michael Oh dear goodness, sorry! Shit happens... :-/ BTW: Drag and drop is fine, if you're able to use it. :-) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 27 11:53:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 27 Sep 1998 11:53:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames References: <19980928003353.20720@mundook.cs.mu.OZ.AU> Message-ID: On Mon, 28 Sep 1998, Fergus Henderson wrote: > On 25-Sep-1998, Mumit Khan wrote: > > What is the general consensus, if any, here? Here're the choices: > > > > 1. add .exe never. > > 2. add .exe always, unless .exe is already there. > > 3. add .exe only if no suffix is provided. > > My vote is for #1. That option allows Unix software to build and > install without modifications, which is after all the whole idea behind > gnu-win32. Options 2 and 3 require modifications to Makefiles. Mine was too until recently when others using our software started complaining that ShellExecute (a very useful WIN32 API routine) doesn't seem to work when no extension is provided. Anders Norlander also points this out in a recent message (related thread). I guess I'm somewhat torn between #1 and #3; all our config tools and makefiles already can switch automatically (this was to facilitate cross-builds, which I use almost exclusively), so I can live with either one. Now I use --with-executable-suffix=SUFFIX option to configure to pick a suffix, which defaults to .exe for ix86-*win32* targets. > Of course, for mingw32 the answer should be different, because mingw32 has > different aims. But if I type `gcc' at a bash prompt, it should give > me the same results that it does under Unix. For mingw32, #3 IMO is the only reasonable option at the present time. When NT takes over and "command.com" on W9x dies, the Unix behaviour will make sense Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 27 11:53:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 27 Sep 1998 11:53:00 -0000 Subject: Building SSL dll - please help References: <360E06B4.A51DB5D0@fel.cvut.cz> Message-ID: On Sun, 27 Sep 1998, Jan Tomasek wrote: > > Here is part of my make: > > libeaydll: > ld -s --base-file libeay.dll.base --dll -o libeay.dll libcrypto.a libssl.a libRSAglue.a -e startup@12 > echo EXPORTS > libeay.dll.def > nm libcrypto.a | grep '^........ [T] _' | sed 's/[^_]*_/ /' >>libeay.dll.def > dlltool --as=as -dllname libeay.dll --def libeay.dll.def --base-file libeay.dll.base --output-exp libeay.dll.exp > ld -s --base-file libeay.dll.base libeay.dll.exp --dll -o libeay.dll libcrypto.a libssl.a libRSAglue.a > > I'm receiving this errors: You need to add -lcygwin to your libraries when linking. Fyi, there are two better ways to create DLLs: 1. use 'gcc' (or 'c++' or 'g77' depending on the language you're using) instead of 'ld' so that essential libraries are automatically added. Note that your particular case does not build a relocatable DLL. libeaydll: gcc -s -Wl,--base-file,libeay.dll.base -Wl,--dll -o libeay.dll \ libcrypto.a libssl.a libRSAglue.a -Wl,-e,startup@12 echo EXPORTS > libeay.dll.def nm libcrypto.a | grep '^........ [T] _' | \ sed 's/[^_]*_/ /' >>libeay.dll.def dlltool --as=as -dllname libeay.dll --def libeay.dll.def \ --base-file libeay.dll.base --output-exp libeay.dll.exp gcc -s -Wl,--base-file,libeay.dll.base libeay.dll.exp -Wl,--dll \ -o libeay.dll libcrypto.a libssl.a libRSAglue.a 2. use my dllhelpers package, specificaly the tool called dllwrap, that does all this for you with a single command line. It's included in my egcs-1.1 binary distribution; for older releases, you can get the tools and examples at: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ and look for "Building DLLs with EGCS" menu item. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Sun Sep 27 11:53:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Sun, 27 Sep 1998 11:53:00 -0000 Subject: cp/mv/rm problems with .exe extension filenames References: <199809241720.KAA12546@cygnus.com> Message-ID: <19980928003353.20720@mundook.cs.mu.OZ.AU> On 25-Sep-1998, Mumit Khan wrote: > What is the general consensus, if any, here? Here're the choices: > > 1. add .exe never. > 2. add .exe always, unless .exe is already there. > 3. add .exe only if no suffix is provided. My vote is for #1. That option allows Unix software to build and install without modifications, which is after all the whole idea behind gnu-win32. Options 2 and 3 require modifications to Makefiles. Option 1 can sometimes cause some problems when interacting with non-gnu-win32 software, but if you're willing to modify the Makefiles (as would be required with the other options anyway), then such problems are easily solved. Of course, for mingw32 the answer should be different, because mingw32 has different aims. But if I type `gcc' at a bash prompt, it should give me the same results that it does under Unix. -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjoen@dds.nl Sun Sep 27 11:53:00 1998 From: tjoen@dds.nl (tjoen@dds.nl) Date: Sun, 27 Sep 1998 11:53:00 -0000 Subject: Installation bug in B19 References: <199809270428.VAA21710@holdit.com> Message-ID: <199809271853.UAA29155@k9.dds.nl> > Date: Sat, 26 Sep 1998 21:28:47 -0700 > From: Sam Huffman > cdk.exe > "Setup is unable to find installation languages in > D:\temp\setup.LID". Should be in the faq: cdk.exe corrupted. Sollution: redownload - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Sun Sep 27 16:36:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Sun, 27 Sep 1998 16:36:00 -0000 Subject: B19: Link error between libs linked with -l References: <360E3ED9.5EEBA9E3@tpu.org> Message-ID: On Sun, 27 Sep 1998, Adam Chlipala wrote: > When I do something like the following: > gcc file.c -l1 -l2 > I get linker errors involving functions found in 1 and used in 2. When > I move a lib to the cwd and do: > gcc file.c lib1.a -l2 > all is well. Am I doing something incorrectly here or is this a bug? When you use -l, you must also supply a -L to tell the linker where to find it (unless it's in one of the standard or default directories). $ gcc file.c -L. -l1 -l2 will fix your problem. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@deb.lumax.com.tw Sun Sep 27 18:44:00 1998 From: root@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Sun, 27 Sep 1998 18:44:00 -0000 Subject: DisAssemble .exe by VC Message-ID: Hi, there. Do you know how to disassemble .exe into a file ? I have a program which could not run in my NT. I wish to grab the WM_'s callback function , and to disable it's checking function. Then the problem could be solved. I know SoftICE is good, for it could disassemble the .exe when it executed. But could it be disassemble into a whole file ? I have tryed DDD and gdb, but could not find such function ! Please give me a help. Thanks, Debursky (debursky@deb.lumax.com.tw) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@deb.lumax.com.tw Sun Sep 27 18:44:00 1998 From: root@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Sun, 27 Sep 1998 18:44:00 -0000 Subject: Curse (fwd) References: <199809252307.SAA11534@clay.sii-nh.com> Message-ID: In Setting->environment, You could set TERM=ansi. Debursky On Fri, 25 Sep 1998, David R. Dick wrote: > What setting did you use? > > > Sorry, I forgot to set TERM. > > It's better now. > > > > Debursky > > > > On Fri, 25 Sep 1998, Debursky, Po-Sheng Ko wrote: > > > > > Andy, It's from your local.tar.gz. > > > Please give me some hints. > > > Thanks, > > > Debursky > > > > > > ---------- Forwarded message ---------- > > > Date: Fri, 25 Sep 1998 15:11:37 +0800 (CST) > > > From: "Debursky, Po-Sheng Ko" > > > To: gnu-win32@cygnus.com > > > Subject: Curse > > > > > > I wish to run hexedit on WintNt. > > > After I compiled it, the result is a mess. > > > The libcurse could not control the screen under Cygwin32 window. > > > Who could help me to cover it ? > > > (I use B19.1 to compile it. I think the problem comes from libcurse.) > > > > > > Thanks, > > > Debursky > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 27 19:35:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 27 Sep 1998 19:35:00 -0000 Subject: problem with windows gui program Message-ID: <19980928023701.8759.rocketmail@send104.yahoomail.com> ---"Henry K. H. Cheung" wrote: > > Hi: > > I'm new to this. How do you compile and link a windows program? I've > this (simplew32.c): > > #include > #include > > int STDCALL > WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) > { > char text[80]; > > MessageBox (NULL, text, "Test", MB_OK); > return 0; > } > > and when I use bash this on NT4 (Cygnwin32 Beta 19) with > 'gcc -o simplew32.exe simplew32.c -lgdi32' > Do it this way: gcc -c simplew32.c gcc -o simplew32.exe simplew32.o -mwindows == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Sun Sep 27 19:35:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Sun, 27 Sep 1998 19:35:00 -0000 Subject: gcc produces foo.exe, not foo Message-ID: <19980928020425.1865.rocketmail@send103.yahoomail.com> ---Arne Glenstrup wrote: > > Now that we have established that we need some (in my opinion) dirty > $(EXEEXT)-stuff, what is the consensus on how to use it with regards to > makefile targets and -o switches to compilers? Should a makefile look > like this: > > EXEEXT = @EXEEXT@ > > goal$(EXEEXT): goal.c > $(CC) -o goal$(EXEEXT) goal.c > cp goal$(EXEEXT) anothergoal$(EXEEXT) > mv goal$(EXEEXT) yet.another.goal > This one would be most portable. > or should it look like this: > > EXEEXT = @EXEEXT@ > > goal: goal.c > $(CC) -o goal goal.c > cp goal$(EXEEXT) anothergoal$(EXEEXT) > mv goal$(EXEEXT) yet.another.goal > This one make would have to add the .exe. == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From linvilmd@daleth.grace.edu Sun Sep 27 22:11:00 1998 From: linvilmd@daleth.grace.edu (MISTY D LINVILLE) Date: Sun, 27 Sep 1998 22:11:00 -0000 Subject: Namespace support? Message-ID: <199809280608.BAA30613@daleth.grace.edu> Hi! I'm a new C++ student, and I'd rather not use a commercial compiler at this point, since I'm poor. :) I'm interested in Cygnus-win32, but I have some questions. First, will the compiler balk if I remove the .h from all the header files? (the prof likes it this way, since it's the new VC++ standard), and secondly, will the line 'using namespace std;' compile cleanly, in this compiler? I'm not even entirely sure what this line is for, but it's in every example in the book, and VC++5 compiles it beautifully, but VC++ 4 doesn't, nor does djgpp. I find that if I leave out that line and say instead of just
, it compiles fine, but the prof doesn't like it. I'd appreciate any help! ~Misty - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From kane@jaist.ac.jp Mon Sep 28 00:12:00 1998 From: kane@jaist.ac.jp (Hideki Kane) Date: Mon, 28 Sep 1998 00:12:00 -0000 Subject: compile gcl-2.2.2 on cygwin32 Message-ID: <360F36D86E.9771KANE@mex> Is there a person who was able to compile gcl-2.2.2 on cygwin32 ? Please teach the technique of the compilation. ------- Hideki Kane kane@jaist.ac.jp - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Werner_Kliewer@MPIC.mb.ca Mon Sep 28 01:58:00 1998 From: Werner_Kliewer@MPIC.mb.ca (Werner Kliewer) Date: Mon, 28 Sep 1998 01:58:00 -0000 Subject: Win95 osr1 vs. osr2 References: <71aJkInKpfB@mike.franken.de> Message-ID: In article < 71aJkInKpfB@mike.franken.de >, Michael Hirmke wrote: > This has beend reported for several times - it seems that the new USB > code in OSR2 prevents Win95 from crashing. > > You can install the USB hotfix for OSR1. > Thanks for the tips.. Werner Kliewer Manitoba Public Insurance "A computer without COBOL and FORTRAN is like a piece of chocolate cake without ketchup or mustard." -- John Krueger - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From root@deb.lumax.com.tw Mon Sep 28 02:37:00 1998 From: root@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Mon, 28 Sep 1998 02:37:00 -0000 Subject: WinMain Message-ID: Thanks, use -luser32 did bring up the Window GUI. But When executing it int he Exploring, the Dos Winows arised , too. How to avoid Dos being taken up ? Thanks, Debursky - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Werner_Kliewer@MPIC.mb.ca Mon Sep 28 02:50:00 1998 From: Werner_Kliewer@MPIC.mb.ca (Werner Kliewer) Date: Mon, 28 Sep 1998 02:50:00 -0000 Subject: Win95 osr1 vs. osr2 References: <360cbe02.41242604@mail.goodnet.com> Message-ID: In article < 360cbe02.41242604@mail.goodnet.com >, Jeffdb wrote: > OSR2 install usbsupp.exe > > OSR1 set CYGWIN32=tty in config.sys or autoexec.bat & start from a .lnk > not a .pif set your other env vars in $HOME/.bashrc > Thanks for the tips. Will give them a try. My OSR2 machine seems to run quite well even without the usb support patch, but the consensus seems to be that that will make it even better. Werner Kliewer Manitoba Public Insurance "A computer without COBOL and FORTRAN is like a piece of chocolate cake without ketchup or mustard." -- John Krueger - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From alexo@bigfoot.com Mon Sep 28 02:50:00 1998 From: alexo@bigfoot.com (Alex Oren) Date: Mon, 28 Sep 1998 02:50:00 -0000 Subject: Documentation & other questions Message-ID: <360f598d.74592448@neptune> Hello. I just got on this list so if my questions are not appropriate here, please direct me to where they can be (or a FAQ, if there is one). Please keep in mind that I am not a UNIX person so I may miss the obvious. I installed the Cygwin tools but I can't find any documentation on them. Is there any available? A windows help file will be best but any other format is fine as long as there is a tool to format/read it. Another question: How can I convert text files between UNIX format (LF) and DOS/Windows format (CR/LF)? I looked at tr but it seems to me it only performs 1-to-1 character translations. Thanxalot! Have fun, Alex. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ybossel@bolchile.cl Mon Sep 28 05:40:00 1998 From: ybossel@bolchile.cl (Yves Bossel) Date: Mon, 28 Sep 1998 05:40:00 -0000 Subject: newbie: TERM=dumb unknown Message-ID: <01BDEABB.7E0C4840.ybossel@bolchile.cl> Hello, When I try to run a program that runs ok under windows, I following message: TERM=dumb unknown example: bash-2.01$ /archiv~1/elvis/elvis TERM=dumb unknown I imagine some settings are incorrect. Can you help ? Thanks - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjh@quadstone.com Mon Sep 28 05:40:00 1998 From: tjh@quadstone.com (tjh@quadstone.com) Date: Mon, 28 Sep 1998 05:40:00 -0000 Subject: Anyone tried compiling ivtools (idraw)? Message-ID: <19980928114132.608.qmail@findmail.com> I was hoping to compile the ivtools package (from http://www.vectaport.com/ivtools ), specifically idraw, under Cygwin32. I had a brief shot at the make but it turns out to need some tinkering to get it going. Of course it would be nice if someone had already done it...8-) ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From K.Kubat@roccadefinance.nl Mon Sep 28 07:02:00 1998 From: K.Kubat@roccadefinance.nl (Kubat, Karel) Date: Mon, 28 Sep 1998 07:02:00 -0000 Subject: Anyone got "v" to compile w/g++? Message-ID: Hiya, Did anyone succeed in getting "v" (C++ toolset for GUI buidling) to compile under g++? The makefile that comes with v 1.20 didn't make it (can't get it to work), so I rolled my own. Now I'm stuck in compiling a file that uses OpenGL. That might be due to using a different Makefile, while OpenGL might be disabled for windows. Any hints / pointers? Thanks in advance.. K - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sof@dcs.gla.ac.uk Mon Sep 28 07:02:00 1998 From: sof@dcs.gla.ac.uk (Sigbjorn Finne) Date: Mon, 28 Sep 1998 07:02:00 -0000 Subject: i386pe.x: etext and end? Message-ID: <13839.16480.757084.83000@hawaii> Hi, apologies if this has been discussed before on the list, but the definition of etext and end is a little bit odd in i386pe.x. To quote from the version supplied with binutils-980830: ... .text __image_base__ + __section_alignment__ : { ... etext = .; *(.gcc_except_table) } ... .endjunk BLOCK(__section_alignment__) : { /* end is deprecated, don't use it */ end = .; __end__ = .; } Is the omission of a prefix of (at least) one underscore to these two symbols (end and etext) intentional? (Why not use "PROVIDE(_etext =.);" to achieve the same effect instead?) I guess what I'm really asking is what's the sanctioned way of getting at these two syms from within straight C here, rely on asm labels or not? thx, --Sigbjorn - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From juergen.koehne@ulm.temic-semi.de Mon Sep 28 07:02:00 1998 From: juergen.koehne@ulm.temic-semi.de (Juergen Koehne) Date: Mon, 28 Sep 1998 07:02:00 -0000 Subject: 2.7.2.3 version of gcc ? Message-ID: <360F6489.9F857999@ulm.temic.de> I need 2.7.2.3 (or similar) version of gcc for cygwin32. Where can I get it?. Thanks Juergen Koehne - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From david@tradeware.com Mon Sep 28 09:08:00 1998 From: david@tradeware.com (David Calabrese) Date: Mon, 28 Sep 1998 09:08:00 -0000 Subject: gdb Message-ID: <19980928160817.4198.qmail@findmail.com> I recently D/L Beta 19 When I start gdb it opens up a Window. Can I send the output to the command-line. I really need to do this since I am remotely debugging a process and cannot use any guis. Thank ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From david@tradeware.com Mon Sep 28 09:08:00 1998 From: david@tradeware.com (David Calabrese) Date: Mon, 28 Sep 1998 09:08:00 -0000 Subject: gdb Message-ID: <19980928160839.4217.qmail@findmail.com> I recently D/L Beta 19 When I start gdb it opens up a Window. Can I send the output to the command-line. I really need to do this since I am remotely debugging a process and cannot use any guis. Thank you ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gilesm@metrics.com Mon Sep 28 09:56:00 1998 From: gilesm@metrics.com (Giles D. Malet) Date: Mon, 28 Sep 1998 09:56:00 -0000 Subject: Make addity? References: <360BB627.78921C74@wcom.com> Message-ID: <199809281642.MAA27342@omega.metrics.com> > makefile:48: *** missing separator. Stop. I get the problem consistently if the filesystem on which the Makefile resides is "mounted" in `binary' mode, and I edit the Makefile in NT-emacs. I get around it my just mounting the FS in non-binary mode (no option to mount), but be warned that I hear that causes `configure' to fail. It is a cf/lf problem. gdm - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From h5@sjakk.fi Mon Sep 28 09:56:00 1998 From: h5@sjakk.fi (h5@sjakk.fi) Date: Mon, 28 Sep 1998 09:56:00 -0000 Subject: DirectX (was Re: server X) References: <199809252235.PAA17482@cygnus.com> Message-ID: <360FBF0D.BCCB12B1@sjakk.fi> There's an online book about DirectX available at: www.pbg.mcgraw-hill.com/betabooks/root/index.html It should include everything about the DirectX ind Win9x *and* WinNT - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sjm@frodo.page Mon Sep 28 13:35:00 1998 From: sjm@frodo.page (Steve Morris) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: managing /etc/passwd Message-ID: <13839.46785.398713.3911@frodo.page> I just got inetd partially working on my NT box and discovered that I have no security. As directed in a post by Sergey found in the archives I initially created my passwd file with: % mkpasswd -l -g >/etc/passwd I didn't look too closely at this file until I notice that there was no password checking on ftp. Then I noticed that the password fields in /etc/passwd are empty. I tried to create password entries with the passwd command but it prints every line in the passwd file followed by "; not found." Exactly what is not found is not clear but it isn't found for any user. Needless to say this is probably not adequate security and I would like to repair this situation quickly. Where have I gone wrong? Others must have blown poast this step without similar problems. The archives got me this far but I don't see this specific problem. I don't find the word passwd in the FAQ. How do I add passwords to passwd? NOTE: I am having major instability with ftp connections. Is this normal? Does inetd work smoothly for other people. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Mon Sep 28 13:35:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: gcc produces foo.exe, not foo Message-ID: <19980928194046.27880.rocketmail@send101.yahoomail.com> Is their a reverse of the linker option --force-exe-suffix? I've tried --noforce-exe-suffix and that doesn't work. You can create a filename without an extension by appending a . character to the name but this would not be very convenient. == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gphillips@ccboe.net Mon Sep 28 13:35:00 1998 From: gphillips@ccboe.net (Greg Phillips) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: B19: BASH problem in Win95 (fork_helper: ResumeThread failed, rc = -1) Message-ID: <199809281505.LAA00323@mailhost.ccboe.net> After going into BASH, I keep getting a fork_helper error. Here is a screen shot of it... BASH.EXE-2.01$ make fork_helper: ResumeThread failed, rc = -1 BASH.EXE: fork: No more processes So, I tried getting a directory listing... BASH.EXE-2.01$ ls fork_helper: ResumeThread failed, rc = -1 BASH.EXE: fork: No more processes I thought it might not be able to find the program and that was causing the error, so I specified a pathname... BASH.EXE-2.01$ ./h-i386~1/make (unknown) Exception: STATUS_ACCESS_VIOLATION (unknown) Exception: STATUS_ACCESS_VIOLATION fork_helper: ResumeThread failed, rc = -1 BASH.EXE: fork: No more processes Anyone ever experience this before? I am running Win95 OSR2B on a Network. I have disabled my antivirus program and have the DOS environment size set to 1024. Thanks, GP - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pbrown01@harris.com Mon Sep 28 13:35:00 1998 From: pbrown01@harris.com (Philip S. Brown) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: test -w bug Message-ID: <19980928203517.11699.qmail@findmail.com> There seems to be a problem with test. If you create a file, have it open for writing, and run test -w on it, it reports that the file cannot be written to. This bug is causing configure scripts to take forever to run because the test failure causes configure to not use config.cache. Windows NT 4.0 Cygnus GNU B19 with Sergei's coolview (not latest) ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hgfernan@usp.br Mon Sep 28 13:35:00 1998 From: hgfernan@usp.br (Hilton Fernandes) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: Windows98 + inetutils References: <36079E63.444EF684@sics.se> Message-ID: <199809281137.IAA18732@swan2.uspnet.usp.br> On 22 Sep 98 at 14:56, Olle Olsson wrote: > Being able to mimic an ordinary Unix way of handling users/groups/passwords/... via > "/etc"-files seems like useful approach. The core API functionality remains the same > to a large extent, the difference is only in where things are stored and updated. > > To what extent can one have *one* implementation of the API? What if there are /etc > files on an NT, should these or the NT-owned structures be used. Presumably, as > Windows95 (Windows98?) is weak on security, the NT-way of handling it should be used > on the NT, while on Windows9x the file-based approach is taken. This would enable a > wider portability, something that simplifies management of the system. > > /olle > Hello! Sorry for an empty message. :-( As the great Forrest Gump would say, Shit happens! :-) It's possible that someone that uses MS-Windows 9X isn't particularly afraid of security problems; otherwise, he or she would prefer NT or some other OS. Indeed, any user of a Windows 9X OS is already a priviledged user that can do anything to the system. So, maybe there isn't any additional problem with a non secure access to Windows 9X. Regards, --Hilton ---- Hilton Fernandes hgfernan@usp.br hfernandes@geocities.com http://www.geocities.com/SiliconValley/Lakes/5657 URLs and help on C++ programming and Object-Oriented Design - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rstark1@uic.edu Mon Sep 28 13:35:00 1998 From: rstark1@uic.edu (Ronnie Starks) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application References: <199809260937.CAA11155@cygnus.com> Message-ID: Hi, I am using gnu-win32 and I need to compile programs for opengl. I was wondering if you could help me. After having tried repeatedly to compile a program so that it would open a window an show a checker board I have given up. A friend of mine avoided this problem by purchasing Microsoft Visual C++. With the GL/Glut libraries his works fine. I'm using the GCC compiler and it just won't work. Since you are deloping with opengl is there any advice that you could offer? ************************************************************* oOo <<<<<<<<<< Ronnie Starks Jr. >>>>>>>>>> oOo The University of Illinois at Chicago oOo E-Mail to: rstark1@uic.edu oOo <<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>> ************************************************************* - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From Jbailey@phn.ca Mon Sep 28 13:35:00 1998 From: Jbailey@phn.ca (Jeff Bailey) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: remote.tar.gz type problem with in.ftpd Message-ID: I am having a problem where in.ftpd is set to type I but corrupts files as they are put to the drive. I suspect that it has something to do with binary/text mounts. Now, here's the deal - When I pull a file with /usr/local/bin/ftp it works fine. Do you think I'm looking in the right places? I'm having trouble narrowing down some debugging procedures. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dschauer@vcsd.com Mon Sep 28 13:35:00 1998 From: dschauer@vcsd.com (Dwight Schauer) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: Namespace support? References: <199809280608.BAA30613@daleth.grace.edu> Message-ID: <19980928173144.30826.qmail@findmail.com> > First, will the compiler > balk if I remove the .h from all the header > files? (the prof likes it I don't think any C compiler will balk, as long as you are consistent. IF you did it to things like stdio.h, then the compiler would give you grief, but on your own includes, you can use any extension, or no extension at all, it is just a filename, nothing special about the .h For things like stdio.h, string.h, and such, that would be more of a problem, because you would have to change every reference, but I don't think that is what you are trying to do (at least I hope not) > this way, since it's the new VC++ standard), and secondly, will the What a strange standard. Not sure about the namespace issues. Dwight Schauer _schauerd_ at _letu_ dot _edu_ ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7656 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjh@quadstone.com Mon Sep 28 13:35:00 1998 From: tjh@quadstone.com (tjh@quadstone.com) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: bash and '&' References: <01BD6270.57BBB320@sos> Message-ID: <19980928113300.32747.qmail@findmail.com> Apologies if this is slightly off-thread: I think Cygwin32 is great (I use b19.1). But one thing that bugs me is that hitting ^C seems to interrupt all jobs started from bash, not just the current job. What am I doing wrong? ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=3382 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 28 13:35:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 28 Sep 1998 13:35:00 -0000 Subject: server X References: <01BDE987.4A272CA0@sos> Message-ID: <360f2463.860056@mail.weiser.saale-net.de> Hello Sergey, you wrote: >> So with some luck, we should be able to drop all the hardware code >> from some XFree86 server and implement all the X calls with native >> Windows calls. Of course it wouldn't be very portable and not very >X sample server = Xfree86 - hardware code So why is noone porting it yet? ;-)) -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mike_lottridge@mentorg.com Mon Sep 28 15:48:00 1998 From: mike_lottridge@mentorg.com (mike lottridge) Date: Mon, 28 Sep 1998 15:48:00 -0000 Subject: Invalid remap option Message-ID: <19980928224837.24205.qmail@findmail.com> I'm getting the following error from cpp when I try to compile anything with the latest egcs(1.1): bash.exe-2.01$ gcc test.c cpp: Invalid option `-remap' ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From b_e_r_t@hotmail.com Mon Sep 28 17:58:00 1998 From: b_e_r_t@hotmail.com (Robert Hwang) Date: Mon, 28 Sep 1998 17:58:00 -0000 Subject: guavac 1.2 Message-ID: <19980929005909.914.qmail@findmail.com> Good news: guavac 1.2 compiles out of the box with egcs 1.1 Bad news: Any time I compile anything, I get the following error: % guavac -classpath /usr/local/share/guavac/classes.zip:. test.java Could not find java/lang/Object in the class path. Compilation Failed Anyone successfully get guavac going? Thanks. ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Mon Sep 28 17:58:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Mon, 28 Sep 1998 17:58:00 -0000 Subject: Accessing Win98 registry key values by cygwin32 Message-ID: <361002A7.F6525FF9@uni-duesseldorf.de> I don't know if someone has allready asked this question, so sorry. Is there a way to access the values of Win98 registry keys using cygwin32?! Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ianc@kiwiplan.co.nz Mon Sep 28 19:50:00 1998 From: ianc@kiwiplan.co.nz (Ian Collins) Date: Mon, 28 Sep 1998 19:50:00 -0000 Subject: Shared Memory/Semaphores Message-ID: I am trying to port an applications that makes use of shared memory (shmget/shmat...) and semaphores (semget/semctl...). Is there any such equivalents planned/implemented for cygwin? Ian Collins. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Mon Sep 28 19:50:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Mon, 28 Sep 1998 19:50:00 -0000 Subject: less, misbehaving Message-ID: <360FF514.34EEE46D@ece.gatech.edu> I'm having some wierd problems with less, and I don't know if it's my environment settings, or my ncurses library, or what. I'm using less v332 from andy's local.tar. Less operates as expected, until I try to view a file with less than a full screen of data. If I execute 'less shortfile', the file is displayed in the terminal window, followed by the message: '[1]+ Stopped less shortfile' >From that point on, all (?) interactive console mode programs misbehave. When invoking less on a file with _more_ than a full screen of data, e.g. 'less longfile', the first screen worth of data is displayed followed by '[2]+ Stopped less longfile'. (This identical command worked fine _before_ my 'mistake' with shortfile) Ditto with vi, or hexedit. I can always bring the executable back to the foreground, and things seem to work okay after that, but this is annoying. Does anybody know what's going on? My cygwin variable is 'tty notitle ntea binmode' --Chuck Wilson - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Mon Sep 28 19:50:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Mon, 28 Sep 1998 19:50:00 -0000 Subject: syslog call->where is it logged on Win-NT References: <19980925203244.607.qmail@findmail.com> Message-ID: <3610023A.E6DE21FA@uni-duesseldorf.de> > Here is the code snippet using syslog call. Where > are the logs strored?? Can they be seen by > Event Viewer. > Thanks for your response, > Dushyant Sharma > #include > int main ( ) > { char *application = "??????"; > openlog( application, 0, LOG_USER ); > syslog( LOG_EMERG, "Test this thang00" ); > syslog( LOG_EMERG, "Test this thang11" ); > syslog( LOG_EMERG, "Test this thang22" ); > closelog(); > return 0; > } I suppose they are logged to the C:\CYGWIN32_SYSLOG.TXT file. But your code seems not to be logging to this file. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 28 20:56:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: OFF TOPIC : How to restore NT Loader ? References: <360D1273.E15806F0@omedia.ch> Message-ID: <71iXwIjppfB@mike.franken.de> Hi Guglielmo, >Hi, >I had to run sys.com (win95/98) on my C: disk to have win98 to load >again, but now the NT Loader obviously doesn't run anymore. >How can I have it to run again (Is there something as a sys.com utility >for NT ?) Use your NT setup disks, boot with them, choose "repair" (or whatever this might be in an english version of NT) and then repair only the boot sector. *Don't repair anything else* ! >-- >Sincerely yours, > Pasa Guglielmo BYe. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Mon Sep 28 20:56:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: Make addity? References: <360BB627.78921C74@wcom.com> Message-ID: <36102479.882749@mail.weiser.saale-net.de> Hello Lewis, you wrote: >As requested, I looked through back issues of the newsletter before >posting. I DID find mention of my problem, but no solution was given and >the answer didn't satisfy me. > >I have a problem in that, when I modify my make files, I get: > > makefile:48: *** missing separator. Stop. How does this line and its context look like? This error normally appaers if a tab before a command is missing. Example: all: $(GT_EXE) $(CGT_EXE) $(GT_EXE): $(GT_OBJ) $(GT_RES) $(CC) $(LDFLAGS) -o $@ $(GT_OBJ) $(GT_RES) $(GT_LIB) $(CGT_EXE): $(CGT_OBJ) $(CC) $(LDFLAGS) -o $@ $(CGT_OBJ) $(CGT_LIB) ^^^^^^^^ has to be a tab I'm also getting massive problems here if i try to use make in a nonbinary mounted directory. Perhaps that's your problem, too? Just try to mount your source directory in binary mode. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Mon Sep 28 20:56:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: B19: error in cygnus.bat References: <360ce5d3.2038601@mail.weiser.saale-net.de> Message-ID: <199809281356.JAA01707@nala.cs.utk.edu> I installed cygwin b19 on win98 and actually had the same problem as Wilfried. I can't imagine why CYGFS would not be written to the cygnus.bat file, though. I just fixed it myself by setting CYGFS correctly... >Hello Wilfried, you wrote: >>I installed cygwin b19 under win95. The installation procedure >>creates the file "cygnus.bat" in the installation directory. >>In line 5 the environment variable %CYGROOT% is used but >>still undefined. >No, normally %CYGROOT% _is_ there and looks like > >SET CYGROOT=e:\dev\cygwin32.b19 > >while this part cygnus.bat is something like > >SET MAKE_MODE=unix >SET CYGWIN32=tty binmode >SET CYGROOT=e:\dev\cygwin32.b19 >SET CYGFS=e:/dev/cygwin32.b19 >SET CYGREL=b19 >SET GCC_EXEC_PREFIX=%CYGROOT%\usr\lib\gcc-lib\ >SET TCL_LIBRARY=%CYGROOT%\usr\share\tcl8.0\ >SET GDBTK_LIBRARY=%CYGFS%/usr/share/gdbtcl >SET PATH=%CYGROOT%\bin;%CYGROOT%\usr\bin;%PATH% > >for me. > >Perhaps you've simply deleted it? Just add it or try to install >cygwin32 again, perhaps to some different directory. >-- >bye, Michael >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Mon Sep 28 20:56:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: B19: Link error between libs linked with -l References: <001b01bdeb50$f7d53ca0$fa173185@gbird0.fu.is.saga-u.ac.jp> Message-ID: On Tue, 29 Sep 1998, Colin Peters wrote: [ ... colin points out my virtual blindness ... ] Duh! Thanks. I obviously didn't bother reading the message before starting to respond. Sorry about the confused message. Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Mon Sep 28 20:56:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: Make addity? References: Message-ID: <71iXw$r$pfB@mike.franken.de> Hi N8Tm, [...] >"makefile:48: *** missing separator. Stop. > >To me this is a serious problem; it occurs when I add new lines or >delete lines entirely. It happens whether or not I have a unix or dos >line type. The only way I can get around it is to keep my makefile on a Your editor changes tab stops to spaces ! Didn't Sergey already say this ? [...] Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Mon Sep 28 20:56:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Mon, 28 Sep 1998 20:56:00 -0000 Subject: DisAssemble .exe by VC Message-ID: <166b68d7.36105a1d@aol.com> In a message dated 9/28/98 8:31:36 AM Pacific Daylight Time, root@deb.lumax.com.tw writes: > Do you know how to disassemble .exe into a file ? > I How about objdump -S ?.exe > file? I don't know whether it can do what you ask, but it does disassemble. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Mon Sep 28 22:43:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Mon, 28 Sep 1998 22:43:00 -0000 Subject: 2.7.2.3 version of gcc ? References: <360F6489.9F857999@ulm.temic.de> Message-ID: <9809290543.AA07831@modi.xraylith.wisc.edu> Juergen Koehne writes: > I need 2.7.2.3 (or similar) version of gcc for cygwin32. Where can I get > it?. > If you have to have 2.7.2.3 or similar (what does similar mean?), you can probably get the compiler sources out of b18 CDK and use that. May I ask why you need that version? Is it the asm volatile changes, ADDRESSOFF optimization, whatnot in the newest releases that break some arguably buggy code or is there a specific feature in those compilers that you need? I'm very curious as to why someone would want a version that is chock full of code generation bugs, especially when it comes to x86-win32 targets. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Tue Sep 29 02:36:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: WinMain References: Message-ID: <36106FD0.5ACA7337@ece.gatech.edu> I've just adapted runemacs to a generic run stub that will spawn cygwin GUI programs without (1) stealing your console or (2) popping up an unwanted dos-box. The sources and binaries are at ftp://belgarion.resnet.gatech.edu/pub/run-1.0.0_tar.gz for now, until I can find a better place for them. Hope it helps. For open-source knowledgeable people: I've never released a GPL'ed program before; could somebody check out the package and tell me if I "did it right?" --Chuck Wilson "Debursky, Po-Sheng Ko" wrote: > Thanks, use -luser32 did bring up the Window GUI. > But When executing it int he Exploring, the Dos Winows arised , too. > How to avoid Dos being taken up ? > > Thanks, > Debursky > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dyoung@vviuh221.vvi.com Tue Sep 29 02:36:00 1998 From: dyoung@vviuh221.vvi.com (David Young) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: Namespace support? References: <199809280608.BAA30613@daleth.grace.edu> Message-ID: <9809282142.AA02825@vviuh221.vvi.com> Then find a good free Unix and free compiler (gcc++). Use NT only if you have to or are coerced into doing so. I can't believe your instructor would mandate such stringent requirements. That is a bunch of baloney. Thanks A Bunch! David Young; VVI-DCS http://www.vvi.com Begin forwarded message: Comments: Authenticated sender is From: "MISTY D LINVILLE" To: gnu-win32@cygnus.com Date: Mon, 28 Sep 1998 00:12:37 +0000 Subject: Namespace support? X-Mailer: Pegasus Mail for Windows (v2.54) Sender: owner-gnu-win32@cygnus.com Hi! I'm a new C++ student, and I'd rather not use a commercial compiler at this point, since I'm poor. :) I'm interested in Cygnus-win32, but I have some questions. First, will the compiler balk if I remove the .h from all the header files? (the prof likes it this way, since it's the new VC++ standard), and secondly, will the line 'using namespace std;' compile cleanly, in this compiler? I'm not even entirely sure what this line is for, but it's in every example in the book, and VC++5 compiles it beautifully, but VC++ 4 doesn't, nor does djgpp. I find that if I leave out that line and say instead of just
, it compiles fine, but the prof doesn't like it. I'd appreciate any help! ~Misty - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sunshine@kd1.com Tue Sep 29 02:36:00 1998 From: sunshine@kd1.com (Roger Sunshine) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: B19: WinNT _stat()/_stat_worker() return bogus st_ino Message-ID: <361002D5.68716A01@kd1.com> I've noticed in a few situations that du fails to correctly compute disk usage in certain directory structures, and that find occasionally skips directories when searching. In both cases, the root cause appears to be that the directory structure in question has multiple directories with the same name. Both find and du search only the first occurance of these directories (even though they are not hard linked to each other). Tracing the problem reveals that both programs attempt to avoid searching the same directory by comparing the st_ino and st_dev fields of the stat buffer to a saved list of seen directories. Looking at the implementation of _stat_worker() in sycalls.cc and fhandler_base::fstat() in fhandler.cc reveals that the st_ino field for the stat structure is (usually) derived from a hash on the file name (hence the reason directories with the same name get the same inode number). On Windows NT, there is perhaps a better way to get an inode like number - If one opens the directory with the FILE_FLAG_BACKUP_SEMANTICS, then you can call GetFileInformationByHandle() which returns a unique identifier for the file (nFileIndexHigh/Low). Currently this function is used only in the impementation of fstat (which presents another problem - fstat() uses the [probably more correct] volume serial number as the value for st_dev, while _stat_worker() uses only the constant 42 [which means find -xdev will probably not function correctly, nor would tar --one-file-system]). Additionally, if at all possible, only the file index values should be used for the st_ino field, as xoring the namehash would prevent two hard linked files from having the same st_ino when they have differing names. Included are some diffs to src/winsup/fhandler.cc and src/winsup/syscalls.cc that make find and du work much better under Windows NT. Unfortunately I suspect that they do not solve the problem for 95 (as devstudio's documentation implies that the backup semantics flag is only applicable to NT, and since I don't have access to 95 at the moment, I can't really test them there). Thanks, Roger -- Roger Sunshine - Phone: (512)349-5644 - Tempest Rules, NT doesn't Senior Software Engineer - Knowledge Discovery One - sunshine@kd1.com *** src/winsup/syscalls.cc Tue Feb 10 21:15:16 1998 --- cdk/winsup/syscalls.cc Mon Sep 28 14:40:53 1998 *************** *** 1339,1345 **** /* FIXME: Doing this is of dubious merit. */ if (atts == -1 && ((len = strlen (win32_name)) < 5 ! || strcasecmp (win32_name + len - 4, ".exe"))) { debug_printf ("trying with .exe suffix\n"); strcpy (tmp, win32_name); --- 1339,1345 ---- /* FIXME: Doing this is of dubious merit. */ if (atts == -1 && ((len = strlen (win32_name)) < 5 ! || strcasecmp (win32_name + len - 4, ".exe"))) { debug_printf ("trying with .exe suffix\n"); strcpy (tmp, win32_name); *************** *** 1351,1400 **** { /* probably a raw device, try fstat */ win32_name = name; ! goto fstat; } debug_printf ("%d = GetFileAttributesA (%s)\n", atts, win32_name); - if (atts & FILE_ATTRIBUTE_DIRECTORY) - { - WIN32_FIND_DATA wfd; - HANDLE handle; - /* hmm, the number of links to a directory includes the - number of entries in the directory, since all the things - in the directory point to it */ - buf->st_nlink += num_entries (win32_name); - buf->st_dev = 42; - buf->st_ino = hash_path_name (0, real_path.get_win32 ()); - buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS; - if ((atts & FILE_ATTRIBUTE_READONLY) == 0) - buf->st_mode |= STD_WBITS; - buf->st_uid = get_file_owner (real_path.get_win32 ()); - buf->st_gid = get_file_group (real_path.get_win32 ()); - if ((handle = FindFirstFile (real_path.get_win32(), &wfd)) != INVALID_HANDLE_VALUE) - { - buf->st_atime = to_time_t (&wfd.ftLastAccessTime); - buf->st_mtime = to_time_t (&wfd.ftLastWriteTime); - buf->st_ctime = to_time_t (&wfd.ftCreationTime); - buf->st_size = wfd.nFileSizeLow; - buf->st_blksize = S_BLKSIZE; - buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; - FindClose (handle); - } - res = 0; - } - else - { fstat: ! int h = _open (win32_name, ! O_RDONLY | O_BINARY | (nofollow ? O_NOSYMLINK : 0), ! 0); if (h >= 0) ! { ! res = _fstat (h, buf); ! _close (h); } } ! done: syscall_printf ("%d = %s (%s, %p)\n", res, caller, name, buf); return res; --- 1351,1372 ---- { /* probably a raw device, try fstat */ win32_name = name; ! atts = 0; } debug_printf ("%d = GetFileAttributesA (%s)\n", atts, win32_name); fstat: ! { ! int h = _open(win32_name, ! (atts & FILE_ATTRIBUTE_DIRECTORY ? O_DIROPEN : O_RDONLY) | ! O_BINARY | (nofollow ? O_NOSYMLINK : 0), 0); if (h >= 0) ! { ! res = _fstat (h, buf); ! _close (h); } } ! done: syscall_printf ("%d = %s (%s, %p)\n", res, caller, name, buf); return res; *** src/winsup/fhandler.cc Tue Feb 10 21:14:55 1998 --- cdk/winsup/fhandler.cc Mon Sep 28 14:43:19 1998 *************** *** 334,339 **** --- 334,343 ---- { access_ = GENERIC_WRITE; } + else if ((flags & (O_RDONLY | O_WRONLY | O_RDWR)) == 0) + { + access_ = 0; + } else { access_ = GENERIC_READ | GENERIC_WRITE; *************** *** 375,381 **** } /* These flags are host dependent. */ ! shared = host_dependent.shared; sa.nLength = sizeof (sa); sa.lpSecurityDescriptor = 0; --- 379,391 ---- } /* These flags are host dependent. */ ! if (access_ & (GENERIC_READ | GENERIC_WRITE)) { ! shared = host_dependent.shared; ! } ! else { ! // No access only works with file share read ! shared = FILE_SHARE_READ; ! } sa.nLength = sizeof (sa); sa.lpSecurityDescriptor = 0; *************** *** 852,859 **** buf->st_ctime = to_time_t (&local.ftCreationTime); buf->st_nlink = local.nNumberOfLinks; buf->st_dev = local.dwVolumeSerialNumber; buf->st_size = local.nFileSizeLow; ! buf->st_ino = local.nFileIndexLow ^ namehash_; buf->st_blksize = S_BLKSIZE; buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; buf->st_uid = get_file_owner (win32_path.get_win32 ()); --- 862,870 ---- buf->st_ctime = to_time_t (&local.ftCreationTime); buf->st_nlink = local.nNumberOfLinks; buf->st_dev = local.dwVolumeSerialNumber; + buf->st_rdev = buf->st_dev; buf->st_size = local.nFileSizeLow; ! buf->st_ino = local.nFileIndexLow ^ local.nFileIndexHigh; buf->st_blksize = S_BLKSIZE; buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; buf->st_uid = get_file_owner (win32_path.get_win32 ()); *************** *** 863,868 **** --- 874,881 ---- buf->st_mode &= ~S_IFMT; if (symlink_p_) buf->st_mode |= S_IFLNK; + else if (local.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + buf->st_mode |= S_IFDIR; else buf->st_mode |= S_IFREG; } *************** *** 870,882 **** { buf->st_mode = 0; buf->st_mode |= STD_RBITS; ! if (! (local.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) buf->st_mode |= STD_WBITS; /* | S_IWGRP | S_IWOTH; we don't give write to group etc */ if (symlink_p_) buf->st_mode |= S_IFLNK; else switch (GetFileType (get_handle ())) { --- 883,898 ---- { buf->st_mode = 0; buf->st_mode |= STD_RBITS; ! if (! (local.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) buf->st_mode |= STD_WBITS; /* | S_IWGRP | S_IWOTH; we don't give write to group etc */ if (symlink_p_) buf->st_mode |= S_IFLNK; + else if (local.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { + buf->st_mode |= S_IFDIR | STD_XBITS; + } else switch (GetFileType (get_handle ())) { From colin@fu.is.saga-u.ac.jp Tue Sep 29 02:36:00 1998 From: colin@fu.is.saga-u.ac.jp (Colin Peters) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: B19: Link error between libs linked with -l Message-ID: <001b01bdeb50$f7d53ca0$fa173185@gbird0.fu.is.saga-u.ac.jp> Mumit Khan wrote: >On Sun, 27 Sep 1998, Adam Chlipala wrote: > >> When I do something like the following: >> gcc file.c -l1 -l2 >> I get linker errors involving functions found in 1 and used in 2. When >> I move a lib to the cwd and do: >> gcc file.c lib1.a -l2 >> all is well. Am I doing something incorrectly here or is this a bug? > >When you use -l, you must also supply a -L to tell >the linker where to find it (unless it's in one of the standard or >default directories). [snip] Actually this looks like a simple link order error to me. If I'm not mistaken, in gcc if an object uses a symbol in a library that library must appear *after* the object that requires it on the command line. The exception to this rule is if the object in the library that contains the required symbol has already been linked in, either by another reference in earlier code or, as happens in the second case above, all the objects in the library are linked in explicitly (when you include a library on the command line directly instead of using -l then all the objects in the library are linked in, whether your code references them or not). The solution, if I'm correct, is: gcc file.c -l2 -l1 If the two librarys are interdependent then you may have to list them twice (or more times!): gcc file.c -l2 -l1 -l2 which is just one fine argument for getting rid of cycles in your dependency graphs. Hope I'm right :) Colin. PS. For even more fun, if you have a symbol defined in two libraries the one in the first library on the command line (after the referencing object) will be used and there will be no error. You get errors when two objects are forced to be linked in with duplicate symbols. It's wonderfully complicated. - Colin Peters - colin at fu.is.saga-u.ac.jp - http://www.geocities.com/Tokyo/Towers/6162/index.html - Go not to usenet for counsel, for it will say both - 'yes' and 'no' and 'try another newsgroup'. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sbennett@hf.intel.com Tue Sep 29 02:36:00 1998 From: sbennett@hf.intel.com (Steve Bennett) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: programs wont read/write stdin/stdout under bash References: <71aJk5CKpfB@mike.franken.de> Message-ID: <360FA220.AE09FE8C@hf.intel.com> I also had this problem and found that upgrading to the 19.1 release seemed to fix it. --Steve Michael Hirmke wrote: > > Hi Stuart, > > > > > > >HI all, I'm having trouble getting compiled C (cygwin19beta gcc) or > >java (sun jdk) programs to communicate with stdin and stdout when > >exec'ed from bash (cygwin19beta) under NT4. reading from stdin always > >produces an eof and writing produces no input. It seems as though the > >child process hasnt got open file descriptors 0,1 or 2. > > set CYGWIN32=tty %CYGWIN32% > > *before* starting the first instance of any cygwin32 program. > > > > >I suspect I am being incredibly dumb here. Any help gratefully > >appreciated. > > > >stu > > BYe. > Michael. > -- > Michael Hirmke | Telefon +49 (911) 557999 > Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 > 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de > | WWW http://aquarius.franken.de/ > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Steve Bennett Intel, Hillsboro OR sbennett@ichips.intel.com Phone: 503.696.1063 MRL IA32 CPU research FAX: 503.696.1442 I do not speak for Intel in any way. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From khan@xraylith.wisc.edu Tue Sep 29 02:36:00 1998 From: khan@xraylith.wisc.edu (Mumit Khan) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: Namespace support? References: <199809280608.BAA30613@daleth.grace.edu> Message-ID: <9809290314.AA07226@modi.xraylith.wisc.edu> "MISTY D LINVILLE" writes: > Hi! I'm a new C++ student, and I'd rather not use a commercial > compiler at this point, since I'm poor. :) I'm interested in > Cygnus-win32, but I have some questions. First, will the compiler > balk if I remove the .h from all the header files? (the prof likes it > this way, since it's the new VC++ standard), and secondly, will the > line 'using namespace std;' compile cleanly, in this compiler? I'm > not even entirely sure what this line is for, but it's in every > example in the book, and VC++5 compiles it beautifully, but VC++ 4 > doesn't, nor does djgpp. I find that if I leave out that line and > say instead of just
, it compiles fine, but the > prof doesn't like it. I'd appreciate any help! Misty, The latest GNU C++ released as part of egcs-1.1 does support namespaces, but with a few caveats -- - the "using" directive is not quite standard. It uses ARM style lookup instead of the new kind. The following fails for example: struct A { void f(int); }; struct B : A { using A::f; void f(long); }; - the C++ runtime library still lags behind the standard quite a bit. KAI and MSVC are the only two that I have access to that comes with standard ones, even though the one for MSVC is somewhat crippled to compensate for compiler limitations. The biggest side-effect of the lack of standard runtime library for GNU C++ is that all the symbols in dumped into global namespace, not in std. However, ``using namespace std'' works just fine. I have just a few #ifdefs in my code when egcs C++ became featureful enough to build it (we normally use EDG based compilers on both Unix and win32), and I'm hoping to get rid of those pretty soon. And, no, MSVC 5/6 can't even grok most of this code thanks to lousy template handling. EGCS-1.1 is the first release with namespace support, so quite a few rough edges remain. With the new standard C++ library in the works, and egcs improving namespace support, we can look forward to a much better compiler in the future. Your prof is correct that using
is definitely better style than using the corresponding .h file due to proper scoping. However, your prof is quite incorrect that VC++ *defines* any "standard"; in fact, MSVC is not even that good at *following* the standard ;-) Note that you can't just remove the .h, since the C-style headers are wrapped with a "c" in front, eg., --> . I suggest you try it out and see for yourself. I also suggest that you take a quick look (and ask your prof to do the same!) at egcs-1.1. You can get more info at . Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From jhorner@cs.utk.edu Tue Sep 29 02:36:00 1998 From: jhorner@cs.utk.edu (Jeffrey Russell Horner) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: No Subject References: <000401bde94f$d830b1c0$05c8fea9@cwgrand> Message-ID: <199809281427.KAA02351@nala.cs.utk.edu> Charles, First, throw out the html... Second, I've seen this problem when I installed cdk.exe on my win98 box. Here's a little synopsis of my problem and how I solved it. I'm running Windows98 on a Spacewalker Shuttle I440LX PII motherboard, Intel Celeron 266Mhz PII, 64Mb of memory, a 1.2 gig Western Digital Caviar hard disk, Advansys SCSI controller with a SCSI ZIP disk, and a floppy. The motherboard has the ability to run the system bus at speeds of 60Mhz with a 30Mhz PCI bus speed, 70Mhz with a 33Mhz PCI bus speed, and 83Mhz with a 43Mhz PCI bus speed. Notice that any disk access, SCSI or IDE, has to go over the PCI bus. When I ran the bus speed at 83Mhz (43Mhz PCI) and tried to install cdk.exe from my hard disk, I would get the error 'PackageForTheWebError: Could not execute "C:\TMP\SETUP.EXE /SMS'. For the longest time, I had no idea why this was happening, so I went to www.installshield.com, found out the PackageForTheWeb was a product of InstallShield, and that consequently is the product I believe Cygnus uses to package up cdk.exe. Anyway, I read the FAQ for PackageForTheWeb and one FAQ question addressed the SETUP.EXE /SMS problem. None of the answers seemed to fit my problem. But I believed since I was overclocking my system bus, maybe I should run the system bus at a slower speed. Well, that didn't help either. But, when I ran the system bus at the slowest speed and ran cdk.exe from my ZIP drive, I was actually able to install Cygnus B19 properly. Go figure. This leads me to believe that Windows98 isn't handling disk access effectively enough and that cdk.exe is not able to properly decompress and write to disk well enough. Maybe there's some disk caching feature that Windows 98 isn't working properly, I don't know. Anyone have any ideas? You might be able to read something there to solve your problem. Go to support.installshield.com and click on Top 10 FAQs. >This is a multi-part message in MIME format. > >------=_NextPart_000_0004_01BDE8D7.FCADC060 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > >When I tried to install by running cdk.exe on my PC (running Windows = >98), I got the following error: > > Setup Initialization Error > > Setup is unable to find installation languages in C:\TMP\SETUP.LID = >file. > > Error 105 > >Can you help me. > >C. Granderson > >------=_NextPart_000_0004_01BDE8D7.FCADC060 >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > > > > > >http-equiv=3DContent-Type> > > > >
When I tried to install by running = >cdk.exe on my=20 >PC (running Windows 98), I got the following error:
>
 
>
    Setup = >Initialization=20 >Error
>
 
>
    Setup is unable = >to find=20 >installation languages in C:\TMP\SETUP.LID file.
>
 
>
    Error = >105
>
 
>
Can you help me.
>
 
>
C. = >Granderson
> >------=_NextPart_000_0004_01BDE8D7.FCADC060-- > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request@cygnus.com" with one line of text: "help". **************************************************************** Jeff Horner The University of Tennessee CS Department 423 974-2841 fax: 423 974-8296 104 Ayres Hall http://www.cs.utk.edu/~jhorner/ Knoxville, TN 37996-1301 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From hammersl@esrf.fr Tue Sep 29 02:36:00 1998 From: hammersl@esrf.fr (Andy Hammersley) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: make problems on W95 Message-ID: <199809281711.TAA26843@esrf.esrf.fr> I'm trying to use GNU-make within from the Cygnus bash shell. On WNT everything worked beautifully (at this level at least). However, on W95 I've had nothing but problems. 1. The lack of environment variable space error which is answered in other mails. (I have Visual Fortran installed which adds a number of environment variables. Can the install not warn users if this is a problem ?) 2. The PATH is not properly set so bash.exe can't be found. The problem here seems to be directory names with spaces. I have Visual C++ and Visual Fortran installed, both of which add directories with spaces to the PATH. To get round this problem I've tried setting the Cygnus bin directory within AUTOEXEC.BAT and removing this from the CYGNUS.BAT file. Is this O.K. ? Bash appears to work O.K. (I see in the FAQ that spaces are not allowed in file names, can 'C:\Program Files\...' be easily avoided ?) 3. Having done the above if I type" make -v I get a message for GNU Make with version number and NO warranty info. However if I type make in an appropriate directory (one with a Makefile, targets, sources, etc.) it hangs. With make -d I get the version and warranty info, and: Reading makefiles... Reading makefile `Makefile'... Got a SIGCHLD; 1 unreaped children. Got a SIGCHLD; 1 unreaped children. Got a SIGCHLD; 1 unreaped children. Got a SIGCHLD; 1 unreaped children. Got a SIGCHLD; 1 unreaped children. After that it hangs the system completely, and I'm forced to reboot. Any help on getting this working, would be greatly appreciated. Thanks, Andy (hammersley@esrf.fr) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From sos@prospect.com.ru Tue Sep 29 02:36:00 1998 From: sos@prospect.com.ru (Sergey Okhapkin) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: gdb Message-ID: <01BDEBA9.62138A10@sos> David Calabrese wrote: > I recently D/L Beta 19 > When I start gdb it opens up a Window. > Can I send the output to the command-line. gdb -nw -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tjh@quadstone.com Tue Sep 29 02:36:00 1998 From: tjh@quadstone.com (tjh@quadstone.com) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: bash and '&' References: Message-ID: <19980929093634.4184.qmail@findmail.com> (Repost) Sorry if this is slightly off-thread, but can someone tell me why ^C interrupts all bash jobs (i.e. including the backgrounded ones), instead of just the current job, as I'd expect? Is there a way to stop this? I'm running b19.1 on NT4. ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=3335 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Tue Sep 29 02:36:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: Documentation & other questions References: <360f598d.74592448@neptune> Message-ID: <3610708A.1A1E068B@ece.gatech.edu> I put the following snippet in my .bashrc: d2u() { for p in $* do cat $p | tr "\r\n" "\n" > /tmp/$p.tmp mv /tmp/$p.tmp $p done } then, you can do : d2u *.txt and all the .txt files will automagically be converted from DOS to UNIX --Chuck Wilson Alex Oren wrote: > Hello. > > I just got on this list so if my questions are not appropriate here, please > direct me to where they can be (or a FAQ, if there is one). > > Please keep in mind that I am not a UNIX person so I may miss the obvious. > > I installed the Cygwin tools but I can't find any documentation on them. Is > there any available? A windows help file will be best but any other format is > fine as long as there is a tool to format/read it. > > Another question: How can I convert text files between UNIX format (LF) and > DOS/Windows format (CR/LF)? I looked at tr but it seems to me it only > performs 1-to-1 character translations. > > Thanxalot! > > Have fun, > Alex. > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From max@vega.pfts.com Tue Sep 29 02:36:00 1998 From: max@vega.pfts.com (Maxim Sobolev) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: DisAssemble .exe by VC References: Message-ID: <360FC5A6.7AF0159@vega.pfts.com> Probably you may take a look at WinDasm32 disassembler for Windows. Try to search in the Web or ftp. maxim "Debursky, Po-Sheng Ko" wrote: Hi, there. Do you know how to disassemble .exe into a file ? I have a program which could not run in my NT. I wish to grab the WM_'s callback function , and to disable it's checking function. Then the problem could be solved. I know SoftICE is good, for it could disassemble the .exe when it executed. But could it be disassemble into a whole file ? I have tryed DDD and gdb, but could not find such function ! Please give me a help. Thanks, Debursky (debursky@deb.lumax.com.tw) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Tue Sep 29 02:36:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Tue, 29 Sep 1998 02:36:00 -0000 Subject: server X Message-ID: <199809281805.LAA17395@cygnus.com> I'd take that with a grain of salt. From my rumor mill, MS is now saying Q2 1999 and some of their developers are saying H2 1999 to EOY 1999. -----Original Message----- From: Charles Wilson [ mailto:cwilson@ee.gatech.edu ] Sent: Thursday, September 24, 1998 6:45 PM To: Larry Hall; gnu-win32@cygnus.com Subject: Re: server X This may change. NT5.0 has DirectX 6 support builtin, and rumors say it will be released (early, for a change) in the first quarter of 1999, Chuck Wilson Larry Hall wrote: > The problem is DirectX versions don't get updated on NT with the same > alacrity that they do on 9x. I think the currently supported(?) version > is DirectX 3 on NT. Here is one place where capabilities in 9x outstrip > those in NT! So a DirectX approach will not allow an XFree86 "port" to > address the need of both 9x and NT users at this time... > > Larry Hall lhall@rfk.com > RFK Partners, Inc. (781) 239-1053 > 8 Grove Street (781) 239-1655 - FAX > Wellesley, MA 02482-7797 http://www.rfk.com > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2713 bytes Desc: not available URL: From pgarceau@teleport.com Tue Sep 29 06:45:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application References: <199809260937.CAA11155@cygnus.com> Message-ID: <199809290806.BAA19080@cygnus.com> Hi folks, First I need to assume that you are developing for a Gnu-Win32 environment. On 28 Sep 98, at 13:17, the Illustrious Ronnie Starks wrote: > Hi, I am using gnu-win32 and I need to compile programs for opengl. I > was wondering if you could help me. After having tried repeatedly to > compile a program so that it would open a window an show a checker board I > have given up. > A friend of mine avoided this problem by purchasing > Microsoft Visual C++. With the GL/Glut libraries his works fine. I'm > using the GCC compiler and it just won't work. Since you are deloping > with opengl is there any advice that you could offer? I have a couple of suggestions...get the latest Glut implementation (b3.07 I believe -- from Kilgaard) and go ahead and try to build it under gcc. I don't use glut for much the same reasons that you have noted, and have yet to find a suitable solution...The Mesa library has a glut portion, however, it doesn't work with Gnu-Win32 (in other words...using Win32 GUI)...at least it hasn't sucessfully compiled "out-of-the-box"...largely because most of the graphic libraries that are out there are set up to work only with X- Windows...this is sad but, apparently, quite true. There are exceptions, but they only work if you use the MSVC/C++ developers suite...I'm sure MS is lauging all the way to the bank... As a final note, I have managed to get the gl and glu versions of Mesa to build, but have yet to see them run since the demos included with Mesa do not work without GLUT. Remember, glut is not really part of OpenGL any more than the old MS Aux library is...they are nothing more than nifty toolsets that seem to interact with OpenGL fairly readily. I'm not sure if VTK ( http://www.kitware.com/vtk.html ) would help or not though it does build under EGCS/Mingw32. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From david@tradeware.com Tue Sep 29 06:45:00 1998 From: david@tradeware.com (David Calabrese) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: Problem using gdb with Microsoft .exe Message-ID: <19980929134558.16593.qmail@findmail.com> I'm trying to debug a program that was built using the Microsoft C++ compiler. I built the exe to include debug info. Is it possible to use gdb to debug this program? I can't get gdb to load the symbols properly. Am I missing something or is this just not possible. When I build the program using gcc, I have no trouble debugging. ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From avajhoej@gtech.com Tue Sep 29 06:45:00 1998 From: avajhoej@gtech.com (Arne Vajhoej) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: some comments about a Win95 collect2 problem Message-ID: <00011743.CE21428@gtech.com> >I have one report of collect2 dying with spawnvp failures on W95, but >dozens of success reports. If you're one of the unlucky ones that has >this problem, here's a workaround until someone with W95 machine can >figure this out: > (basically rename the collect2 to something else) > % x=`gcc -print-prog-name=collect2` > % mv $x ${x}.bak >now, you're back to working condition. >The person reporting the error was using the following setup: > - coolview (don't know which one) > - W95 Rev B I am not a cygwin32 expert or anything, but when I develop some C++ code under VMS or some flavour of Unix and I want to build it on a PC, then I always use either DJGPP or Cygnus GnuWin32. They are much much better than the compilers from MicroSoft and Borland. I can verify, that there are some problem with collect2. My setup: Pentium 200 MHz MMX with 32 MB RAM Windows 95 B (=OSR2) UK version Cygnus GnuWin32 B19 with patch DLL EGCS 1.1 Symptom: everything works fine, but during a build then collect2 runs for 2-4 minutes, which means that builds takes a very long time. No error-messages and the images are OK. When I rename collect2, then the speed are back to normal (as it were before I installed EGCS 1.1 !) and the images looks indentical. I am not a Windows95 expert, so I can not offer any explanation. My guess would be, that EGCS 1.1 collect2 uses many ressources of some kind and that it either ran out or a are close to. Hope that this info will give you or a Windows95 expert some clues. Arne - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tarheit@wcoil.com Tue Sep 29 06:45:00 1998 From: tarheit@wcoil.com (Tim Arheit) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: mingw32 on Windows NT Message-ID: <199809291329.JAA05056@smtp.wcoil.com> Has anyone gotten mingw32 to compile properly on windows NT. I've used mingw32 successfully on windows 95 and windows 98 for some time, but I just tried running it on NT and it gives the following error (even just when compileing hello.c) ld: cannot open C:\TMP\cc0002261.o: No such file or directory c:\tmp\ exists and the file cc000226.o exists, for some reason it seems to truncate any temp .o file it creates to 8 char. I'm using gcc 2.8.1. Any solutions? -Tim - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From pgarceau@teleport.com Tue Sep 29 06:45:00 1998 From: pgarceau@teleport.com (Paul Garceau) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: Online Book (was Re: DirectX (was Re: server X)) References: <360FBF0D.BCCB12B1@sjakk.fi> Message-ID: <199809290908.CAA21748@cygnus.com> Hi folks, On 28 Sep 98, at 18:53, the Illustrious h5@sjakk.fi wrote: > There's an online book about DirectX available at: > www.pbg.mcgraw-hill.com/betabooks/root/index.html > It should include everything about the DirectX ind Win9x *and* WinNT Thanks for the information...I was so excited that I had to check it out, so thought I'd give a brief review: The book seems to be fairly complete except for a couple of things...it pre-supposes that you are using MSVC/C++ or one of the MS development suites...It also presupposes that you will be using MFC for all of your C++ interfacing; MFC doesn't work with anything but MSVC/C++ and Borland 5.x. It doesn't even mention NT except on the cover. In fact, the text states specifically that you should read "Programming Win95" before getting too far into the book itself. The actual DirectX calls referenced are, for the most part, incompatible with Gnu-Win32. The book also assumes that you have a completely functioning collection of the latest _released_ MS proprietary DirectX API sets, specifically DirectX 6. The book does take some time to give brief tutorials of MFC and COM. Beyond that, however, it hasn't much to offer for anyone who doesn't use MSVC/C++ or Borland C/C++ under the Win9x OS. If you're using Win9x and MSVC/C++ or Borland, it might be worth checking out...otherwise, don't bother. Peace, Paul G. Information Systems Consultant NewDawn Productions http://www.teleport.com/~pgarceau/newdawn/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gvaughan@oranda.demon.co.uk Tue Sep 29 06:45:00 1998 From: gvaughan@oranda.demon.co.uk (Gary V. Vaughan) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: Documentation & other questions References: <360f598d.74592448@neptune> Message-ID: <3610C4D9.2B6F938E@oranda.demon.co.uk> Alex Oren wrote: > > Hello. Hi there. > I just got on this list so if my questions are not appropriate here, > please direct me to where they can be (or a FAQ, if there is one). For the FAQ, try: http://www.cygnus.com/misc/gnu-win32/faq_toc.html Also the mailing list is archived at: http://www.cygnus.com/ml/gnu-win32 > Please keep in mind that I am not a UNIX person so I may miss the obvious. So long as you keep in mind that I am not a WIN32 person, so I may miss the obvious! > I installed the Cygwin tools but I can't find any documentation on > them. Is there any available? A windows help file will be best but > any other format is fine as long as there is a tool to format/read > it. For the (unix style/nroff) manual pages, which tell you about the tools in the cdk.exe archive: ftp://ftp.cygnus.com/pub/gnu-win32/latest/cdk-man.tar.gz If you want some API manual pages, a good approximation which I am currently using is: ftp://ftp.debian.org/debian/dists/stable/main/source/doc/manpages_1.19.orig.tar.gz The cdk doesn't come with a reader however, so you might like to install the following packages from http://www.i21.com/~tjump/files/cygwin32: cygwin32-b19-ncurses-4.2.tar.gz cygwin32-b19-less-3.32.tar.gz cygwin32-b19-groff-1.11.tar.gz cygwin32-b19-man-1.4d.tar.gz > Another question: How can I convert text files between UNIX format > (LF) and DOS/Windows format (CR/LF)? I looked at tr but it seems to > me it only performs 1-to-1 character translations. sed 's/^M$//' from bash? (replace-regexp "^M$" "") from emacs? :%s,^M$,, from vi? (the above have to be *real* CTRL-M's not just ^ then M) or you might try: http://www.kedemel.demon.co.uk/trans.exe Cheers, Gary V. Vaughan - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From vincent.sanders@rsi.co.uk Tue Sep 29 06:45:00 1998 From: vincent.sanders@rsi.co.uk (Vincent Sanders) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: Signals disapearing Message-ID: <003501bdeb98$033fef80$504ec8c2@steel.grenville.co.uk> Greetings All , i have searched the mail archives and i dont belive this problem has come up previously. My system setup is NT4 service pack 3 , cygwin 19 , egcs 1.1 , cygwin19.dll version 2 and the ipc/shm stuff by llange@capgemini.fr I am in the process of porting an unix app that i use from unix to windows, it uses the serial port to transfer small amounts of information between 2 machines, in cygnus this appeared to work fine except that the select() call on the serial filedes doesnt appear to return the correct results , it always indicates that there is data waiting on the descriptor when there isnt! the select call i also being used on a network stream and that does work!! After much fiddleing about i decided to try the coolview dll to see if that fixed the problem, trouble is that all the signals between the child process performing the io and the parent cease when i use any cygwin32b19 other than version 1 or 2 Any help would be apreciated! Oh also why does syslog insist on outputting to the console? how do i just have the messages go into the application event log only?!? Regards Vincent - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From azadeh@swi.com Tue Sep 29 06:45:00 1998 From: azadeh@swi.com (aryan) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: Help!source for DMake for CYGWIN32 Message-ID: <3610DB86.48174899@swi.com> Hi there: I am working on porting of some programs (implemented in Unix Environment) to NT using CYGWIN32. I am wondering if you could reply to my email and sending me some information regarding "DMake" for CYGNUS environment or example: where can I find the binary source files of it, documentation, and if is it free or maybe an email address or Tel. No. where I can ask for it. Thank you in advance for your help. Regards, Aryan. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From gvaughan@oranda.demon.co.uk Tue Sep 29 06:45:00 1998 From: gvaughan@oranda.demon.co.uk (Gary V. Vaughan) Date: Tue, 29 Sep 1998 06:45:00 -0000 Subject: cygwin.dll signal bug [WAS Re: bash and '&'] References: <19980928113300.32747.qmail@findmail.com> Message-ID: <3610CD3A.DC42841C@oranda.demon.co.uk> tjh@quadstone.com wrote: > > Apologies if this is slightly off-thread: It's not... > I think Cygwin32 is great (I use b19.1). > But one thing that bugs me is that hitting > ^C seems to interrupt all jobs started > from bash, not just the current job. > > What am I doing wrong? Nothing. It just seems to work this way =(O| Under UNIX it would be a sign that the signal masks in the signal handlers are not set up correctly in the background jobs, and that they are waking up when their controlling tty recieves a signal. Since the problem seems to affect *all* background jobs, it must be something to do with the bash process... I had a very quick look at the signal handling in my bash sources, and it is identical to the working signal handling for my UNIX build. I guess this means that the cygnal handling [I'll let that typo stand!] in the emulation layer is buggy... but then we are firmly in win32 land, and I become confused very quickly =)O| Are there plans to fix this? I presume it is a known bug? Cheers, Gary V. Vaughan - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From amilan@gic.it Tue Sep 29 07:32:00 1998 From: amilan@gic.it (Alessio Milan) Date: Tue, 29 Sep 1998 07:32:00 -0000 Subject: gdb References: <19980928160817.4198.qmail@findmail.com> Message-ID: <199809291321.PAA03729@linus.ud.gic.it> > Date: 28 Sep 1998 16:08:17 -0000 > From: "David Calabrese" > Sender: owner-gnu-win32@cygnus.com > > I recently D/L Beta 19 > When I start gdb it opens up a Window. > Can I send the output to the command-line. Try with "gdb -nw". > I really need to do this since I am remotely debugging a process and cannot use any guis. A question for me: what kind of telnetd are you using? -- am - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgf@cygnus.com Tue Sep 29 07:32:00 1998 From: cgf@cygnus.com (Christopher G. Faylor) Date: Tue, 29 Sep 1998 07:32:00 -0000 Subject: gdb References: <19980928160817.4198.qmail.cygnus.gnu-win32@findmail.com> Message-ID: <6uqqgp$md8$1@cronkite.cygnus.com> In article <19980928160817.4198.qmail.cygnus.gnu-win32@findmail.com>, David Calabrese wrote: >I recently D/L Beta 19 >When I start gdb it opens up a Window. >Can I send the output to the command-line. > >I really need to do this since I am remotely debugging a process and cannot use any guis. Most gnu tools take a --help option. That would show you the correct command line option for this. -- cgf@cygnus.com http://www.cygnus.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dj@delorie.com Tue Sep 29 07:32:00 1998 From: dj@delorie.com (DJ Delorie) Date: Tue, 29 Sep 1998 07:32:00 -0000 Subject: i386pe.x: etext and end? References: <13839.16480.757084.83000.cygnus.gnu-win32@hawaii> Message-ID: <3610E0E0.167E@delorie.com> end and etext are "special" so they don't have underscores to make sure they don't interfere with functions or variables your program may provide (ansi/posix compliance and all that). However, you can access them using gcc extensions: extern int end asm("end"); void *foo() { return (void *)&end; } However, since they're deprecated, there is *no* sanctioned way of getting at them. You shouldn't be using them at all unless you absolutely can't avoid it. DJ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ybossel@bolchile.cl Tue Sep 29 07:59:00 1998 From: ybossel@bolchile.cl (Yves Bossel) Date: Tue, 29 Sep 1998 07:59:00 -0000 Subject: RV: newbie: TERM=dumb unknown Message-ID: <01BDEB98.2D106F10.ybossel@bolchile.cl> Thanks, Where can I find ncurses or termcap ? Which do you recomend ? Is there any configuration or setting I should be aware of when installing ncurses or termcap ? At 08:39 AM 9/28/98 -0000, you wrote: >Hello, > >When I try to run a program that runs ok under windows, I following message: >TERM=dumb unknown > >example: >bash-2.01$ /archiv~1/elvis/elvis >TERM=dumb unknown > > > >I imagine some settings are incorrect. Can you help ? > >Thanks You need ncurses or termcap and to set your TERM=linux. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From markdill@lisco.com Tue Sep 29 15:33:00 1998 From: markdill@lisco.com (Mark Dill) Date: Tue, 29 Sep 1998 15:33:00 -0000 Subject: Bash Windows95 Problem Message-ID: <360E4817.2DB4BBE5@lisco.com> Hi, I am having a problem with bash causing Windows95 to hang. Seems to be related to to interrupt handling. Sometimes ^C will interrupt the process, sometimes it will hang the OS. I also have problem with command typo's. Bash will print "no command found" then Windows95 will hang. The only way out is to push the reset button. Do I have something configured incorrectly, or is there a patch I need to install? Thanks, Mark Dill - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From davis@openmarket.com Tue Sep 29 15:33:00 1998 From: davis@openmarket.com (Rob Davis) Date: Tue, 29 Sep 1998 15:33:00 -0000 Subject: autoconf NT? Message-ID: <3611611D.1D27F9B5@openmarket.com> Hi, We use autoconf/m4 extensively for our applications on UNIX. Now that we are porting some of these apps to NT, is there a NT version of autoconf and m4? Thanks. Rob - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rdparker@butlermfg.org Tue Sep 29 19:49:00 1998 From: rdparker@butlermfg.org (Parker, Ron) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: Multiple definition error with EGCS 1.1 Message-ID: <199809291525.IAA10336@cygnus.com> I am attempting to compile the KDE support libraries, while doing so I receive the following messages: /bin/sh ../libtool --mode=link g++ -O2 -Wall -L/usr/X11R6.4/lib -o example example.o libQwSpriteField.la -lqt -lX11 g++ -O2 -Wall -L/usr/X11R6.4/lib -o example example.o .libs/libQwSpriteField.a -L/usr/X11R6.4/lib -lqt -lX11 -lqt -lX11 .libs/libQwSpriteField.a(QwSpriteField-mobdouble.o)(.text+0x20):QwSprite Field-: multiple definition of `QwMobilePositionedSprite::~QwMobilePositionedSprite(void)' .libs/libQwSpriteField.a(QwSpriteField-double.o)(.text$_$_t24QwMobilePos itionedSprite1Zd+0x0):QwSpriteField-: first defined here Any ideas? -------------- next part -------------- A non-text attachment was scrubbed... Name: bin00000.bin Type: application/vnd.ms-tnef Size: 2116 bytes Desc: not available URL: From lo7@iol.ie Tue Sep 29 19:49:00 1998 From: lo7@iol.ie (LO) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: problem with windows gui program References: <199809251318.GAA07365@cygnus.com> Message-ID: <36119B4A.E0EFE410@iol.ie> Hi Henry, There is a good tutorial on using gcc written by Colin Peters at the following url: http://www.fu.is.saga-u.ac.jp/~colin/gcc.html I found it very helpful You could also try these sites: http://www.freeyellow.com/members5/gw32 [the FAQ and links] http://www.relisoft.com [tutorial and code] http://www.http://www.program.com/resources/win32.html [sample code] http://www.microsoft.com/win32dev/ [How-to information] Good bye. Liam O'Keeffe. -------------- Website: http://homepages.iol.ie/~lo7 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 29 19:49:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: 2.7.2.3 version of gcc ? References: <360F6489.9F857999@ulm.temic.de> Message-ID: <361b1696.1421223@mail.weiser.saale-net.de> Hello Juergen, you wrote: >I need 2.7.2.3 (or similar) version of gcc for cygwin32. Where can I get >it?. It's in the cdk distribution, at least 2.7.x.x. But it's buggy. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lo7@iol.ie Tue Sep 29 19:49:00 1998 From: lo7@iol.ie (LO) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: Down-load of 'cdk.exe' B18 stops References: <35FC27B4.93B98346@ks.ericsson.se> <35FDF603.8598CB65@iol.ie> Message-ID: <36119B9D.1D91FC5A@iol.ie> LO wrote: > Hi Christer, > > I downloaded cdkb19.exe a couple of weeks ago with no problem. Sorry. That should be cdk.exe cdk.exe is an installation program which installs the latest version of CygWin. Sorry if any confusion was caused. Good bye. Liam O'Keeffe. -------------- Website: http://homepages.iol.ie/~lo7 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 29 19:49:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: gcc produces foo.exe, not foo Message-ID: <19980929190812.4822.rocketmail@send102.yahoomail.com> ---Fergus Henderson wrote: > > On 28-Sep-1998, Earnie Boyd wrote: > > > > Is their a reverse of the linker option --force-exe-suffix? > > > > I've tried --noforce-exe-suffix and that doesn't work. > > Did you try `--no-force-exe-suffix'? `ld' returns: unrecognized option. == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd@yahoo.com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 29 19:49:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: gdb References: <19980928160839.4217.qmail@findmail.com> Message-ID: <19980929163420.47199@cygnus.com> On Mon, Sep 28, 1998 at 04:08:39PM -0000, David Calabrese wrote: > > I recently D/L Beta 19 > When I start gdb it opens up a Window. > Can I send the output to the command-line. > > I really need to do this since I am remotely debugging a process and > cannot use any guis. You want "gdb -nw" (for no windows)... -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From simon@ptgi.com Tue Sep 29 19:49:00 1998 From: simon@ptgi.com (Simon Weatherill) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: opening stdin, stdout & stderr as pipes Message-ID: <19980929210530.22483.qmail@findmail.com> I'm trying to read output from a pipe, but since I also need to be able to read stderr separately, I can't use popen(). Instead, I have fork()'d and execl()'d after closing the 3 standard files and dup'ing pipes to them. This works fine under UNIX (I've tried 5 different ones), but the output from the commands I'm exec'ing is disappearing. Even if I leave stdout alone and swap stdin, I *still* lose stdout! Does anyone know what's going on? I've searched the archives here, but haven't found anything except an example of a piped command using Windows' _pipe() and _spawnlp() functions (posted on 6/11/98). I'd rather use the sequence that works under UNIX, but I'll try anything. Thanks, Simon Weatherill ----- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 29 19:49:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: Civil service Message-ID: <36564fdf.16079611@mail.weiser.saale-net.de> Hello folks, since my civil service is going to begin on Thursday and I won't be able to get home regularly, I'll be not very communicative during the next two or three weeks. After things have normalized and I've captured some telephone line for my modem, I'll of course answer all the mails that collected in my inbox. Till then I'm unfortunately cut off the line. Sorry for any inconvenience... -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 29 19:49:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 29 Sep 1998 19:49:00 -0000 Subject: gdb References: <19980928160839.4217.qmail@findmail.com> Message-ID: <361c1722.1561415@mail.weiser.saale-net.de> Hello David, you wrote >I recently D/L Beta 19 >When I start gdb it opens up a Window. >Can I send the output to the command-line. gdb --help will say: --nw Do not use a window interface. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Tue Sep 29 21:47:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: gcc produces foo.exe, not foo References: <19980928194046.27880.rocketmail@send101.yahoomail.com> Message-ID: <19980930044434.52925@mundook.cs.mu.OZ.AU> On 28-Sep-1998, Earnie Boyd wrote: > > Is their a reverse of the linker option --force-exe-suffix? > > I've tried --noforce-exe-suffix and that doesn't work. Did you try `--no-force-exe-suffix'? ^ -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 29 21:47:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Problem using gdb with Microsoft .exe References: <19980929134558.16593.qmail@findmail.com> Message-ID: <19980929214700.40111@cygnus.com> On Tue, Sep 29, 1998 at 01:45:58PM -0000, David Calabrese wrote: > > I'm trying to debug a program that was built using the Microsoft C++ > compiler. I built the exe to include debug info. > > Is it possible to use gdb to debug this program? No it isn't, the debugging info that gcc emits is different from what VC++ does. As a result, gdb does the best it can, which isn't a lot. I know this isn't desirable; I'd certainly like complete VC++/gcc compatibility but there are quite a few reasons why this isn't there yet and isn't likely to happen soon. One of the reasons is that, as far as I know, documentation about the MS debugging format used by VC++ isn't available. :-( -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Tue Sep 29 21:47:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: WinMain References: Message-ID: <36115CAE.2FA24D9D@uni-duesseldorf.de> > Thanks, use -luser32 did bring up the Window GUI. > But When executing it int he Exploring, the Dos Winows arised , too. > How to avoid Dos being taken up ? use the -mwindows option for gcc (at least for b19). Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From michael@weiser.saale-net.de Tue Sep 29 21:47:00 1998 From: michael@weiser.saale-net.de (Michael Weiser) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: newbie: TERM=dumb unknown References: <01BDEABB.7E0C4840.ybossel@bolchile.cl> Message-ID: <3617142d.803885@mail.weiser.saale-net.de> Hello Yves, you wrote: >When I try to run a program that runs ok under windows, I following message: >TERM=dumb unknown > >example: >bash-2.01$ /archiv~1/elvis/elvis >TERM=dumb unknown Is there an /etc/termcap? What does your TERM environment variable look like? Is it set? Anyway you should set TERM=linux and copy the supplied termcap to /etc or mount the directory containing termcap on /etc. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 29 21:47:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: bash and '&' References: <19980929093634.4184.qmail@findmail.com> Message-ID: <19980929163657.31802@cygnus.com> On Tue, Sep 29, 1998 at 09:36:34AM -0000, tjh@quadstone.com wrote: > > (Repost) > > Sorry if this is slightly off-thread, but > can someone tell me why ^C interrupts all > bash jobs (i.e. including the backgrounded ones), instead of just the current job, as I'd > expect? Is there a way to stop this? > > I'm running b19.1 on NT4. It's a bug in bash. It will be fixed in the one included as part of the upcoming B20 distribution in early October. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From nhv@laserplot.com Tue Sep 29 21:47:00 1998 From: nhv@laserplot.com (Norman Vine) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Help!source for DMake for CYGWIN32 References: <3610DB86.48174899@swi.com> Message-ID: <19980930013616.11110.qmail@findmail.com> Hi there: > > I am working on porting of some programs (implemented in Unix > Environment) to NT using CYGWIN32. I am wondering if you could > reply to my email and sending me some information regarding "DMake" > for CYGNUS environment or example: where can I find the binary source > files of it, documentation, and if is it free or maybe an email > address or > Tel. No. where I can ask for it. > > Thank you in advance for your help. > > Regards, > Aryan. > > > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > try ftp.scitechsoft.com ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7708 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Tue Sep 29 21:47:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Shared Memory/Semaphores References: Message-ID: <19980929163951.17002@cygnus.com> On Tue, Sep 29, 1998 at 02:51:26PM +1200, Ian Collins wrote: > > I am trying to port an applications that makes use of shared memory > (shmget/shmat...) and semaphores (semget/semctl...). See http://www.multione.capgemini.fr/tools/pack_ipc/ > Is there any such equivalents planned/implemented for cygwin? It would be good to include this or similar functionality into Cygwin32 but such a thing has not been done yet. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From ybossel@bolchile.cl Tue Sep 29 21:47:00 1998 From: ybossel@bolchile.cl (Yves Bossel) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: newbie: TERM=dumb unknown Message-ID: <01BDEBDF.2F60CF70.ybossel@bolchile.cl> Hello, I have checked: /etc/termcap exists and its rights are set to rwrr I have executed 'export TERM=linux' (also tried with ansi) and get the same answer: TERM=linux unknown Note that I have no termcap or ncurses executable (and I don't know what they are for). Thanks Hello Yves, you wrote: >When I try to run a program that runs ok under windows, I following message: >TERM=dumb unknown > >example: >bash-2.01$ /archiv~1/elvis/elvis >TERM=dumb unknown Is there an /etc/termcap? What does your TERM environment variable look like? Is it set? Anyway you should set TERM=linux and copy the supplied termcap to /etc or mount the directory containing termcap on /etc. -- bye, Michael - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rbehar@lucky.fr Tue Sep 29 21:47:00 1998 From: rbehar@lucky.fr (Romain Behar) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Compiling V, cygnus DLL Message-ID: <36114C78.5E3CC729@lucky.fr> I tried to compile V using MinGW32, but failed. MinGW32 has a C++ include file named String.h, while V uses the C include named string.h . How do I make the compiler case sensitive ? Anyway, I renamed the file String.h to foo.h and two V directories compiled until I got an error from the `-lV' option. Another trouble came with the Cygwin DLL : MinGW32 builds programs that do not print anything while using the B19 package DLL, then I updated to 19-plus dll (670K long), and the bash now doesnt find the .bashrc which lies in `/' directory. My goal is to compile programs using the V interface, and it seems not to be that simple. Thanks for any help. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Tue Sep 29 21:47:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Installationsproblem Message-ID: <19980917012927.9941.rocketmail@send1c.yahoomail.com> Sorry Henrik, The cygwin32 product will not run on anything less than Win95 OSR1. ---Henrik Johansson wrote: > > Hello, > > I have followed the installation instructions for installing the binary > release and downloaded cdk.exe . No previous version of gnu-win32 has > been used on my machine. When I execute the file from the file manager, > nothing happens. Is it because I'm running Windows 3.11 (no I cannot > upgrade at this time)? > > Regards, > Henrik Johansson > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > == - \\||// ---o0O0--Earnie--0O0o---- --earnie_boyd@yahoo.com-- ------ooo0O--O0ooo------- _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smorris@xionics.com Tue Sep 29 21:47:00 1998 From: smorris@xionics.com (Steve Morris) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: isatty() fails under inetd's telnet? Message-ID: <13841.2370.654937.71530@frodo.xionics.com> I just installed Sergey's inet package and am now trying to run ntemacs in my telnet window. ntemacs reports "emacs: standard input is not a tty." Geoff Voelker suggests that this is a failure of isatty(). Should telnet be doing something it is not to make the socket look like a tty to non cygwin applications? Has anyone else tried this? I would like to use the same emacs from windows and telnet. Has anyone done both with any version of emacs? Actually, if I let myself get greedy I would like to run emacs 3 ways. 1) From Windows NT. 2) In text mode from a remote telnet client. 3) Under a remote X11 server. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Tue Sep 29 21:47:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Tue, 29 Sep 1998 21:47:00 -0000 Subject: Anyone got "v" to compile w/g++? References: Message-ID: <36115BAD.99D303BD@uni-duesseldorf.de> > Hiya, > > Did anyone succeed in getting "v" (C++ toolset for GUI buidling) to compile > under g++? > > The makefile that comes with v 1.20 didn't make it (can't get it to work), > so I rolled my own. Now I'm stuck in compiling a file that uses OpenGL. That > might be due to using a different Makefile, while OpenGL might be disabled > for windows. I have compiled v-1.19 (unix package) on b18 several weeks ago. Anyway I wanted to grab a new release and try it on b19. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From nitin.agrawal@tatainfotech.com Wed Sep 30 01:02:00 1998 From: nitin.agrawal@tatainfotech.com (Nitin Agrawal) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: information regarding evaluation copy of porting tool!! Message-ID: <01bdeb6e$432e9c60$96247aa3@L1117.tatainfotech.co.in> hello, I am Nitin Agrawal writing from Tata Infotech Limited, INDIA. We are working on a project for a japanese client which concerns with the porting of a code with 600,0000 lines from UNIX environment to WINDOWS 95. After doing research over the tools available for this porting we feel the tool GNU-WIN32/cygwin32 suitable for us, we would like to have an evaluation copy of this tool. We are going to use this tool for the commercial purpose hence update me with the process of licensing. ???????????? Before getting the evaluation copy we would like to have some more detail technical infomation about your tool like behaviour of the application after porting with this tool, how the actual porting takes place, problem involved in making some changes to the system after porting if there any. Please write to me in some detail about this tool. regards, Nitin Agrawal???? Tata Infotech Limited reply to: nitin.agrawal@tatainfotech.com Tel. No: 91-22-8291317 ???????????????????????????????????????????????? Ext. No: 623 From mh@mike.franken.de Wed Sep 30 01:02:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: gdb References: <19980928160817.4198.qmail@findmail.com> Message-ID: <71mcaUAppfB@mike.franken.de> Hi David, >I recently D/L Beta 19 >When I start gdb it opens up a Window. >Can I send the output to the command-line. unset GDBTK_LIBRARY= [...] >Thank Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From tolj@uni-duesseldorf.de Wed Sep 30 01:02:00 1998 From: tolj@uni-duesseldorf.de (Stipe Tolj) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: Windows98 + inetutils References: <36079E63.444EF684@sics.se> <199809281137.IAA18732@swan2.uspnet.usp.br> <13841.2852.122713.320606@frodo.xionics.com> Message-ID: <36115A16.F3CB4C39@uni-duesseldorf.de> > > It's possible that someone that uses MS-Windows 9X isn't particularly > > afraid of security problems; otherwise, he or she would prefer NT or > > some other OS. Indeed, any user of a Windows 9X OS is already a > > priviledged user that can do anything to the system. > > > > So, maybe there isn't any additional problem with a non secure access > > to Windows 9X. > > At the risk of responding to a troll I have to say that even win 9x people > care about security when you add remote login. I'm willing to use physical > access to control security on any box I have hidden in my bedroom and off the > net. Even my non net unix boxes have no root password. > > I need better security when my box is on the net whether it is UNIX, NT or Win > 95. I agree for 100%. As soon as you do provide service of remote access you want to restrict it for security reasons, or maybe for "newbie deadly errors" like "rm -f -r /" if mounted to c:\. :(( Has anyone tried this kill on a Win9x box?! I would wonder if it works via telnet. Regards, Stipe -- Stipe Tolj Cygwin32 Porting Project Department of Economical Computer Science University of Cologne, Germany http://www-public.rz.uni-duesseldorf.de/~tolj - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From JKraaijeveld@askesis.nl Wed Sep 30 01:02:00 1998 From: JKraaijeveld@askesis.nl (Joost Kraaijeveld) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: How to debug Message-ID: <000401bdec48$9af09360$0200a8c0@panoramix> Hi, I want to debug a program that read must be run like this: postgres -boot -C -F -D/usr/local/pgsql/data -d template1 < file.txt How do I do that? I tried "set args -boot -C -F -D/usr/local/pgsql/data -d template1 < file.txt" but that does not work. Joost Kraaijeveld Askesis B.V. Groenewoudseweg 46 6524VB Nijmegen tel: 024-3888063 fax: 024-3608416 web: http:/www.askesis.nl - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From smorris@xionics.com Wed Sep 30 01:02:00 1998 From: smorris@xionics.com (Steve Morris) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: Windows98 + inetutils References: <36079E63.444EF684@sics.se> <199809281137.IAA18732@swan2.uspnet.usp.br> Message-ID: <13841.2852.122713.320606@frodo.xionics.com> Hilton Fernandes writes: > > It's possible that someone that uses MS-Windows 9X isn't particularly > afraid of security problems; otherwise, he or she would prefer NT or > some other OS. Indeed, any user of a Windows 9X OS is already a > priviledged user that can do anything to the system. > > So, maybe there isn't any additional problem with a non secure access > to Windows 9X. At the risk of responding to a troll I have to say that even win 9x people care about security when you add remote login. I'm willing to use physical access to control security on any box I have hidden in my bedroom and off the net. Even my non net unix boxes have no root password. I need better security when my box is on the net whether it is UNIX, NT or Win 95. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 30 01:02:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: newbie: TERM=dumb unknown References: <01BDEABB.7E0C4840.ybossel@bolchile.cl> Message-ID: <71mca5-4pfB@mike.franken.de> Hi Yves, [...] >When I try to run a program that runs ok under windows, I following message: >TERM=dumb unknown [...] >I imagine some settings are incorrect. Can you help ? Set TERM=linux somewhere in your system or user environment, if you are on WinNT or in autoexec.bat for a Win9x system. > >Thanks Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From dbe@wgn.net Wed Sep 30 01:02:00 1998 From: dbe@wgn.net ($Bill Luebkert) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: Shared Memory/Semaphores References: Message-ID: <361143C7.D6ACC207@wgn.net> Ian Collins wrote: > > I am trying to port an applications that makes use of shared memory > (shmget/shmat...) and semaphores (semget/semctl...). > > Is there any such equivalents planned/implemented for cygwin? Funny thing is that there is a Perl version which uses a Win32 API to the native calls. If you're interested: http://www.generation.net/~cybersky/Perl/perlmod.htm module is called memmap which uses API.pm to access the native Win32 functions. One should be able to convert it to C/C++ easily enough. Haven't tried running with it yet. --- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles http://www.wgn.net/~dbe/ / ) /--< o // // Mailto:dbe@wgn.net V3: http://come.to/dbe/ -/-' /___/_<_ I sometimes get executables which segfault before the first line of my code, at an address which gdb can't make anything of. The same source code runs on linux. Some earlier versions have worked on NT, duplicating the behaviour of their Linux counterparts. More specifically, I get a dialog saying 'The instruction at "0x00371ab0" referenced memory at "0x00371ab0". The memory could not be "read".' With a breakpoint at the first line of my main program, gdb says 'Program received signal SIGSEGV, Segmentation fault. 0x371ab0 in ?? ()'. A bt command gives '#0 0x371ab0 in ?? () Cannot access memory at address 0x308608.' Visual C++, which happens to be installed also offers to debug the program. It says 'unhandled exception at 0xC0000005 access violation' It also shows a disassembly listing starting at 371ab0, with only '???' as the disassembly of each location. Extra background info: This main program has parts written in Ada and compiled by gnat, and parts in Modula-3, compiled by pm3-1.1.7. Modula-3 has quite an extensive runtime system. It always behaves as expected on Linux. On NT, small changes in my code, well inside routines called by by main program, seem to make this segfault appear/disappear. Can anyone suggest a better method of tracking this down than unguided random experiments? Rodney Bates - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From MCzapski@openplus.com.au Wed Sep 30 01:02:00 1998 From: MCzapski@openplus.com.au (Michael Czapski) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: managing /etc/passwd Message-ID: <01BDEC53.F6C3A6E0.MCzapski@openplus.com.au> On Tuesday, September 29, 1998 2:18 AM, Steve Morris [SMTP:sjm@frodo.page] wrote: > > I just got inetd partially working on my NT box and discovered that I have no > security. As directed in a post by Sergey found in the archives I initially > created my passwd file with: > > % mkpasswd -l -g >/etc/passwd > > I didn't look too closely at this file until I notice that there was no > password checking on ftp. Then I noticed that the password fields in > /etc/passwd are empty. I tried to create password entries with the passwd > command but it prints every line in the passwd file followed by "; not > found." > Exactly what is not found is not clear but it isn't found for any user. > > Needless to say this is probably not adequate security and I would like to > repair this situation quickly. Where have I gone wrong? Others must have > blown > poast this step without similar problems. The archives got me this far but I > don't see this specific problem. I don't find the word passwd in the FAQ. > > How do I add passwords to passwd? > Hello Steve, Whilst I don't know what login.exe you are using I do know that the login program from Sergey's site verifies the user against Windows NT security database using LogonUser API call. This is what that call does: ---- The LogonUser function attempts to perform a user logon operation. You specify the user with a user name and domain, and authenticate the user with a clear-text password. If the function succeeds, you receive a handle to a token that represents the logged-on user. You can then use this token handle to impersonate the specified user, or in most cases, to create a process running in the context of the specified user. ---- So, don't put passwords into your /etc/passwrd file; do use the right login program. In so far as ftp is concerned why not use the ftp server that comes with MS IIS ? ------------------ Cheers ... Michael Czapski - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 30 01:02:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: Unix pathname -> DOS pathname References: <1.5.4.16.19980924022008.0eaf73ec@fox.nstn.ca> <360A9CF1.AC7E0587@hem2.passagen.se> Message-ID: <19980929163238.59066@cygnus.com> On Thu, Sep 24, 1998 at 09:26:41PM +0200, Anders Norlander wrote: > > There actually seems to be a much better way to accomplish > Unix -> dos path conversion. > > According to the FAQ there are some intersting functions: > cygwin32_conv_to_full_posix_path > cygwin32_conv_to_full_win32_path > cygwin32_conv_to_posix_path > cygwin32_conv_to_win32_path > cygwin32_posix_path_list_p > cygwin32_posix_to_win32_path_list > cygwin32_posix_to_win32_path_list_buf_size > cygwin32_split_path > cygwin32_win32_to_posix_path_list > cygwin32_win32_to_posix_path_list_buf_size > > I don't know the prototypes for these functions, but if > I call cygwin32_conv_to_win32_path with the unix path > as the first argument and a buffer to hold the converted > path as the second argument I get the win32 path. > By looking at the source it would be possible to get the > exact prototypes. The developers ought to know about this. Yep. At least in the current sources, the protos are to be found in include/sys/cygwin.h: extern pid_t cygwin32_winpid_to_pid (int); extern void cygwin32_win32_to_posix_path_list (const char*, char*); extern int cygwin32_win32_to_posix_path_list_buf_size (const char*); extern void cygwin32_posix_to_win32_path_list (const char*, char*); extern int cygwin32_posix_to_win32_path_list_buf_size (const char*); extern void cygwin32_conv_to_win32_path (const char *, char *); extern void cygwin32_conv_to_full_win32_path (const char *, char *); extern void cygwin32_conv_to_posix_path (const char *, char *); extern void cygwin32_conv_to_full_posix_path (const char *, char *); extern int cygwin32_posix_path_list_p (const char *); extern void cygwin32_split_path (const char *, char *, char *); Documentation that's in the middle of being written (the development source snapshots include it) will define these and give a couple of examples. The sources have some useful comments as well. Note the the cygpath utility just calls the above functions. This is necessary for scripts that don't have access to the above functions directly. It is part of the development sources and will be in B20 which should be available in early October. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From mh@mike.franken.de Wed Sep 30 01:02:00 1998 From: mh@mike.franken.de (Michael Hirmke) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: Documentation & other questions References: <360f598d.74592448@neptune> Message-ID: <71mc$iz4pfB@mike.franken.de> Hi Alex, [...] >I installed the Cygwin tools but I can't find any documentation on them. Is >there any available? A windows help file will be best but any other format >is fine as long as there is a tool to format/read it. The documentation is available in Unix man format. You have to download cdk-man.tar.gz or usertools-man.tar.gz from the Cygnus site. You then need the man, ncurses, less and groff packages. You can download them all from ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Hirmke_Michael/ You have to use binary mounts for them to use. > >Another question: How can I convert text files between UNIX format (LF) and >DOS/Windows format (CR/LF)? I looked at tr but it seems to me it only >performs 1-to-1 character translations. There is a tool called "recode", which you can download from the above mentioned ftp site, too. > >Thanxalot! > >Have fun, >Alex. Bye. Michael. -- Michael Hirmke | Telefon +49 (911) 557999 Georg-Strobel-Strasse 81 | FAX +49 (911) 557664 90489 Nuernberg | E-Mail mailto:mh@mike.franken.de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From adasilva@origin.co.za Wed Sep 30 01:02:00 1998 From: adasilva@origin.co.za (Alberto da Silva) Date: Wed, 30 Sep 1998 01:02:00 -0000 Subject: "more" command Message-ID: <81610031EBB3D111A58400805FC18A9531FFBC@svjhbcom01.origin.co.za> Title: Re: "more" command On NT4+SP3, Try:???? alias more='more.com /e' in .bash_login This works most of the time.???? (more /? explains the /e option) Alberto da Silva mailto:adasilva@origin.co.za From colman.curtin@trintech.com Wed Sep 30 03:19:00 1998 From: colman.curtin@trintech.com (Colman Curtin) Date: Wed, 30 Sep 1998 03:19:00 -0000 Subject: Problem using gdb with Microsoft .exe Message-ID: >I'm trying to debug a program that was built using the >Microsoft C++ compiler. I built the exe to include debug info. > >Is it possible to use gdb to debug this program? >I can't get gdb to load the symbols properly. Am I missing >something or is this just not possible. no not for high level debugging. see http://www.cygnus.com/misc/gnu-win32/faq.html#SEC87 rgds Colman Curtin Software Team Leader *Trintech - The Secure Way to Pay* Trintech Technologies Ltd, South County Business Park, Leopardstown, Dublin 18, Ireland. Tel: +353-1-207-4028 Fax: +353-1-207-4015 mailto:colman.curtin@trintech.com http://www.trintech.com/ What does it mean if there is no fortune for you? - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 30 04:37:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 30 Sep 1998 04:37:00 -0000 Subject: mingw32 on Windows NT References: <199809291329.JAA05056@smtp.wcoil.com> Message-ID: <19980930113730.15204.qmail@findmail.com> Has anyone gotten mingw32 to compile properly on windows NT. I've used > mingw32 successfully on windows 95 and windows 98 for some time, but > I just tried running it on NT and it gives the following error (even just > when compileing hello.c) > > ld: cannot open C:\TMP\cc0002261.o: No such file or directory > > c:\tmp\ exists and the file cc000226.o exists, for some reason it seems > to truncate any temp .o file it creates to 8 char. I'm using gcc 2.8.1. > Any solutions? Make sure that your environment variables are correct. Also make sure that the MINGW32 path is first in the PATH variable. If your make file uses any of the UNIX fileutils then make sure that your using the cygwin ones and not DJ's. > > -Tim > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7711 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 30 05:09:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 30 Sep 1998 05:09:00 -0000 Subject: B19: WinNT _stat()/_stat_worker() return bogus st References: <361002D5.68716A01@kd1.com> Message-ID: <19980930121023.18347.qmail@findmail.com> CAUTION: the file index number is created on the first open of the file/directory. It will not remain unique to that particular file. If you close all channels to that file and then open it again you will most likely have a different file index number. It's purpose is to verify if you have the same file open on different handles. It does not uniquely identify the file/directory. This is a multi-part message in MIME format. > --------------DF54E691C75119A8038D3F47 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > I've noticed in a few situations that du fails to correctly compute > disk usage in certain directory structures, and that find occasionally > skips directories when searching. In both cases, the root cause > appears to be that the directory structure in question has multiple > directories with the same name. Both find and du search only the > first occurance of these directories (even though they are not hard > linked to each other). Tracing the problem reveals that both programs > attempt to avoid searching the same directory by comparing the > st_ino and st_dev fields of the stat buffer to a saved list of seen > directories. > > Looking at the implementation of _stat_worker() in sycalls.cc > and fhandler_base::fstat() in fhandler.cc reveals that the > st_ino field for the stat structure is (usually) derived from > a hash on the file name (hence the reason directories with the > same name get the same inode number). On Windows NT, there is > perhaps a better way to get an inode like number - If one > opens the directory with the FILE_FLAG_BACKUP_SEMANTICS, then > you can call GetFileInformationByHandle() which returns a unique > identifier for the file (nFileIndexHigh/Low). Currently this > function is used only in the impementation of fstat (which presents > another problem - fstat() uses the [probably more correct] volume > serial number as the value for st_dev, while _stat_worker() uses > only the constant 42 [which means find -xdev will probably not > function correctly, nor would tar --one-file-system]). Additionally, > if at all possible, only the file index values should be used for > the st_ino field, as xoring the namehash would prevent two hard > linked files from having the same st_ino when they have differing > names. > > Included are some diffs to src/winsup/fhandler.cc and src/winsup/syscalls.cc that make find and du work much better > under Windows NT. Unfortunately I suspect that they do not solve the > problem for 95 (as devstudio's documentation implies that the > backup semantics flag is only applicable to NT, and since I don't have > access to 95 at the moment, I can't really test them there). > > Thanks, Roger > -- > Roger Sunshine - Phone: (512)349-5644 - Tempest Rules, NT doesn't > Senior Software Engineer - Knowledge Discovery One - sunshine@kd1.com > --------------DF54E691C75119A8038D3F47 > Content-Type: text/plain; charset=us-ascii; name="diffs" > Content-Transfer-Encoding: 7bit > Content-Disposition: inline; filename="diffs" > > *** src/winsup/syscalls.cc Tue Feb 10 21:15:16 1998 > --- cdk/winsup/syscalls.cc Mon Sep 28 14:40:53 1998 > *************** > *** 1339,1345 **** > /* FIXME: Doing this is of dubious merit. */ > if (atts == -1 > && ((len = strlen (win32_name)) < 5 > ! || strcasecmp (win32_name + len - 4, ".exe"))) > { > debug_printf ("trying with .exe suffix\n"); > strcpy (tmp, win32_name); > --- 1339,1345 ---- > /* FIXME: Doing this is of dubious merit. */ > if (atts == -1 > && ((len = strlen (win32_name)) < 5 > ! || strcasecmp (win32_name + len - 4, ".exe"))) > { > debug_printf ("trying with .exe suffix\n"); > strcpy (tmp, win32_name); > *************** > *** 1351,1400 **** > { > /* probably a raw device, try fstat */ > win32_name = name; > ! goto fstat; > } > > debug_printf ("%d = GetFileAttributesA (%s)\n", atts, win32_name); > - if (atts & FILE_ATTRIBUTE_DIRECTORY) > - { > - WIN32_FIND_DATA wfd; > - HANDLE handle; > - /* hmm, the number of links to a directory includes the > - number of entries in the directory, since all the things > - in the directory point to it */ > - buf->st_nlink += num_entries (win32_name); > - buf->st_dev = 42; > - buf->st_ino = hash_path_name (0, real_path.get_win32 ()); > - buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS; > - if ((atts & FILE_ATTRIBUTE_READONLY) == 0) > - buf->st_mode |= STD_WBITS; > - buf->st_uid = get_file_owner (real_path.get_win32 ()); > - buf->st_gid = get_file_group (real_path.get_win32 ()); > - if ((handle = FindFirstFile (real_path.get_win32(), &wfd)) != INVALID_HANDLE_VALUE) > - { > - buf->st_atime = to_time_t (&wfd.ftLastAccessTime); > - buf->st_mtime = to_time_t (&wfd.ftLastWriteTime); > - buf->st_ctime = to_time_t (&wfd.ftCreationTime); > - buf->st_size = wfd.nFileSizeLow; > - buf->st_blksize = S_BLKSIZE; > - buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; > - FindClose (handle); > - } > - res = 0; > - } > - else > - { > fstat: > ! int h = _open (win32_name, > ! O_RDONLY | O_BINARY | (nofollow ? O_NOSYMLINK : 0), > ! 0); > if (h >= 0) > ! { > ! res = _fstat (h, buf); > ! _close (h); > } > } > ! > done: > syscall_printf ("%d = %s (%s, %p)\n", res, caller, name, buf); > return res; > --- 1351,1372 ---- > { > /* probably a raw device, try fstat */ > win32_name = name; > ! atts = 0; > } > > debug_printf ("%d = GetFileAttributesA (%s)\n", atts, win32_name); > fstat: > ! { > ! int h = _open(win32_name, > ! (atts & FILE_ATTRIBUTE_DIRECTORY ? O_DIROPEN : O_RDONLY) | > ! O_BINARY | (nofollow ? O_NOSYMLINK : 0), 0); > if (h >= 0) > ! { > ! res = _fstat (h, buf); > ! _close (h); > } > } > ! > done: > syscall_printf ("%d = %s (%s, %p)\n", res, caller, name, buf); > return res; > *** src/winsup/fhandler.cc Tue Feb 10 21:14:55 1998 > --- cdk/winsup/fhandler.cc Mon Sep 28 14:43:19 1998 > *************** > *** 334,339 **** > --- 334,343 ---- > { > access_ = GENERIC_WRITE; > } > + else if ((flags & (O_RDONLY | O_WRONLY | O_RDWR)) == 0) > + { > + access_ = 0; > + } > else > { > access_ = GENERIC_READ | GENERIC_WRITE; > *************** > *** 375,381 **** > } > > /* These flags are host dependent. */ > ! shared = host_dependent.shared; > > sa.nLength = sizeof (sa); > sa.lpSecurityDescriptor = 0; > --- 379,391 ---- > } > > /* These flags are host dependent. */ > ! if (access_ & (GENERIC_READ | GENERIC_WRITE)) { > ! shared = host_dependent.shared; > ! } > ! else { > ! // No access only works with file share read > ! shared = FILE_SHARE_READ; > ! } > > sa.nLength = sizeof (sa); > sa.lpSecurityDescriptor = 0; > *************** > *** 852,859 **** > buf->st_ctime = to_time_t (&local.ftCreationTime); > buf->st_nlink = local.nNumberOfLinks; > buf->st_dev = local.dwVolumeSerialNumber; > buf->st_size = local.nFileSizeLow; > ! buf->st_ino = local.nFileIndexLow ^ namehash_; > buf->st_blksize = S_BLKSIZE; > buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; > buf->st_uid = get_file_owner (win32_path.get_win32 ()); > --- 862,870 ---- > buf->st_ctime = to_time_t (&local.ftCreationTime); > buf->st_nlink = local.nNumberOfLinks; > buf->st_dev = local.dwVolumeSerialNumber; > + buf->st_rdev = buf->st_dev; > buf->st_size = local.nFileSizeLow; > ! buf->st_ino = local.nFileIndexLow ^ local.nFileIndexHigh; > buf->st_blksize = S_BLKSIZE; > buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; > buf->st_uid = get_file_owner (win32_path.get_win32 ()); > *************** > *** 863,868 **** > --- 874,881 ---- > buf->st_mode &= ~S_IFMT; > if (symlink_p_) > buf->st_mode |= S_IFLNK; > + else if (local.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) > + buf->st_mode |= S_IFDIR; > else > buf->st_mode |= S_IFREG; > } > *************** > *** 870,882 **** > { > buf->st_mode = 0; > buf->st_mode |= STD_RBITS; > ! > if (! (local.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) > buf->st_mode |= STD_WBITS; > /* | S_IWGRP | S_IWOTH; we don't give write to group etc */ > > if (symlink_p_) > buf->st_mode |= S_IFLNK; > else > switch (GetFileType (get_handle ())) > { > --- 883,898 ---- > { > buf->st_mode = 0; > buf->st_mode |= STD_RBITS; > ! > if (! (local.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) > buf->st_mode |= STD_WBITS; > /* | S_IWGRP | S_IWOTH; we don't give write to group etc */ > > if (symlink_p_) > buf->st_mode |= S_IFLNK; > + else if (local.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { > + buf->st_mode |= S_IFDIR | STD_XBITS; > + } > else > switch (GetFileType (get_handle ())) > { > > --------------DF54E691C75119A8038D3F47-- > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request@cygnus.com" with one line of text: "help". > > ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7704 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From simon@ptgi.com Wed Sep 30 06:59:00 1998 From: simon@ptgi.com (Simon Weatherill) Date: Wed, 30 Sep 1998 06:59:00 -0000 Subject: opening stdin, stdout & stderr as pipes References: <19980929210530.22483.qmail@findmail.com> Message-ID: <3.0.5.32.19980930090206.00853100@pop.ptgi.com> It turns out that upgrading to the 19.1 release fixed the problems! Thanks anyway, Simon Weatherill ********************************************************************** * Simon Weatherill simon@ptgi.com * * Preferred Technologies Group, Inc. * * 1 Court St, Suite 380 tel: 603-448-1500 * * Lebanon, NH 03766 fax: 603-448-1550 * ********************************************************************** - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From saint@savantage.com Wed Sep 30 08:06:00 1998 From: saint@savantage.com (Dan St.Andre') Date: Wed, 30 Sep 1998 08:06:00 -0000 Subject: B19: cygwin32 bash locks keyboard forcing reset Message-ID: <36124A07.D2F53D7D@savantage.com> On Nt 4x with SP3, after "a while" with the bash shell open the system refuses to accept keyboard input. Logout does not clear the problem. I must reset the computer. I've tried this with and without the B19 library patches. Dan St.Andre' NuThena Systems Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 30 09:11:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 30 Sep 1998 09:11:00 -0000 Subject: autoconf NT? References: <3611611D.1D27F9B5@openmarket.com> Message-ID: <19980930161103.26464.qmail@findmail.com> > > Hi, > > We use autoconf/m4 extensively for our applications on UNIX. > > Now that we are porting some of these apps to NT, is there a > NT version of autoconf and m4? m4 is included in the cdk.exe. autoconf builds OOB. ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7720 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From rstark1@uic.edu Wed Sep 30 09:54:00 1998 From: rstark1@uic.edu (Ronnie Starks) Date: Wed, 30 Sep 1998 09:54:00 -0000 Subject: EGCS-Mingw32(1.0.2) not initializing application References: <199809290804.DAA08650@icarus.cc.uic.edu> Message-ID: Thanks, Ill look into EGCS-Mingw3.2 ************************************************************* oOo <<<<<<<<<< Ronnie Starks Jr. >>>>>>>>>> oOo The University of Illinois at Chicago oOo E-Mail to: rstark1@uic.edu oOo <<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>> ************************************************************* - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From anorland@hem2.passagen.se Wed Sep 30 10:52:00 1998 From: anorland@hem2.passagen.se (Anders Norlander) Date: Wed, 30 Sep 1998 10:52:00 -0000 Subject: Problem using gdb with Microsoft .exe References: <19980929134558.16593.qmail@findmail.com> <19980929214700.40111@cygnus.com> Message-ID: <36126FAF.1B7102D1@hem2.passagen.se> Geoffrey Noer wrote: > > On Tue, Sep 29, 1998 at 01:45:58PM -0000, David Calabrese wrote: > > > > I'm trying to debug a program that was built using the Microsoft C++ > > compiler. I built the exe to include debug info. > > > > Is it possible to use gdb to debug this program? > > No it isn't, the debugging info that gcc emits is different from what > VC++ does. As a result, gdb does the best it can, which isn't a lot. > > I know this isn't desirable; I'd certainly like complete VC++/gcc > compatibility but there are quite a few reasons why this isn't there > yet and isn't likely to happen soon. One of the reasons is that, > as far as I know, documentation about the MS debugging format used by > VC++ isn't available. :-( Check out MSDN under: Specifications->Technologies and Languages->VC5 Symbolic Debug Information Beware that access is slooow (java applet). It would be better if the doc could be downloaded separately. You may need a windows browser to access the document. Anders Norlander - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From fjh@cs.mu.OZ.AU Wed Sep 30 10:52:00 1998 From: fjh@cs.mu.OZ.AU (Fergus Henderson) Date: Wed, 30 Sep 1998 10:52:00 -0000 Subject: i386pe.x: etext and end? References: <13839.16480.757084.83000.cygnus.gnu-win32@hawaii> <3610E0E0.167E@delorie.com> Message-ID: <19981001034937.12395@murlibobo.cs.mu.OZ.AU> On 29-Sep-1998, DJ Delorie wrote: > end and etext are "special" so they don't have underscores > to make sure they don't interfere with functions or variables > your program may provide (ansi/posix compliance and all that). > > However, you can access them using gcc extensions: > > extern int end asm("end"); > > void *foo() > { > return (void *)&end; > } > > However, since they're deprecated, there is *no* sanctioned > way of getting at them. You shouldn't be using them at all > unless you absolutely can't avoid it. Sure, "end" and "etext" are deprecated -- I assume this is because it could cause name clashes on systems which don't prefix ordinary C symbols with underscores. But what about "__end__" and "__etext__"? They're not deprecated, are they? -- Fergus Henderson | "I have always known that the pursuit WWW: < http://www.cs.mu.oz.au/~fjh > | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cwilson@ee.gatech.edu Wed Sep 30 11:55:00 1998 From: cwilson@ee.gatech.edu (Charles Wilson) Date: Wed, 30 Sep 1998 11:55:00 -0000 Subject: autoconf NT? Message-ID: <36127EA3.B12FC6B4@ece.gatech.edu> > Rob Davis wrote: > > > Hi, > > > > We use autoconf/m4 extensively for our applications on UNIX. > > > > Now that we are porting some of these apps to NT, is there a > > NT version of autoconf and m4? > > > > Thanks. > > Rob > > > > > > Take a look at Cygnus' Sourceware site - they've got ports (?) of automake > and autoconf. > > --Chuck - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From noer@cygnus.com Wed Sep 30 13:35:00 1998 From: noer@cygnus.com (Geoffrey Noer) Date: Wed, 30 Sep 1998 13:35:00 -0000 Subject: autoconf NT? References: <3611611D.1D27F9B5@openmarket.com> Message-ID: <19980930133522.21227@cygnus.com> On Tue, Sep 29, 1998 at 06:37:17PM -0400, Rob Davis wrote: > > Hi, > > We use autoconf/m4 extensively for our applications on UNIX. > > Now that we are porting some of these apps to NT, is there a > NT version of autoconf and m4? m4 is included with the distributions. autoconf can be compiled with Cygwin32. -- Geoffrey Noer noer@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From JKraaijeveld@askesis.nl Wed Sep 30 13:35:00 1998 From: JKraaijeveld@askesis.nl (Joost Kraaijeveld) Date: Wed, 30 Sep 1998 13:35:00 -0000 Subject: dbg question Message-ID: <000201bdeca2$ebf1c770$0200a8c0@panoramix> Hi, This mesage is posted for the second time. The first one got lost (I think). If not, sorry. I want to debug a program that reads its input from a gile and that must be run like this: postgres -boot -C -F -D/usr/local/pgsql/data -d template1 < file.txt How do I do that? I tried "set args -boot -C -F -D/usr/local/pgsql/data -d template1 < file.txt" but that does not work. I also tried (in the command window) "set args -boot -C -F -D/usr/local/pgsql/data -d template1" "run < file.txt" This resulted in the addition of "< file.txt" to the argumentlist. Joost Kraaijeveld Askesis B.V. Groenewoudseweg 46 6524VB Nijmegen tel: 024-3888063 fax: 024-3608416 web: http:/www.askesis.nl - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From earnie_boyd@yahoo.com Wed Sep 30 13:41:00 1998 From: earnie_boyd@yahoo.com (Earnie Boyd) Date: Wed, 30 Sep 1998 13:41:00 -0000 Subject: Windows98 + inetutils References: <13841.2852.122713.320606@frodo.xionics.com> Message-ID: <19980930204042.8764.qmail@findmail.com> > Hilton Fernandes writes: > > > > It's possible that someone that uses MS-Windows 9X isn't particularly > > afraid of security problems; otherwise, he or she would prefer NT or > > some other OS. Indeed, any user of a Windows 9X OS is already a > > priviledged user that can do anything to the system. > > > > So, maybe there isn't any additional problem with a non secure access > > to Windows 9X. > > At the risk of responding to a troll I have to say that even win 9x people > care about security when you add remote login. I'm willing to use physical > access to control security on any box I have hidden in my bedroom and off the > net. Even my non net unix boxes have no root password. > > I need better security when my box is on the net whether it is UNIX, NT or Win > 95. > The only way to get security for Win9x is to replace command.com and the dll's that control the filesystem symantics. If you go doing that you might as well join the Freedows team. Earnie http://www.freeyellow.com/members5/gw32 ----- See the original message at http://www.egroups.com/list/gnu-win32/?start=7748 -- Free e-mail group hosting at http://www.eGroups.com/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From N8TM@aol.com Wed Sep 30 17:34:00 1998 From: N8TM@aol.com (N8TM@aol.com) Date: Wed, 30 Sep 1998 17:34:00 -0000 Subject: autoconf NT? Message-ID: <46386d69.3612ce09@aol.com> In a message dated 9/30/98 10:16:55 AM Pacific Daylight Time, davis@openmarket.com writes: > is there a > NT version of autoconf and m4? The standard gnu autoconf works with the m4 included in cdk. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From cgw@pgt.com Wed Sep 30 17:34:00 1998 From: cgw@pgt.com (Charles G Waldman) Date: Wed, 30 Sep 1998 17:34:00 -0000 Subject: isatty() fails under inetd's telnet? References: <13841.2370.654937.71530@frodo.xionics.com> Message-ID: <13842.45018.260516.239963@janus.pgt.com> Steve Morris writes: > Actually, if I let myself get greedy I would like to run emacs 3 ways. > 1) From Windows NT. > 2) In text mode from a remote telnet client. > 3) Under a remote X11 server. XEmacs 21.0 does this. Don't know about Geoff Voelker's NTEmacs. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From debursky@deb.lumax.com.tw Wed Sep 30 18:27:00 1998 From: debursky@deb.lumax.com.tw (Debursky, Po-Sheng Ko) Date: Wed, 30 Sep 1998 18:27:00 -0000 Subject: DisAssemble .exe by VC References: <360FC5A6.7AF0159@vega.pfts.com> Message-ID: Thanks, It's W32DSM8x (7 --Demo, 9 -- On Sales.) It's good to transalte the Window StringID. Debursky On Mon, 28 Sep 1998, Maxim Sobolev wrote: > Probably you may take a look at WinDasm32 disassembler for Windows. Try to > search in the Web or ftp. > > maxim > > "Debursky, Po-Sheng Ko" wrote: > > > Hi, there. > > > > Do you know how to disassemble .exe into a file ? > > I have a program which could not run in my NT. > > I wish to grab the WM_'s callback function , and to disable it's checking > > function. Then the problem could be solved. > > I know SoftICE is good, for it could disassemble the .exe when it > > executed. > > But could it be disassemble into a whole file ? > > I have tryed DDD and gdb, but could not find such function ! > > > > Please give me a help. > > > > Thanks, > > Debursky > > (debursky@deb.lumax.com.tw) > > > > - > > For help on using this list (especially unsubscribing), send a message to > > "gnu-win32-request@cygnus.com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". From lmauro@scientist.com Wed Sep 30 19:29:00 1998 From: lmauro@scientist.com (Leo Mauro) Date: Wed, 30 Sep 1998 19:29:00 -0000 Subject: Windows98 + inetutils References: <13841.2852.122713.320606@frodo.xionics.com> Message-ID: <001201bdece3$420dbd90$1e6e31cf@leo-nt.rd.telesystech.com> On Tuesday, September 29, 1998 12:30 PM, Steve Morris wrote: [SNIP] > I need better security when my box is on the net whether it is > UNIX, NT or Win 95. Regretfully, there is no way to secure a Win9x box. There is no concept of an "user" under Win9x -- the login dialog is only used to select a profile and a few other odds and ends, and has no effect whatsoever on file protection. The same goes when you "log in" via some telnet daemon. No matter what name you "log in" with, you have full and unrestricted access to every file. This, of course, negates any possible security even if you use some password file for authentication (for telnet, for instance): once an user is in, there is nothing stopping him/her from changing the file and/or adding backdoors. The sense of security one may feel from the fact that someone needs a password to log-in is a false sense of security at best. If this "security" is enough for you, then that's OK with me. But I myself wouldn't sleep peacefully if my systems were so fragile (and I just mentioned one fragility -- there are many more). Leo Mauro Principal Scientist TeleSys Technologies, Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".