From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075316706406.tru64-unix-managers.marc@archive.invalid> From: Kristian Koehntopp Date: Tue, 10 Jan 1995 16:26:45 +0000 To: tru64-unix-managers Subject: p2c Pascal to C translator X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075316706406 I am trying to compile the Pascal-to-C translator p2c from Dave Gillespie. I had some trouble with the save malloc declarations of p2c producing illegal pointer to int conversions, but I managed to fix this. The source leaves me with two problems I do not understand. One of these is $ cc -c -DBROKEN_OR -DHASDUMPS -DP2C_HOME=\"`cd /usr/local/lib/p2c; pwd`\" trans.c /usr/lib/cmplrs/cc/cfe: Warning: /usr/include/time.h, line 198: storage size for 'tzname' isn't known char *tzname[]; -------^ which is strange because it is an error message from the system include files. What in a source can provoke an error to be reported in system includes? The other problem is $ cc trans.o stuff.o out.o comment.o lex.o parse.o decl.o expr.o pexpr.o funcs.o dir.o -o p2c ld: Don't know what to do with sc == 17 *** Exit 1 Stop. and I don't even know what this message means! There was a symbol named sc in the source, which I renamed, so that $ grep -w sc * p2c.cat: scopes which are destroyed by an escape are not closed. p2c.h.orig:#define FILEBUF(f,sc,type) sc int __CAT__(f,_BFLAGS); \ p2c.h.orig: sc type __CAT__(f,_BUFFER and the message still turns up. Any helpers? I am using $ uname -a OSF1 porthos V2.0 240 alpha and $ cc -V cc (cc) The DEC OSF/1 AXP Compiler Driver 3.11 [ zillions of RCS version lines deleted ] Kristian