Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdcc6!odin!little From: little@odin.ucsd.edu (Glenn Little) Newsgroups: comp.text.tex Subject: can't compile bibtex.c Message-ID: <17229@sdcc6.ucsd.edu> Date: 5 Mar 91 22:56:56 GMT Sender: news@sdcc6.ucsd.edu Organization: CSE Dept., UC San Diego Lines: 31 I am trying to bring up the unix TeX3.1 package. I am having trouble compiling bibtex.c. The c file that gets generated has a bunch of problems that are essentially like this (after boiling down, expanding macros, etc.): --------------------------------- int dummy_func(); typedef char arraytype[5]; some_function (buf) arraytype buf; { dummy_func ((arraytype) ( buf )); } --------------------------------- gcc complains about "conversion to non-scalar type requested" for each of these situations. cc has a similar complaint "illegal lvalue operand of assignment operator". It looks like the problem is with the "arraytype" cast in the function call. Has anyone else seen this problem and if so, do you have any ideas for a fix? (Other than hand-fixing the bibtex.c file... since it's auto-generated, that seems like a waste of effort.) Thanks a lot. Glenn Little glittle@ucsd.edu little%cs@ucsd.edu