Date: Wed, 28 Apr 2004 00:04:18 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 362 ************************************************** Tuesday 27 April 2004 Number 362 ************************************************** Subjects for today 1 Re: ld: unrecognised option `-O' : Henry Sobotka 2 Re: ld: unrecognised option `-O' : Stefan.Neis at t-online.de 3 Installing emTeX : John Poltorak 4 Re: ld: unrecognised option `-O' : John Poltorak 5 DLL for GNU text utils : John Poltorak 6 The system cannot find the command process in the path : John Poltorak 7 Perl based configure script : John Poltorak 8 Re: Perl based configure script : Sebastian Wittmeier" 9 Re: Perl based configure script : John Poltorak 10 eval : John Poltorak 11 Re: Installing emTeX : Stefan.Neis at t-online.de 12 Re: ld: unrecognised option `-O' : Stefan.Neis at t-online.de 13 Re: eval : Stefan.Neis at t-online.de 14 Re: Installing emTeX : John Poltorak 15 Re: Installing emTeX : Stefan.Neis at t-online.de 16 Re: TeX : Mentore Siesto 17 AM_GNU_GETTEXT not found in library : John Poltorak 18 Re: TeX : John Poltorak 19 Re: AM_GNU_GETTEXT not found in library : John Poltorak 20 Re: AM_GNU_GETTEXT not found in library : Thomas Dickey 21 Re: AM_GNU_GETTEXT not found in library : Thomas Dickey **= Email 1 ==========================** Date: Mon, 26 Apr 2004 09:54:31 -0400 From: Henry Sobotka Subject: Re: ld: unrecognised option `-O' John Poltorak wrote: > > I have no idea why ld is getting invoked with the '-O' option but clearly > it appears as if it is. This is an error msg I get when trying to build > GNU ed:- > > emxomfar cru libed.a getopt.obj getopt1.obj regex.obj > echo libed.a > libed.a > gcc -Zcrtdll -Zmt -s -Zlinker /exepack:2 -Zlinker /pmtype:vio -o ed buf.obj glbl.obj io.obj main.obj re.obj signal.obj sub.obj undo.obj version.obj libed.a > ld: unrecognized option `-O' > > I don't see any reference to '-O'. Your linkage command is missing -Zomf. h~ **= Email 2 ==========================** Date: Mon, 26 Apr 2004 15:43:55 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: ld: unrecognised option `-O' John Poltorak schrieb: > gcc -Zcrtdll -Zmt -s -Zlinker /exepack:2 -Zlinker > /pmtype:vio -o ed buf.obj glbl.obj io.obj main.obj re.obj > signal.obj sub.obj undo.obj version.obj libed.a > ld: unrecognized option `-O' > > I don't see any reference to '-O'. Nor do I, but you're mixing OMF-mode (all the object files) and a.out mode (no -Zomf flag) yet again, so ld is probably getting rather confused... Regards, Stefan **= Email 3 ==========================** Date: Mon, 26 Apr 2004 17:11:26 +0100 From: John Poltorak Subject: Installing emTeX Having read through the INSTALL.ENG doc which comes with emTeX I've put together this batch file which should be able to install emTeX assuming that all the required files from here:- http://www.tug.org/tex-archive/systems/os2/emtex/ are in the current directory. Can anyone point out any flaws in this file:- ? set path=\emtex\bin;%path% set emtexdir=\emtex rem ------------------------------------------ rem FIRST rem ------------------------------------------ unzip first -d / rem ------------------------------------------ rem TeX Compiler rem ------------------------------------------ unzip tex4b -d / unzip l2input -d / unzip latex209 -d / unzip fontltx -d / setlocal cd \emtex\btexfmts makefmt 386 plain US makefmt 386 latex2e US 8bit -b \emtex\bin\latex2e cd \emtex\dist\latex\packages\tools latex2e tools.ins copy *.tex \emtex\texinput\latex2e copy *.sty \emtex\texinput\latex2e endlocal unzip texware -d / rem ------------------------------------------ rem METAFONT rem ------------------------------------------ unzip mf4b -d / unzip mfjob12d -d / unzip fontcm -d / unzip fontec -d / unzip fontltx -d / unzip fontams -d / unzip fontemsy -d / setlocal cd \emtex\bmfbases makebas 386 plain endlocal rem ------------------------------------------ rem print drivers, screen previewers, fonts rem ------------------------------------------ md \texfonts copy bj_base.fli \texfonts copy dj_base.fli \texfonts copy fax_base.fli \texfonts copy fx_base.fli \texfonts copy ito_base.fli \texfonts copy ljh_base.fli \texfonts copy lj_base.fli \texfonts copy p6h_base.fli \texfonts copy p6l_base.fli \texfonts copy p6m_base.fli \texfonts copy qj_base.fli \texfonts copy sty_base.fli \texfonts rem ------------------------------------------ rem MakeIndex rem ------------------------------------------ unzip makeindx -d / rem ------------------------------------------ rem BibTeX rem ------------------------------------------ unzip bibtex4b -d / rem ------------------------------------------ rem TeXcad rem ------------------------------------------ unzip makeindx -d / rem ------------------------------------------ rem dvispell rem ------------------------------------------ unzip dvisp10b -d / setlocal dvisprep \emtex\data\plain.dsi endlocal rem ------------------------------------------ rem PiCTeX rem ------------------------------------------ unzip pictex -d / rem ------------------------------------------ rem WEB rem ------------------------------------------ unzip web -d / This doesn't work, BTW. It ends with some indecipherable error msg here:- setlocal cd \emtex\btexfmts makefmt 386 plain US makefmt -- Version 1.0c -- Copyright (c) 1995-1997 by Eberhard Mattes This is emTeX (tex386), Version 3.14159 [4b] (INITEX) **plain.ini \dump (plain.ini (/emtex/texinput/etc/plain.tex Preloading the plain format: codes, registers, parameters, fonts, ! Font \tenrm=cmr10 not loadable: Metric (TFM) file not found. \font l.396 \font \preloaded=cmr9 ? -- John **= Email 4 ==========================** Date: Mon, 26 Apr 2004 17:18:50 +0100 From: John Poltorak Subject: Re: ld: unrecognised option `-O' On Mon, Apr 26, 2004 at 03:43:55PM +0200, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > > gcc -Zcrtdll -Zmt -s -Zlinker /exepack:2 -Zlinker > > /pmtype:vio -o ed buf.obj glbl.obj io.obj main.obj re.obj > > signal.obj sub.obj undo.obj version.obj libed.a > > ld: unrecognized option `-O' > > > > I don't see any reference to '-O'. > > Nor do I, but you're mixing OMF-mode (all > the object files) and a.out mode (no -Zomf > flag) yet again, so ld is probably getting > rather confused... Do I need to include -Zomf in CFLAGS *and* LDFLAGS ? Adding -Zomf did sort the problem out, but I'm sure what the correct solution should be. This is what the relevant line in Makefile.in had:- ed: $(OBJECTS) libed.a $(CC) $(LDFLAGS) -o ed$X $(OBJECTS) libed.a $(LIBS) -Zomf would be in CFLAGS, so how should this be changed? ....adding $(CFLAGS) to the command line?.... > Regards, > Stefan -- John **= Email 5 ==========================** Date: Mon, 26 Apr 2004 19:02:15 +0100 From: John Poltorak Subject: DLL for GNU text utils Whilst building the GNU text utils a static lib libtu.a is built. How would I go about creating a DLL instead? Would this require libtool? -- John **= Email 6 ==========================** Date: Mon, 26 Apr 2004 21:15:05 +0100 From: John Poltorak Subject: The system cannot find the command process in the path Here's another one for the FAQ:- The system cannot find the command process in the path. This sometimes arises when MAKESHELL is not set prior to running Make. If it does occur set MAKESHELL=/bin/sh. -- John **= Email 7 ==========================** Date: Mon, 26 Apr 2004 21:43:06 +0100 From: John Poltorak Subject: Perl based configure script Looking at the latest version of NETPBM:- http://easynews.dl.sourceforge.net/sourceforge/netpbm/netpbm-10.18.12.tgz I see that it a has a perl based configure script which isn't smart enough to recognise OS/2. The platform supported include:- "GNU", "SOLARIS", "HP-UX", "AIX", "TRU64", "IRIX", "WINDOWS", "BEOS", "NETBSD", "OPENBSD", "FREEBSD", "UNIXWARE", "SCO", "DARWIN", "AMIGA", "NONE" Given that OS/2 works reasonablt well with a number of GNU build scripts I wonder if it would be possible to get OS/2 to pose as GNU... How would I do that? -- John **= Email 8 ==========================** Date: Mon, 26 Apr 2004 23:22:56 +0200 (CEST) From: "Sebastian Wittmeier" Subject: Re: Perl based configure script /doc/INSTALL >If you figure out how to install on other platforms, contact the >Netpbm maintainer to have the 'configure' program or these >instructions improved for the next person. the configure.pl script is interactive, so you can just enter "gnu", when it asks for the OS otherwise form lines 156-176 has computePlatformDefault($) add the lines } elsif ($OSNAME eq "os2") { $$defaultP = "gnu"; Sebastian **= Email 9 ==========================** Date: Mon, 26 Apr 2004 22:54:03 +0100 From: John Poltorak Subject: Re: Perl based configure script On Mon, Apr 26, 2004 at 11:22:56PM +0200, Sebastian Wittmeier wrote: > /doc/INSTALL > >If you figure out how to install on other platforms, contact the > >Netpbm maintainer to have the 'configure' program or these > >instructions improved for the next person. > > the configure.pl script is interactive, so you can just enter "gnu", > when it asks for the OS > > otherwise form lines 156-176 has computePlatformDefault($) > add the lines > > } elsif ($OSNAME eq "os2") { > $$defaultP = "gnu"; I guess it isn't all that useful anyway - you just end up with a Makefile that probably needs to be edited. Maybe someone can just fill in the missing bits here to get an uptodate NETPBM :- ;-) DEFAULT_TARGET = nonmerge BUILD_FIASCO = Y CC = cc LD = $(CC) LINKERISCOMPILER=Y LINKER_CAN_DO_EXPLICIT_LIBRARY=N CC_FOR_BUILD = $(CC) LD_FOR_BUILD = $(LD) INSTALL = $(SRCDIR)/buildtools/install.sh STRIPFLAG = -s SYMLINK = ln -s MANPAGE_FORMAT = nroff AR = ar RANLIB = ranlib LEX = flex EXE = .exe LDFLAGS = LDSHLIB = -shared -Wl,-soname,$(SONAME) LDRELOC = NONE CFLAGS_SHLIB = SHLIB_CLIB = -lc SHLIB_CLIB = NEED_RUNTIME_PATH = N RPATHOPTNAME = -rpath NETPBMLIB_RUNTIME_PATH = TIFFLIB = NONE TIFFHDR_DIR = TIFFLIB_LDFLAGS = JPEGLIB = NONE JPEGHDR_DIR = PNGLIB = NONE PNGHDR_DIR = PNGVER = ZLIB = NONE ZHDR_DIR = JBIGLIB = $(BUILDDIR)/converter/other/jbig/libjbig.a JBIGHDR_DIR = $(SRCDIR)/converter/other/jbig JASPERLIB = $(INTERNAL_JASPERLIB) JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR) URTLIB = $(BUILDDIR)/urt/librle.a URTHDR_DIR = $(SRCDIR)/urt LINUXSVGALIB = NONE LINUXSVGAHDR_DIR = OMIT_NETWORK = NETWORKLD = VMS = PKGDIR_DEFAULT = /tmp/netpbm INSTALL_PERM_BIN = 755 # u=rwx,go=rx INSTALL_PERM_LIBD = 755 # u=rwx,go=rx INSTALL_PERM_LIBS = 644 # u=rw,go=r INSTALL_PERM_HDR = 644 # u=rw,go=r INSTALL_PERM_MAN = 644 # u=rw,go=r INSTALL_PERM_DATA = 644 # u=rw,go=r SUFFIXMANUALS1 = 1 SUFFIXMANUALS3 = 3 SUFFIXMANUALS5 = 5 NETPBMLIBTYPE = unixshared NETPBMLIBSUFFIX = so STATICLIB_TOO = y STATICLIBSUFFIX = a SHLIBPREFIXLIST = lib NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST)) DLLVER = NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/ DEFAULT_TARGET = nonmerge NETPBMLIBTYPE=dll NETPBMLIBSUFFIX=dll SHLIBPREFIXLIST=cyg lib STATICLIB_TOO=y CC = gcc CFLAGS = -O3 -ffast-math -pedantic -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings EXE = .exe OMIT_NETWORK = y SYMLINK = ln DLLVER=$(NETPBM_MAJOR_RELEASE) LDSHLIB = -shared -Wl,--image-base=0x10000000 -Wl,--enable-auto-import TIFFLIB = libtiff.so JPEGLIB = libjpeg.so PNGLIB = libpng.so ZLIB = libz.so NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/ > Sebastian -- John **= Email 10 ==========================** Date: Tue, 27 Apr 2004 09:47:24 +0100 From: John Poltorak Subject: eval If anyone is familiar with the use of eval in shell scripts, could you explain what is meant by eval F$i="missing" here :- for i in more less cmp cat gawk do eval F$i="missing" for j in $DEFPATH do if test -f $j/$i then eval F$i=$j/$i fi done done Also is $DEFPATH an expected variable in Unix? The configure script in MAN uses it but no value is assigned to it, which makes me believe it must already be in the environment. MAN is available here in case anyone wants to have a look at it:- ftp://ftp.win.tue.nl/pub/linux-local/utils/man/man-1.5k.tar.gz -- John **= Email 11 ==========================** Date: Tue, 27 Apr 2004 11:13:06 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: Installing emTeX John Poltorak schrieb: > Can anyone point out any flaws in this file:- ? > > > set path=\emtex\bin;%path% > set emtexdir=\emtex > rem ------------------------------------------ > rem FIRST > rem ------------------------------------------ > unzip first -d / > rem ------------------------------------------ > rem TeX Compiler > rem ------------------------------------------ > unzip tex4b -d / > unzip l2input -d / > unzip latex209 -d / > unzip fontltx -d / > setlocal > cd \emtex\btexfmts > makefmt 386 plain US According to your error message below, this seems to require some of the metafont stuff below to be already installed, so do that first! > makefmt 386 latex2e US 8bit -b \emtex\bin\latex2e > cd \emtex\dist\latex\packages\tools > latex2e tools.ins > copy *.tex \emtex\texinput\latex2e > copy *.sty \emtex\texinput\latex2e > endlocal > unzip texware -d / > rem ------------------------------------------ > rem METAFONT > rem ------------------------------------------ > unzip mf4b -d / > unzip mfjob12d -d / > unzip fontcm -d / > unzip fontec -d / > unzip fontltx -d / > unzip fontams -d / > unzip fontemsy -d / > setlocal > cd \emtex\bmfbases > makebas 386 plain > endlocal > rem ------------------------------------------ > rem print drivers, screen previewers, fonts > rem ------------------------------------------ > md \texfonts > copy bj_base.fli \texfonts > copy dj_base.fli \texfonts > copy fax_base.fli \texfonts > copy fx_base.fli \texfonts > copy ito_base.fli \texfonts > copy ljh_base.fli \texfonts > copy lj_base.fli \texfonts > copy p6h_base.fli \texfonts > copy p6l_base.fli \texfonts > copy p6m_base.fli \texfonts > copy qj_base.fli \texfonts > copy sty_base.fli \texfonts No, you don't want all those fonts installed. They really are huge, so there's no point in installing versions for 12 different printers. IIRC, there's even an install program (and a different one for emtexTDS), why don't you simply use that? Regards, Stefan **= Email 12 ==========================** Date: Tue, 27 Apr 2004 11:14:02 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: ld: unrecognised option `-O' John Poltorak schrieb: > Do I need to include -Zomf in CFLAGS *and* LDFLAGS ? Yes. Either add it to both or to none of them. Stefan **= Email 13 ==========================** Date: Tue, 27 Apr 2004 11:29:01 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: eval John Poltorak schrieb: > If anyone is familiar with the use of eval in shell > scripts, could you > explain what is meant by eval F$i="missing" here :- > > > > for i in more less cmp cat gawk > do > eval F$i="missing" It's initializing the variables Fmore, Fless, Fcmp, Fcat, Fgawk with "missing". > for j in $DEFPATH > do > if test -f $j/$i > then > eval F$i=$j/$i .... and here it's setting F{programname} to the correct path. > fi > done > done > > > > Also is $DEFPATH an expected variable in > Unix? AFAIK, no. > The configure script in MAN > uses it but no value is assigned to it, Quite strange, in deed. Regards, Stefan **= Email 14 ==========================** Date: Tue, 27 Apr 2004 10:36:03 +0100 From: John Poltorak Subject: Re: Installing emTeX On Tue, Apr 27, 2004 at 11:13:06AM +0200, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > > Can anyone point out any flaws in this file:- ? > > rem ------------------------------------------ > > rem TeX Compiler > > rem ------------------------------------------ > > unzip tex4b -d / > > unzip l2input -d / > > unzip latex209 -d / > > unzip fontltx -d / > > setlocal > > cd \emtex\btexfmts > > makefmt 386 plain US > > According to your error message below, this > seems to require some of the metafont stuff > below to be already installed, so do that > first! I was simply trying to follow the instructions in the install docs which list things in this order:- - Installing emTeX 1. First things first 2. Adding support for 32-bit programs 3. Installing the TeX compiler 4. Installing METAFONT 5. Installing the printer drivers, screen previewers, and fonts 6. Installing MakeIndex 7. Installing BibTeX 8. Installing TeXcad 9. Installing dvispell 10. Installing PiCTeX 11. Installing WEB > IIRC, there's even an install program > (and a different one for emtexTDS), why don't > you simply use that? It wasn't clear to me whether emTeXTDS was a complete replacement for emTeX or whether it required parts of the original distribution. > Regards, > Stefan -- John **= Email 15 ==========================** Date: Tue, 27 Apr 2004 11:56:16 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: Installing emTeX John Poltorak schrieb: > I was simply trying to follow the > instructions in the > install docs which > list things in this order:- > > - Installing emTeX > 1. First things first > 2. Adding support for 32-bit programs > 3. Installing the TeX compiler > 4. Installing METAFONT Hm, I might have been wrong. Anyway, you apparently got a complaint that some "tfm" files (containing information on size of individual letters and certain letter combinations) are missing, I thought those would be created by METAFONT, but I'm not really sure about it. Maybe there's simply an environment variable that's missing.... > It wasn't clear to me whether emTeXTDS was a complete > replacement > for emTeX or whether it required parts of the original > distribution. IIRC, it gives some details on which zip files of the original emTeX distribution are required. Regards, Stefan **= Email 16 ==========================** Date: Tue, 27 Apr 2004 12:38:33 +0200 (CEST) From: Mentore Siesto Subject: Re: TeX On Mon, 26 Apr 2004, John Poltorak wrote: JP >On Mon, Apr 26, 2004 at 11:56:31AM +0100, Pete Milne wrote: JP > JP >> >Are you familiar with emTeX? I've dabbled a few times but haven't really JP >> >known what I was doing with it. JP >> > JP >> >I get the feeling that TeX normally comes as a standard package on most JP >> >Unix distros so it might be an idea to put together a TeX package for JP >> >UnixOS/2... JP >> > JP >> I use EmTeX a lot to produce teaching materials. I use the original JP >> version with the non-standard directory structure and have AMSTeX and JP >> other packages installed and working ok. However, I can't produce pdf JP >> output until I change to a TDS-compliant version, which I intend to do JP >> this summer. (I can't risk disruption at the moment!) I will probably JP >> switch to VTeX, which is a free-for-personal-use commercial JP >> distribution, which probably makes it unsuitable for UnixOS/2. EmTeXTDS JP >> might be the way to go for UnixOS/2. JP >> JP >> TeX may seem a bit arcane in this word-processing age, but within the JP >> scientific community it's unequalled! JP > JP >I've installed emTeX a couple of times and run a few samples through it JP >but have never been confident that I had installed it correctly, although JP >was quite impressed what could be done with a free program like this. I'd JP >like to try and create a simple install process rather than having to JP >follow the installation guide, which to my mind involves some JP >pre-requisite knowledge of how TeX itself works... JP > JP >I've just downloaded it and will try and put together an install script JP >although I'm not sure where emTeXTDS requires the original archives to JP >install from. IIRC, I just followed the online instructions, after a little organization. This was with the non TDS version. I just downloaded the TDS version of emTeX: IMHO it seems that this is the correct version to use in UnixOS2, since it follows the TUG draft. As for VTeX, I don't think we can use it for UnixOS2, due to copyright issues on commercial use. By the way, actually I use TeX (VTeX) to produce some material for my Engineering course, and used emTeX with two big books (about 320 pages). -- Mentore Siesto Team OS/2 Italia **= Email 17 ==========================** Date: Tue, 27 Apr 2004 11:44:08 +0100 From: John Poltorak Subject: AM_GNU_GETTEXT not found in library Rebuilding aclocal.m4 doesn't work when running aclocal from automake v1.8.3 (no other version has been tried yet) because:- macro `AM_GNU_GETTEXT' not found in the library How do I find what is causing this problem? The configure.ac file contains:- AM_GNU_GETTEXT Where whould I expect to find this macro? -- John **= Email 18 ==========================** Date: Tue, 27 Apr 2004 12:18:18 +0100 From: John Poltorak Subject: Re: TeX On Tue, Apr 27, 2004 at 12:38:33PM +0200, Mentore Siesto wrote: > JP >I've just downloaded it and will try and put together an install script > JP >although I'm not sure where emTeXTDS requires the original archives to > JP >install from. > > IIRC, I just followed the online instructions, after a little > organization. This was with the non TDS version. I followed the instructions in the install doc, but it looks like I failed... > I just downloaded the TDS version of emTeX: IMHO it seems that this is the > correct version to use in UnixOS2, since it follows the TUG draft. Yes, I'll have to try the TDS version. > By the way, actually I use TeX (VTeX) to produce some material for my > Engineering course, and used emTeX with two big books (about 320 pages). I think more people would use TeX on OS/2 if it was easy to install. > -- > Mentore Siesto > Team OS/2 Italia -- John **= Email 19 ==========================** Date: Tue, 27 Apr 2004 12:28:11 +0100 From: John Poltorak Subject: Re: AM_GNU_GETTEXT not found in library On Tue, Apr 27, 2004 at 11:44:08AM +0100, John Poltorak wrote: > The configure.ac file contains:- > > AM_GNU_GETTEXT > > > Where whould I expect to find this macro? Is this something which GETTEXT would install into ACLOCAL when it is installed? -- John **= Email 20 ==========================** Date: Tue, 27 Apr 2004 07:57:46 -0400 (EDT) From: Thomas Dickey Subject: Re: AM_GNU_GETTEXT not found in library On Tue, 27 Apr 2004, John Poltorak wrote: > On Tue, Apr 27, 2004 at 11:44:08AM +0100, John Poltorak wrote: > > > The configure.ac file contains:- > > > > AM_GNU_GETTEXT "AM" is automake. It includes a number of macros that belong in autoconf. > > Where whould I expect to find this macro? > > Is this something which GETTEXT would install into ACLOCAL when it is > installed? -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 21 ==========================** Date: Tue, 27 Apr 2004 07:57:46 -0400 (EDT) From: Thomas Dickey Subject: Re: AM_GNU_GETTEXT not found in library On Tue, 27 Apr 2004, John Poltorak wrote: > On Tue, Apr 27, 2004 at 11:44:08AM +0100, John Poltorak wrote: > > > The configure.ac file contains:- > > > > AM_GNU_GETTEXT "AM" is automake. It includes a number of macros that belong in autoconf. > > Where whould I expect to find this macro? > > Is this something which GETTEXT would install into ACLOCAL when it is > installed? -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net