tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* p2c Pascal to C translator
@ 1995-01-10 16:26 Kristian Koehntopp
  0 siblings, 0 replies; only message in thread
From: Kristian Koehntopp @ 1995-01-10 16:26 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-01-10 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-10 16:26 p2c Pascal to C translator Kristian Koehntopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox