zsh-workers
 help / color / mirror / code / Atom feed
* 3.0-pre3 fails on CRAY-YMP
@ 1996-07-24 14:17 Bruce Stephens
  1996-07-24 14:49 ` Johan Danielsson
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Stephens @ 1996-07-24 14:17 UTC (permalink / raw)
  To: zsh-workers

There are two problems.  One is that configure claims to find -ldir,
but the link at the end says it can't find it.  That's a minor problem,
which I don't understand (may be a bug in autoconf, for all I know).
The second is that there are a couple of calls to setlimits in exec.c
which aren't protected with #ifdef's for getrlimits, which the Cray
appears to lack.  (2.6 pl19 worked fine, so I think both must be cause
by changes between the versions, but it's possible that something in
the system has changed.)

--
Bruce Stephens			| email: B.Stephens@math.ruu.nl
Utrecht University              | telephone: +31 30 2534630
Department of Mathematics       | telefax:   +31 30 2518394
P.O. Box 80010, 3508 TA Utrecht |
The Netherlands                 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3.0-pre3 fails on CRAY-YMP
  1996-07-24 14:17 3.0-pre3 fails on CRAY-YMP Bruce Stephens
@ 1996-07-24 14:49 ` Johan Danielsson
  1996-07-24 17:32   ` Johan Danielsson
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Danielsson @ 1996-07-24 14:49 UTC (permalink / raw)
  To: Bruce Stephens; +Cc: zsh-workers

Bruce Stephens <stephens@math.ruu.nl> writes:

> One is that configure claims to find -ldir, but the link at the end
> says it can't find it.  That's a minor problem, which I don't
> understand (may be a bug in autoconf, for all I know).

Autoconf is broken in this sense, the Cray ld does not bug out if you
try to link with nonexistant libraries, and autoconf thinks it has to
include them. I will send a patch for this some day.

> The second is that there are a couple of calls to setlimits in
> exec.c which aren't protected with #ifdef's for getrlimits, which
> the Cray appears to lack.

I think I tried to build pre1 on a J90 (which basically is a YMP in
CMOS) with Unicos 9, but I'm not sure. What version are you using?

One other problem I have is that it fails to change the terminal
settings (with stty) - it looks like they get reset back when stty
exits (and no I don't have that option on). I think it might have to
do something to do with the way it opens the terminal, but Im not
sure. Bash works all right.

While on the subject of supercomputers; it seem to work on a 
Fujitsu VX :-)

/Johan



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3.0-pre3 fails on CRAY-YMP
  1996-07-24 14:49 ` Johan Danielsson
@ 1996-07-24 17:32   ` Johan Danielsson
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Danielsson @ 1996-07-24 17:32 UTC (permalink / raw)
  To: Bruce Stephens; +Cc: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]


> > The second is that there are a couple of calls to setlimits in
> > exec.c which aren't protected with #ifdef's for getrlimits, which
> > the Cray appears to lack.

Ok, this is a new bug in pre2 or pre3. This is the quick patch:

[-- Attachment #2: Type: text/plain, Size: 478 bytes --]

RCS file: RCS/exec.c,v
retrieving revision 1.1
diff -u -r1.1 exec.c
--- exec.c      1996/07/24 17:16:34     1.1
+++ exec.c      1996/07/24 17:16:46
@@ -1686,8 +1686,10 @@
            }
            if (type == SIMPLE) {
                closem(1);
+#ifdef HAVE_GETRLIMIT
                if (!forked)
                    setlimits(NULL);
+#endif
                execute((Cmdnam) hn, cflags & BINF_DASH);
            } else {            /* ( ... ) */
                list_pipe = 0;

[-- Attachment #3: Type: text/plain, Size: 1633 bytes --]


However, shouldn't the ifdef stuff be in zsetlimit? This way you don't
have to add ifdefs in every place you want to change limits.


> One other problem I have is that it fails to change the terminal
> settings (with stty) - it looks like they get reset back when stty
> exits (and no I don't have that option on).

This is the symptoms. I haven't had time to look into this, it is a bit
hard to debug these things without a working debugger :-)

$ stty 
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h; 
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 
$ stty erase '^?'
$ stty
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h; 
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 
$ exec /bin/bash
$ stty erase
$ stty
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
erase = ^h; 
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 
$ stty erase '^?'
$ stty # note that the erase character has changed
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 
$ exec ./zsh
/scratch/joda/zsh-3.0-pre3/Src>stty
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 
$ stty erase '^h'
$ stty
speed 9600 baud; -parity hupcl -cread 
rows = 32; columns = 80; ypixels = 0; xpixels = 0;
brkint -inpck icrnl -ixany onlcr tab3 
echo echoe echok iexten 

/Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-07-24 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-24 14:17 3.0-pre3 fails on CRAY-YMP Bruce Stephens
1996-07-24 14:49 ` Johan Danielsson
1996-07-24 17:32   ` Johan Danielsson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).