Date: Fri, 15 Sep 2006 00:00:47 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 707 ************************************************** Thursday 14 September 2006 Number 707 ************************************************** Subjects for today 1 gcc 3.3.5 and perl : Dave Saville" 2 Re: gcc 3.3.5 and perl : Steven Levine" 3 Re: gcc 3.3.5 and perl : Dave Saville" 4 Editor suggestions : Brendan Oakley" 5 Re: Editor suggestions : Lyn St George 6 Re: Editor suggestions : Adrian Suri 7 Re: Editor suggestions : rsteiner at visi.com (Richard Steiner) 8 Re: Editor suggestions : Brendan Oakley" 9 Re: Editor suggestions : Neil Waldhauer" 10 Re: Editor suggestions : dave bamford 11 Re: Editor suggestions : Dave Parsons" 12 Unsubscribe . subscribe : Kris Steenhaut 13 Re: Editor suggestions : Christian Hennecke" 14 Re: Editor suggestions : Michael Greene 15 Waiting for input : Nicholas Sheppard 16 Re: Unsubscribe . subscribe : Dave Yeo" 17 Re: Editor suggestions : Richard C Steiner 18 Re: Editor suggestions : Brendan Oakley" 19 Re: Editor suggestions : Adrian Suri **= Email 1 ==========================** Date: Mon, 04 Sep 2006 12:26:26 +0100 (BST) From: "Dave Saville" Subject: gcc 3.3.5 and perl I just tried to install a CPAN module that needed compiling. Needless to say it crapped out. In file included from d:/usr/lib/perl/lib/5.8.2/os2/CORE/perl.h:1929, from Attrib.xs:18: d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h: In function `_PERLIO_IS_BINMODE_FD': d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:428: error: `please' undeclared (first use in this function) d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:428: error: (Each undeclared identifier is reported only once d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:428: error: for each function it appears in.) d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:428: error: parse error before "do" In file included from d:/usr/lib/perl/lib/5.8.2/os2/CORE/perl.h:1929, from Attrib.xs:18: d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:428:31: pasting "!" and "fd" does not give a valid preprocessing token d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h: In function `my_select': d:/usr/lib/perl/lib/5.8.2/os2/CORE/os2ish.h:783: error: `_emx_env' undeclared (first use in this function) make: *** [Attrib.obj] Error 1 What I really don't get is that *none* of the .h files mentioned have "please" in them. Anyone got a perl module to compile using 3.3.5? perl is 5.8.2. TIA -- Regards Dave Saville **= Email 2 ==========================** Date: Mon, 04 Sep 2006 09:33:07 -0700 From: "Steven Levine" Subject: Re: gcc 3.3.5 and perl In <0044822430.00000XNF at pooh.deezee.org>, on 09/04/06 at 12:26 PM, "Dave Saville" said: >I just tried to install a CPAN module that needed compiling. FWIW you will generally make you life simpler if you don't neglect to mention the module you are trying to compile. Not every compile error occurs for the same reason. >What I really don't get is that *none* of the .h files mentioned have >"please" in them. >Anyone got a perl module to compile using 3.3.5? perl is 5.8.2. TTBOMK no one is working on a gcc3.3.5 port of Perl. Without this, building module DLLs with 3.3.5 is going to be difficult at best. You might want to confirm this with Ilya since he seems to still be somewhat active in the Perl development community. Build OS2::Attribs with gcc 2.8.1 and it will work just fine. I didn't try with 3.2.1, but it might work. Regards, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 3 ==========================** Date: Tue, 05 Sep 2006 08:14:02 +0100 (BST) From: "Dave Saville" Subject: Re: gcc 3.3.5 and perl On Mon, 04 Sep 2006 09:33:07 -0700, Steven Levine wrote: >>Anyone got a perl module to compile using 3.3.5? perl is 5.8.2. > >TTBOMK no one is working on a gcc3.3.5 port of Perl. Without this, >building module DLLs with 3.3.5 is going to be difficult at best. You >might want to confirm this with Ilya since he seems to still be somewhat >active in the Perl development community. Ilya says to use EMX........... -- Regards Dave Saville **= Email 4 ==========================** Date: Mon, 11 Sep 2006 13:47:18 -0700 From: "Brendan Oakley" Subject: Editor suggestions Hi. I haven't seen any activity on this list forever. Has it been quiet or have I just not been receiving it? I wonder if I might ask those willing to respond what is your preferred editor, for development on OS/2? I've been trying to settle on one myself, and every PM editor I have tried lacks one or more of the following needed features. 1) Syntax highlighting 2) Open and save Unix text format 3) Don't add EOF to files that did not have them 4) Leave tab characters alone 5) Don't crash or hang the whole WPS. I think these are pretty basic requirements. I can't be the only one needing them. The reason I'm not considering text-mode editors is because it seems to me to spoil the whole fun of developing on OS/2. But I'm open to being persuaded. So what do you guys do? Brendan **= Email 5 ==========================** Date: Mon, 11 Sep 2006 21:31:23 +0100 From: Lyn St George Subject: Re: Editor suggestions Brendan Oakley wrote: > Hi. > > I haven't seen any activity on this list forever. Has it been quiet or > have I just not been receiving it? It's been a bit quiet .. > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? > > I've been trying to settle on one myself, and every PM editor I have > tried lacks one or more of the following needed features. > > 1) Syntax highlighting > 2) Open and save Unix text format > 3) Don't add EOF to files that did not have them > 4) Leave tab characters alone > 5) Don't crash or hang the whole WPS. My preference is MED from http://www.utopia-planitia.de. It does all those things you mention, plus more that I personally find useful: tabs can optionally be visible search through files/directories not currently open lots of others ... It can crash after a while of selecting lots of text, it can also crash if it finds a binary file while searching, and it can sometimes forget which format it should save in (ie, instead of saving in "as opened" it will save in Unix format). > I think these are pretty basic requirements. I can't be the only one > needing them. The reason I'm not considering text-mode editors is > because it seems to me to spoil the whole fun of developing on OS/2. > But I'm open to being persuaded. So what do you guys do? My OS/2 machine is currently down and I'm forced to try to find a decent editor on linux - bloody horrible things like Vi are all they have ... > > Brendan > > > . > **= Email 6 ==========================** Date: Mon, 11 Sep 2006 23:47:35 +0100 From: Adrian Suri Subject: Re: Editor suggestions HI Personally I go for EPM, it's still quite a col editor, and highly configurable, although lack of Unicode support is a pain, particularly when using it for XHTML editing regards Adrian Suri Brendan Oakley wrote: > Hi. > > I haven't seen any activity on this list forever. Has it been quiet or > have I just not been receiving it? > > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? > > I've been trying to settle on one myself, and every PM editor I have > tried lacks one or more of the following needed features. > > 1) Syntax highlighting > 2) Open and save Unix text format > 3) Don't add EOF to files that did not have them > 4) Leave tab characters alone > 5) Don't crash or hang the whole WPS. > > I think these are pretty basic requirements. I can't be the only one > needing them. The reason I'm not considering text-mode editors is > because it seems to me to spoil the whole fun of developing on OS/2. > But I'm open to being persuaded. So what do you guys do? > > Brendan > > **= Email 7 ==========================** Date: Mon, 11 Sep 2006 23:03:32 -0400 From: rsteiner at visi.com (Richard Steiner) Subject: Re: Editor suggestions Here in the mailing list for os2-unix, Lyn St George spake unto us, saying: >My OS/2 machine is currently down and I'm forced to try to find a decent >editor on linux - bloody horrible things like Vi are all they have ... I would recommend NEdit or xfte for an X-based editor, and either vfte or mcedit (the editor in Midnight Commander) for console-based. NEdit is fairly nice in that it uses CUA keybindings and has good ctags support (if you need that), including the exuberant variety. -- -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Mableton, GA USA Mainframe/Unix bit twiddler by day, OS/2+Linux+DOS hobbyist by night. WARNING: I've seen FIELDATA FORTRAN V and I know how to use it! The Theorem Theorem: If If, Then Then. **= Email 8 ==========================** Date: Mon, 11 Sep 2006 21:26:20 -0700 From: "Brendan Oakley" Subject: Re: Editor suggestions Thanks to Lyn, Adrian and Richard for replying. All good information. Particular thanks to Lyn for the thorough review of MED. I had had some trouble with MED, which I thought was messing with tab characters, but because you said it didn't do that I looked harder at the settings. I found that it was actually cleaning up trailing whitespace. A useful feature on new code, but it produces long, messy patches for ports. Turning it off in MED led me to find the solution to the same problem on LPEX, so now that is an option for me as well. You're right, MED does have some very nice features. I just might buy it. On 9/11/06, Lyn St George wrote: > > My preference is MED from http://www.utopia-planitia.de. It does all > those things you mention, plus more that I personally find useful: > tabs can optionally be visible > search through files/directories not currently open > lots of others ... > > My OS/2 machine is currently down and I'm forced to try to find a decent > editor on linux - bloody horrible things like Vi are all they have ... I'm getting rather sick of Vi myself, although Gvim on the X desktop makes it considerably more comfortable... accepts the habitual commands from Vi but still behaves pretty normal with the mouse and menus. Still, I'm looking forward to switching to something without painfully memorized command sequences. Brendan **= Email 9 ==========================** Date: Mon, 11 Sep 2006 21:49:24 -0700 From: "Neil Waldhauer" Subject: Re: Editor suggestions On Mon, 11 Sep 2006 13:47:18 -0700, "Brendan Oakley" wrote: > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? I use Visual SlickEdit, which is long abandoned for OS/2. The final version was 4.0. The owners have stated privately that they now consider the unsupported OS/2 version to be freeware. While SlickEdit does all you asked, I wish it had more advanced tagging. I can always jump from a reference to a definition, but not from a definition to a list of all references. Neil -- Neil Waldhauer, neil at blondeguy.com Beer is proof that God loves us and wants us to be happy **= Email 10 ==========================** Date: Tue, 12 Sep 2006 09:04:45 +0100 From: dave bamford Subject: Re: Editor suggestions Brendan Oakley wrote: > Hi. > > I haven't seen any activity on this list forever. Has it been quiet or > have I just not been receiving it? > > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? I use Jedit www.jedit.org because I can use it cross platform and I use it for code and web development. Dave Bamford **= Email 11 ==========================** Date: Tue, 12 Sep 2006 10:52:54 +0200 (CDT) From: "Dave Parsons" Subject: Re: Editor suggestions On Mon, 11 Sep 2006 13:47:18 -0700, Brendan Oakley wrote: > Hi. > > I haven't seen any activity on this list forever. Has it been quiet or > have I just not been receiving it? > > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? jEdit (www.jedit.org) is worth a look if you haven't tried it yet. As for my preference, a mixture of MED and jEdit would be good. Both are powerful, both have their good and bad points. A problem with MED is (or was last time I tried) that you can't register it anymore and so you can only print directly once per invocation without using an external print program. Dave **= Email 12 ==========================** Date: Tue, 12 Sep 2006 11:23:18 +0200 From: Kris Steenhaut Subject: Unsubscribe . subscribe Forgive me the intrusion please, but I'm at a loss: How do I unsubscribe the actual email address and how do I subscribe with the new one? -- Groeten uit Gent, Kris **= Email 13 ==========================** Date: Tue, 12 Sep 2006 13:00:58 +0200 (CEST) From: "Christian Hennecke" Subject: Re: Editor suggestions On Tue, 12 Sep 2006 09:04:45 +0100, dave bamford wrote: >Brendan Oakley wrote: > >> Hi. >> >> I haven't seen any activity on this list forever. Has it been quiet or >> have I just not been receiving it? >> >> I wonder if I might ask those willing to respond what is your >> preferred editor, for development on OS/2? > >I use Jedit www.jedit.org because I can use it cross platform and I use it >for code and web development. I've also been using jEdit for a while. My main beef with it is that while lots of plug-ins are available, all the plug-in-specific menus are collected in one submenu which makes using those very awkward. I'd rather see this done like in Emacs or EPM where menus that are specific to an editing mode are displayed in the mian menu bar when the mode is active. Christian Hennecke **= Email 14 ==========================** Date: Tue, 12 Sep 2006 07:37:07 -0400 From: Michael Greene Subject: Re: Editor suggestions Brendan Oakley wrote: > Hi. > > I haven't seen any activity on this list forever. Has it been quiet or > have I just not been receiving it? > > I wonder if I might ask those willing to respond what is your > preferred editor, for development on OS/2? > > I've been trying to settle on one myself, and every PM editor I have > tried lacks one or more of the following needed features. > > 1) Syntax highlighting > 2) Open and save Unix text format > 3) Don't add EOF to files that did not have them > 4) Leave tab characters alone > 5) Don't crash or hang the whole WPS. > > I think these are pretty basic requirements. I can't be the only one > needing them. The reason I'm not considering text-mode editors is > because it seems to me to spoil the whole fun of developing on OS/2. > But I'm open to being persuaded. So what do you guys do? > > Brendan MED or FTE http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh=1&fname=/pub/os2/apps/editors/fte20060126.zip **= Email 15 ==========================** Date: Mon, 11 Sep 2006 22:03:31 +0000 (GMT) From: Nicholas Sheppard Subject: Waiting for input Hi all. I'm a big fan of EPM for the record. I don't use a lot of features but I am very particular about the way tabs get handled, which has caused me no end of grief with other editors I've tried. Editors aside, I tried this question on comp.os.os2.programmer.misc but haven't been able to find a solution: I have a port of a Unix network daemon (Uni of Washington's imapd) that involves waiting for the client to send some data to the server, up to a timeout period. In the original Unix code, this is done using select() in the obvious way. Under OS/2, however, I found that once the client had sent any data at all, select() returned immediately even if all of the data has been read from the socket before select() is called. I've tried both EMX's select() and os2_select(). The twist is: the Unix version expects to have its standard input and output connected to the socket by inetd. To emulate this under OS/2, I had to use EMX's _impsockhandle() function and dup2() to connect the socket supplied by OS/2's inetd to the standard input and output of the daemon. If I eliminate the dup2() step and call select() on the imported socket handle, things work as expected. So: does dup2() do something that causes problems for select(), or is there something special about file handle 0 and select(), or is there something else I am missing? Thanks for any suggestions. Nick S. The relevent code goes thus: /* OS/2 inetd passes the socket handle as argv[1] */ emxso = _impsockhandle(atoi(argv[1]), 0); /* connect inetd's scoket to standard input and output */ dup2(emxso, 0); dup2(emxso, 1); close(emxso); /* now wait for input up to t seconds at a time */ do { FD_ZERO(&rfd); FD_ZERO(&efd); FD_SET(0,&rfd); FD_SET(0,&efd); tmo.tv_sec = t; tmo.tv_usec = 0; if (select(1,&rfd,0,&efd,&tmo)) /* read the data and do something with it */ else /* timed out */ } while (...); **= Email 16 ==========================** Date: Tue, 12 Sep 2006 07:20:02 -0800 From: "Dave Yeo" Subject: Re: Unsubscribe . subscribe On Tue, 12 Sep 2006 11:23:18 +0200, Kris Steenhaut wrote: >Forgive me the intrusion please, but I'm at a loss: > >How do I unsubscribe the actual email address and how do I subscribe >with the new one? If you ever want to remove yourself from this mailing list, send the following command in email to : unsubscribe Or you can send mail to with the following command in the body of your email message: unsubscribe os2-unix or from another account, besides daveryeo at telus.net: unsubscribe os2-unix daveryeo at telus.net Subscribing uses aprox. the same commnads Dave **= Email 17 ==========================** Date: Tue, 12 Sep 2006 11:22:17 -0400 From: Richard C Steiner Subject: Re: Editor suggestions Quoting Neil Waldhauer : > While SlickEdit does all you asked, I wish it had more advanced tagging. I > can always jump from a reference to a definition, but not from a definition > to a list of all references. Is there a port of cscope to OS/2? I found that to be useful on Solaris back when I had a copy (I can't find one now that I can actually install, since I can't be root at work and install Solaris packages). -- -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Mableton, GA USA Written online using VISI's fancy web-based Horde interface! The Theorem Theorem: If If, Then Then. **= Email 18 ==========================** Date: Tue, 12 Sep 2006 23:06:29 -0700 From: "Brendan Oakley" Subject: Re: Editor suggestions On 9/11/06, Neil Waldhauer wrote: > I use Visual SlickEdit, which is long abandoned for OS/2. The final version was > 4.0. The owners have stated privately that they now consider the unsupported > OS/2 version to be freeware. I'm genuinely curious what their response would be if it were offered for download with a counter. > While SlickEdit does all you asked, I wish it had more advanced tagging. I can > always jump from a reference to a definition, but not from a definition to a > list of all references. Jumping from a reference to a definition would be handy, especially across different files. **= Email 19 ==========================** Date: Wed, 13 Sep 2006 11:28:02 +0100 From: Adrian Suri Subject: Re: Editor suggestions If the owners say it's freeware I wouldn't mind a copy regards Adrian Brendan Oakley wrote: > On 9/11/06, Neil Waldhauer wrote: >> I use Visual SlickEdit, which is long abandoned for OS/2. The final >> version was >> 4.0. The owners have stated privately that they now consider the >> unsupported >> OS/2 version to be freeware. > > I'm genuinely curious what their response would be if it were offered > for download with a counter. > >> While SlickEdit does all you asked, I wish it had more advanced >> tagging. I can >> always jump from a reference to a definition, but not from a >> definition to a >> list of all references. > > Jumping from a reference to a definition would be handy, especially > across different files. > >