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

From: <bkinney_at_hmdc.harvard.edu>
Date: Fri 27 Oct 2006 - 19:20:05 GMT

Full_Name: Earl Kinney
Version: 2.4.0
OS: Red Hat Enterprise Linux 4
Submission from: (NULL) (

At HMDC, we make use of the cross building tools to build Windows R libraries on Linux. Recently when attempting to update the cross building environment to 2.4.0 we encountered a linker error. The error reference an undefined symbol "__pcre_ucp_findprop". After walking through the code there appear to be a combination of two problems:

  1. Some of the PCRE code does not properly wrap ucp calls with appropriate "#ifdef SUPPORT_UCP" directives. I plan to report this to the PCRE developers.
  2. In R, the implementations for this ucp function are removed, as R does not link against the entire pcre library.

I was able to get around this problem by including the following files directly from the PCRE distribution and adding them to the makefiles:


As this is such a trivial change, if you could please consider adding this to future releases of R with this release of PCRE, I would be most appreciative.

Earl (Bob) Kinney
UNIX Systsms Administrator
Harvard-MIT Data Center

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Oct 28 05:22:07 2006

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 27 Oct 2006 - 20:31:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.