From rss@jpr.com Sat Sep 24 15:58:27 PDT 1994 Article: 9021 of comp.databases.ingres Newsgroups: comp.databases.ingres Path: agate!howland.reston.ans.net!cs.utexas.edu!uunet!murphy.com!murphy.com!jpradley!rss From: rss@jpr.com (Robert Silver) Subject: Re: Help!: University Ingres & EQUEL Organization: Unix in NYC Date: Sat, 24 Sep 1994 19:31:34 GMT Message-ID: References: <35kuc2$rji@hamblin.math.byu.edu> Lines: 57 In article , Robert Silver wrote: >In article <35kuc2$rji@hamblin.math.byu.edu>, >Gregory Warnes wrote: >> >>I have downloaded and compiled University INGRES 89 on SUNOS 4.11 and am >>having a problem with EQUEL programs. For example, the dummy EQUEL program : >> >> #include >> main() >> { >> ##ingres "demo" >> } >> >>which the EQUEL pre-processor converts to >> >> #include >> main() >> { >> {IIingres("demo",0);} >> } >> >>always terminates with the following error message when run: >> >> KSORT SYSERR: pb_write: proc 1 >> >> >> SYSERR: pb_read: read error (-1874853753) >> >>All EQUEL programs terminate in the same way when starting INGRES. Does any >>one know how to solve this problem? Any suggestions will be appreciated. >> >>Greg Warnes >>(reply to greg_warnes@byu.edu) > >I too have a problem with EQUEL. I fail to even get the files: >grammar.c and grammar.y to compile properly. I get the error message: > >grammar.y line 1709: empty constant expression after macro expansion > >using an ATT cc compiler on a SVR4 PC. I think that err message comes from yacc. >The Makefile when run, runs yacc -d on the grammar and token files. >I am at a loss to understand this error because there >is no real line number given in any of the errors perhaps because of the #line >directives embedded in these files. Any help would be appreciated! >Thank you! This may be a bit unconventional, however, I found my own answer to this problem and wanted to post the solution for the next unfortunate party who has the same problem or similar. The solution was simply to remove the nasty #line preprocessor directives by adding an option in the Makefile YFLAGS to include the -l option which Prevents #line directives from being produced. Then I was able to see the real problem: a #if macro that my cc compiler failed to recognize i just replaced it with #ifdef and that allowed me to continue with the make. I hope this serves to help others.