From tlumley at u.washington.edu  Fri May 23 10:41:33 2003
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Fri May 23 18:41:50 2003
Subject: [Rd] Problem building R-devel
In-Reply-To: <16078.19409.980882.202677@gargle.gargle.HOWL>
Message-ID: <Pine.A41.4.44.0305230936580.17962-100000@homer26.u.washington.edu>

On Fri, 23 May 2003, Martin Maechler wrote:

> >>>>> "JeffG" == Jeff Gentry <jgentry@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:
<snip>
>     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.

	-thomas


[Rd] Problem building R-devel
Thomas Lumley