Bison problem under Unix

 
 OpenH323 Home

 Search

 Frequently Asked
   Questions

 Download Code

 Building code

 Documentation

 H.323 standards

 Contributors

 Mailing list
   How to join
   Archive

 Mirrors
   Primary site
   Australia #1
   Australia #2
   US #1
   US #2
   Russia
   Germany
   Austria

 Other Sites
   Voxilla.org
   OpenSource.org
   openphone.org

   LinuxTelephony
   SpeakFreely.org


  

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