Re: [Rd] pcre library in R (PR#9319)

From: Prof Brian Ripley <>
Date: Fri 19 Jan 2007 - 16:38:11 GMT

Please, use the current version of R and not an obselete one (you failed to report the version, but you do have 'R-2.4.0' in the path name, so I presume that is what you are using). This does not occur under 2.4.1.

(The problem is in the binutils you are using to cross-compile, and an alternative is to update that.)

If you want to fix 2.4.0 and use your cross-compiler, I think you can remove pcre_dfa_exec.c and remove mention of it from

On Fri, 19 Jan 2007, Daniel Berg wrote:

> I have the same problem, trying to cross-compile.
> I'm running Ubuntu Edgy, kernel 2.6.17-10-generic, on an IBM T60.
> I downloaded the Makefile from CRAN and ran make CrossCompileBuild
> with the following error messages (also ran each make one at the time
> and the problem occurs in make R):
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1703):
> undefined reference to `__pcre_ucp_findprop'
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1740):
> undefined reference to `__pcre_ucp_findprop'
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1848):
> undefined reference to `__pcre_ucp_findprop'
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x187f):
> undefined reference to `__pcre_ucp_findprop'
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1966):
> undefined reference to `__pcre_ucp_findprop'
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1f2a):
> more undefined references to `__pcre_ucp_findprop' follow
> collect2: ld returned 1 exit status
> make[4]: *** [R.dll] Error 1
> make[3]: *** [../../bin/R.dll] Error 2
> make[2]: *** [rbuild] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/daniel/Jobb/R/RCrossBuild/WinR/R-2.4.0/src/gnuwin32'
> Can you please report in greater detail how you added the files
> pcre_ucp_searchfuncs.c and ucptable.c Mr. Kinney?
> I have downloaded the files but I don't know where to put them, under
> /WinR/R-2.4.0/src/extra/pcre? And to which makefile,
> Thank you.
> Best wishes,
> Daniel Berg

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Sat Jan 20 04:01:45 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 Jan 2007 - 18:31:09 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.