From: jfy@cis.ksu.edu (Joseph F. Young)
Newsgroups: comp.unix.aix,comp.text.tex
Subject: SUMMARY: AIX3.2 and TeX 3.14
Date: 11 Jan 1993 19:58:34 GMT
Organization: Kansas State University, Dept. of Computing and Information Sciences
Distribution: world
NNTP-Posting-Host: crucis.cis.ksu.edu
Summary: dont compile with -O

The problem I was having, as indicated by most replies, was due to a
bug in the of the optimizer for the xlc C compiler, which was causing
one of TeX's scanner routines to croak.  Anyway, I compiled without
optimization and I now have a working TeX system on the RS6000.
Following is a summary of the replies I got for those who sent me "metoo"
messages.

Thanks for your replies.

From clement@arp.anu.edu.au  Sun Jan 10 20:15:42 1993
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["1343" "Mon" "11" "January" "1993" "13:15:24" "+1100" "CJ Canon" "Clement.J.Canon@arp.anu.edu.au" nil "36" "Re: TeX3.14 and AIX3.2" "^From:" nil nil "1"])
Return-Path:  <clement@arp.anu.edu.au>
Received: from arp.anu.edu.au by depot.cis.ksu.edu SMTP (5.65a) 
		id AA22727; Sun, 10 Jan 93 20:15:42 -0600
Received: by arp.anu.edu.au id AA13376
  (5.65c/IDA-1.4.2.9 for jfy@cis.ksu.edu); Mon, 11 Jan 1993 13:15:24 +1100
Message-Id: <199301110215.AA13376@arp.anu.edu.au>
Newsgroups: comp.text.tex,comp.unix.aix
Organization: Centre for Information Science Research ANU
From: CJ Canon <Clement.J.Canon@arp.anu.edu.au>
To: jfy@cis.ksu.edu
Cc: 
Subject: Re: TeX3.14 and AIX3.2
Date: Mon, 11 Jan 1993 13:15:24 +1100

In article <jfy.726717120@crucis.cis.ksu.edu.cis.ksu.edu> you write:
>I am trying to get TeX3.14 running on an RS6000, running AIX 3.2 and I
>cannot seem to get a working version.  All of the binaries compile
>normally, but when it comes time to make the tex, latex, etc. images,
>the build dies on the initialization file with an error like the
>following.  I've tried to different versions of the TeX3.14 sources
>and am getting essentially the same problem.
>
># make formats
>        cd tex; TEXPOOL=.; export TEXPOOL; make formats="tex.fmt latex.fmt etex.fmt" formats
>        ./initex plain.initex
>This is TeX, C Version 3.141 (INITEX)
>(plain.initex
>! Undefined control sequence.
>l.1 \input
>           plain
>? 

I had a similar problem when I was installing {La}TeX on a Pyramid
late last year. I fixed the problem by making some concrete decisions
as to where the installed version and editing the list of formats so
that I produced them one at a time. BTW, editing the makefiles off the
main tree helps to start with, but once the binaries are done it's
easier to stick with editing the main Makefile in the tree.

Hope this helps,

CJ.

-- 

   Internet: clement@arp.anu.edu.au

         `"Nil mortifi, sine lucre" - "No killing without payment".
          And don't forget to give a receipt !'
					Terry Pratchett, "Pyramids"

From vp@fct.unl.pt  Mon Jan 11 04:49:49 1993
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["722" "Mon" "11" "January" "93" "11:49:52" "+0100" "Vasco Pedro" "vp@fct.unl.pt " nil "26" "Re: TeX3.14 and AIX3.2 " "^From:" nil nil "1"])
Return-Path:  <vp@fct.unl.pt>
Received: from isolde.fct.unl.pt by depot.cis.ksu.edu SMTP (5.65a) 
		id AA04064; Mon, 11 Jan 93 04:49:49 -0600
Received: from localhost.fct.unl.pt by isolde.fct.unl.pt with SMTP id AA16357
  (5.65c/IDA-1.4.4 for jfy@cis.ksu.edu); Mon, 11 Jan 1993 11:49:52 +0100
Message-Id: <199301111049.AA16357@isolde.fct.unl.pt>
From: vp@fct.unl.pt (Vasco Pedro)
To: jfy@cis.ksu.edu (Joseph F. Young)
Subject: Re: TeX3.14 and AIX3.2 
Date: Mon, 11 Jan 93 11:49:52 +0100


Hi

># make formats
>        cd tex; TEXPOOL=.; export TEXPOOL; make formats="tex.fmt latex.fmt ete
x.fmt" formats
>        ./initex plain.initex
>This is TeX, C Version 3.141 (INITEX)
>(plain.initex
>! Undefined control sequence.
>l.1 \input
>           plain
>? 

>From this output, I'd say you compiled tex with AIX `cc' and `-O'.

If this is the case, someone will no doubt tell you which patch to get to fix
the c compiler. In the meantime, you may try compiling without turning
optimisation on or you may also try using gcc, which worked for me (as far
as I remember, this was the route I took).

If this doesn't solve the problem, I may try to find out what else I had to
do to make tex work.

Best of luck,
vasco

From haedener@iacrs1.unibe.ch  Mon Jan 11 04:59:37 1993
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["2194" "Mon" "11" "January" "1993" "11:59:17" "+0100" "Konrad Haedener" "haedener@iacrs1.unibe.ch " nil "60" "Re: TeX3.14 and AIX3.2" "^From:" nil nil "1"])
Return-Path:  <haedener@iacrs1.unibe.ch>
Received: from chx400.switch.ch by depot.cis.ksu.edu SMTP (5.65a) 
		id AA04119; Mon, 11 Jan 93 04:59:37 -0600
Received: from aragorn.unibe.ch by chx400.switch.ch with SMTP (PP) 
          id <02586-0@chx400.switch.ch>; Mon, 11 Jan 1993 11:59:30 +0100
Message-Id: <9301111059.AA22137@iacrs1.unibe.ch>
Reply-To: haedener@iacrs1.unibe.ch
From: haedener@iacrs1.unibe.ch (Konrad Haedener)
To: jfy@cis.ksu.edu (Joseph F. Young)
Subject: Re: TeX3.14 and AIX3.2
Date: Mon, 11 Jan 1993 11:59:17 +0100


In article <jfy.726717120@crucis.cis.ksu.edu.cis.ksu.edu>, you write:
|> I am trying to get TeX3.14 running on an RS6000, running AIX 3.2 and I
|> cannot seem to get a working version.  All of the binaries compile
|> normally, but when it comes time to make the tex, latex, etc. images,
|> the build dies on the initialization file with an error like the
|> following.  I've tried to different versions of the TeX3.14 sources
|> and am getting essentially the same problem.
|> 
|> # make formats
|>         cd tex; TEXPOOL=.; export TEXPOOL; make formats="tex.fmt latex.fmt etex.fmt" formats
|>         ./initex plain.initex
|> This is TeX, C Version 3.141 (INITEX)
|> (plain.initex
|> ! Undefined control sequence.
|> l.1 \input
|>            plain
|> ? 
|> 
|> I'm new to the AIX world (we're mainly a Sun shop), so I'd appreciate
|> any advice you have for fixing this problem.
|> -- 
|> Joseph Young, Systems Programmer
|> KSU Department of Computing and Information Sciences
|> Manhattan, Kansas 66506  FAX: (913) 532-7353  Phone: (913) 532-6350   
|> Internet: jfy@cis.ksu.edu  UUCP: rutgers!depot!jfy 

The following is due to Bernd Raichle; I've done this under 3.2 and it works:

I have installed web2c-5.851c on a IBM RS/6000 running AIX 3.2.

Compiler: bsdcc
    ("To use the compiler as bsdcc, link /bin/xlc to /bin/bsdcc.")

Compile-Options: -O -DSCHAR_TYPE="signed char"
    otherwise `configure' sets the signed char to `short'


Problems compiling the programs (tex/mf/bibtex/...) in the
web2c-package:

  1. pltotf.c/vftovp.c
     name collision between "extern int class();" (in <math.h>)
     and field "class[..]".
     Fix: compile these files with -D_POSIX_SOURCE

  2. big version of TeX (= initex/virtex):
     there seems to be a bug in the optimizer when compiling
     this version (all other programs seems to work ok with -O)
     Fix: compile `tex2.c' without -O
          (otherwise the TeX function `get_next' is incorrect)


-bernd

-- 
Konrad Haedener                             Phone: +41 31 65 42 25
Institute for Physical Chemistry            FAX:   +41 31 65 39 94
University of Berne
Switzerland                                 haedener@iacrs1.unibe.ch

From nick@osf.org  Mon Jan 11 09:39:39 1993
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["378" "Mon" "11" "January" "93" "10:39:33" "-0500" "Nick Dokos" "nick@osf.org" nil "15" "Re: TeX3.14 and AIX3.2" "^From:" nil nil "1"])
Return-Path:  <nick@osf.org>
Received: from postman.osf.org by depot.cis.ksu.edu SMTP (5.65a) 
		id AA18455; Mon, 11 Jan 93 09:39:39 -0600
Received: from osf.osf.org by postman.osf.org (5.64+/OSF 1.0)
	id AA18924; Mon, 11 Jan 93 10:39:37 -0500
Received: from alphaville.osf.org by osf.osf.org (5.65/OSF 1.0)
	id AA11083; Mon, 11 Jan 1993 10:39:36 -0500
Message-Id: <9301111539.AA11083@osf.osf.org>
Reply-To: nick@osf.org
From: Nick Dokos <nick@osf.org>
To: jfy@cis.ksu.edu (Joseph F. Young)
Subject: Re: TeX3.14 and AIX3.2
Date: Mon, 11 Jan 93 10:39:33 -0500

The makefile seems to be screwed-up. The initex line should read as follows:

	./initex plain \\dump

Check the makefile in the tex directory for the target tex.fmt. Mine says:

tex.fmt:
	./initex plain \\dump
	mv plain.fmt tex.fmt
	mv plain.log tex.log

Nick Dokos	nick@osf.org	
OSF Systems Engineering

Member of the League for Programming Freedom - write to lpf@uunet.uu.net

From agw@dsm.fordham.edu  Mon Jan 11 13:36:21 1993
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["208" "Mon" "11" "January" "1993" "14:35:25" "-0500" "Art Werschulz" "agw@dsm.fordham.edu " nil "12" "TeX3.14 and AIX3.2" "^From:" nil nil "1"])
Return-Path:  <agw@dsm.fordham.edu>
Received: from dsm.fordham.edu by depot.cis.ksu.edu SMTP (5.65a) 
		id AA29004; Mon, 11 Jan 93 13:36:21 -0600
Received: by dsm.fordham.edu (AIX 3.2/UCB 5.64/4.03)
          id AA11539; Mon, 11 Jan 1993 14:35:25 -0500
Message-Id: <9301111935.AA11539@dsm.fordham.edu>
From: agw@dsm.fordham.edu (Art Werschulz)
To: jfy@cis.ksu.edu (Joseph F. Young)
Subject: TeX3.14 and AIX3.2
Date: Mon, 11 Jan 1993 14:35:25 -0500

Hi.

Don't use the -O flag in cc.

  Art Werschulz		(8-{)}
  Internet:  agw@dsm.fordham.edu  ATTnet: (212) 636-6325

  Shalom!  Ani mutatsia shel virus .signature.
  Ha`atek oti letoch .signature shelcha!




-- 
Joseph Young, Systems Programmer
KSU Department of Computing and Information Sciences
Manhattan, Kansas 66506  FAX: (913) 532-7353  Phone: (913) 532-6350   
Internet: jfy@cis.ksu.edu  UUCP: rutgers!depot!jfy