I have recently installed gpc 19990118 and gcc version 2.8.1 on a Redhat linux 5.2 system.
I've been trying to build the programs in the p/demos directory, and (now that I've discovered the --automake option) all of them build successfully except regexdemo and pipedemo. Trying to compile these gives the output shown below.
Does anyone have any suggestions as to what is wrong?
Trying to compile regexdemo with the command line gpc --automake -o regexdemo regexdemo.pas gives the following output (lines wrapped for readability)
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/regexc.c:24: rxposix.h: No such file or directory gpc1: gpc exited with status 1 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/regex.pas:77: `/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/regexc.c' could not be compiled gpc1: gpc exited with status 1 regexdemo.pas:25: module `regex' could not be compiled
Trying to compile pipedemo with the command line gpc --automake -o pipedemo pipedemo.pas gives the following output (lines wrapped for readability)
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c: In function `_p_pipe': /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c:34: `pid_t' undeclared (first use in this function) /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c:34: (Each undeclared identifier is reported only once /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c:34: for each function it appears in.) /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c:34: parse error before `pid' /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c:39: `pid' undeclared (first use in this function) gpc1: gpc exited with status 1 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipe.pas:65: `/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/pipec.c' could not be compiled gpc1: gpc exited with status 1 pipedemo.pas:25: module `pipe' could not be compiled