From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sun, 7 Jul 2002 04:31:36 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 265 ************************************************** Saturday 06 July 2002 Number 265 ************************************************** Subjects for today 1 config.site : Dave and Natalie" 2 Re: Make 3.79.1 & GETTEXT problem : John Poltorak 3 Re: GREP - LDFLAGS : John Poltorak 4 Re: Gettext / libiconv : John Poltorak 5 Re: Gettext / libiconv : Thomas Hoffmann 6 Re: config.site : John Poltorak 7 Re: Baseline toolset : John Poltorak 8 Re: Gettext / libiconv : Andreas Buening 9 Re: config.site : Andreas Buening **= Email 1 ==========================** Date: Sun, 07 Jul 2002 08:06:36 -0800 From: "Dave and Natalie" Subject: config.site On Thu, 04 Jul 2002 19:40:45 -0800, Dave and Natalie wrote: >>I'd like to have a look at it. > >Sure here it is. Change Paths as needed. Change or remove the -march=k2 flag. Its also possible that something in my config.sys helps. >Most all configure scripts run fine here without autoconf A couple of other points. This config.site works best with gcc 2.95.3 or newer. This most likely due to the -Zexe flag and configure scripts that find a zero length executable with gcc 2.8. Also these lines in my config.sys should most likely be in the config.site SET AWKPATH=e:/emx/share/awk; SET AWK=e:/emx/bin/gawk.exe SET AC_PREFIX=e:/emx SET INTLBISON=e:/emx/bin/bison.exe SET M4=e:/emx/bin/m4.exe And also I'd like to thank Mr Sawataishi who I got the bulk of this from and various members of this list who also supplied parts of it Dave **= Email 2 ==========================** Date: Sun, 7 Jul 2002 08:52:16 +0100 From: John Poltorak Subject: Re: Make 3.79.1 & GETTEXT problem On Sat, Jul 06, 2002 at 10:59:32PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > > > There seems to be some incompatibilty between Make 3.79.1 and Gettext 0.11.2. > > > > I get this error:- > > > > [C:\unixos2\workdir\gettext-0.11.2\os2]make > > Makefile:239: warning: ignoring old commands for target > > `emx/doc/gettext-AM_INIT_AUTOMAKE(gettext,' > > gawk -f configure.awk -v PACKAGE=gettext -v > > VERSION=AM_INIT_AUTOMAKE(gettext, 0.11.2) ../config.h.in >config.h > > gawk: configure.awk:70: fatal: cannot open file `0.11.2)' for reading (No > > such file or directory) > > make: *** [config.h] Error 2 > > > > It looks as though VERSION can not be resolved from this line in the > > Makefile:- > > > > # Fetch version number from configure.in > > VERSION = $(shell sed ../configure.in -ne "/AM_INIT_AUTOMAKE/{" -e "s/.*(gettext, *\\(.*\\))/\\1/" -e "p" -e "}") > > The error disappears on reverting to Make 3.76.1. > If you look at that Makefile: On the one hand there is > SHELL=$(COMSPEC) > which means cmd is explicitely requested, on the other hand > the Makefile uses Unix sh syntax. This is something that > definitely can not work (unless you use a make program > that is as broken as that Makefile). Are you saying Make 3.76.1 is broken? Maybe this Makefile relies on a broken feature of Make... What would suggest to fix things? There is clearly something wrong with the Makefile because Make needs to be run twice. I would prefer not to use the Makefile at all and use the 'masochist' method of building gettext, but I don't know anyone who has managed that so far. > 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 3 ==========================** Date: Sun, 7 Jul 2002 09:38:21 +0100 From: John Poltorak Subject: Re: GREP - LDFLAGS On Sat, Jul 06, 2002 at 10:59:14PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > > > On Thu, Jul 04, 2002 at 10:16:05PM +0200, Andreas Buening wrote: > > > > This is much more promising, I get a new configure script now. > > > > Does the same also apply to GNU textutils ? > > I guess, no. Look at the INSTALL.OS2 file which steps were > required to build the package from original sources. I tried but similar problems to those initially experienced with GREP, ie no new configure script. > > Unfortunately I get a few errors which are probably GETTEXT related:- > > [errors] > > > make[1]: *** [libintl.a] Error 1 > > make[1]: Leaving directory `C:/unixos2/workdir/grep-2.4.2/intl' > > make: *** [install-recursive] Error 1 > > I don't understand how you can get this error. However, here > you're trying to use the internal gettext which you shouldn't. > > > > ./configure --without-included-regex --without-included-gettext > > If you've really used "--without-included-gettext" then something > has gone wrong. You've replaced m4/progtest.m4, haven't you? > What output did you get from configure below that line: > > checking whether NLS is requested... yes > ??? configure:6183: checking whether NLS is requested configure:6192: result: yes configure:6203: checking whether included gettext is requested configure:6213: result: no I always thought that make would attempt to include INTL as one of the directories to process irrespective of the configure option to use internal or external gettext. It always seemed like unnecessary processing to me but I couldn't see any way round it. I've just tried compiling again, this time using '--with-included-gettext' and get the same error:- rm -f libintl.a ar cru libintl.a intl-compat.o bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o ar: intl-compat.o: No such file or directory make[1]: *** [libintl.a] Error 1 make[1]: Leaving directory `/unixos2/workdir/grep-2.4.2/intl' make: *** [install-recursive] Error 1 > 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 4 ==========================** Date: Sun, 7 Jul 2002 10:57:29 +0100 From: John Poltorak Subject: Re: Gettext / libiconv On Sun, Jul 07, 2002 at 11:12:28AM +0100, Thomas Hoffmann wrote: > Please: > in the case of Make work toghether with Andreas Buening to iron this > gettext issue out (a bogus Makefile, as I read some minutes ago), > instead of silently to make an assumption about the "best make". It > would be wonderful if there would be a comparable situation WRT shells: > one active and responsive maintainer ... 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... > John Poltorak schrieb: > > > > > > That is very unfortunate because the selection of the correct make is a > > real quagmire with so many different builds available. I was hoping > > v3.79.1 would put an end to all that. > > > > -- > Thomas Hoffmann Telephone: > 49-351-4598831 > thoffman at zappa.sax.de Dresden, > Germany > > ..sig under construction ... -- John **= Email 5 ==========================** Date: Sun, 07 Jul 2002 11:12:28 +0100 From: Thomas Hoffmann Subject: Re: Gettext / libiconv Please: in the case of Make work toghether with Andreas Buening to iron this gettext issue out (a bogus Makefile, as I read some minutes ago), instead of silently to make an assumption about the "best make". It would be wonderful if there would be a comparable situation WRT shells: one active and responsive maintainer ... John Poltorak schrieb: > > > That is very unfortunate because the selection of the correct make is a > real quagmire with so many different builds available. I was hoping > v3.79.1 would put an end to all that. > -- Thomas Hoffmann Telephone: 49-351-4598831 thoffman at zappa.sax.de Dresden, Germany ..sig under construction ... **= Email 6 ==========================** Date: Sun, 7 Jul 2002 16:48:06 +0100 From: John Poltorak Subject: Re: config.site On Sun, Jul 07, 2002 at 08:06:36AM -0800, Dave and Natalie wrote: > On Thu, 04 Jul 2002 19:40:45 -0800, Dave and Natalie wrote: > > >>I'd like to have a look at it. > > > >Sure here it is. Change Paths as needed. Change or remove the -march=k2 flag. Its also possible that something in my config.sys helps. > >Most all configure scripts run fine here without autoconf > > A couple of other points. This config.site works best with gcc 2.95.3 or newer. This most likely due to the -Zexe flag and configure scripts that find a zero length executable with gcc 2.8. > Also these lines in my config.sys should most likely be in the config.site > SET AWKPATH=e:/emx/share/awk; I have never heard of AWKPATH. What is the default setting, and what is it used for? > SET AC_PREFIX=e:/emx Does this provide anything? I though it was used by autoconf so wouldn't be used by configure... > And also I'd like to thank > Mr Sawataishi who I got the bulk of this from and various members of this list who also supplied parts of it Yeah, Mr Sawataishi does a great, although he seems to have been very quiet for a while. > Dave > -- John **= Email 7 ==========================** Date: Sun, 7 Jul 2002 20:35:03 +0100 From: John Poltorak Subject: Re: Baseline toolset On Sat, Jul 06, 2002 at 09:03:37AM +0100, John Poltorak wrote: > On Fri, Jul 05, 2002 at 07:20:41PM +0100, John Poltorak wrote: > > It seems that many build errors occur because of differences in people's > > installed toolsets. > > > > I thought it might be useful to establish a baseline for a standard > > toolset and progress from there in small steps. To begin with I would > > suggest:- > > SED http://hobbes.nmsu.edu/pub/os2/dev/util/sed302.zip When did this disappear? -- John **= Email 8 ==========================** Date: Sun, 07 Jul 2002 23:01:15 +0200 From: Andreas Buening Subject: Re: Gettext / libiconv John Poltorak wrote: > > On Sun, Jul 07, 2002 at 11:12:28AM +0100, Thomas Hoffmann wrote: > > Please: > > in the case of Make work toghether with Andreas Buening to iron this > > gettext issue out (a bogus Makefile, as I read some minutes ago), > > instead of silently to make an assumption about the "best make". It > > would be wonderful if there would be a comparable situation WRT shells: > > one active and responsive maintainer ... > > 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. [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. **= Email 9 ==========================** Date: Sun, 07 Jul 2002 23:01:24 +0200 From: Andreas Buening Subject: Re: config.site John Poltorak wrote: > > On Sun, Jul 07, 2002 at 08:06:36AM -0800, Dave and Natalie wrote: [snip] > > SET AWKPATH=e:/emx/share/awk; > > I have never heard of AWKPATH. What is the default setting "" > , and what > is it used for? It's the search path for gawk (library) files. The standard ones are hardcoded in $prefix/share/awk. [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.