Zsh Mailing List Archive
Messages sorted by:
Zsh on MachTen
- X-seq: zsh-workers 485
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: Zsh on MachTen
- Date: Fri, 20 Oct 1995 14:24:12 +0100 (BST)
-----BEGIN PGP SIGNED MESSAGE-----
I've just observed zsh (2.6-beta9 plus one-line redirection bug fix)
compiling on a MachTen system -- the results may be of interest.
First, the system is not recognised by config.guess. The host type has
to be set manually -- a minor problem. (We used
powerpc-macintosh-machten.) uname -a reports
Elizium 4 0.0 Macintosh
The first field is blank, and the second is the hostname. I am told
that the blank field, OS name, should be MachTen or something similar.
The OS is basically 4.4BSD.
With the host type set, configuration went smoothly (though very, very
slowly). Compilation took in total about an hour, and generated the
gcc -c -I.. -I. -I. -DCONFIG_BROKETS -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 builtin.c
builtin.c: In function `bin_unlimit':
builtin.c:4158: warning: left shift count >= width of type
builtin.c:4185: warning: left shift count >= width of type
builtin.c: In function `bin_ulimit':
builtin.c:4307: warning: left shift count >= width of type
builtin.c: In function `showlimits':
builtin.c:4335: warning: left shift count >= width of type
builtin.c:4355: warning: long long int format, different type arg (arg 2)
builtin.c:4357: warning: long long int format, different type arg (arg 2)
builtin.c: In function `printulimit':
builtin.c:4431: warning: left shift count >= width of type
The "left shift count >= width of type" warnings are generated wherever
RLIM_INFINITY appears. It is defined thus in sys/resource.h:
#define RLIM_INFINITY (((u_quad_t)1 << 63) - 1)
The "different type arg" warnings are generated on the lines that
output resource limits, using the quad type ("%qd" -- I told you this
was BSD). I think that one is merely a signed/unsigned thing, so "%qu"
should be OK. This would require a configuration test for unsigned
RLIM_T. I doubt that this would fix the RLIM_INFINITY problem. Does
anyone else have any insights?
Despite these warnings, zsh actually runs just fine. MachTen can be
added to the list of good configurations.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
Messages sorted by: