Bison problem under Unix

Home

Download
Search
Report bugs
Building
Contributors
OEM

Documents
FAQ
H.323 standards
Tutorial
Other docs

Quicknet drivers
Download
Build

CVS
SDK & Docs

Mailing list
How to join
Archive

The bison.simple file on many releases will not compile with the options used by the PWLib getdate.y grammar. The options are required to make the date parser thread safe so it is necessary to edit the bison.simple file to fix the problem.

The file is usually at /usr/lib/bison.simple but in the tradition of unix could actually be anywhere. We leave it up to you to find it.

The code:

/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
int yyparse (void);
#endif

should be changed to

/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
#ifndef YYPARSE_PARAM
int yyparse (void);
#endif
#endif

To prevent the incorrect function prototype from being defined. The getdate.y should then produce a getdate.tab.c file that will actually compile.

Top of page Top