[Tcsh] tcsh on Z/OS

H.Merijn Brand h.m.brand at xs4all.nl
Wed Oct 2 10:49:33 UTC 2019


On Tue, 1 Oct 2019 19:59:50 -0400, Christos Zoulas
<christos at zoulas.com> wrote:

> The question is why is it not supported and what can we do to fix
> it... I.e. how does it fail to build?

If I fix teh HAVE_*_H's in config.h, I need to redefine ut_name to
ut_user and define HAVE_STRUCT_UTMPX_UT_TV in tc.who.c:

#ifdef HAVE_UTMPX_H
# include <utmpx.h>
# define ut_name ut_user
# define HAVE_STRUCT_UTMPX_UT_TV

and I get to a compiled tcsh

c99 -o tcsh  -qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qexportall -qhaltonmsg=3296:4108 -DOEMVS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -D_SHR_ENVIRON -Wc,XPLINK,dll,EXPORTALL -Wl,XPLINK,dll -DYYDYNAMIC -I. -I. sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.char.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o sh.time.o glob.o dotlock.o mi.termios.o ma.setp.o vms.termcap.o tw.help.o tw.init.o tw.parse.o tw.spell.o tw.comp.o tw.color.o ed.chared.o ed.refresh.o ed.screen.o ed.init.o ed.inputl.o ed.defns.o ed.xmap.o ed.term.o tc.alloc.o tc.bind.o tc.const.o tc.defs.o tc.disc.o tc.func.o tc.nls.o tc.os.o tc.printf.o tc.prompt.o tc.sched.o tc.sig.o tc.str.o tc.vers.o tc.who.o  -lcurses  

which when started crashes immediately:

$ ./tcsh
FSUC1908 (nil) current memory allocation:
free:       0  127    3    0   13    7    0    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
FSUC1909
used:   :           0    1   61  192   35    9    4    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0FSUC1910
        Total in use: 24112, total free: 6608
FSUC1911        Allocated memory from 0x1b6a5028 to 0xffffffff. Real top at 0x1b6acc00
FSUC1901 nbytes=56: Out of memory
CEE5207E The signal SIGABRT was received.
Abort

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20191002/9dd68625/attachment.asc>


More information about the Tcsh mailing list