[Rd] Problem building R-devel

Thomas Lumley tlumley at u.washington.edu
Fri May 23 10:41:33 MEST 2003

On Fri, 23 May 2003, Martin Maechler wrote:

> >>>>> "JeffG" == Jeff Gentry <jgentry at jimmy.harvard.edu>
> >>>>>     on Fri, 23 May 2003 12:02:07 -0400 (EDT) writes:
>     JeffG> Hello ...  I went to build R-devel today (Redhat
>     JeffG> Linux 7.2, kernel 2.4.9-31, gcc 2.96) and am getting
>     JeffG> this error:
>     JeffG> gcc -I../../src/extra/zlib -I. -I../../src/include
>     JeffG> -I../../src/include -I/usr/local/include
>     JeffG> -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -g -O2
>     JeffG> -c pcre.c -o pcre.o pcre.c: In function `do_pgrep':
>     JeffG> pcre.c:71: parse error before `char' pcre.c:72: `s'
>     JeffG> undeclared (first use in this function) pcre.c:72:
>     JeffG> Is this a problem w/ r-devel or a problem on my end?
> on your end.
> using old redhat with the "bad" compiler gcc 2.96 ...

Not entirely.  It's my fault.

While it compiles and passes check-devel on my system, the code I inserted
is technically incorrect C (it has a variable declaration after executable
code in a block).  In this case the bad compiler is right.


More information about the R-devel mailing list