From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sat, 22 Jun 2002 04:28:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 250 ************************************************** Friday 21 June 2002 Number 250 ************************************************** Subjects for today 1 Re: Gettext v0.11.2 : Dave and Natalie" 2 Re: Gettext v0.11.2 : Dave and Natalie" 3 Re: Re: Perl 5.8.0 Release Candidate 2 : John Poltorak 4 Re: Gettext v0.11.2 : John Poltorak 5 Make v3.79.1 and Gettext v0.11.2 : John Poltorak 6 Re: Re: Makedef.pl : Henry Sobotka 7 Re: Makedef.pl : John Poltorak 8 Re: Gettext v0.11.2 : John Poltorak 9 Re: libtool and -version-info : John Poltorak 10 Re: Perl 5.8.0 Release Candidate 2 : Masaru Nomiya 11 Re: Gettext v0.11.2 : John Poltorak 12 Re: Gettext v0.11.2 : Dave and Natalie" 13 Re: Gettext v0.11.2 : Dave and Natalie" 14 Re: Gettext v0.11.2 : Andreas Buening 15 Re: Gettext v0.11.2 : John Poltorak 16 Re: Gettext v0.11.2 : John Poltorak **= Email 1 ==========================** Date: Sat, 22 Jun 2002 07:34:58 -0800 From: "Dave and Natalie" Subject: Re: Gettext v0.11.2 On Sat, 22 Jun 2002 10:44:03 +0100, John Poltorak wrote: >> So I have to have MAKESHELL empty so make is using the shell specified in the makefile >> # Use CMD.EXE as shell since its way faster >> SHELL = $(COMSPEC) > >I'm confused by the experience you're having... You say it builds fine and >then you list a number of problems your having, so I'm not sure if you >built it easily once, but now it won't build because you can't recreate >the required environment. > >If it does build now, can you tell me which Make and SHELL you are using >and whether you need any specific environment variables? Sorry for being so confusing. It builds fine here if I use cmd.exe as the shell. According to the readme having to run make twice is due to a bug in make. Though every make I tried acts the same. Dave **= Email 2 ==========================** Date: Sat, 22 Jun 2002 07:47:46 -0800 From: "Dave and Natalie" Subject: Re: Gettext v0.11.2 On Sat, 22 Jun 2002 14:55:32 +0100, John Poltorak wrote: >I guess you must have iconv.a installed somewhere... If so, where did you >get it, or is it part of gcc 3.0.3? I personally got libiconv from ftp.gnu.org/gnu/libiconv. I'm using version 1.7 which IRC built quite easily using the included makefile.os2. I also tried going the configure route and it kinda worked. Ended up with static linking and a.out executables. Most likely I should of ran autoconf. Dave ps now DLing libiconv-1.8 to try **= Email 3 ==========================** Date: Sat, 22 Jun 2002 10:20:30 +0100 From: John Poltorak Subject: Re: Re: Perl 5.8.0 Release Candidate 2 On Sat, Jun 22, 2002 at 03:44:34PM +0900, Masaru Nomiya wrote: > > [John] == John Poltorak has written: > > John> Here's what I get after building and running t/harness:- > > John> Failed 13/722 test scripts, 98.20% okay. 31/64746 subtests failed, 99.95% okay. > John> Failed Test Stat Wstat Total Fail Failed List of Failed > John> ------------------------------------------------------------------------------- > John> ../lib/ExtUtils/t/Mkbootstrap.t 1 256 18 1 5.56% 8 > John> ../lib/ExtUtils/t/Packlist.t 1 256 34 1 2.94% 17 > > Here is mine; > > Failed 11/722 test scripts, 98.48% okay. 31/64785 subtests failed, 99.95% okay. > Failed Test Stat Wstat Total Fail Failed List of Failed > ------------------------------------------------------------------------------- > > Different ....? Hmmm.... I wonder why I get those two fails above and you don't.... > > John> > See if you can be the first person to unravel the mystery of the > John> > malloc vs. Perl_malloc problem. > > John> If this gets sorted out, I'd like to think that at least four of s > John> the fail will disappear... > > As you might know, 'make' and 'make test' produces the msg; > > 06-22-2002 15:07:10 SYS2070 PID 5b78 TID 0001 Slot 00bc > G:\TEMP\PERL-5.8.0-RC2\T\PERL.EXE > DB_FILHA->PERLB12E.malloc > 127 Yes something changed between 5.7.3 and 5.8.0 in makedef.pl which leads to this error and it looks as though all tests involving db.lib fail. A section which defined 'malloc' was removed for some reason. Maybe adding it back in would sort out the problem... I've reported this on the p5p list, but not heard anything back so far. > Regards, > > --- > Masaru Nomiya mail-to: nomiya at ttmy.ne.jp > > "No Windows, no gains!" ..... "Why, I am wrong?" > > -- Bill -- -- John **= Email 4 ==========================** Date: Sat, 22 Jun 2002 10:44:03 +0100 From: John Poltorak Subject: Re: Gettext v0.11.2 On Fri, Jun 21, 2002 at 10:31:51PM -0800, Dave and Natalie wrote: > On Wed, 19 Jun 2002 11:35:02 +0100, John Poltorak wrote: > > > > >There's a recent version of gettext here:- > > > >ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.11.2.tar.gz > > > >Has anyone tried building this? > > > > > >This is a very important app because it includes the source for INTL.DLL > >which is one of the most common DLL's used in OS/2 ports. I would like to > >incorporate this version into UnixOS/2. > > > >I've had lots of problems in the past and would like to get this app built > >as simply as possible. If anyone has any tips I would like to hear them. > > This builds here fine. Have to run make twice due to > make: *** No rule to make target `out/release/intl.a', needed by `all'. Stop. It seems as though this will only work if you are running exactly the right Make, a specific shell and have the necessary environment variables in place. And if you need to run Make twice, there must be some error in the Makefile... > Interestingly when I just retried the build I started to get errors like this > emximp -o out/release/intl.a out/release/intl.def > emximp: String expected (line 2 of out/release/intl.def) > make: *** [out/release/intl.a] Error 2 > > fixing this caused an error at line 5 (didn't like ./) > After racking my brain about what had changed and trying various things like different versions of gcc and make I remembered that I added SET MAKESHELL=/bin/sh to config.sys. > I entered SET MAKESHELL= at the prompt did a make clean, make, make and the build finished error free. > /bin/sh is 663 bytes and dated 11-09-97 and is not on the path. ( I think it is from an old bash port) That's from Andrew Zabolotny's BASH port, and all it appears to be is a stub module which invokes bash.exe. > /usr/bin/sh is 163844 bytes and dated 02-01-02 and is on the path. (I think this is from Mr Sawataishi's bash port) No that's sh.exe from IlyaZ's PDKSH. I'm finding it increasingly frustrating the way success or failure of a build is due to the choice of a particular SHELL used. > Anyways I've changed the set MAKESHELL to /usr/bin/sh and the compile still ends with > emximp -o out/release/intl.a out/release/intl.def > emximp: String expected (line 2 of out/release/intl.def) > So I have to have MAKESHELL empty so make is using the shell specified in the makefile > # Use CMD.EXE as shell since its way faster > SHELL = $(COMSPEC) I'm confused by the experience you're having... You say it builds fine and then you list a number of problems your having, so I'm not sure if you built it easily once, but now it won't build because you can't recreate the required environment. If it does build now, can you tell me which Make and SHELL you are using and whether you need any specific environment variables? > Dave -- John **= Email 5 ==========================** Date: Sat, 22 Jun 2002 11:37:42 +0100 From: John Poltorak Subject: Make v3.79.1 and Gettext v0.11.2 When I try building Gettext v0.11.2 using Make v3.79.1 I get:- make: *** could not duplicate stdout . Stop. If anyone gets this error make sure you set EMXOPT in the environment. I've just set it to -h1024 and this error disappears. It wasn't set at all initially. -- John **= Email 6 ==========================** Date: Sat, 22 Jun 2002 11:40:57 -0400 From: Henry Sobotka Subject: Re: Re: Makedef.pl John Poltorak wrote: > > Here is a reply I got from the perl5-porters list about the absence of > 'malloc' in Perl 5.8.0. > > Can anyone help formulate a response? All I can say is that the Perl DLL used to export malloc, and what it's supposed to export depends on the symbols in malloc.obj (output of "emxexp malloc.obj"). Understanding the aliasing and New() Freespace() option requires reading the src, which I won't have time for before mid-July. h~ **= Email 7 ==========================** Date: Sat, 22 Jun 2002 14:07:44 +0100 From: John Poltorak Subject: Re: Makedef.pl Here is a reply I got from the perl5-porters list about the absence of 'malloc' in Perl 5.8.0. Can anyone help formulate a response? On Sat, Jun 22, 2002 at 12:14:45PM +0100, Nick Ing-Simmons wrote: > John Poltorak writes: > >This section has been removed from makedef.pl in 5.7.3:- > > > > > >my $CCTYPE; > > > >my %bincompat5005 = > > ( > .... > > Perl_malloc => "malloc", > > Perl_mfree => "free", > > Perl_realloc => "realloc", > > Perl_calloc => "calloc", > > ); > > > >my $bincompat5005 = join("|", keys %bincompat5005); > > > > > >Does anyone know why? > > Because 5.8 is pretty radically different from even 5.6 - if > (as is default) it is built with USE_PERLIO. So binary compatibility > with 5005 is not something we had the energy to attempt. > Thus the Perl_xxxx vs perl_xxxx aliasing at least is a pointless > extra complication. It is less clear that the Perl_xxxx vs xxxx > aliases should have gone, but they have because they were bundled > with the 5005 stuff (which was probably the wrong thing to do). > > > > >I get a number of tests failing now under OS/2 because I have > >'Perl_malloc' defined instead of 'malloc'. > > Do you know what is supposed to happen? Is perl supposed to "export" > Perl_malloc as malloc or vice-versa? > > The "right thing to do" is probably to arrange for the effect of the > removed chunk to be re-enabled (at least for OS/2) for the malloc > (i.e. non-prefixed) group. > > Or (perhaps even better) change the spots on the OS/2 port > which need malloc <=> Perl_malloc to use New() Safefree() directly > if that is the root of the problem? > > > > > > >Please can I have my 'malloc' back? > > That would seem to make sense - the question is how to do it. > > > > >Can I just add this section back in to see if the failing tests pass? > > You can try - it that works I would prefer that the functionality was re-added > explicitly with an explanation as to why it is there and what it does, > rather than leave misleading "bincompat5005" hunk in there. > > > -- > Nick Ing-Simmons > http://www.ni-s.u-net.com/ > -- John **= Email 8 ==========================** Date: Sat, 22 Jun 2002 14:55:32 +0100 From: John Poltorak Subject: Re: Gettext v0.11.2 On Wed, Jun 19, 2002 at 07:05:58PM -0500, paul-biz wrote: > On Wed, 19 Jun 2002 11:35:02 +0100, John Poltorak wrote: > > > > >There's a recent version of gettext here:- > > > >ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.11.2.tar.gz > > > >Has anyone tried building this? > > It "kinda" works for me using the "simple" way and gcc 3.0.3... I guess you must have iconv.a installed somewhere... If so, where did you get it, or is it part of gcc 3.0.3? > First > off I get some gawk errors which after I rerun make gets past (but > leaves some strange directories. Apparently gawk doesn't like the > parentheses in the commandline). Which AWK are you using? Maybe it is the SHELL causing problems... > After I try make again, it tells me > there is no rule to make intl.a .. I ignore it like the README.OS2 > says, and run make again. This time it compiles through, and lxlites > the DLL, but dies afterwards on trying to compile dir-list.c ... I'm > left with some intl*.* libraries in the output directory, but I don't > know if I should trust them since the make process never finished > completely :) > > In the "masochistic" mode (configure; make), after a lengthy configure > process (about 15 minutes on my poor 266mHz), make tells me I'm using > the wrong version of automake... doh! "require version 1.5, but have > 1.4-p5"... Have you had a chance to try it again? I would like to get a script together for 'masochistic' mode. > regards, > Paul > -- John **= Email 9 ==========================** Date: Sat, 22 Jun 2002 15:31:59 +0100 From: John Poltorak Subject: Re: libtool and -version-info On Fri, Jun 21, 2002 at 12:21:39AM +0200, Andreas Buening wrote: > John Poltorak wrote: > > [snip] > > > I would like to put together a LIBTOOL package, which is currently > > missing from UnixOS/2, but don't know anything about it. > > It's a set of (slow) shell scripts that is supposed to > handle building of static and dynamic libraries on all > platforms. In principle it should be possible to write > libtool.cmd in REXX that handles all necessary OS/2 stuff. I wouldn't think speed would be a key issue here. Would it be necessary to re-write it in REXX? I'd like to keep to as Unix-like environment as possible. The README actually specifically mentions OS/2 as a supported platform so it would be good to use the standard Unix tools. > > Can you tell me where I can find the most recent OS/2 version? > > I don't think there is a specific OS/2 version. Looking through Changelog.0 there are a couple of OS/2 specific additions by Jeff Freedman, a few years ago, but whether or not they are relevant or redundant nowadays I don't know. > The current > "official" libtool should be able to handle .o object files > and .a and .dll libraries. For gettext 0.10.39 I added some > stuff for .obj/.lib files. If you think it'll help you > I can put it together into one standalone libtool package. It sounds like something we need, especially for gettext, as well as the GNU Utils... > [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 10 ==========================** Date: Sat, 22 Jun 2002 15:44:34 +0900 From: Masaru Nomiya Subject: Re: Perl 5.8.0 Release Candidate 2 Hello, In the Message; Subject : Re: Perl 5.8.0 Release Candidate 2 Message-ID : <20020621205343.U91 at eyup.org> Date & Time: Fri, 21 Jun 2002 20:53:43 +0100 [John] == John Poltorak has written: John> Here's what I get after building and running t/harness:- John> Failed 13/722 test scripts, 98.20% okay. 31/64746 subtests failed, 99.95% okay. John> Failed Test Stat Wstat Total Fail Failed List of Failed John> ------------------------------------------------------------------------------- John> ../ext/DB_File/t/db-btree.t 0 15 ?? ?? % ?? John> ../ext/DB_File/t/db-hash.t 0 15 ?? ?? % ?? John> ../ext/DB_File/t/db-recno.t 0 15 ?? ?? % ?? John> ../lib/AnyDBM_File.t 0 15 12 12 100.00% 1-12 John> ../lib/ExtUtils/t/Mkbootstrap.t 1 256 18 1 5.56% 8 John> ../lib/ExtUtils/t/Packlist.t 1 256 34 1 2.94% 17 John> ../lib/ExtUtils/t/basic.t 1 256 17 1 5.88% 14 John> ../lib/Memoize/t/errors.t 0 15 11 8 72.73% 4-11 John> ../lib/Memoize/t/tie.t 0 15 ?? ?? % ?? John> lib/os2_process.t 2 512 227 2 0.88% 174 209 John> lib/os2_process_kid.t 227 2 0.88% 174 209 John> lib/rx_cmprt.t 255 65280 18 3 16.67% 16-18 John> run/fresh_perl.t 95 1 1.05% 91 John> 64 tests and 559 subtests skipped. Here is mine; Failed 11/722 test scripts, 98.48% okay. 31/64785 subtests failed, 99.95% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- ../ext/DB_File/t/db-btree.t 0 15 ?? ?? % ?? ../ext/DB_File/t/db-hash.t 0 15 ?? ?? % ?? ../ext/DB_File/t/db-recno.t 0 15 ?? ?? % ?? ../lib/AnyDBM_File.t 0 15 12 12 100.00% 1-12 ../lib/ExtUtils/t/basic.t 1 256 17 1 5.88% 14 ../lib/Memoize/t/errors.t 0 15 11 8 72.73% 4-11 ../lib/Memoize/t/tie.t 0 15 ?? ?? % ?? lib/os2_process.t 3 768 227 3 1.32% 90 174 209 lib/os2_process_kid.t 227 3 1.32% 90 174 209 lib/rx_cmprt.t 255 65280 18 3 16.67% 16-18 run/fresh_perl.t 95 1 1.05% 91 59 tests and 555 subtests skipped. Different ....? John> > See if you can be the first person to unravel the mystery of the John> > malloc vs. Perl_malloc problem. John> If this gets sorted out, I'd like to think that at least four of s John> the fail will disappear... As you might know, 'make' and 'make test' produces the msg; 06-22-2002 15:07:10 SYS2070 PID 5b78 TID 0001 Slot 00bc G:\TEMP\PERL-5.8.0-RC2\T\PERL.EXE DB_FILHA->PERLB12E.malloc 127 Regards, --- Masaru Nomiya mail-to: nomiya at ttmy.ne.jp "No Windows, no gains!" ..... "Why, I am wrong?" -- Bill -- **= Email 11 ==========================** Date: Sat, 22 Jun 2002 15:52:24 +0100 From: John Poltorak Subject: Re: Gettext v0.11.2 On Sat, Jun 22, 2002 at 07:34:58AM -0800, Dave and Natalie wrote: > On Sat, 22 Jun 2002 10:44:03 +0100, John Poltorak wrote: > > >> So I have to have MAKESHELL empty so make is using the shell specified in the makefile > >> # Use CMD.EXE as shell since its way faster > >> SHELL = $(COMSPEC) > > > >I'm confused by the experience you're having... You say it builds fine and > >then you list a number of problems your having, so I'm not sure if you > >built it easily once, but now it won't build because you can't recreate > >the required environment. > > > >If it does build now, can you tell me which Make and SHELL you are using > >and whether you need any specific environment variables? > > Sorry for being so confusing. It builds fine here if I use cmd.exe as the shell. > According to the readme having to run make twice is due to a bug in make. Though every make I tried acts the same. I guess I just need to put Make twice into any build script I come up with... BTW where did you get iconv.a ? It doesn't say this is required, but I seem to need it. > Dave -- John **= Email 12 ==========================** Date: Sat, 22 Jun 2002 17:06:26 -0800 From: "Dave and Natalie" Subject: Re: Gettext v0.11.2 On Sat, 22 Jun 2002 20:53:26 +0100, John Poltorak wrote: >> Dave >> ps now DLing libiconv-1.8 to try > > >I just grabbed it, and it does appear to support OS/2, but it didn't build >for me because I don't have a libcharset.h. libiconv-1.8 has a directory called libcharset. I ran configure --prefix=/usr, make, make install in this directory and now have /usr/lib/charset.a /usr/lib/charset.dll and /usr/include/libcharset.h and a few other related files. Dave **= Email 13 ==========================** Date: Sat, 22 Jun 2002 17:10:22 -0800 From: "Dave and Natalie" Subject: Re: Gettext v0.11.2 On Sat, 22 Jun 2002 18:46:27 +0200, Andreas Buening wrote: > >You need that small iconv library for OS/2 (let's call >it iconv/2) but don't ask me where to find it. >GNU iconv (which you can get from ftp.gnu.org) doesn't >know anything about OS/2 charset names. Therefore it's >most likely completely useless for that purpose. Are you sure about this? I see a bunch of headers in lib like this .. cp1250.h cp1251.h cp1252.h cp1253.h cp1254.h cp1255.h cp1256.h cp1257.h cp1258.h cp437.h cp737.h cp775.h cp850.h cp852.h cp853.h cp855.h cp856.h .. These look familiar Dave **= Email 14 ==========================** Date: Sat, 22 Jun 2002 18:46:27 +0200 From: Andreas Buening Subject: Re: Gettext v0.11.2 John Poltorak wrote: [gettext] > BTW where did you get iconv.a ? > > It doesn't say this is required, but I seem to need it. You need that small iconv library for OS/2 (let's call it iconv/2) but don't ask me where to find it. GNU iconv (which you can get from ftp.gnu.org) doesn't know anything about OS/2 charset names. Therefore it's most likely completely useless for that purpose. 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. **= Email 15 ==========================** Date: Sat, 22 Jun 2002 19:04:58 +0100 From: John Poltorak Subject: Re: Gettext v0.11.2 On Sat, Jun 22, 2002 at 06:46:27PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > [gettext] > > > BTW where did you get iconv.a ? > > > > It doesn't say this is required, but I seem to need it. > > You need that small iconv library for OS/2 (let's call > it iconv/2) but don't ask me where to find it. I think we spent weeks going round this subject some time ago. Does this contain what is required? :- http://195.131.97.220:9000/zap/os2/iconv%2d0.1.0.zip It contains iconv.{c,h} and makefile. > 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 16 ==========================** Date: Sat, 22 Jun 2002 20:53:26 +0100 From: John Poltorak Subject: Re: Gettext v0.11.2 On Sat, Jun 22, 2002 at 07:47:46AM -0800, Dave and Natalie wrote: > On Sat, 22 Jun 2002 14:55:32 +0100, John Poltorak wrote: > > >I guess you must have iconv.a installed somewhere... If so, where did you > >get it, or is it part of gcc 3.0.3? > > I personally got libiconv from ftp.gnu.org/gnu/libiconv. I'm using version 1.7 which IRC built quite easily using the included makefile.os2. > I also tried going the configure route and it kinda worked. Ended up with static linking and a.out executables. Most likely I should of ran autoconf. > Dave > ps now DLing libiconv-1.8 to try I just grabbed it, and it does appear to support OS/2, but it didn't build for me because I don't have a libcharset.h. Any idea where to get one? Maybe one of our Japanese friends on the list can help... There is a Web page here:- http://www.sra.co.jp/people/akira/os2/libiconv/index.html I wonder if it will build using configure... -- John