From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Mon, 8 Jul 2002 04:31:39 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 266 ************************************************** Sunday 07 July 2002 Number 266 ************************************************** Subjects for today 1 Re: Baseline toolset : John Small 2 'for' in REXX : John Poltorak 3 Re: 'for' in REXX : Pete Milne 4 Baseline toolset RC1 : John Poltorak 5 Re: 'for' in REXX : Holger Veit 6 db.lib : John Poltorak 7 Re: 'for' in REXX : Sergey I. Yevtushenko" 8 Re: Directory listing : John Poltorak 9 Re: Directory listing : DWParsons at t-online.de (Dave Parsons) 10 Re: Gettext / libiconv : John Poltorak 11 Re: db.lib : tsikora at ntplx.net 12 Perl build problem : John Poltorak 13 Re: config.site : Dave and Natalie" 14 Re: db.lib : Lyn St George" **= Email 1 ==========================** Date: Mon, 8 Jul 2002 08:39:31 -0400 From: John Small Subject: Re: Baseline toolset ** Reply to message from John Poltorak on Sun, 7 Jul 2002 20:35:03 +0100 > > SED http://hobbes.nmsu.edu/pub/os2/dev/util/sed302.zip > > When did this disappear? Try -- John Small (remove the z's in the reply address) **= Email 2 ==========================** Date: Mon, 8 Jul 2002 10:42:16 +0100 From: John Poltorak Subject: 'for' in REXX Is there a REXX equivalent of? :- for var in val1 val2 valx do echo $var done -- John **= Email 3 ==========================** Date: Mon, 08 Jul 2002 11:41:21 +0100 From: Pete Milne Subject: Re: 'for' in REXX John Poltorak wrote: > Is there a REXX equivalent of? :- > > for var in val1 val2 valx > do > echo $var > done > > -- > John "for %%v in (val1 val2 valx) do echo %%v " ? Pete **= Email 4 ==========================** Date: Mon, 8 Jul 2002 12:14:09 +0100 From: John Poltorak Subject: Baseline toolset RC1 I have attempted to put together a Baseline toolset which can be used for building UnixOS/2 apps. A directory listing is provided here:- ftp://unixos2: at 213.152.37.92/pub/unixos2/baseline/toolset.dir This works with LYNX and WGET but I can't seem to connect using Netscape... The baseline directory contains the toolset and a number of scripts for putting it together from scratch, although it assumes you already have WGET. GATHER.CMD collects all the required archives as listed in the files toolset.lst and emx.lst and dumps them in a repository - archives. BASELINE_INST.CMD extracts all the required files and installs them into the correct directories and if you are lucky it will also build Perl 5.6.1 for you, but you may need to edit BUILD_PERL.CMD first to assign the RT variable to your selected drive - it's set to X: currently. It would be best to start the whole process off on an empty drive, or at least in the root directory of one which has around 100MB free. If you manage to run any of this, then run:- dirlist >mylist and compare it with toolset.dir to see what differences you get. If the whole thing runs correctly, you may see a perl.exe in \tmp\perl-5.6.1 after an hour or more. Any feedback would be appreciated. -- John **= Email 5 ==========================** Date: Mon, 8 Jul 2002 13:37:56 +0200 From: Holger Veit Subject: Re: 'for' in REXX On Mon, Jul 08, 2002 at 11:41:21AM +0100, Pete Milne wrote: > John Poltorak wrote: > > > Is there a REXX equivalent of? :- > > > > for var in val1 val2 valx > > do > > echo $var > > done > > > > -- > > John > > "for %%v in (val1 val2 valx) do echo %%v " ? Not REXX, but CMD.EXE anachronism. Holger -- Please update your tables to my new e-mail address: holger.veit$ais.fhg.de (replace the '$' with ' at ' -- spam-protection) **= Email 6 ==========================** Date: Mon, 8 Jul 2002 14:37:32 +0100 From: John Poltorak Subject: db.lib Looking through EMX Fix04 there has been an update to db.a, but AIUI is this is an ST build. An MT build is required when building Perl, and a version of this has been provided by IlyaZ, but that one is based on the original source code and does not reflect any updates included in Fix04. There doesn't seem to be any source code available for the update so I'm wondering how I could get an updated db.lib based on the EMX code. Is there one available? Maybe EM has one somewhere... -- John **= Email 7 ==========================** Date: Mon, 08 Jul 2002 15:21:30 +0300 (EET) From: "Sergey I. Yevtushenko" Subject: Re: 'for' in REXX On Mon, 8 Jul 2002 10:42:16 +0100, John Poltorak wrote: Hi, >Is there a REXX equivalent of? :- > >for var in val1 val2 valx >do >echo $var >done list='val1 val2 valx' do i = 1 to words(list) say word(list,i) end Regards, Sergey. *-------------------------------------- ES at Home **= Email 8 ==========================** Date: Mon, 8 Jul 2002 16:00:11 +0100 From: John Poltorak Subject: Re: Directory listing On Mon, Jul 08, 2002 at 04:02:48PM +0200, Dave Parsons wrote: > On Sat, 6 Jul 2002 16:59:27 +0100, John Poltorak wrote: > > > > > > > Does anyone know any program which will create a directory listing in a > > format similar to this?:- > > > > > > emx .exe 52015 A 22-04-00 19:14:26 X:\emx\bin > > What particular features are you looking for? It's OK, this does what I want:- /* */ dirs = 'bin emx etc usr' do j = 1 to words(dirs) call SysFileTree word(dirs,j)'/*', file, 'fs' do i = 1 to file.0 parse value file.i with date time size . pathname name = filespec('n', strip(pathname)) path = filespec('p', strip(pathname)) parse value name with base '.' ext if ext \= '' then ext = '.'ext say left(base,21)left(ext,7) right(date,10) right(time,6) right(size,10) path end end > Dave -- John **= Email 9 ==========================** Date: Mon, 08 Jul 2002 16:02:48 +0200 (CES) From: DWParsons at t-online.de (Dave Parsons) Subject: Re: Directory listing On Sat, 6 Jul 2002 16:59:27 +0100, John Poltorak wrote: > > > Does anyone know any program which will create a directory listing in a > format similar to this?:- > > > emx .exe 52015 A 22-04-00 19:14:26 X:\emx\bin What particular features are you looking for? I have:- OS/2 V2.45, List directories V1.00 (c) CDL 2002 Usage:- LL file_spec [switches] If the file spec contains spaces it must be enclosed in double quotes. Wild cards are allowed in the file_spec. All parameters must be separated by spaces. Command line switches (can be abbreviated):- /? This help screen /Before Before 00:00 hrs today /Before= Before date | time_today | date,time | time,date /Help This help screen /Pause Pause after each page /Recurse Recurse into sub directories /Since Since 00:00 hrs today /Since= Since date | time_today | date,time | time,date Time format hh:mm[:ss] Date format dd-mm[-yyyy] The following keys may be used during execution:- P Pause after each page C Clear pause setting Abort execution pluto\C:\temp>ll Volume label PD1P1 Directory of C:\temp adalinks.txt A--- 228 8:38 Sun 9-Sep-2001 test.c A--- 258 10:08 Wed 15-Mar-2000 test.err A--- 198 10:08 Wed 15-Mar-2000 test.exe A--- 13,157 9:38 Wed 15-Mar-2000 test.obj A--- 454 9:37 Wed 15-Mar-2000 t ---- 16:00 Mon 8-Jul-2002 6 files found 14,295 bytes used 1,546,352,640 volume size 308,600,832 bytes free Dave **= Email 10 ==========================** Date: Mon, 8 Jul 2002 17:23:33 +0100 From: John Poltorak Subject: Re: Gettext / libiconv On Sun, Jul 07, 2002 at 11:01:15PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > > > It's great to have an active maintainer, and it would be nice to be able > > to build Gettext. > > > > Whether the Makefile is bogus or not, I don't know, but as it stands it > > doesn't work with Make 3.79.1. My only current option is to revert to a > > previous version of Make, but I'm reluctant to do this. > > > > Does anyone have a fix for the Gettext Makefile? ...apart from a hardcoded > > $VERSION... > > I've found at least one bug: > > VERSION = $(shell sed ../configure.in -ne "/AM_INIT_AUTOMAKE/{" -e "s/.*(gettext, *\\(.*\\))/\\1/" -e "p" -e "}") > > This statement executes "sed ../configure.in ..." which doesn't > work on the command line because cmd doesn't support '\' for > quoting. make 3.76 contains magic code to replace '\\' by '\'. > Fix: replace '\\' by '\' in that line above. I guess I just need to run this beforehand:-... sed "s/\\\\/\\/g" makefile >makefile.os2 BTW there is also another occurance of '\\' near the end of the Makefile. I guess it's also OK to change that... BTW2 why is it necessary to run Make twice? Is this something else which can be fixed? > [snip] > > > bye, > Andreas > > -- > One OS to rule them all, One OS to find them, > One OS to bring them all and in the darkness bind them > In the Land of Redmond where the Shadows lie. -- John **= Email 11 ==========================** Date: Mon, 08 Jul 2002 19:06:47 -0400 From: tsikora at ntplx.net Subject: Re: db.lib Lyn St George wrote: > > On Mon, 8 Jul 2002 14:37:32 +0100, John Poltorak wrote: > > >Looking through EMX Fix04 there has been an update to db.a, but AIUI is > >this is an ST build. An MT build is required when building Perl, and a > >version of this has been provided by IlyaZ, but that one is based on the > >original source code and does not reflect any updates included in Fix04. > > > >There doesn't seem to be any source code available for the update so I'm > >wondering how I could get an updated db.lib based on the EMX code. > > This would still be Berkeley DB v1.x, which is basically outdated. See > http://www.sleepycat.com/historic.html, which also links to the source. > > I promised some time ago to build v3.x, but still haven't had the time. > V 4 will build perl 5.6.1 OK, but the API is different to that of v3.x, (which > is the one in MySQL) so is probably not the best choice. > > Any opinions on the best version for UnixOS/2? > There are 2 versions at unixos2.com BerkeleyDB.4.0.14.os2.zip and db.zip ftp://unixos2.com/pub/os2/unix/devtools/db/ -- Ted Sikora tsikora at unixos2.com http://unixos2.com **= Email 12 ==========================** Date: Mon, 8 Jul 2002 20:04:10 +0100 From: John Poltorak Subject: Perl build problem Does anyone recognise these problems reported while building Perl 5.6.1? :- make[1]: Entering directory `X:/tmp/perl-5.6.1' echo malloc.c av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c xsutils.c globals.c perlio.c perlapi.c miniperlmain.c perlmain.c | tr ' ' '\n\r' >.clist make[1]: Leaving directory `X:/tmp/perl-5.6.1' Finding dependencies for malloc.obj. ./makedepend[143]: cannot create UU/malloc.c.c: No such file or directory ./makedepend[143]: cannot open UU/malloc.c.c: No such file or directory Finding dependencies for av.obj. ./makedepend[143]: cannot create UU/av.c.c: No such file or directory ./makedepend[143]: cannot open UU/av.c.c: No such file or directory ... ./makedepend[143]: cannot open UU/perlmain.c.c: No such file or directory make[1]: Entering directory `X:/tmp/perl-5.6.1' echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n\r' >.shlist make[1]: Leaving directory `X:/tmp/perl-5.6.1' make[1]: Entering directory `X:/tmp/perl-5.6.1' echo EXTERN.h INTERN.h XSUB.h av.h config.h cop.h cv.h dosish.h embed.h form.h gv.h handy.h hv.h keywords.h mg.h op.h opcode.h patchlevel.h perl.h perlapi.h perly.h pp.h proto.h regcomp.h regexp.h scope.h sv.h unixish.h util.h iperlsys.h thread.h utf8.h warnings.h | tr ' ' '\n\r' >.hlist make[1]: Leaving directory `X:/tmp/perl-5.6.1' You don't seem to have a proper C preprocessor. Using grep instead. Updating GNUmakefile... Perl seems to build inspite of these errors. Could it be due to some elements of EMX missing? My installation of EMX is pared down to a minimum - or possible below minimum... -- John **= Email 13 ==========================** Date: Mon, 08 Jul 2002 20:59:46 -0800 From: "Dave and Natalie" Subject: Re: config.site On Sun, 7 Jul 2002 16:48:06 +0100, John Poltorak wrote: > >> SET AWKPATH=e:/emx/share/awk; > >I have never heard of AWKPATH. What is the default setting, and what >is it used for? I can't really remember except when I installed awk the readme said to set this. Most likely it is not needed anymore. > >> SET AC_PREFIX=e:/emx > >Does this provide anything? I though it was used by autoconf so wouldn't >be used by configure... No I think I made a mistake adding this. Dave **= Email 14 ==========================** Date: Mon, 08 Jul 2002 22:36:38 +0000 From: "Lyn St George" Subject: Re: db.lib On Mon, 8 Jul 2002 14:37:32 +0100, John Poltorak wrote: >Looking through EMX Fix04 there has been an update to db.a, but AIUI is >this is an ST build. An MT build is required when building Perl, and a >version of this has been provided by IlyaZ, but that one is based on the >original source code and does not reflect any updates included in Fix04. > >There doesn't seem to be any source code available for the update so I'm >wondering how I could get an updated db.lib based on the EMX code. This would still be Berkeley DB v1.x, which is basically outdated. See http://www.sleepycat.com/historic.html, which also links to the source. I promised some time ago to build v3.x, but still haven't had the time. V 4 will build perl 5.6.1 OK, but the API is different to that of v3.x, (which is the one in MySQL) so is probably not the best choice. Any opinions on the best version for UnixOS/2? >Is there one available? > >Maybe EM has one somewhere... > - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +----------------------------------------------------------------------------------