From: Kristian Koehntopp <kris () oekoalpha ! pz-oekosys ! uni-kiel ! d400 ! de>
To: tru64-unix-managers
Subject: p2c Pascal to C translator
Date: Tue, 10 Jan 1995 16:26:45 +0000 [thread overview]
Message-ID: <96075316706406.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1995-01-10 16:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox