Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Couldn't Build 3.1.6 on Nextstep 3.3 m68k System
- X-seq: zsh-workers 7336
- From: Irving_Wolfe@xxxxxxxxxxxxx
- To: Geoff Wing <mason@xxxxxxxxxxxxxxx>
- Subject: Re: Couldn't Build 3.1.6 on Nextstep 3.3 m68k System
- Date: Sun, 1 Aug 1999 23:52:17 -0700
- Cc: zsh-workers@xxxxxxxxxxxxxx, i-a-o@xxxxxxxxxxxxx
- In-reply-to: <slrn7qadb5.3pf.mason@xxxxxxxxxxxxxxxxxxxxx>; from Geoff Wing on Mon, Aug 02, 1999 at 06:06:29AM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <Pine.NXT.3.96.990801214243.13380A-100000@reddog> <slrn7qadb5.3pf.mason@xxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Irving_Wolfe@xxxxxxxxxxxxx
Thanks for the great help!
On Mon, Aug 02, 1999 at 06:06:29AM +0000, Geoff Wing wrote:
>
> Try the following; with F_GETFL, all args are ignored anyway.
>
>
> --- Src/init.c.org Wed Jun 30 02:33:52 1999
> +++ Src/init.c Mon Aug 2 16:05:27 1999
> @@ -353,7 +353,7 @@
> * Try both stdin and stdout before trying /dev/tty. -- Bart
> */
> #if defined(HAVE_FCNTL_H) && defined(F_GETFL)
> -#define rdwrtty(fd) ((fcntl(fd, F_GETFL) & O_RDWR) == O_RDWR)
> +#define rdwrtty(fd) ((fcntl(fd, F_GETFL, 0) & O_RDWR) == O_RDWR)
> #else
> #define rdwrtty(fd) 1
> #endif
That worked for init.c, but I had to make
a similar change in utils.c:
--- /Maurice/irving/todelete/01utils.c Sun Aug 1 23:27:41 1999
+++ Src/utils.c Sun Aug 1 23:28:36 1999
@@ -1249,7 +1249,7 @@
long mode;
if (!fstat(0, &st) && !S_ISREG(st.st_mode)) {
- mode = fcntl(0, F_GETFL);
+ mode = fcntl(0, F_GETFL, 0);
if (mode != -1 && (mode & NONBLOCK) &&
!fcntl(0, F_SETFL, mode & ~NONBLOCK))
return 1;
Then, zsh was built (and seems to run okay)
but my "make" still failed:
cc -s -o zsh main.o `cat stamp-modobjs` -ltermcap
makeinfo ./zsh.texi; exit 0
Making info file `zsh.info' from `./zsh.texi'.
./zsh.texi:19: Unknown info command `dircategory'.
./zsh.texi:20: Unknown info command `direntry'.
./zsh.texi:23: Bad argument to `end', `direntry', using `ifinfo'.
./zsh.texi:23: Unmatched `@end'.
*** Exit 2
*** `zsh.info' removed
Stop.
*** Exit 1
If there is anything after that info step,
I wonder if it should fail more gracefully,
since even FSF's efforts haven't gotten me
to read info files very often.
Regards,
- Irving
Messages sorted by:
Reverse Date,
Date,
Thread,
Author