Date: Sun, 19 Dec 2004 00:04:18 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 477 ************************************************** Saturday 18 December 2004 Number 477 ************************************************** Subjects for today 1 Re: Slight problem with GCC3.3.5 dlopen : Knut St. Osmundsen" 2 Re: Network Time Protocol : John Poltorak 3 Re: adding shell variables : Steven Levine" 4 Re: adding shell variables : John Poltorak 5 octave port : John Poltorak 6 setitimer implementation : John Poltorak 7 Re: setitimer implementation : lsunley at mb.sympatico.ca 8 Re: Openjade - GCC 3.3.5 - and a dumb question about linking : lsunley at mb.sympatico.ca 9 postgreSQL progress : lsunley at mb.sympatico.ca 10 Re: octave port : Steven Levine" 11 Re: adding shell variables : Steven Levine" 12 Re: octave port : Andy Willis 13 OpenSP and OpenJade : lsunley at mb.sympatico.ca 14 Re: octave port : Steven Levine" 15 ProFTPD : John Poltorak **= Email 1 ==========================** Date: Fri, 17 Dec 2004 14:47:20 +0100 From: "Knut St. Osmundsen" Subject: Re: Slight problem with GCC3.3.5 dlopen Lorne, You should check that you're not having an incorrect soname for that DLL (i.e. the check the LIBRARY [init/term] in the .def file). I doubt that it's related to dlopen(). OTOH, dlopen() shouldn't return 123 but NULL and errno. That's obviously a bug in the backend I'll have to fix. Kind Regards, knut PS. FYI I'm trying to maintain an errata list for beta2 in the support forums. Hopefully libc users will find this helpful: "GCC 3.3.5 / LIBC 0.6 beta 2 errata" http://ubb.innotek.de/ultimatebb.php?ubb=get_topic;f=33;t=000073 lsunley at mb.sympatico.ca wrote: > I have it now... > > Will be trying this out with beta2 > > Lorne > > In <20041216093550.C46 at warpix.org>, on 12/16/04 > at 09:35 AM, John Poltorak said: > > >>On Fri, Dec 10, 2004 at 12:43:23PM -0500, lsunley at mb.sympatico.ca wrote: >> >>>I am getting a 123 error from dlopen (invalid name) >>> >>>dlopen rc=123 extra=M:\USR\LOCAL\PGSQL\LIB\EUCJPSJI.DLL >>> >>>When I shorten the DLL name by 1 char the load works. >>> >>>M:\USR\LOCAL\PGSQL\LIB\EUCJPSJ.DLL will load >>> >>>Is there some kind of path limit in there or something? > > >>Have you tried beta2? >> >> >>>Lorne >>> >>>-- >>>----------------------------------------------------------- >>>lsunley at mb.sympatico.ca >>>----------------------------------------------------------- > > > > > **= Email 2 ==========================** Date: Fri, 17 Dec 2004 15:20:59 +0000 From: John Poltorak Subject: Re: Network Time Protocol On Tue, Nov 23, 2004 at 10:27:13AM +0000, John Poltorak wrote: > > Is there an OS/2 port of the Network Time Protocol daemon? > > NTP is one of the most important programs on the Internet and it would be > nice to get it to build on OS/2. It would also show how Posix compliant > OS/2 can be. Looks like we have one now...:- http://hobbes.nmsu.edu/pub/incoming/ntp-4.2.0-b2-os2-emx.zip It's based on gcc 3.3.5 beta 2 but there are no build instructions so it's impossible to say if any changes were required to get it built... -- John **= Email 3 ==========================** Date: Fri, 17 Dec 2004 11:25:35 -0800 From: "Steven Levine" Subject: Re: adding shell variables In <20041217120323.F45 at warpix.org>, on 12/17/04 at 12:03 PM, John Poltorak said: >Many thanks, that works fine... My book on Unix Shell programming doesn't > mention the use of expr, it has something like:- >z="$x + y" (not $y) Which shell? csh would support something like: at z=$x + $y >Maybe it depends on which shell is being >used. Always. The shells vary greatly for functions not included in the orginal Bourne shell. >date --date='($z) days' >Is this the right way to do it? Close. Try: date --date="$z days" assuming that this is the correct operand format for --date. You need double quotes to allow parameter expansion. HTH, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 4 ==========================** Date: Fri, 17 Dec 2004 22:01:41 +0000 From: John Poltorak Subject: Re: adding shell variables On Fri, Dec 17, 2004 at 11:25:35AM -0800, Steven Levine wrote: > In <20041217120323.F45 at warpix.org>, on 12/17/04 > at 12:03 PM, John Poltorak said: > > > >Many thanks, that works fine... My book on Unix Shell programming doesn't > > mention the use of expr, it has something like:- > > >z="$x + y" (not $y) > > Which shell? csh would support something like: Do we have a csh on OS/2? > at z=$x + $y > >date --date='($z) days' > > >Is this the right way to do it? > > Close. Try: > > date --date="$z days" > > assuming that this is the correct operand format for --date. You need > double quotes to allow parameter expansion. Many thanks - I have this now:- x=`date +%j` y=`date +%w --date="-$x days"` z=$((1 -$x - $y)) date +%A' '%d' '%B' '%Y --date="$z days" What I need to add are two loops of 52 and 7 interations where $z is incremented by 1 every time and a new page inserted after every 7 entries. Once I have that, I should have the basis of a calendar file which I can try formatting and printing with groff. I might even manage to get it done within the next two weeks :-)... > > HTH, > > Steven > > -- > ---------------------------------------------------------------------- > "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.100c_W4 > www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) > ---------------------------------------------------------------------- > -- John **= Email 5 ==========================** Date: Fri, 17 Dec 2004 22:20:36 +0000 From: John Poltorak Subject: octave port I just found this email in a pending mailbox which was submitted by a non member. I'll forward it in case anyone has an answer... ----------------------------------------------------------------------- I hadn't heard of Octave until Warpstock this year and spoke to someone hoping to be able to port it. I have since seen a few other people wanting a newer port of it. I downloaded the source and looked into it. I decided this probably meant having to port a newer gnu fortran so decided to try on 3.3.5 with the Innotek gcc 3.3.5. I so far for the entire project have rebuilt bison and readline with 3.3.5 so that they would use the same libc. I got an error trying to run configure for the gcc saying it couldn't determine endianness with a message that tr.exe got the wrong parameters. I then built coreutils (replaced fileutils, shellutils, and textutils -- su.exe didn't build and maybe a couple of others but seems to have most everything else but mv.exe won't overwrite files, gets permission denied and in another area I see that sort.exe doesn't seem to work as expected). That got me past the endianness but the very next check failed to determine floating point format. The only way I could determine to get around that was to add a new line in the configure that matched what was in the conftest.dmp file. This got me to : checking for main in -lunwind... no *** Configuration i386-pc-os2-emx not supported Configure in E:/cvs/work/gcc-3.3.5/gcc failed, exiting. I am not sure if the -lunwind is the reason for the failure or if it was the next check. I then decided to try to build just libf2c and after adding -Zomf seems to have built though I am not entirely sure as I don't know what all should have been built but no errors anyway. I copied the header files and .a files (was unable to turn them into .lib files with emxomf). I then ran configure in Octave and had to specify --with-f2c and it seemed to find what it wanted as best I could tell. I then ran make and get: make.exe -f octMakefile all -e: No such file or directory -e: No such file or directory make.exe[1]: Entering directory `E:/cvs/work/OCTAVE' making octave-bug from octave-bug.in -e: No such file or directory -e: No such file or directory make.exe[1]: *** [octave-bug] Error 127 make.exe[1]: Leaving directory `E:/cvs/work/OCTAVE' make.exe: *** [all] Error 2 Ok found that the makeconf file had sed= so I added sed to that. Now it fails fairly early on looking for an f2c executable but that is not being created nor does it appear it should be from the sources as best I can tell so I am not sure what I am missing. Andy ----------------------------------------------------------------------- **= Email 6 ==========================** Date: Fri, 17 Dec 2004 22:43:11 +0000 From: John Poltorak Subject: setitimer implementation Here's another email which got waylaid...:- --------------------------------------------------------------------- Hi, On Mon, 22 Nov 2004 21:46:19 -0500, lsunley at mb.sympatico.ca wrote: >In the new GCC335 the sys\time.h header has a prototype for >setitimer, unfortunately there does not appear to be am implementation of >the actual code. > >Is there one somewhere?, or maybe due in a later release of LIBC? The posix2 libs do contain an implementation (at least for one simple interrupt timer). You search on sourceforge for "posix2" and download the source (anoncvs is also possible). Furthermore the code contains a simple MIT libshm implementation. All this should be easily adaptable. Please peruse the code to your liking. Greets, Arnd --------------------------------------------------------------------- **= Email 7 ==========================** Date: Fri, 17 Dec 2004 18:53:24 -0500 From: lsunley at mb.sympatico.ca Subject: Re: setitimer implementation Hi GCC 3.3.5 b1 and B2 have this. I am using it in the postgreSQL port I am doing.... Lorne In <20041217224311.E32443 at warpix.org>, on 12/17/04 at 10:43 PM, John Poltorak said: >Here's another email which got waylaid...:- >--------------------------------------------------------------------- >Hi, >On Mon, 22 Nov 2004 21:46:19 -0500, lsunley at mb.sympatico.ca wrote: >>In the new GCC335 the sys\time.h header has a prototype for >>setitimer, unfortunately there does not appear to be am implementation of >>the actual code. >> >>Is there one somewhere?, or maybe due in a later release of LIBC? >The posix2 libs do contain an implementation (at least for one simple >interrupt timer). You search on sourceforge for "posix2" and download the >source (anoncvs is also possible). >Furthermore the code contains a simple MIT libshm implementation. All >this should be easily adaptable. Please peruse the code to your liking. >Greets, > Arnd >--------------------------------------------------------------------- -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 8 ==========================** Date: Fri, 17 Dec 2004 18:56:01 -0500 From: lsunley at mb.sympatico.ca Subject: Re: Openjade - GCC 3.3.5 - and a dumb question about linking Hi Sorry, I forgot to post it last night.... Will do so now. I will just zip up the build tree I have for them Lorne In <20041217094949.B45 at warpix.org>, on 12/17/04 at 09:49 AM, John Poltorak said: >On Thu, Dec 16, 2004 at 06:38:03PM -0500, lsunley at mb.sympatico.ca wrote: >> Hi >> >> In <20041216100401.D46 at warpix.org>, on 12/16/04 >> at 10:04 AM, John Poltorak said: >> >> >On Sun, Dec 12, 2004 at 11:05:49AM -0500, lsunley at mb.sympatico.ca wrote: >> >> >> I have built both openjade and opensp and they seem to work. Does anyone >> >> have a project dealing with xml and sgml that they need this for? >> >> >I've noticed a number of packages which come with documentation in sgml >> >format, but have never known what to do with it. Would either of these >> >apps let me do that? >> >> That is what it is supposed to do. It will take an SGML file and render it >> as HTML ot tex and a couple of other formats. PostgeSQL uses it to >> generate the HTML docs from the SGML source file. >> >> I'll put the two packages - OpenSP and OpenJade - on Hobbes tonight >Will you include any patches and build instructions? > >> Lorne >> >> -- >> ----------------------------------------------------------- >> lsunley at mb.sympatico.ca >> ----------------------------------------------------------- >> -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 9 ==========================** Date: Fri, 17 Dec 2004 19:03:56 -0500 From: lsunley at mb.sympatico.ca Subject: postgreSQL progress Well, It is now working - more or less - at least the server starts up and shuts down correctly. I should be able to have an alpha/beta of postreSQL RC1 out by late sunday. I used a hack to implement the shared memory and semaphore handling. I hope to improve these over the next week. Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 10 ==========================** Date: Fri, 17 Dec 2004 18:35:54 -0800 From: "Steven Levine" Subject: Re: octave port In <20041217222036.D32443 at warpix.org>, on 12/17/04 at 10:20 PM, John Poltorak said: >I just found this email in a pending mailbox which was submitted by a non > member. I'll forward it in case anyone has an answer... He probably does not understand that he needs to subscribe to post. You probably need to tell him how. If this is the person I'm thinking of, this discussion started on the odinusers list and I pointed him here. >Now it fails fairly early on looking for an f2c executable but that is >not being created nor does it appear it should be from the sources as >best I can tell so I am not sure what I am missing. f2c is a fortran to c translator. With this you don't need a working Fortran compiler to build Octave. Here's some links to get you started: http://aixpdslib.seas.ucla.edu/packages/f2c.html http://packages.debian.org/testing/devel/f2c Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 11 ==========================** Date: Fri, 17 Dec 2004 18:45:57 -0800 From: "Steven Levine" Subject: Re: adding shell variables In <20041217220141.C32443 at warpix.org>, on 12/17/04 at 10:01 PM, John Poltorak said: >Do we have a csh on OS/2? Probably. There is tcsh. I've never been all that fond with csh. The idea was to share syntax with the C language, but this never struck me as all that useful for shells. I still prefer ksh over the other choices. >try formatting and printing with groff. I might even manage to get it >done within the next two weeks :-)... :-) Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 12 ==========================** Date: Fri, 17 Dec 2004 20:06:13 -0700 From: Andy Willis Subject: Re: octave port Steven Levine wrote: >In <20041217222036.D32443 at warpix.org>, on 12/17/04 > at 10:20 PM, John Poltorak said: > > > >>I just found this email in a pending mailbox which was submitted by a non >>member. I'll forward it in case anyone has an answer... >> >> > >He probably does not understand that he needs to subscribe to post. You >probably need to tell him how. If this is the person I'm thinking of, >this discussion started on the odinusers list and I pointed him here. > > > I have been subscribed (in fact received both of these to the same email I am posting from). I don't recall how to subscribe now but don't mind doing so if that is what is needed (maybe I posted the other from the wrong email by mistake -- guess I will know if this goes through). > [snip] > > >Here's some links to get you started: > > http://aixpdslib.seas.ucla.edu/packages/f2c.html > > http://packages.debian.org/testing/devel/f2c > > >Steven > > > Thanks, I was trying to build f2c from the gcc package. I will try the netlib package once I am 100% convinced I can't save some files I accidently deleted from my jfs drive (looks like the rexxutil SysFileDelete function zero's the file size when it deletes files or at least that is what is looks like with my tests so far with trying to recover files I have deleted this way using jrescuer). Andy **= Email 13 ==========================** Date: Fri, 17 Dec 2004 21:39:40 -0500 From: lsunley at mb.sympatico.ca Subject: OpenSP and OpenJade Hi All, I have uploaded opensp-1.5.1 and openjade-1.3.3-pre1 to Hobbes Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 14 ==========================** Date: Fri, 17 Dec 2004 22:06:42 -0800 From: "Steven Levine" Subject: Re: octave port In <41C39EA5.2000107 at comcast.net>, on 12/17/04 at 08:06 PM, Andy Willis said: >I have been subscribed (in fact received both of these to the same email >I am posting from). I don't recall how to subscribe now but don't mind >doing so if that is what is needed (maybe I posted the other from the >wrong email by mistake -- guess I will know if this goes through). You are subscribed as of now. You original message did not show up on the list, so John may have done something for you. IAC, you are here. >Thanks, I was trying to build f2c from the gcc package. I will try the >netlib package I'm not sure which package is better. >once I am 100% convinced I can't save some files I >accidently deleted from my jfs drive (looks like the rexxutil >SysFileDelete function zero's the file size when it deletes files or at >least that is what is looks like with my tests so far with trying to >recover files I have deleted this way using jrescuer). Humm. That not what: \Toolkit\Samples\REXX\API\REXXUTIL\REXXUTIL.C says. It shows a straight DosDelete(). Do you have some sort of file security addin installed? You may have just gotten unlucky. Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 15 ==========================** Date: Sat, 18 Dec 2004 11:35:53 +0000 From: John Poltorak Subject: ProFTPD Has anyone attempted to port ProFTPD to OS/2? It has a homepage here:- http://www.proftpd.org/ -- John