bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few bugs on Bison 2.0 on prtetty old Sun OS 4.1.4


From: Peter Klein
Subject: Re: A few bugs on Bison 2.0 on prtetty old Sun OS 4.1.4
Date: Tue, 7 Jun 2005 19:01:07 +0200 (CEST)

Hallo folks,

encloses I send you a small bug, I discovered with bison 2.0
on SUN OS 4.1.4.
I tried to send this already two month ago, but due to a
problem in my mailconfiguration it was returned!

I would highly appreceate a fix.
Alternatively you may stop SUN OS 4.1.4 support, which would be
a terrible bad solution for me!

Kind regards from Germany

P. Klein



>Hi folks,
>
>I still have running Sun OS4.1.4 on one of my hosts.
>
>When compiling bison 2.0, it fails.
>
>After doing the following three modifications, it runsperfectliy:
>
>/* 
>patch lib/hash.h:
>add #include include <stdlib.h> /* to get size_t */
>*/ 
>/* 
>patch src/scan-gram.c: replace
>strtol -> strtoul
> */
>
>/* 
>patch lib/Makefile
>CFLAGS = -g -O2 -D$(OSTYPE)
>*/
>
>/* 
>patch lib/error.c:
>
>#ifdef sunos4
>static char *
>private_strerror (int errnum)
>{
>extern char *sys_errlist[];
>extern int sys_nerr;
>
>if (errnum > 0 && errnum <= sys_nerr)
>return _(sys_errlist[errnum]);
>return _("Unknown system error");
>}
>#define strerror private_strerror
>
>#endif 
>
>
>
>
>My proposal: add $OSTYPE to Makefile
>and the additional ifdefs and it runns perfectly again . . .
>
>Additional remark: I compiled and installed on SunOS 5.8, Sun OS 5.9,
>OpenBSD 3.4 and OpenBSD 3.6 without any recognized problem!
>
>Thanx for your cooperation in advance . . .
>With Greetings from Germany
>
>Peter Klein
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]